:root {
  --ink: #18201f;
  --muted: #66706d;
  --line: #dfe5df;
  --paper: #fbfaf6;
  --white: #ffffff;
  --night: #090b0a;
  --night-soft: #111614;
  --night-line: rgba(255, 255, 255, 0.14);
  --cream: #f6efe2;
  --sage: #6f8f7a;
  --clay: #b8644c;
  --ochre: #d9ad5f;
  --charcoal: #26302e;
  --blue: #53798c;
  --shadow: 0 24px 70px rgba(31, 42, 38, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(9, 11, 10, 0.95);
  border-bottom: 1px solid var(--night-line);
  color: var(--cream);
  display: flex;
  gap: 24px;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease, height 180ms ease, padding 180ms ease, border-color 180ms ease;
  z-index: 20;
}

main {
  padding-top: 76px;
}

.site-header.is-scrolled {
  backdrop-filter: blur(24px);
  background: rgba(4, 5, 5, 0.99);
  border-bottom-color: rgba(217, 173, 95, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  height: 50px;
  padding-bottom: 0;
  padding-top: 0;
}

.site-header.is-scrolled::after {
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 16%;
  position: absolute;
  right: 16%;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-width: max-content;
}

.brand span:not(.brand-mark) {
  transition: opacity 180ms ease, max-width 180ms ease;
}

.brand-mark {
  align-items: center;
  background: var(--cream);
  border-radius: 8px;
  color: var(--night);
  display: inline-flex;
  font-size: 12px;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  width: 36px;
  transition: height 180ms ease, width 180ms ease, font-size 180ms ease;
}

.site-header.is-scrolled .brand-mark {
  font-size: 11px;
  height: 28px;
  width: 28px;
}

.site-header.is-scrolled .brand span:not(.brand-mark) {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.site-header.is-scrolled .brand span:not(.brand-mark),
.site-header.is-scrolled .primary-nav a,
.site-header.is-scrolled .nav-shop summary,
.site-header.is-scrolled .account-link {
  font-size: 13px;
}

.site-header.is-scrolled .primary-nav a,
.site-header.is-scrolled .nav-shop summary {
  background: rgba(246, 239, 226, 0.08);
  border-radius: 999px;
  color: var(--cream);
  padding: 7px 10px;
}

.site-header.is-scrolled .account-link,
.site-header.is-scrolled .cart-button {
  min-height: 34px;
}

.site-header.is-scrolled .icon-button {
  height: 34px;
  width: 40px;
}

.site-header.is-scrolled #cartCount {
  height: 19px;
  min-width: 19px;
  padding: 0 5px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 30px);
  justify-content: center;
}

.nav-shop {
  position: relative;
}

.nav-shop summary {
  color: rgba(246, 239, 226, 0.68);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}

.nav-shop summary::-webkit-details-marker {
  display: none;
}

.nav-shop summary::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  display: inline-block;
  height: 0;
  margin-left: 6px;
  transform: translateY(1px);
  width: 0;
}

.nav-shop[open] summary,
.nav-shop summary:hover {
  color: var(--cream);
}

.nav-shop-menu {
  background: rgba(4, 5, 5, 0.98);
  border: 1px solid rgba(217, 173, 95, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 4px;
  left: 50%;
  min-width: 250px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 40;
}

.nav-shop[open] .nav-shop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-menu-button,
.mobile-search-button:not(.search-toggle) {
  display: none;
}

.primary-nav a {
  color: rgba(246, 239, 226, 0.68);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}

.primary-nav a:hover {
  color: var(--cream);
}

.header-actions,
.hero-actions,
.trust-row,
.shop-toolbar,
.payment-options {
  align-items: center;
  display: flex;
  gap: 12px;
}

.search-toggle {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.search-toggle span {
  border: 2px solid currentColor;
  border-radius: 50%;
  height: 15px;
  position: relative;
  width: 15px;
}

.search-toggle span::after {
  background: currentColor;
  border-radius: 999px;
  bottom: -5px;
  content: "";
  height: 7px;
  position: absolute;
  right: -4px;
  transform: rotate(-45deg);
  width: 2px;
}

.account-link {
  align-items: center;
  border: 1px solid var(--night-line);
  border-radius: 8px;
  color: rgba(246, 239, 226, 0.76);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 12px;
}

.account-link:hover {
  color: var(--cream);
}

.icon-button,
.cart-button,
.button,
.segment,
.payment-options button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.icon-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--night-line);
  color: var(--cream);
  height: 40px;
  width: 44px;
}

.cart-button {
  align-items: center;
  background: var(--cream);
  color: var(--night);
  display: inline-flex;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
}

.site-search-panel {
  background: rgba(4, 5, 5, 0.52);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 70;
}

.site-search-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.site-search-box {
  background: var(--paper);
  border: 1px solid rgba(217, 173, 95, 0.28);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  margin: 88px auto 0;
  max-width: min(720px, calc(100vw - 32px));
  padding: 18px;
}

.site-search-header {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.site-search-header label {
  display: grid;
  gap: 8px;
}

.site-search-header label span,
.collection-toolbar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-search-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: min(56vh, 520px);
  overflow: auto;
}

.site-search-results a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.site-search-results a:hover {
  border-color: rgba(210, 163, 79, 0.5);
}

.site-search-results span {
  color: var(--muted);
  display: -webkit-box;
  font-size: 13px;
  line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#cartCount {
  background: var(--ochre);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 90px) clamp(18px, 4vw, 54px) 34px;
}

.minimal-hero {
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(246, 239, 226, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(9, 11, 10, 0.58) 0%, rgba(9, 11, 10, 0.34) 42%, rgba(9, 11, 10, 0.74) 100%),
    linear-gradient(90deg, rgba(9, 11, 10, 0.62), rgba(9, 11, 10, 0.2) 50%, rgba(9, 11, 10, 0.62)),
    var(--hero-background, url("assets/optimized/hero-main-layered-art-1536.jpg")) center 50% / cover;
  color: var(--cream);
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  position: relative;
}

.minimal-hero::before {
  background:
    linear-gradient(90deg, transparent, rgba(246, 239, 226, 0.1), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 44%);
  content: "";
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
}

.minimal-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  justify-self: center;
  max-width: min(1280px, 100%);
  min-width: 0;
  place-items: center;
  text-align: center;
  width: 100%;
}

.hero-kicker {
  animation: riseIn 700ms ease both;
  justify-self: center;
  text-align: center;
  width: auto;
}

.animated-title {
  animation: titleReveal 1300ms cubic-bezier(0.2, 0.75, 0.18, 1) 180ms both;
  font-size: clamp(32px, 4vw, 60px);
  justify-self: center;
  line-height: 1.04;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  text-align: center;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
  white-space: normal;
  width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-lead {
  animation: riseIn 760ms ease 260ms both;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  color: var(--ochre);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.free-copy p,
.collection p {
  color: var(--muted);
  font-size: 17px;
}

.minimal-hero .hero-copy p:not(.eyebrow) {
  color: rgba(246, 239, 226, 0.74);
}

.minimal-hero .button.primary {
  background: var(--cream);
  color: var(--night);
}

.minimal-hero .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--night-line);
  color: var(--cream);
}

.hero-category-grid {
  align-self: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  max-width: 1720px;
  width: min(100%, 1720px);
}

.category-tile {
  background: rgba(17, 22, 20, 0.72);
  border: 1px solid rgba(246, 239, 226, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: var(--cream);
  display: grid;
  gap: 8px;
  grid-template-rows: 1fr auto;
  min-height: 228px;
  overflow: hidden;
  padding: 26px 24px;
  position: relative;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-thumb {
  border: 1px solid rgba(246, 239, 226, 0.2);
  border-radius: 50%;
  height: 116px;
  object-fit: cover;
  object-position: center;
  position: absolute;
  right: 24px;
  top: 42px;
  width: 116px;
  z-index: 1;
}

.category-tile::before {
  background: var(--tile-accent, var(--sage));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.category-tile::after {
  border: 1px solid rgba(246, 239, 226, 0.14);
  border-radius: 999px;
  content: "";
  height: 116px;
  opacity: 0.55;
  position: absolute;
  right: 24px;
  top: 42px;
  width: 116px;
}

.category-tile:has(.category-thumb)::after {
  display: none;
}

.category-tile:hover {
  border-color: rgba(246, 239, 226, 0.34);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

.category-tile span {
  align-items: start;
  display: flex;
  font-size: clamp(25px, 2.1vw, 38px);
  font-weight: 900;
  min-height: 78px;
  line-height: 1.04;
  max-width: calc(100% - 146px);
  position: relative;
  z-index: 1;
}

.category-tile small {
  align-self: end;
  color: rgba(246, 239, 226, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 24px;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.tile-layered {
  --tile-accent: var(--ochre);
}

.tile-fiber {
  --tile-accent: var(--ochre);
}

.tile-cnc {
  --tile-accent: var(--ochre);
}

.tile-tumbler {
  --tile-accent: var(--ochre);
}

.tile-free {
  --tile-accent: var(--ochre);
}

.store-features {
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
  border-top: 1px solid var(--night-line);
  color: var(--cream);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(18px, 4vw, 54px);
}

.store-features div {
  border-left: 1px solid var(--night-line);
  display: grid;
  gap: 10px;
  min-height: 128px;
  padding: 26px 24px;
  place-content: center start;
}

.store-features div:last-child {
  border-right: 1px solid var(--night-line);
}

.store-features span {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.store-features strong {
  font-size: 18px;
  line-height: 1.15;
}

.store-features p {
  color: rgba(246, 239, 226, 0.62);
  font-size: 14px;
  margin: 0;
}

.button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.button.primary {
  background: var(--charcoal);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.trust-row {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  margin-top: 28px;
}

.trust-row span {
  background: rgba(111, 143, 122, 0.13);
  border-radius: 999px;
  padding: 8px 12px;
}

.section {
  background: var(--paper);
  padding: 74px clamp(18px, 4vw, 54px);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 780px;
}

.account-layout {
  display: grid;
  gap: 18px;
}

.showcase-section {
  background: #f7f4ed;
}

.showcase-section .section-heading {
  max-width: 720px;
}

.showcase-families {
  display: grid;
  gap: 22px;
}

.family-showcase {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(31, 42, 38, 0.1);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(31, 42, 38, 0.1);
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) minmax(240px, 0.7fr);
  min-height: 430px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
}

.family-main,
.stack-shot {
  background: var(--night-soft);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 42, 38, 0.14);
  display: block;
  overflow: hidden;
  position: relative;
}

.family-main {
  aspect-ratio: 1;
}

.family-main img,
.stack-shot img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
  width: 100%;
}

.family-main::after,
.stack-shot::after {
  background: linear-gradient(180deg, transparent 48%, rgba(4, 5, 5, 0.74));
  content: "";
  inset: 0;
  position: absolute;
}

.family-main span {
  bottom: 18px;
  color: var(--cream);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 900;
  left: 18px;
  line-height: 1;
  position: absolute;
  right: 18px;
  z-index: 1;
}

.family-stack {
  min-height: 360px;
  position: relative;
}

.stack-shot {
  position: absolute;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.stack-shot:hover,
.family-main:hover {
  box-shadow: 0 28px 70px rgba(31, 42, 38, 0.18);
}

.stack-shot:hover img,
.family-main:hover img {
  transform: scale(1.04);
}

.shot-one {
  aspect-ratio: 1.22 / 1;
  left: 0;
  top: 10px;
  transform: rotate(-2deg);
  width: 52%;
  z-index: 2;
}

.shot-two {
  aspect-ratio: 0.88 / 1;
  right: 8%;
  top: 0;
  transform: rotate(3deg);
  width: 38%;
  z-index: 3;
}

.shot-three {
  aspect-ratio: 1.05 / 1;
  bottom: 12px;
  left: 18%;
  transform: rotate(2deg);
  width: 44%;
  z-index: 4;
}

.shot-four {
  aspect-ratio: 1.35 / 1;
  bottom: 34px;
  right: 0;
  transform: rotate(-3deg);
  width: 48%;
  z-index: 1;
}

.family-copy {
  display: grid;
  gap: 10px;
}

.family-copy h3 {
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.06;
  margin: 0;
}

.family-copy .eyebrow {
  margin: 0;
}

.auth-panel,
.account-note,
.signup-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.free-section {
  align-items: center;
  background: linear-gradient(120deg, rgba(9, 11, 10, 0.98), rgba(17, 22, 20, 0.94));
  color: var(--white);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.free-copy {
  max-width: 760px;
}

.free-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.signup-panel,
.auth-panel,
.account-note {
  box-shadow: 0 18px 50px rgba(31, 42, 38, 0.08);
  padding: 22px;
}

.signup-panel,
.auth-panel {
  display: grid;
  gap: 14px;
}

.account-dashboard-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 420px) minmax(260px, 360px) minmax(320px, 1fr);
}

.account-dashboard-layout.is-signed-in {
  grid-template-columns: 1fr;
}

.google-auth-button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  justify-content: center;
}

.google-auth-button:hover {
  border-color: rgba(217, 173, 95, 0.7);
}

.google-auth-button span {
  align-items: center;
  background: #f5efe3;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}

.auth-message {
  background: rgba(217, 173, 95, 0.1);
  border: 1px solid rgba(217, 173, 95, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}

.auth-message[data-tone="error"] {
  background: rgba(170, 55, 45, 0.08);
  border-color: rgba(170, 55, 45, 0.22);
  color: #8f271f;
}

.auth-message[data-tone="success"] {
  background: rgba(44, 125, 84, 0.08);
  border-color: rgba(44, 125, 84, 0.22);
  color: #1f6b45;
}

.form-note[data-tone="error"] {
  color: #8f271f;
}

.form-note[data-tone="success"] {
  color: #1f6b45;
}

.checkbox-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.checkbox-row input {
  min-height: 18px;
  margin-top: 3px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.checkout-status {
  background: rgba(217, 173, 95, 0.12);
  border: 1px solid rgba(217, 173, 95, 0.22);
  border-radius: 8px;
  color: #6f4e16;
  padding: 10px 12px;
}

.inline-test-payment {
  margin-left: 10px;
  border: 1px solid rgba(217, 173, 95, 0.5);
  background: rgba(217, 173, 95, 0.14);
  color: #4f350d;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.inline-test-payment:hover,
.inline-test-payment:focus-visible {
  border-color: rgba(217, 173, 95, 0.85);
  background: rgba(217, 173, 95, 0.22);
}

.inline-test-payment:disabled {
  cursor: wait;
  opacity: 0.7;
}

.account-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(260px, 0.7fr) minmax(320px, 1fr);
  justify-content: start;
}

.account-note {
  align-content: center;
  display: grid;
  gap: 12px;
}

.account-note strong {
  color: var(--ink);
  font-size: 18px;
}

.account-note span {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  padding-top: 12px;
}

.customer-dashboard,
.profile-panel,
.orders-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 42, 38, 0.08);
}

.customer-dashboard {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dashboard-topline {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.dashboard-topline h3,
.profile-panel h4,
.orders-panel h4 {
  margin: 0;
}

.dashboard-topline p:not(.eyebrow) {
  color: var(--muted);
  margin: 6px 0 0;
}

.dashboard-tabs {
  background: #f3efe7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 6px;
  padding: 6px;
}

.dashboard-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  flex: 1;
  font: inherit;
  font-weight: 900;
  min-height: 38px;
}

.dashboard-tabs button.is-active {
  background: var(--white);
  box-shadow: 0 8px 22px rgba(31, 42, 38, 0.08);
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
}

.profile-panel,
.orders-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.profile-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-fields label:nth-child(3) {
  grid-column: 1 / -1;
}

.order-history-list {
  display: grid;
  gap: 10px;
}

.order-history-card {
  align-items: center;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.order-history-card div {
  display: grid;
  gap: 4px;
}

.order-history-card span,
.order-history-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-history-card small {
  background: rgba(217, 173, 95, 0.16);
  border-radius: 999px;
  color: #79591e;
  padding: 6px 9px;
  white-space: nowrap;
}

.account-dashboard-toast {
  align-items: center;
  background: rgba(12, 15, 14, 0.96);
  border: 1px solid rgba(217, 173, 95, 0.35);
  border-radius: 8px;
  bottom: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  color: var(--cream);
  display: flex;
  gap: 12px;
  left: 50%;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 90;
}

.account-dashboard-toast div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-dashboard-toast span {
  color: rgba(246, 239, 226, 0.7);
  font-size: 13px;
}

.account-dashboard-toast .icon-button {
  flex: 0 0 auto;
}

.download-library-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 42, 38, 0.08);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.download-library-header {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
}

.download-library-header h3 {
  margin: 0;
}

.download-library-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 0;
}

.download-library-header > span {
  align-items: center;
  background: rgba(217, 173, 95, 0.18);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}

.download-library-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.download-library-section > strong {
  color: var(--ink);
  font-size: 14px;
}

.download-card-list {
  display: grid;
  gap: 10px;
}

.download-card {
  align-items: center;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px 1fr auto;
  padding: 10px;
}

.download-card img {
  aspect-ratio: 1;
  border-radius: 6px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.download-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.download-card span,
.download-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.download-card .button {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
}

.download-card small {
  background: rgba(217, 173, 95, 0.16);
  border-radius: 999px;
  color: #79591e;
  padding: 6px 9px;
  white-space: nowrap;
}

.download-card small.is-ready {
  background: rgba(111, 143, 122, 0.18);
  color: #3c5c45;
}

.checkout-details-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.checkout-details-panel h3 {
  font-size: 18px;
  margin: 0;
}

.checkout-details-panel label,
.checkout-field-grid label {
  display: grid;
  gap: 7px;
}

.checkout-details-panel label span,
.checkout-field-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.checkout-field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.checkout-section {
  background: var(--paper);
}

.checkout-flow-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.checkout-flow-header span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 13px;
}

.checkout-flow-header span.is-active {
  background: rgba(217, 173, 95, 0.14);
  border-color: rgba(217, 173, 95, 0.45);
  color: var(--ink);
}

.checkout-layout {
  align-items: start;
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.checkout-main-panel,
.checkout-summary-panel,
.checkout-payment-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 42, 38, 0.08);
}

.checkout-main-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.checkout-summary-panel {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 24px);
  position: sticky;
  top: 96px;
}

.checkout-payment-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.checkout-panel-heading h2,
.checkout-payment-panel h3 {
  margin: 0;
}

.checkout-panel-heading p:not(.eyebrow),
.checkout-payment-panel p:not(.eyebrow) {
  color: var(--muted);
  margin: 8px 0 0;
}

.checkout-summary-list {
  display: grid;
  gap: 12px;
}

.checkout-summary-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding-bottom: 12px;
}

.checkout-summary-item img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  width: 72px;
}

.checkout-summary-item strong,
.checkout-summary-item span {
  display: block;
}

.checkout-summary-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.checkout-total-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 20px;
  justify-content: space-between;
  padding-top: 16px;
}

.checkout-total-row strong {
  color: var(--ink);
  font-size: 24px;
}

.admin-studio-page {
  background: #f5f3ed;
}

.admin-studio-shell {
  color: var(--ink);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-studio-sidebar {
  background: var(--night);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 26px;
}

.admin-studio-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-studio-sidebar nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  padding: 11px 12px;
}

.admin-studio-sidebar nav a.is-active,
.admin-studio-sidebar nav a:hover {
  background: rgba(217, 173, 95, 0.15);
  color: var(--white);
}

.admin-studio-main {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 4vw, 44px);
}

.admin-studio-topbar {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.admin-studio-topbar h1 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  margin: 0;
  max-width: 880px;
}

.admin-metric-grid,
.admin-workbench {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric-grid article,
.admin-panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 42, 38, 0.08);
  padding: 20px;
}

.admin-metric-grid span,
.admin-metric-grid small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.admin-metric-grid strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin: 10px 0;
}

.admin-workbench {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel-card.wide {
  grid-column: 1 / -1;
}

.admin-panel-card h2 {
  margin: 0 0 8px;
}

.admin-panel-card p:not(.eyebrow) {
  color: var(--muted);
}

.admin-preview-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-preview-list span {
  background: #f7f3ea;
  border: 1px solid rgba(217, 173, 95, 0.28);
  border-radius: 8px;
  font-weight: 800;
  padding: 12px;
}

.admin-layout-preview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-layout-preview div {
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(135deg, #131816, #d9ad5f);
  border-radius: 8px;
}

.admin-preview-table {
  border-collapse: collapse;
  margin-top: 18px;
  width: 100%;
}

.admin-preview-table th,
.admin-preview-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.admin-preview-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.cart-drawer {
  background: rgba(24, 32, 31, 0.42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 40;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  background: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  margin-left: auto;
  max-width: 430px;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: min(100%, 430px);
}

.cart-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header,
.cart-total,
.cart-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
}

.cart-line {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 14px;
  padding: 12px;
}

.cart-qty {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cart-qty span {
  color: var(--ink);
  font-weight: 900;
  min-width: 18px;
  text-align: center;
}

.cart-line small {
  color: var(--muted);
  display: block;
}

.cart-line button {
  background: transparent;
  border: 0;
  color: var(--clay);
  font-weight: 900;
}

.cart-qty button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 32px;
  min-width: 32px;
  padding: 0 9px;
}

.cart-qty button:last-child {
  min-width: auto;
}

.cart-total {
  border-top: 1px solid var(--line);
  font-size: 18px;
  padding-top: 16px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.payment-options button {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 42px;
}

.cart-line .cart-qty button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 32px;
  min-width: 32px;
  padding: 0 9px;
}

.image-lightbox {
  align-items: center;
  background: rgba(4, 5, 5, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: clamp(18px, 4vw, 54px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 50;
}

.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  background: var(--paper);
  border: 1px solid rgba(246, 239, 226, 0.24);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  max-height: min(86vh, 820px);
  max-width: min(1120px, 100%);
  overflow: hidden;
  padding: 18px;
  position: relative;
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
  width: 100%;
}

.image-lightbox.open .lightbox-panel {
  transform: translateY(0) scale(1);
}

.lightbox-image {
  background: var(--night-soft);
  border-radius: 8px;
  height: min(74vh, 720px);
  object-fit: contain;
  width: 100%;
}

.lightbox-copy {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 18px 12px;
}

.lightbox-title {
  font-size: clamp(24px, 2.5vw, 36px);
}

.lightbox-close {
  align-items: center;
  background: var(--night);
  border: 1px solid rgba(246, 239, 226, 0.22);
  border-radius: 8px;
  color: var(--cream);
  display: inline-flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  z-index: 2;
}

.site-footer {
  background: #050605;
  border-top: 1px solid rgba(217, 173, 95, 0.22);
  color: rgba(246, 239, 226, 0.68);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr) minmax(190px, 0.7fr);
  padding: 52px clamp(18px, 4vw, 54px) 26px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  max-width: 360px;
}

.footer-logo {
  align-items: center;
  color: var(--cream);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  gap: 12px;
}

.footer-brand p {
  margin: 0;
}

.footer-signup {
  display: grid;
  gap: 10px;
}

.footer-signup label,
.footer-side span {
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}

.footer-signup div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer-signup input {
  border-radius: 8px 0 0 8px;
  min-height: 44px;
}

.footer-signup button,
.footer-side button {
  background: transparent;
  border: 1px solid rgba(246, 239, 226, 0.42);
  border-radius: 0 8px 8px 0;
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
  padding: 0 16px;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-links div,
.footer-side {
  align-content: start;
  display: grid;
  gap: 12px;
}

.footer-links h3 {
  color: var(--cream);
  font-size: 15px;
  margin: 0 0 6px;
}

.footer-links a {
  color: rgba(246, 239, 226, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-side {
  justify-items: end;
  text-align: right;
}

.footer-side button {
  border-radius: 8px;
  min-height: 40px;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.social-links a {
  align-items: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--night);
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  text-transform: uppercase;
  width: 48px;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 239, 226, 0.12);
  color: rgba(246, 239, 226, 0.48);
  display: flex;
  font-size: 13px;
  gap: 16px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 22px;
}

@media (max-width: 1180px) {
  .site-footer {
    gap: 30px;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  }

  .footer-brand {
    max-width: none;
  }

  .footer-links {
    gap: 24px 30px;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    min-width: 0;
  }

  .footer-links div,
  .footer-side {
    min-width: 0;
  }

  .footer-side {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    grid-column: 1 / -1;
    justify-content: space-between;
    justify-items: start;
    text-align: left;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-footer {
    gap: 28px;
    grid-template-columns: 1fr;
    padding: 44px clamp(18px, 5vw, 34px) 24px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-side {
    display: grid;
    grid-column: auto;
    justify-content: start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .footer-signup div {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .footer-signup input,
  .footer-signup button {
    border-radius: 8px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 12px;
  }

  .social-links a {
    height: 44px;
    width: 44px;
  }
}

.subpage-hero {
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.86), rgba(9, 11, 10, 0.94)),
    url("/assets/optimized/hero-main-layered-art-1536.jpg") center / cover;
  color: var(--cream);
  padding: 22px clamp(18px, 4vw, 54px) 20px;
}

.subpage-hero-inner {
  display: grid;
  gap: 6px;
  max-width: 980px;
  min-width: 0;
}

.subpage-hero h1 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.12;
  margin: 0;
}

.breadcrumb {
  color: rgba(246, 239, 226, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--cream);
}

.subpage-hero p:not(.eyebrow) {
  color: rgba(246, 239, 226, 0.72);
  font-size: 16px;
  max-width: 720px;
}

.subpage-hero .eyebrow,
.subpage-hero p:not(.breadcrumb):not(.eyebrow) {
  display: none;
}

main:has(.product-detail-card) .subpage-hero {
  background: #080a09;
  border-bottom: 1px solid rgba(217, 173, 95, 0.18);
  padding: 18px clamp(18px, 4vw, 54px) 16px;
}

main:has(.product-detail-card) .subpage-hero-inner {
  gap: 6px;
  max-width: 1180px;
}

main:has(.product-detail-card) .subpage-hero .eyebrow,
main:has(.product-detail-card) .subpage-hero p:not(.breadcrumb):not(.eyebrow) {
  display: none;
}

main:has(.product-detail-card) .subpage-hero h1 {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
  margin: 0;
  max-width: 980px;
}

.collection-shell {
  background: var(--paper);
  display: grid;
  gap: 28px;
  padding: 64px clamp(18px, 4vw, 54px);
  min-width: 0;
}

.collection-intro {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  min-width: 0;
}

.collection-intro:not(.product-detail-layout) {
  display: block;
}

.collection-intro:not(.product-detail-layout) .section-heading {
  max-width: 820px;
}

.collection-intro:not(.product-detail-layout) .section-heading h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.14;
}

.collection-intro:not(.product-detail-layout) .section-heading p:not(.eyebrow),
.collection-intro:not(.product-detail-layout) .seo-note,
.collection-intro:not(.product-detail-layout) .admin-note {
  display: none;
}

body[data-editable-page] .collection-intro:not(.product-detail-layout) {
  display: grid;
}

body[data-editable-page] .collection-intro:not(.product-detail-layout) .section-heading p:not(.eyebrow),
body[data-editable-page] .collection-intro:not(.product-detail-layout) .seo-note,
body[data-editable-page] .collection-intro:not(.product-detail-layout) .admin-note {
  display: block;
}

body[data-editable-page] .collection-intro:not(.product-detail-layout) .section-heading {
  max-width: 840px;
}

body:has(.collection-products) .collection-intro:not(.product-detail-layout) {
  display: none;
}

.collection-toolbar {
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 42, 38, 0.07);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px);
  padding: 16px;
}

.collection-toolbar label {
  display: grid;
  gap: 8px;
}

.collection-toolbar input,
.collection-toolbar select {
  background: #fbfaf6;
}

.simple-product-card[hidden] {
  display: none;
}

.product-detail-layout {
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(320px, 520px) minmax(300px, 420px);
  justify-content: center;
}

.seo-note,
.admin-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.seo-note ul,
.admin-note ul {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.collection-products {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simple-product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  padding: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.simple-product-card:hover {
  border-color: rgba(210, 163, 79, 0.45);
  box-shadow: 0 18px 38px rgba(17, 21, 20, 0.12);
  transform: translateY(-3px);
}

.simple-product-card img {
  aspect-ratio: 1.05 / 1;
  background: #ece5d9;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.simple-product-card h3 {
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.12;
  margin: 4px 0 0;
}

.simple-product-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.product-card-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.product-price {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.product-format {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.simple-product-card .button {
  width: fit-content;
}

.product-detail-card {
  align-self: start;
  cursor: default;
  gap: 16px;
  max-width: 520px;
  padding: 18px;
}

.product-detail-card:hover {
  box-shadow: none;
  transform: none;
}

.product-detail-card img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  max-height: 420px;
  object-fit: contain;
}

.product-image-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

.product-image-button img {
  width: 100%;
}

.product-image-modal {
  align-items: center;
  background: rgba(4, 5, 5, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: clamp(16px, 4vw, 48px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 80;
}

.product-image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.product-image-dialog {
  background: #0b0d0c;
  border: 1px solid rgba(246, 239, 226, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  max-height: min(86vh, 900px);
  max-width: min(92vw, 1180px);
  padding: 12px;
  position: relative;
}

.product-image-dialog .icon-button {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
}

.product-image-dialog img {
  border-radius: 6px;
  display: block;
  max-height: calc(86vh - 24px);
  max-width: calc(92vw - 24px);
  object-fit: contain;
}

.product-detail-price {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.product-detail-desc {
  background: rgba(210, 163, 79, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
}

@media (max-width: 960px) {
  .site-header {
    align-items: center;
    background: rgba(4, 5, 5, 0.99);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 140px;
    height: 64px;
    padding: 0 14px;
  }

  main {
    padding-top: 64px;
  }

  .mobile-menu-button,
  .mobile-search-button {
    align-items: center;
    background: rgba(246, 239, 226, 0.06);
    border: 1px solid var(--night-line);
    border-radius: 8px;
    color: var(--cream);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
  }

  .mobile-menu-button {
    flex-direction: column;
    gap: 5px;
  }

  .mobile-menu-button span {
    background: var(--cream);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 17px;
  }

  .mobile-search-button span {
    border: 2px solid var(--cream);
    border-radius: 50%;
    display: block;
    height: 16px;
    position: relative;
    width: 16px;
  }

  .mobile-search-button span::after {
    background: var(--cream);
    border-radius: 999px;
    bottom: -5px;
    content: "";
    height: 8px;
    position: absolute;
    right: -4px;
    transform: rotate(-45deg);
    width: 2px;
  }

  .search-toggle {
    display: inline-flex;
    width: 38px;
  }

  .brand {
    font-size: 15px;
    gap: 8px;
    justify-self: center;
    min-width: 0;
    position: static;
    transform: none;
  }

  .site-header > .brand:first-child {
    grid-column: 1 / 3;
    justify-self: start;
  }

  .brand-mark {
    font-size: 12px;
    height: 32px;
    width: 32px;
  }

  .primary-nav {
    background: rgba(4, 5, 5, 0.98);
    border: 1px solid rgba(217, 173, 95, 0.32);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
    display: none;
    gap: 0;
    left: 14px;
    padding: 12px;
    position: fixed;
    right: 14px;
    top: 74px;
    width: auto;
    z-index: 30;
  }

  body.mobile-menu-open .primary-nav {
    display: grid;
  }

  .primary-nav a,
  .nav-shop summary,
  .site-header.is-scrolled .primary-nav a,
  .site-header.is-scrolled .nav-shop summary {
    background: transparent;
    border-radius: 6px;
    color: var(--cream);
    font-size: 15px;
    padding: 14px 12px;
  }

  .nav-shop {
    border-bottom: 1px solid rgba(246, 239, 226, 0.1);
    position: relative;
    width: 100%;
  }

  .nav-shop summary {
    align-items: center;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .nav-shop summary::after {
    font-size: 12px;
  }

  .nav-shop-menu {
    background: rgba(246, 239, 226, 0.05);
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    justify-items: center;
    left: auto;
    min-width: 0;
    opacity: 1;
    padding: 0 0 12px;
    pointer-events: auto;
    position: static;
    transform: none;
    transition: none;
    width: 100%;
  }

  .nav-shop[open] .nav-shop-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-shop:not([open]) .nav-shop-menu {
    display: none;
  }

  .nav-shop-menu a {
    color: rgba(246, 239, 226, 0.78);
    font-size: 14px;
    padding: 11px 12px;
    text-align: center;
    width: min(100%, 280px);
  }

  body.mobile-menu-open .primary-nav .nav-shop[open] .nav-shop-menu {
    box-sizing: border-box;
    left: 0;
    right: 0;
    transform: none !important;
    width: 100%;
  }

  .lightbox-panel {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow: auto;
    padding: 12px;
  }

  .lightbox-image {
    height: auto;
    max-height: 58vh;
  }

  .lightbox-copy {
    padding: 6px 4px 4px;
  }

  .primary-nav > a + a {
    border-top: 1px solid rgba(246, 239, 226, 0.1);
  }

  .header-actions {
    gap: 6px;
    justify-self: end;
    position: static;
    transform: none;
  }

  .account-link {
    display: none;
  }

  .icon-button {
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
  }

  .cart-button {
    border-radius: 8px;
    flex: 0 0 38px;
    min-height: 36px;
    padding: 0;
    position: relative;
    width: 38px;
  }

  .cart-button span:first-child {
    font-size: 0;
  }

  .cart-button::before {
    border: 2px solid var(--night);
    border-radius: 4px 4px 6px 6px;
    content: "";
    height: 15px;
    left: 9px;
    position: absolute;
    top: 14px;
    width: 15px;
  }

  .cart-button::after {
    border: 2px solid var(--night);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    content: "";
    height: 7px;
    left: 14px;
    position: absolute;
    top: 8px;
    width: 7px;
  }

  #cartCount {
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: 4px;
    top: 4px;
  }

  .hero,
  .free-section,
  .account-layout,
  .account-dashboard-layout,
  .dashboard-grid,
  .checkout-field-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-panel {
    position: static;
  }

  .admin-studio-shell,
  .admin-metric-grid,
  .admin-workbench {
    grid-template-columns: 1fr;
  }

  .admin-studio-sidebar {
    position: static;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .account-dashboard-toast {
    align-items: stretch;
    flex-direction: column;
  }

  .store-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }

  .category-tile {
    min-height: 198px;
    padding: 22px 20px;
  }

  .category-thumb {
    height: 98px;
    right: 20px;
    top: 38px;
    width: 98px;
  }

  .category-tile span {
    font-size: clamp(22px, 4vw, 34px);
    max-width: calc(100% - 124px);
    min-height: 66px;
  }

  .category-tile small {
    font-size: 13px;
    margin-top: 18px;
  }

  .hero {
    min-height: auto;
  }

  .family-showcase {
    grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.15fr);
  }

  .family-copy {
    grid-column: 1 / -1;
  }

  .collection-intro {
    grid-template-columns: 1fr;
  }

  .collection-toolbar {
    grid-template-columns: 1fr;
  }

  .product-detail-card {
    max-width: 100%;
  }

  .collection-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .payment-options {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-category-grid,
  .store-features {
    grid-template-columns: 1fr;
  }

  .site-search-box {
    margin-top: 74px;
    padding: 14px;
  }

  .site-search-header {
    grid-template-columns: 1fr;
  }

  .family-showcase {
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .family-main {
    aspect-ratio: 1.15 / 1;
  }

  .family-stack {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .stack-shot,
  .shot-one,
  .shot-two,
  .shot-three,
  .shot-four {
    aspect-ratio: 1.12 / 1;
    bottom: auto;
    left: auto;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
  }

  .tile-free {
    grid-column: auto;
  }

  .button,
  .cart-button {
    width: 100%;
  }

  .header-actions {
    width: auto;
  }

  .account-link {
    display: none;
  }

  .icon-button {
    display: inline-flex;
  }

  .cart-button {
    justify-content: center;
    width: 38px;
  }

  .brand span:not(.brand-mark) {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-side {
    justify-items: start;
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .checkout-summary-item {
    align-items: start;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .checkout-summary-item .cart-qty {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-studio-topbar {
    display: grid;
  }

  h1 {
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.14;
    overflow-wrap: normal;
    word-break: normal;
  }

  h2 {
    font-size: clamp(26px, 7.4vw, 32px);
  }

  .subpage-hero-inner {
    max-width: 100%;
    width: 100%;
  }

  .subpage-hero h1 {
    font-size: clamp(26px, 7.2vw, 34px);
    max-width: 100%;
  }

  .subpage-hero p:not(.eyebrow) {
    font-size: 16px;
    max-width: 100%;
  }

  .animated-title {
    max-width: 100%;
    white-space: normal;
    width: 100%;
  }

  .subpage-hero {
    padding-top: 28px;
  }

  main:has(.product-detail-card) .subpage-hero {
    padding-bottom: 14px;
    padding-top: 14px;
  }

  main:has(.product-detail-card) .subpage-hero h1 {
    font-size: clamp(20px, 6vw, 27px);
  }

  .product-detail-layout,
  .product-detail-card,
  .product-detail-layout .seo-note {
    max-width: calc(100vw - 40px);
    min-width: 0;
    width: 100%;
  }

  .product-detail-card *,
  .product-detail-layout .seo-note * {
    min-width: 0;
  }

  .product-detail-desc {
    overflow-wrap: break-word;
  }

  .collection-products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .brand .brand-mark {
    display: none;
  }

  .brand {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .hero-lead {
    display: none;
  }
}

@keyframes titleReveal {
  from {
    clip-path: inset(-12% 100% -18% 0);
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    clip-path: inset(-12% 0 -18% 0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
