/* =================================================================
   VELMORA · velmorapowder.store
   Layout: "el tocador" — asymmetric editorial rows on a blush-pearl
   ground, set like a vanity counter; mora (blackberry) bands carry
   the moments that sell, champagne marks the fine detail.
   ================================================================= */
:root {
  /* Color: sampled from the product photography */
  --pearl: #F7EFEC;        /* page ground, the backdrop of every shot */
  --veil: #EFE2DE;         /* secondary surface, image wells */
  --blush: #E3CDC8;        /* hairlines and soft fills */
  --mora: #3A1A2B;         /* ink + dark bands, the lid color */
  --mulberry: #6B2F4C;     /* interactive accent */
  --champagne: #7E5A36;    /* fine detail and labels on light (AA on pearl and veil) */
  --champagne-lt: #D9BC8C; /* fine detail on mora */
  --muted: #6D5662;        /* secondary text on pearl */
  --on-mora: #F4E9E6;      /* text on mora */
  --on-mora-muted: #CDB8BE;
  --danger: #A3304A;
  --ok: #3F6B4E;

  /* Type */
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", "Libre Bodoni", Georgia, serif;
  --font-body: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --step-3: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  --step-4: clamp(2.7rem, 1.4rem + 5.2vw, 5.6rem);

  --track-label: 0.18em;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--mora);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 380;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--mulberry); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mora); color: var(--on-mora); padding: 10px 16px;
}
.skip:focus { top: 12px; }

.selectable { user-select: all; font-weight: 450; }

/* ---------- type primitives ---------- */
.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  font-weight: 500;
  color: var(--champagne);
}
.display, .page-title, h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.display { font-size: var(--step-4); font-weight: 400; }
.display em, h2 em { font-style: italic; color: var(--mulberry); }
h2 { font-size: var(--step-3); }
.page-title { font-size: var(--step-3); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 34ch; font-weight: 350; }

.section-head { display: grid; gap: 14px; max-width: 46ch; align-content: start; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head-row > div { display: grid; gap: 14px; }

.link-arrow {
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--track-label);
  font-weight: 500; text-decoration: none; display: inline-flex; gap: 10px; align-items: center;
  padding-block: 6px; border-bottom: 1px solid currentColor; width: fit-content;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--track-label); font-weight: 500;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--mora); color: var(--on-mora); }
.btn-primary:hover { background: var(--mulberry); }
.btn-ghost { border-color: var(--mora); color: var(--mora); background: transparent; }
.btn-ghost:hover { background: var(--mora); color: var(--on-mora); }
.btn-light { background: var(--on-mora); color: var(--mora); }
.btn-light:hover { background: var(--champagne-lt); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: 50%; color: inherit;
}
.icon-btn:hover { background: var(--veil); }

/* ---------- announce + header ---------- */
.announce { background: var(--mora); color: var(--on-mora); }
.announce p {
  font-size: 0.78rem; letter-spacing: 0.08em; text-align: center; padding-block: 9px; font-weight: 400;
}

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--pearl);
  background: color-mix(in srgb, var(--pearl) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blush);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 68px; gap: 12px;
}
.wordmark {
  grid-column: 2; font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.55rem); letter-spacing: 0.34em; margin-right: -0.34em;
  text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; font-weight: 450; padding-block: 8px; }
.nav a:hover { color: var(--mulberry); }
.nav-left { grid-column: 1; }
.nav-right { grid-column: 3; justify-content: flex-end; }
.menu-btn { display: none; grid-column: 1; justify-self: start; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 8px 0;
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 450;
}
.cart-icon { display: none; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--mora); color: var(--on-mora); font-size: 0.72rem; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

.mobile-nav { border-top: 1px solid var(--blush); background: var(--pearl); }
.mobile-nav .wrap { display: grid; padding-block: 8px 16px; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; padding-block: 10px;
  border-bottom: 1px solid var(--blush);
}

@media (max-width: 859px) {
  .nav-left, .nav-right > a { display: none; }
  .menu-btn { display: inline-grid; }
  .cart-label { display: none; }
  .cart-icon { display: block; }
  .cart-btn { position: relative; padding: 10px; }
  .cart-count { position: absolute; top: 2px; right: -4px; min-width: 18px; height: 18px; font-size: 0.66rem; }
}

/* ---------- views ---------- */
.view { animation: view-in .5s var(--ease); }
@keyframes view-in { from { opacity: .4; } to { opacity: 1; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 5fr 6fr; } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(14px); opacity: .25; } to { transform: none; opacity: 1; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-specs {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 8px 0 0;
  padding-top: 20px; border-top: 1px solid var(--blush);
}
.hero-specs div { display: grid; gap: 2px; }
.hero-specs dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); }
.hero-specs dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 420px) { .hero-specs { grid-template-columns: repeat(3, minmax(0, auto)); gap: 8px 20px; } .hero-specs dd { font-size: 1rem; } }

.hero-media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--veil); }
@media (max-width: 899px) {
  .hero-media { order: -1; aspect-ratio: 1 / 1; max-width: none; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); }
  .hero-media img { object-position: 50% 62%; }
  .hero { padding-top: 0; }
}
@media (min-width: 720px) and (max-width: 899px) {
  .hero-media { margin-inline: calc(-1 * max(32px, env(safe-area-inset-left, 0px))) calc(-1 * max(32px, env(safe-area-inset-right, 0px))); aspect-ratio: 16 / 11; }
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-media figcaption {
  position: absolute; left: 0; bottom: 0; padding: 10px 14px; background: var(--pearl);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted);
}
@media (min-width: 900px) {
  .hero-media { margin-right: calc(-1 * max(32px, env(safe-area-inset-right, 0px))); }
}

/* ---------- shades / pans ---------- */
.shades { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--blush); }
.shades .wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
.pan-row { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2.5vw, 32px); }
@media (max-width: 640px) { .pan-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
.pan-link {
  display: grid; gap: 14px; justify-items: center; text-align: center; text-decoration: none;
  background: none; border: 0; padding: 0; width: 100%;
}
.pan-link:hover .pan { transform: translateY(-4px) rotate(-6deg); }
.pan-meta { display: grid; gap: 2px; }
.pan-code { font-family: var(--font-display); font-size: 1.05rem; }
.pan-name { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.pan-note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; max-width: 20ch; }

/* a pressed-powder pan seated in a mora compact rim */
.pan {
  --c: #EED6CC;
  position: relative; width: min(100%, 132px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 55%, white) 0 12%, transparent 46%),
    radial-gradient(circle at 70% 78%, color-mix(in srgb, var(--c) 82%, black) 0 6%, transparent 58%),
    var(--c);
  box-shadow:
    0 0 0 clamp(4px, 0.9vw, 8px) var(--mora),
    0 0 0 calc(clamp(4px, 0.9vw, 8px) + 1px) var(--champagne-lt),
    inset 0 2px 6px rgba(58, 26, 43, .18),
    0 14px 26px -12px rgba(58, 26, 43, .45);
  transition: transform .5s var(--ease);
  display: grid; place-items: center;
}
.pan::after {
  content: "V"; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.8rem); line-height: 1;
  color: color-mix(in srgb, var(--c) 80%, black);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--c) 60%, white);
}
.pan-sm { width: 44px; box-shadow: 0 0 0 3px var(--mora), 0 0 0 4px var(--champagne-lt), inset 0 1px 3px rgba(58,26,43,.2); }
.pan-sm::after { font-size: 0.9rem; }

/* ---------- product grid + cards ---------- */
.collection { padding-block: clamp(56px, 8vw, 112px); background: var(--veil); }
.collection .wrap { display: grid; gap: clamp(28px, 4vw, 48px); }

.product-grid { list-style: none; display: grid; gap: clamp(28px, 3vw, 40px) clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }

/* home: the original takes a double cell so 5 products fill two full rows */
@media (min-width: 960px) {
  .product-grid-feature .card:first-child { grid-column: span 2; }
  .product-grid-feature .card:first-child .card-media { aspect-ratio: 8 / 5; }
}
@media (min-width: 521px) and (max-width: 959px) {
  .product-grid-feature .card:first-child { grid-column: span 2; }
  .product-grid-feature .card:first-child .card-media { aspect-ratio: 8 / 5; }
}
.related .product-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .related .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: grid; gap: 16px; align-content: start; min-width: 0; }
.card-link { display: grid; gap: 16px; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--blush); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px; background: var(--pearl);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: var(--track-label); font-weight: 500;
}
.card-body { display: grid; gap: 4px; }
.card-kind { font-size: 0.74rem; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); }
.card-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.card-price { font-variant-numeric: tabular-nums; font-weight: 450; }
.card-dots { display: flex; gap: 5px; }
.card-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--mora); }
.card-cta {
  justify-self: start; background: transparent; border: 0; border-bottom: 1px solid var(--mora); padding: 4px 0;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: var(--track-label); font-weight: 500; text-decoration: none;
}
.card-cta:hover { color: var(--mulberry); border-color: var(--mulberry); }

/* ---------- texture band ---------- */
.texture { position: relative; padding-bottom: clamp(56px, 8vw, 112px); }
.texture-media { width: 100%; height: clamp(240px, 56.25vw, 78vh); overflow: hidden; background: var(--veil); }
.texture-media img { width: 100%; height: 100%; object-fit: cover; }
.texture-copy {
  position: relative; display: grid; gap: 16px; max-width: 520px; background: var(--pearl);
  padding: clamp(24px, 4vw, 48px) 0 0;
}
.texture-copy p:not(.eyebrow) { color: var(--muted); }
@media (min-width: 900px) {
  .texture-copy { margin-top: -180px; margin-left: -48px; padding: 48px 56px 0 48px; }
}

/* ---------- ritual ---------- */
.ritual { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--blush); }
.ritual-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .ritual-grid { grid-template-columns: 5fr 6fr; } }
.ritual-media { aspect-ratio: 4 / 5; max-width: 100%; background: var(--veil); overflow: hidden; }
.ritual-media img { width: 100%; height: 100%; object-fit: cover; }
.ritual-copy { display: grid; gap: 24px; min-width: 0; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; row-gap: 4px;
  padding-block: 22px; border-top: 1px solid var(--blush);
}
.steps li:last-child { border-bottom: 1px solid var(--blush); }
.steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-family: var(--font-display); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--champagne);
}
.steps h3 { font-family: var(--font-display); font-size: 1.45rem; }
.steps p { color: var(--muted); max-width: 46ch; }

/* ---------- set band (mora) ---------- */
.set-band { background: var(--mora); color: var(--on-mora); padding-block: clamp(56px, 8vw, 112px); }
.set-band .eyebrow { color: var(--champagne-lt); }
.set-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .set-grid { grid-template-columns: 7fr 5fr; } }
.set-media { aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; }
.set-media img { width: 100%; height: 100%; object-fit: cover; }
.set-copy { display: grid; gap: 20px; min-width: 0; }
.set-copy > p:not(.eyebrow) { color: var(--on-mora-muted); }
.set-list { list-style: none; display: grid; border-top: 1px solid rgba(217, 188, 140, .35); }
.set-list li {
  display: flex; justify-content: space-between; gap: 16px; padding-block: 12px;
  border-bottom: 1px solid rgba(217, 188, 140, .35); font-variant-numeric: tabular-nums;
}
.set-list li span:last-child { color: var(--on-mora-muted); }
.set-total { font-family: var(--font-display); font-size: 1.6rem; }
.set-total s { color: var(--on-mora-muted); font-size: 1.1rem; margin-right: 8px; }
.set-total small { display: block; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--champagne-lt); margin-top: 4px; }
.set-copy .btn { justify-self: start; }

/* ---------- faq ---------- */
.faq { padding-block: clamp(56px, 8vw, 112px); }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; } }
.faq-list { display: grid; border-top: 1px solid var(--blush); min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--blush); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; font-family: var(--font-display); font-size: 1.3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* ---------- shop ---------- */
.shop { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 112px); display: grid; gap: 28px; }
.shop-head { display: grid; gap: 10px; }
.shop-count { color: var(--muted); font-size: var(--step--1); }
.shop-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 16px; border-block: 1px solid var(--blush); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--blush); background: transparent;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500;
}
.chip:hover { border-color: var(--mora); }
.chip[aria-pressed="true"] { background: var(--mora); color: var(--on-mora); border-color: var(--mora); }
.sort { display: inline-flex; gap: 10px; align-items: center; font-size: var(--step--1); color: var(--muted); }
.sort select {
  min-height: 40px; border: 1px solid var(--blush); background: var(--pearl); padding: 0 12px; border-radius: var(--radius); color: var(--mora);
}

/* ---------- product page ---------- */
.pdp { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 8vw, 112px); display: grid; gap: clamp(56px, 8vw, 96px); }
.crumbs { font-size: var(--step--1); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--mora); text-decoration: underline; }
.pdp-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 7fr 5fr; } }

.gallery { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); } .gallery.has-thumbs { grid-template-columns: 72px 1fr; align-items: start; } .gallery-thumbs { order: -1; flex-direction: column; } }
.gallery-main { aspect-ratio: 4 / 5; max-width: 100%; background: var(--veil); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs button { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--veil); overflow: hidden; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--mora); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { display: grid; gap: 22px; min-width: 0; }
.pdp-title { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pdp-price small { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.06em; }
.pdp-short { color: var(--muted); max-width: 48ch; }

.shade-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.shade-picker legend { padding: 0; margin-bottom: 14px; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.shade-picker legend span { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; margin-left: 6px; }
.shade-options { display: flex; flex-wrap: wrap; gap: 18px; }
.shade-options label { position: relative; cursor: pointer; display: grid; justify-items: center; gap: 12px; font-size: 0.72rem; color: var(--muted); }
.shade-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shade-options .pan-sm { transition: transform .3s var(--ease); }
.shade-options input:checked + .pan-sm { transform: scale(1.12); box-shadow: 0 0 0 3px var(--mora), 0 0 0 4px var(--champagne-lt), 0 0 0 7px var(--pearl), 0 0 0 8px var(--mora); }
.shade-options input:focus-visible + .pan-sm { outline: 2px solid var(--mulberry); outline-offset: 8px; }
.shade-note { font-size: 0.86rem; color: var(--muted); }

.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--mora); border-radius: var(--radius); }
.qty button { width: 44px; height: 50px; background: transparent; border: 0; font-size: 1.2rem; }
.qty button:hover { background: var(--veil); }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.qty-sm button { width: 34px; height: 34px; font-size: 1rem; }
.qty-sm { border-color: var(--blush); }

.includes { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--blush); }
.includes li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--blush); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.includes a { text-decoration: none; }
.includes a:hover { text-decoration: underline; }
.includes span { color: var(--muted); }

.assure { display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); padding: 16px 18px; background: var(--veil); }
.assure p { display: flex; gap: 10px; align-items: baseline; }
.assure p::before { content: "◆"; font-size: 0.6rem; color: var(--champagne); }

.accordion { display: grid; border-top: 1px solid var(--blush); }
.accordion details { border-bottom: 1px solid var(--blush); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding-block: 16px;
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.2rem; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 18px; display: grid; gap: 10px; color: var(--muted); }
.accordion ol { padding-left: 1.2em; display: grid; gap: 6px; }
.spec { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 16px; margin: 0; }
.spec dt { color: var(--mora); font-weight: 450; }
.spec dd { margin: 0; }

.related { display: grid; gap: 32px; }

/* ---------- drawer (bag) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(36, 14, 26, .42); z-index: 60; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100vw);
  background: var(--pearl); display: grid; grid-template-rows: auto auto 1fr auto;
  transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
  box-shadow: -20px 0 60px -30px rgba(36, 14, 26, .5);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--blush); }
.drawer-head h2 { font-size: 1.6rem; }
.drawer-head h2 span { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); }
.drawer-body { overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--blush); display: grid; gap: 12px; background: var(--pearl); }
.drawer-foot .row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.drawer-foot .row strong { font-weight: 500; }
.drawer-foot .fine { font-size: 0.8rem; color: var(--muted); }

.ship-meter { padding: 14px 24px; display: grid; gap: 8px; font-size: 0.86rem; background: var(--veil); }
.ship-meter .bar { height: 3px; background: var(--blush); position: relative; overflow: hidden; }
.ship-meter .bar i { position: absolute; inset: 0 auto 0 0; background: var(--mulberry); transition: width .5s var(--ease); }

.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--blush); }
.line:last-child { border-bottom: 0; }
.line-img { aspect-ratio: 4 / 5; background: var(--veil); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-name { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.line-name a { text-decoration: none; }
.line-meta { font-size: 0.82rem; color: var(--muted); }
.line-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.text-btn { background: none; border: 0; padding: 4px 0; font-size: 0.78rem; text-decoration: underline; text-underline-offset: 0.2em; color: var(--muted); }
.text-btn:hover { color: var(--danger); }

.empty { display: grid; gap: 16px; justify-items: start; padding-block: 32px; }
.empty p { color: var(--muted); }
.empty .display-sm { font-family: var(--font-display); font-size: 1.6rem; color: var(--mora); }

/* ---------- checkout ---------- */
.checkout { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 112px); display: grid; gap: 28px; }
.checkout-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 7fr 5fr; } }
.form { display: grid; gap: 32px; min-width: 0; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; padding: 0; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--blush); border-radius: var(--radius);
  background: #FFFBFA; color: var(--mora); font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mora); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mulberry) 18%, transparent); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { font-size: 0.8rem; color: var(--danger); }
.ship-options { display: grid; gap: 10px; }
.ship-option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--blush);
  cursor: pointer; background: #FFFBFA; border-radius: var(--radius);
}
.ship-option:has(input:checked) { border-color: var(--mora); box-shadow: inset 0 0 0 1px var(--mora); }
.ship-option input { accent-color: var(--mora); width: 18px; height: 18px; }
.ship-option small { display: block; color: var(--muted); font-size: 0.82rem; }
.ship-option .price { font-variant-numeric: tabular-nums; }
.pay-note { padding: 16px 18px; background: var(--veil); color: var(--muted); font-size: 0.92rem; }
.pay-note strong { color: var(--mora); font-weight: 500; }

.summary { background: var(--veil); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; min-width: 0; }
@media (min-width: 960px) { .summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); } }
.summary h2 { font-size: 1.6rem; }
.summary .line { grid-template-columns: 64px 1fr; }
.summary .totals { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--blush); font-variant-numeric: tabular-nums; }
.summary .totals div { display: flex; justify-content: space-between; }
.summary .totals .grand { font-family: var(--font-display); font-size: 1.5rem; padding-top: 10px; border-top: 1px solid var(--blush); margin-top: 4px; }

/* ---------- confirmation ---------- */
.confirm { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); display: grid; gap: 32px; max-width: 760px; }
.confirm .order-no { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; }
.confirm .lead { color: var(--muted); max-width: 54ch; }
.confirm .actions { gap: 12px; }
.order-text {
  width: 100%; min-height: 220px; padding: 16px; border: 1px solid var(--blush); background: #FFFBFA; color: var(--mora);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; resize: vertical;
}
.steps-next { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--blush); }
.steps-next li { padding-block: 14px; border-bottom: 1px solid var(--blush); color: var(--muted); }
.steps-next li strong { color: var(--mora); font-weight: 500; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80;
  background: var(--mora); color: var(--on-mora); padding: 14px 22px; font-size: 0.9rem; max-width: calc(100vw - 32px);
  box-shadow: 0 18px 40px -18px rgba(36, 14, 26, .6); animation: toast-in .35s var(--ease);
}
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--mora); color: var(--on-mora); padding-top: clamp(56px, 8vw, 96px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--champagne-lt); margin-bottom: 14px; font-weight: 500; }
.footer-grid nav, .footer-grid > div { display: grid; gap: 8px; align-content: start; }
.footer-grid a { text-decoration: none; color: var(--on-mora-muted); }
.footer-grid a:hover { color: var(--on-mora); }
.footer-grid p { color: var(--on-mora-muted); }
.footer-mark { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-mora) !important; line-height: 1; margin-bottom: 12px !important; }
.footer-base { margin-top: 56px; padding-block: 20px; border-top: 1px solid rgba(217, 188, 140, .25); font-size: 0.8rem; color: var(--on-mora-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

section[id], [data-view] [id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 84px); }
