/* ═══════════════════════════════════════════════════════════════
   SALONI COLLECTION · Editorial Bento
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --paper:      #FAF9F8;
  --surface:    #FFFFFF;
  --muted:      #F3F0EF;
  --muted-2:    #E7E1E0;
  --line:       #E8E3E2;

  --ink:        #23201F;
  --ink-2:      #55504E;
  --ink-3:      #726C6A;   /* 4.5:1 on muted, the worst case */

  --clay:       #B08B93;   /* decorative fills and borders only */
  --clay-text:  #8E5F6A;   /* 4.6:1 on paper - safe for small text */
  --clay-btn:   #996974;   /* 4.5:1 with white - safe for buttons */
  --clay-deep:  #7E525C;   /* hover / pressed */
  --clay-soft:  #F1E7E8;
  --gold:       #B49A7C;
  --forest:     #55756A;

  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;
  --r-xl:  32px;

  --sh-1: 0 1px 2px rgba(35,32,31,.04), 0 2px 8px rgba(35,32,31,.04);
  --sh-2: 0 4px 12px rgba(35,32,31,.06), 0 12px 32px rgba(35,32,31,.06);
  --sh-3: 0 12px 24px rgba(35,32,31,.08), 0 32px 64px rgba(35,32,31,.10);
  --sh-4: 0 24px 48px rgba(35,32,31,.12), 0 48px 96px rgba(35,32,31,.16);

  --display: 'Cormorant Garamond', Georgia, serif;
  --ui:      'Inter', system-ui, -apple-system, sans-serif;

  --ease:    cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);
  --t:       .32s var(--ease);

  --gap:     14px;
  --shell:   min(1420px, 100% - 4rem);

  /* Large surfaces — overridden per palette */
  --hero-grad:  linear-gradient(150deg, #2B2624 0%, #3F3634 42%, #5C4A4B 78%, #322B2A 100%);
  --about-grad: linear-gradient(145deg, #2B2624 0%, #3F3634 55%, #2E2827 100%);
  --hero-wash1: radial-gradient(ellipse 60% 50% at 22% 62%, rgba(176,139,147,.32) 0%, transparent 68%);
  --hero-wash2: radial-gradient(ellipse 46% 40% at 78% 22%, rgba(210,190,180,.20) 0%, transparent 62%);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* ─── TYPE ───────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.d1 { font-size: clamp(3rem, 7.5vw, 7rem); }
.d2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.d3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); }

.eyebrow {
  font-family: var(--ui);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay-text);
}
.lede { font-size: 1.02rem; color: var(--ink-2); line-height: 1.75; }

/* ─── SHELL ──────────────────────────────────────────────────── */
.shell { width: var(--shell); margin-inline: auto; }
section { position: relative; }

/* ─── BENTO GRID ─────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  grid-auto-flow: dense;
}
.tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-1);
  grid-column: span 3;
  min-height: 200px;
}
.tile.c4  { grid-column: span 4; }
.tile.c5  { grid-column: span 5; }
.tile.c6  { grid-column: span 6; }
.tile.c7  { grid-column: span 7; }
.tile.c8  { grid-column: span 8; }
.tile.c12 { grid-column: span 12; }
.tile.r2  { grid-row: span 2; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 100px;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  will-change: transform;
}
.btn-fill  { background: var(--ink); color: #fff; }
.btn-fill:hover  { background: #000; box-shadow: var(--sh-2); }
.btn-clay  { background: var(--clay-btn); color: #fff; }
.btn-clay:hover  { background: var(--clay-deep); box-shadow: var(--sh-2); }
.btn-line  { border: 1.5px solid var(--line); color: var(--ink); }
.btn-line:hover  { border-color: var(--ink); }
.btn-ghost-l { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost-l:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.15rem; font-size: .76rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ─── HEADER ─────────────────────────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 1.1rem 0;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.hdr::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(250,249,248,.84);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity var(--t);
}
.hdr.stuck { padding: .72rem 0; }
.hdr.stuck::before { opacity: 1; border-bottom-color: var(--line); }
.hdr-in {
  position: relative;
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--display); font-size: 1.7rem; font-weight: 500;
  letter-spacing: .1em; line-height: 1;
}
.brand sup {
  font-family: var(--ui); font-size: .5rem; font-weight: 600;
  letter-spacing: .16em; color: var(--clay); vertical-align: super;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding: .2rem 0;
  transition: color var(--t);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--clay); transition: width var(--t);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.hdr-act { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 100px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  transition: border-color var(--t), background var(--t);
}
.icon-btn:hover { border-color: var(--ink); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.bag-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 100px; background: var(--clay-btn); color: #fff;
  font-size: .64rem; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .34s var(--ease);
}
.bag-count.on { transform: scale(1); }
.bag-count.pop { animation: bagPop .45s var(--ease); }
@keyframes bagPop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.45); } }

/* ─── HERO BENTO ─────────────────────────────────────────────── */
.hero { padding: 7.5rem 0 2rem; }
.hero .bento { grid-auto-rows: minmax(150px, auto); }

.t-headline {
  grid-column: span 7; grid-row: span 2;
  background: var(--hero-grad);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.4rem);
  min-height: clamp(400px, 52vw, 560px);
  isolation: isolate;
}
/* parallax depth layers */
.t-headline .px {
  position: absolute; inset: -12%; z-index: -1;
  will-change: transform;
}
.px-1 { background: var(--hero-wash1); }
.px-2 { background: var(--hero-wash2); }
.px-3 {
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 26h52M26 0v52' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
}
.t-headline h1 { color: #fff; margin: .9rem 0 1.1rem; }
.t-headline h1 em { font-style: italic; color: var(--clay-soft); }
.t-headline .eyebrow { color: var(--clay-soft); }
.t-headline p { color: rgba(255,255,255,.66); max-width: 42ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }

.t-figure { grid-column: span 5; grid-row: span 2; padding: 0; }
.t-figure img { width: 100%; height: 100%; object-fit: cover; }
.t-figure .fig-cap {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(251,250,248,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r); padding: .95rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.fig-cap b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.fig-cap span { font-size: .78rem; color: var(--ink-3); display: block; }

.t-stat {
  grid-column: span 4;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.7rem; min-height: 150px;
}
.t-stat .n { font-family: var(--display); font-size: 3.1rem; line-height: 1; }
.t-stat .l { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-top: .3rem; }
.t-stat.accent { background: var(--clay); color: #fff; }
.t-stat.accent .l { color: rgba(255,255,255,.72); }
.t-stat.ink { background: var(--ink); color: #fff; }
.t-stat.ink .l { color: rgba(255,255,255,.6); }

/* ─── MARQUEE ────────────────────────────────────────────────── */
.marq {
  background: var(--ink); color: rgba(255,255,255,.72);
  padding: .95rem 0; overflow: hidden; margin: 2rem 0 0;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marq-t { display: flex; gap: 2.2rem; width: max-content; animation: marq 34s linear infinite; }
.marq-t span { white-space: nowrap; }
.marq-t i { color: var(--clay); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ─── SECTION HEAD ───────────────────────────────────────────── */
.sec { padding: 5.5rem 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem;
}
.sec-head .txt { max-width: 46ch; }
.sec-head h2 { margin-top: .55rem; }

/* ─── FILTERS ────────────────────────────────────────────────── */
.filters { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip {
  padding: .55rem 1.25rem; border-radius: 100px;
  font-size: .78rem; font-weight: 500;
  border: 1.5px solid var(--line); color: var(--ink-2);
  transition: all var(--t);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ─── CATEGORY TILE ──────────────────────────────────────────── */
.cat {
  grid-column: span 2;
  min-height: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.3rem; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.cat .gl { font-size: 1.6rem; color: var(--clay); transition: color var(--t); }
.cat .nm { font-family: var(--display); font-size: 1.28rem; font-weight: 600; }
.cat .ct { font-size: .72rem; color: var(--ink-3); transition: color var(--t); }
.cat:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat:hover .gl, .cat:hover .ct { color: var(--clay-soft); }

/* ─── PRODUCT CARD (3D) ──────────────────────────────────────── */
.p-card {
  grid-column: span 3;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .4s var(--ease), transform .5s var(--ease);
}
.p-card.wide { grid-column: span 6; }
.p-card:hover { box-shadow: var(--sh-3); }
.p-card:focus-visible { outline: 3px solid var(--clay-text); outline-offset: 3px; }
.p-card { text-align: left; width: 100%; border: 0; font: inherit; color: inherit; }

.p-media {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--muted-2);
  transform: translateZ(0);
}
.p-card.wide .p-media { aspect-ratio: 16/11; }
.p-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.p-card:hover .p-media img { transform: scale(1.055); }
.p-ph {
  width: 100%; height: 100%;
  display: grid; place-content: center; gap: .4rem; justify-items: center;
  color: var(--ink-3); font-size: .76rem; background: var(--muted-2);
}
.p-ph b { font-size: 2.1rem; font-weight: 400; color: var(--clay); }

.p-tag {
  position: absolute; top: .9rem; left: .9rem;
  padding: .32rem .78rem; border-radius: 100px;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  transform: translateZ(30px);
}
.p-tag.sale { background: var(--clay-btn); }
.p-tag.new  { background: var(--forest); }

.p-fav {
  position: absolute; top: .8rem; right: .8rem;
  width: 36px; height: 36px; border-radius: 100px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; font-size: .95rem; color: var(--ink);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) translateZ(30px);
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.p-card:hover .p-fav { opacity: 1; pointer-events: auto; transform: translateY(0) translateZ(30px); }
@media (hover: none) { .p-fav { display: none; } }
.p-fav:hover { background: #fff; }
.p-fav.on { color: var(--clay); }

.p-quick {
  position: absolute; left: .8rem; right: .8rem; bottom: .8rem;
  padding: .78rem; border-radius: 100px;
  background: rgba(35,32,31,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: .76rem; font-weight: 500; letter-spacing: .04em;
  text-align: center;
  opacity: 0; transform: translateY(12px) translateZ(40px);
  transition: opacity var(--t), transform var(--t);
}
.p-card:hover .p-quick { opacity: 1; transform: translateY(0) translateZ(40px); }
.p-quick:hover { background: var(--clay); }

.p-body { padding: 1.1rem 1.15rem 1.3rem; transform: translateZ(20px); }
.p-cat { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-text); }
.p-name { font-family: var(--display); font-size: 1.24rem; font-weight: 600; margin: .3rem 0 .35rem; line-height: 1.2; }
.p-desc {
  font-size: .8rem; color: var(--ink-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-foot { display: flex; align-items: baseline; gap: .6rem; margin-top: .85rem; }
.p-price { font-size: 1.02rem; font-weight: 600; }
.p-was { font-size: .82rem; color: var(--ink-3); text-decoration: line-through; }
.p-off { font-size: .68rem; font-weight: 700; color: var(--forest); letter-spacing: .04em; }
.p-sizes { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .7rem; }
.sz { font-size: .63rem; font-weight: 500; padding: .18rem .45rem; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-3); }

/* ─── EMPTY ──────────────────────────────────────────────────── */
.empty { grid-column: 1 / -1; text-align: center; padding: 5rem 1.5rem; }
.empty .gl { font-size: 2.6rem; color: var(--muted-2); }
.empty h3 { font-size: 1.7rem; margin: .7rem 0 .35rem; }
.empty p { color: var(--ink-3); margin-bottom: 1.4rem; }

/* ─── SKELETON ───────────────────────────────────────────────── */
.skel { grid-column: span 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); }
.skel .sk-m { aspect-ratio: 3/4; }
.skel .sk-b { padding: 1.1rem; display: grid; gap: .55rem; }
.sk {
  background: linear-gradient(90deg, var(--muted) 25%, var(--muted-2) 50%, var(--muted) 75%);
  background-size: 200% 100%; animation: shim 1.4s infinite;
}
.sk-l1 { height: 9px;  width: 34%; border-radius: 4px; }
.sk-l2 { height: 15px; width: 76%; border-radius: 4px; }
.sk-l3 { height: 9px;  width: 92%; border-radius: 4px; }
@keyframes shim { to { background-position: -200% 0; } }

/* ─── ABOUT ──────────────────────────────────────────────────── */
.t-about {
  grid-column: span 7; grid-row: span 2;
  background: var(--about-grad);
  color: #fff; padding: clamp(2rem, 4vw, 3.2rem);
  display: flex; flex-direction: column; justify-content: center;
}
.t-about h2 { color: #fff; margin: .8rem 0 1.1rem; }
.t-about h2 em { font-style: italic; color: var(--clay-soft); }
.t-about p { color: rgba(255,255,255,.66); max-width: 52ch; margin-bottom: 1.7rem; }
.t-about .eyebrow { color: var(--clay-soft); }

.t-note {
  grid-column: span 5;
  padding: 1.9rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--muted);
}
.t-note .gl { font-size: 1.7rem; color: var(--clay); margin-bottom: .7rem; }
.t-note h4 { font-size: 1.35rem; margin-bottom: .45rem; }
.t-note p { font-size: .85rem; color: var(--ink-2); line-height: 1.7; }

/* ─── CONTACT ────────────────────────────────────────────────── */
.form-grid { display: grid; gap: .8rem; }
.f-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.f-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--clay); }
.field input, .field textarea, .field select {
  width: 100%; padding: .88rem 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); outline: none;
  font-size: .9rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,32,31,.06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { resize: vertical; }
.field .err { font-size: .72rem; color: var(--clay-deep); min-height: 1em; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--clay); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: rgba(255,255,255,.62); padding: 4rem 0 0; margin-top: 2rem; }
.ftr-top {
  width: var(--shell); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
  padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ftr .brand { color: #fff; display: block; margin-bottom: .7rem; }
.ftr-top p { font-size: .84rem; line-height: 1.75; max-width: 30ch; }
.ftr-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.ftr-col { display: grid; gap: .6rem; align-content: start; }
.ftr-col h5 { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: .2rem; }
.ftr-col a { font-size: .84rem; transition: color var(--t); }
.ftr-col a:hover { color: #fff; }
.ftr-btm {
  width: var(--shell); margin-inline: auto;
  padding: 1.4rem 0; font-size: .76rem; color: rgba(255,255,255,.35);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ═══ DRAWER (shared: product + bag) ══════════════════════════ */
.scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(35,32,31,.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .38s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(520px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-4);
  transform: translateX(100%);
  transition: transform .44s var(--ease-io);
  visibility: hidden;
}
.drawer.on { transform: translateX(0); visibility: visible; }

.dr-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line);
  flex-shrink: 0; background: var(--paper);
}
.dr-head h3 { font-family: var(--ui); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dr-x {
  width: 36px; height: 36px; border-radius: 100px;
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1;
  transition: background var(--t);
}
.dr-x:hover { background: var(--muted-2); }
.dr-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.dr-foot {
  flex-shrink: 0; padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--line); background: var(--surface);
}

/* product drawer */
.dr-media { position: relative; aspect-ratio: 4/5; background: var(--muted-2); }
.dr-media img { width: 100%; height: 100%; object-fit: cover; }
.dr-info { padding: 1.5rem; }
.dr-cat { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-text); }
.dr-name { font-family: var(--display); font-size: 2rem; font-weight: 600; margin: .35rem 0 .7rem; line-height: 1.12; }
.dr-price-row { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.2rem; }
.dr-price { font-size: 1.5rem; font-weight: 600; }
.dr-was { font-size: 1rem; color: var(--ink-3); text-decoration: line-through; }
.dr-off { font-size: .74rem; font-weight: 700; color: var(--forest); }
.dr-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.5rem; }

.opt { margin-bottom: 1.3rem; }
.opt-lab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: .55rem;
}
.opt-lab .pick { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); font-size: .78rem; }
.opt-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.opt-b {
  min-width: 46px; padding: .6rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 500; text-align: center;
  transition: all var(--t);
}
.opt-b:hover { border-color: var(--ink); }
.opt-b.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.05rem; transition: background var(--t); }
.qty button:hover { background: var(--muted-2); }
.qty span { min-width: 34px; text-align: center; font-size: .9rem; font-weight: 600; }

.dr-meta { display: grid; gap: .5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dr-meta-r { display: flex; gap: .6rem; font-size: .8rem; color: var(--ink-2); align-items: center; }
.dr-meta-r b { color: var(--clay); font-weight: 400; }

/* bag drawer */
.bag-list { display: grid; }
.bag-row {
  display: grid; grid-template-columns: 78px 1fr auto; gap: .95rem;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line);
  align-items: start;
}
.bag-row img, .bag-row .bag-ph {
  width: 78px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm);
  background: var(--muted-2);
}
.bag-row .bag-ph { display: grid; place-items: center; color: var(--clay); }
.bag-nm { font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.bag-var { font-size: .74rem; color: var(--ink-3); margin-top: .18rem; }
.bag-pr { font-size: .88rem; font-weight: 600; margin-top: .45rem; }
.bag-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.qty-mini { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; }
.qty-mini button { width: 28px; height: 28px; display: grid; place-items: center; font-size: .9rem; }
.qty-mini button:hover { background: var(--muted-2); }
.qty-mini span { min-width: 24px; text-align: center; font-size: .8rem; font-weight: 600; }
.bag-rm { font-size: .72rem; color: var(--ink-3); text-decoration: underline; transition: color var(--t); }
.bag-rm:hover { color: var(--clay-deep); }

.sum { display: grid; gap: .55rem; margin-bottom: 1rem; }
.sum-r { display: flex; justify-content: space-between; font-size: .86rem; color: var(--ink-2); }
.sum-r.total {
  font-size: 1.08rem; font-weight: 700; color: var(--ink);
  padding-top: .7rem; border-top: 1px solid var(--line);
}
.sum-r .free { color: var(--forest); font-weight: 600; }
.ship-hint { font-size: .76rem; color: var(--ink-3); margin-bottom: .9rem; text-align: center; }
.ship-hint b { color: var(--clay-text); }

.bag-empty { text-align: center; padding: 4rem 1.5rem; }
.bag-empty .gl { font-size: 2.4rem; color: var(--muted-2); }
.bag-empty h4 { font-size: 1.4rem; margin: .6rem 0 .3rem; }
.bag-empty p { font-size: .86rem; color: var(--ink-3); margin-bottom: 1.3rem; }

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 300;
  transform: translate(-50%, 18px);
  background: var(--ink); color: #fff;
  padding: .85rem 1.6rem; border-radius: 100px;
  font-size: .84rem; font-weight: 500;
  box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100% - 2rem); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ─── SETUP BANNER ───────────────────────────────────────────── */
.setup {
  background: #1D3A57; color: rgba(255,255,255,.9);
  padding: .7rem 1.5rem; font-size: .79rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative; z-index: 95;
}
.setup a { color: #8FC0F5; text-decoration: underline; }
.setup code { background: rgba(255,255,255,.14); padding: .1rem .38rem; border-radius: 4px; font-size: .74rem; }
.setup button { color: rgba(255,255,255,.55); font-size: 1.1rem; }
.setup button:hover { color: #fff; }

/* ═══ 3D MOTION ═══════════════════════════════════════════════ */
.tilt-scene { perspective: 1100px; }

.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, -40px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js .reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .t-headline { grid-column: span 12; grid-row: span 1; }
  .t-figure   { grid-column: span 6; }
  .t-stat     { grid-column: span 3; }
  .p-card     { grid-column: span 4; }
  .p-card.wide { grid-column: span 8; }
  .cat        { grid-column: span 3; }
  .skel       { grid-column: span 4; }
  .t-about    { grid-column: span 12; grid-row: span 1; }
  .t-note     { grid-column: span 6; }
}
@media (max-width: 900px) {
  :root { --shell: min(1420px, 100% - 2.5rem); --gap: 12px; }
  .nav { display: none; }
  .t-figure { grid-column: span 12; grid-row: span 1; min-height: 320px; }
  .t-stat   { grid-column: span 4; min-height: 128px; }
  .t-stat .n { font-size: 2.4rem; }
  .p-card, .p-card.wide { grid-column: span 6; }
  .skel { grid-column: span 6; }
  .cat  { grid-column: span 4; }
  .t-note { grid-column: span 12; }
  .f-row-3 { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
}
@media (max-width: 560px) {
  :root { --shell: min(1420px, 100% - 1.75rem); }
  .hero { padding-top: 6rem; }
  .sec { padding: 3.5rem 0; }
  .t-headline { min-height: 440px; padding: 1.6rem; }
  .p-card, .p-card.wide, .skel { grid-column: span 12; }
  .cat { grid-column: span 6; }
  .t-stat { grid-column: span 6; }
  .f-row-2 { grid-template-columns: 1fr; }
  .ftr-cols { gap: 2.2rem; }
  .bag-row { grid-template-columns: 64px 1fr; }
  .bag-row img, .bag-row .bag-ph { width: 64px; }
  .bag-ctl { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marq-t { animation: none; }
  .p-card { transform: none !important; }
}

/* ═══ WHATSAPP ══════════════════════════════════════════════════ */
.wa-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem .7rem .85rem;
  border-radius: 100px; background: #0B7A6D; color: #fff;
  font-size: .82rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(11,122,109,.30), var(--sh-2);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11,122,109,.38), var(--sh-3); }
.wa-fab svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }
.btn-wa {
  background: #0B7A6D; color: #fff; margin-top: 1.1rem;
}
.btn-wa:hover { background: #075E54; }
.btn-wa svg { fill: currentColor; }
@media (max-width: 640px) {
  .wa-fab { right: .8rem; bottom: .8rem; padding: .7rem; }
  .wa-fab span { display: none; }
}

/* ═══ PRODUCT SPECS ═════════════════════════════════════════════ */
.spec {
  display: grid; gap: .5rem; margin-bottom: 1.4rem;
  padding: .95rem 1.1rem; background: var(--muted); border-radius: var(--r);
}
.spec-r { display: flex; gap: 1rem; justify-content: space-between; font-size: .82rem; }
.spec-r span { color: var(--ink-3); flex-shrink: 0; }
.spec-r b { font-weight: 500; text-align: right; color: var(--ink-2); }

/* ═══ SIZE GUIDE ════════════════════════════════════════════════ */
.lnk-sm {
  font-size: .74rem; font-weight: 600; color: var(--clay-text);
  text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.lnk-sm:hover { color: var(--clay-deep); }
.sz-guide { margin-top: .8rem; overflow-x: auto; }
.sz-table { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 320px; }
.sz-table th, .sz-table td {
  padding: .45rem .6rem; text-align: left;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.sz-table th {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); background: var(--muted);
}
.sz-table tr:last-child td { border-bottom: 0; }
.sz-note { font-size: .72rem; color: var(--ink-3); margin-top: .55rem; line-height: 1.55; }

/* ═══ STOCK ═════════════════════════════════════════════════════ */
.opt-b.gone {
  opacity: .4; cursor: not-allowed; text-decoration: line-through;
  background: var(--muted);
}
.opt-b.gone:hover { border-color: var(--line); }
.p-out, .dr-out {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(35,32,31,.52);
  color: #fff; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.dr-out { font-size: .95rem; }
.p-card.is-out .p-media img { filter: grayscale(.55); }

/* ═══ PINCODE CHECK ═════════════════════════════════════════════ */
.pin-box { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.pin-row { display: flex; gap: .5rem; }
.pin-row input {
  flex: 1; min-width: 0;
  padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: .88rem; background: var(--surface); outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t);
}
.pin-row input:focus { border-color: var(--ink); }
.pin-out { font-size: .78rem; margin-top: .5rem; min-height: 1.2em; line-height: 1.5; }
.pin-out.ok   { color: var(--forest); }
.pin-out.ok b { font-weight: 700; }
.pin-out.warn { color: var(--clay-deep); }

/* ═══ POLICY PAGES ══════════════════════════════════════════════ */
.doc { padding: 7rem 0 4rem; }
.doc-in { max-width: 68ch; margin-inline: auto; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4rem; }
.doc .updated { font-size: .78rem; color: var(--ink-3); margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.doc p, .doc li { font-size: .92rem; color: var(--ink-2); line-height: 1.8; }
.doc p { margin-bottom: .9rem; }
.doc ul { margin: 0 0 1rem 1.1rem; }
.doc li { list-style: disc; margin-bottom: .4rem; }
.doc a { color: var(--clay-text); border-bottom: 1px solid currentColor; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .callout {
  background: var(--muted); border-left: 3px solid var(--clay);
  padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.4rem 0;
}
.doc .callout p:last-child { margin-bottom: 0; }


/* ═══ ACCESSIBILITY ═════════════════════════════════════════════ */
/* Visually hidden but still focusable and announced. display:none
   removes an input from the accessibility tree entirely. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--clay-text); outline-offset: 2px; }
.skip {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 300; background: var(--ink); color: #fff;
  padding: .7rem 1.4rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .85rem; transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

/* ─── CARD KEYBOARD ACCESS ───────────────────────────────────────
   One real button per card. Its ::after covers the whole card so the
   mouse target stays large while the tab order stays sane. */
.p-open {
  font: inherit; color: inherit; text-align: left;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.p-open::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.p-open:focus-visible { outline: none; }
.p-card:has(.p-open:focus-visible) { outline: 3px solid var(--clay-text); outline-offset: 3px; }
.p-fav, .p-quick { z-index: 2; }
.p-card:has(.p-open:focus-visible) .p-quick { opacity: 1; transform: translateY(0) translateZ(40px); }
