/* ==========================================================================
   La Comtesse Parfumerie — one stylesheet, one token layer, mobile first, RTL
   ========================================================================== */

:root {
  /* colour roles */
  --ink: #0a0807;
  --ink-2: #12100e;
  --ink-3: #1c1817;
  --ivory: #f8f3ea;
  --paper: #efe7da;
  --gold: #d3ad64;
  --gold-lite: #f0dfae;
  --gold-deep: #9a7534;
  --gold-ink: #7f5f27;
  --rose: #b5717c;
  --rose-soft: #e6c3c6;
  --text: #f3ece1;
  --text-dim: #b6ada1;
  --text-dark: #191512;
  --text-dark-dim: #6a5f55;
  --line: rgba(211, 173, 100, .22);
  --line-soft: rgba(243, 236, 225, .12);
  --ok: #7fae86;
  --err: #d98b7c;

  /* type */
  --font-body: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', 'Cairo', Georgia, serif;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  --fs-2xl: clamp(2.1rem, 1.4rem + 3.4vw, 3.8rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 6vw, 6.4rem);
  --lh-tight: 1.15;
  --lh-body: 1.75;
  --track-wide: .28em;

  /* space & shape */
  --sp-1: .375rem;
  --sp-2: .75rem;
  --sp-3: 1.15rem;
  --sp-4: 1.75rem;
  --sp-5: 2.6rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-1: 0 2px 10px rgba(10, 8, 7, .18);
  --shadow-2: 0 18px 50px rgba(10, 8, 7, .45);
  --wrap: min(1240px, 100% - 2.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .32s;
  --t-slow: .6s;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
}
.skip:focus { inset-inline-start: var(--sp-2); top: var(--sp-2); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-size: var(--fs-xs); letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-lite) 32%, #fff8e6 45%, var(--gold) 62%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--text-dim); font-size: var(--fs-md); max-width: 46ch; }
.section { padding: var(--sp-6) 0; position: relative; }
.section--paper { background: var(--ivory); color: var(--text-dark); }
.section--paper .lede, .section--paper .eyebrow { color: var(--text-dark-dim); }
.section--paper .eyebrow { color: var(--gold-ink); }
.section__head { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.section__head h2 { font-size: var(--fs-xl); }
.section--paper h2 { color: var(--text-dark); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-lite));
  --btn-fg: #1b1409;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .01em; position: relative; overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), filter var(--t) var(--ease);
  box-shadow: 0 6px 20px rgba(211, 173, 100, .22);
}
.btn svg { width: 18px; height: 18px; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(211, 173, 100, .3); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[data-loading='true'] { color: transparent; }
.btn[data-loading='true']::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(27, 20, 9, .35); border-top-color: #1b1409; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lite); box-shadow: none; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--ivory); box-shadow: none; }
.section--paper .btn--ghost { --btn-fg: var(--text-dark); border-color: rgba(25, 21, 18, .2); }
.section--paper .btn--ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
.btn--wa { --btn-bg: linear-gradient(120deg, #27b465, #1f9d57); --btn-fg: #06210f; box-shadow: 0 6px 20px rgba(39, 180, 101, .2); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: var(--fs-xs); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 90;
  padding: .7rem 0; transition: background var(--t) var(--ease), padding var(--t) var(--ease), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.hdr[data-stuck='true'] {
  background: rgba(10, 8, 7, .82); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft); padding: .45rem 0;
}
.hdr__in { display: flex; align-items: center; gap: var(--sp-3); justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--gold-lite), var(--gold) 45%, var(--gold-deep));
  color: #1b1409; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; flex-shrink: 0;
}
.brand__t { display: flex; flex-direction: column; line-height: 1.1; }
.brand__t b { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: .02em; }
.brand__t span { font-size: .6rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--gold); }

.nav { display: none; }
.nav a {
  padding: .5rem .8rem; border-radius: var(--r-pill); font-size: var(--fs-sm);
  color: var(--text-dim); transition: color var(--t-fast), background var(--t-fast); position: relative;
}
.nav a:hover { color: var(--text); background: rgba(243, 236, 225, .06); }
.nav a[aria-current='page'] { color: var(--gold-lite); }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; inset-inline: .8rem; bottom: .25rem; height: 1px; background: var(--gold);
}
.hdr__act { display: flex; align-items: center; gap: .45rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 1px solid var(--line-soft); color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-lite); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__n {
  position: absolute; top: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--gold); color: #1b1409; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.burger { display: grid; }

/* ---------- drawer / menu ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(6, 5, 4, .68); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); z-index: 100;
}
.scrim[data-open='true'] { opacity: 1; visibility: visible; }
.panel {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 92vw);
  background: var(--ink-2); border-inline-start: 1px solid var(--line);
  z-index: 110; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform var(--t-slow) var(--ease-out);
  padding-bottom: calc(var(--sp-3) + var(--safe-b));
}
[dir='rtl'] .panel { transform: translateX(-105%); }
.panel[data-open='true'], [dir='rtl'] .panel[data-open='true'] { transform: none; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--line-soft);
}
.panel__head h2 { font-size: var(--fs-md); }
.panel__body { flex: 1; overflow-y: auto; padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.panel__foot { padding: var(--sp-3); border-top: 1px solid var(--line-soft); display: grid; gap: var(--sp-2); }
.menu-list { display: grid; gap: .2rem; }
.menu-list a {
  padding: .85rem .6rem; border-radius: var(--r-md); font-size: var(--fs-md);
  display: flex; align-items: center; justify-content: space-between; color: var(--text);
  transition: background var(--t-fast), padding-inline-start var(--t-fast);
}
.menu-list a:hover { background: rgba(243, 236, 225, .06); padding-inline-start: 1rem; }
.menu-list a span { font-size: var(--fs-xs); color: var(--gold); letter-spacing: .18em; text-transform: uppercase; }
.menu-list a svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding: calc(var(--sp-7) + 2rem) 0 var(--sp-5);
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(211, 173, 100, .3), transparent 60%),
    radial-gradient(90% 70% at 12% 82%, rgba(181, 113, 124, .22), transparent 65%),
    linear-gradient(180deg, rgba(10, 8, 7, .55) 0%, rgba(10, 8, 7, .82) 55%, var(--ink) 100%);
}
.hero__sheen {
  position: absolute; z-index: -1; inset-inline-start: -30%; top: -40%;
  width: 130vmax; height: 130vmax; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0deg, rgba(240, 223, 174, .18) 40deg, transparent 90deg, rgba(181, 113, 124, .12) 150deg, transparent 220deg);
  filter: blur(30px); animation: sweep 34s linear infinite; pointer-events: none;
}
@keyframes sweep { to { transform: rotate(1turn); } }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero__in { position: relative; display: grid; gap: var(--sp-4); width: var(--wrap); margin-inline: auto; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-hero); line-height: .98; letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; display: block; }
.hero__sub { color: var(--text-dim); max-width: 44ch; font-size: var(--fs-md); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero__marks {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  padding-top: var(--sp-3); border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
}
.hero__marks span { display: flex; align-items: center; gap: .4rem; }
.hero__marks svg { width: 14px; height: 14px; color: var(--gold); }
.scroll-cue {
  position: absolute; inset-inline-end: var(--sp-3); bottom: var(--sp-4); z-index: 2;
  display: none; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
  writing-mode: vertical-rl;
}
.scroll-cue i { display: block; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); padding: var(--sp-2) 0; overflow: hidden; background: var(--ink-2); }
.marquee__row { display: flex; gap: var(--sp-4); white-space: nowrap; animation: slide 42s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--text-dim);
  display: flex; align-items: center; gap: var(--sp-4);
}
.marquee span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes slide { to { transform: translateX(50%); } }
[dir='rtl'] .marquee__row { animation-direction: reverse; }

/* ---------- chapters (brand story) ---------- */
.chapters { position: relative; }
.chapter {
  display: grid; gap: var(--sp-3); padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line-soft);
}
.chapter__n {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(211, 173, 100, .5);
}
.chapter__body { display: grid; gap: var(--sp-2); align-content: center; }
.chapter__body h3 { font-size: var(--fs-xl); font-family: var(--font-display); font-weight: 400; }
.chapter__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.chapter__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.chapter__shots img { border-radius: var(--r-md); aspect-ratio: 1; object-fit: contain; background: var(--paper); }
.chapter__shots img:first-child { grid-column: span 2; aspect-ratio: 16/9; object-fit: cover; background: none; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.cat {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-2); min-height: 108px;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-2);
  background: linear-gradient(160deg, rgba(243, 236, 225, .04), transparent);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background var(--t);
}
.cat:hover { border-color: var(--gold); transform: translateY(-3px); background: linear-gradient(160deg, rgba(211, 173, 100, .1), transparent); }
.cat b { font-size: var(--fs-base); font-weight: 600; }
.cat span { font-size: var(--fs-xs); color: var(--text-dim); }
.cat svg { width: 22px; height: 22px; color: var(--gold); }

/* ---------- shop controls ---------- */
.shop__ctrl { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.search { position: relative; }
.search input {
  width: 100%; min-height: 52px; padding: .9rem 3rem .9rem 1.2rem;
  background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--r-pill);
  color: var(--text); transition: border-color var(--t-fast), background var(--t-fast);
}
[dir='rtl'] .search input { padding: .9rem 1.2rem .9rem 3rem; }
.search input::placeholder { color: var(--text-dim); }
.search input:hover { border-color: var(--line); }
.search input:focus { outline: none; border-color: var(--gold); background: var(--ink-2); }
.search svg { position: absolute; inset-inline-end: 1.1rem; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--gold); pointer-events: none; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; -ms-overflow-style: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 42px; padding: .5rem 1.05rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); color: var(--text-dim); font-size: var(--fs-sm);
  transition: all var(--t-fast) var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #1b1409; font-weight: 700; }
.shop__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.shop__count { font-size: var(--fs-sm); color: var(--text-dim); }
.shop__count b { color: var(--gold); }
.shop__count--empty { color: var(--err); }
.view { display: none; gap: .35rem; }
.view .icon-btn { width: 40px; height: 40px; }
.view .icon-btn[data-on='true'] { border-color: var(--gold); color: var(--gold); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.grid[data-view='list'] { grid-template-columns: 1fr; }
.card {
  background: var(--paper); color: var(--text-dark); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card__media { position: relative; aspect-ratio: 1; padding: .5rem; display: grid; place-items: center; background: var(--paper); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--t-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: .55rem; inset-inline-start: .55rem; z-index: 2;
  background: var(--ink); color: var(--gold-lite); font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .3rem .55rem; border-radius: var(--r-pill);
}
.card__fav {
  position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(248, 243, 234, .9); color: var(--text-dark);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.card__fav svg { width: 17px; height: 17px; }
.card__fav:hover { transform: scale(1.08); background: #fff; }
.card__fav[aria-pressed='true'] { color: var(--rose); }
.card__fav[aria-pressed='true'] svg { fill: currentColor; }
.card__body { padding: .8rem .85rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__brand { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.card__name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; }
.card__shades { font-size: var(--fs-xs); color: var(--text-dark-dim); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; }
.price { font-family: var(--font-display); font-size: var(--fs-md); color: var(--text-dark); white-space: nowrap; }
.price small { font-family: var(--font-body); font-size: .7rem; color: var(--text-dark-dim); margin-inline-start: .2rem; }
.price--ask { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--gold-ink); font-weight: 700; }
.card__add {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--ink); color: var(--gold-lite); transition: transform var(--t-fast), background var(--t-fast);
}
.card__add svg { width: 19px; height: 19px; }
.card__add:hover { transform: scale(1.07); background: #241d17; }
.card__add[aria-pressed='true'] { background: var(--gold); color: #1b1409; }
.grid[data-view='list'] .card { flex-direction: row; }
.grid[data-view='list'] .card__media { width: 38%; aspect-ratio: auto; min-height: 150px; }
.grid[data-view='list'] .card__body { padding: .9rem 1rem; }

/* ---------- states ---------- */
.state {
  grid-column: 1 / -1; padding: var(--sp-6) var(--sp-3); text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-lg); display: grid; gap: var(--sp-2); justify-items: center;
}
.section--paper .state { border-color: rgba(25, 21, 18, .18); }
.state svg { width: 34px; height: 34px; color: var(--gold); }
.state p { color: var(--text-dim); max-width: 40ch; }
.section--paper .state p { color: var(--text-dark-dim); }
.skeleton { background: var(--ink-3); border-radius: var(--r-lg); aspect-ratio: 1/1.35; position: relative; overflow: hidden; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(243, 236, 225, .07), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- editorial split ---------- */
.split { display: grid; gap: var(--sp-4); align-items: center; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__tag {
  position: absolute; bottom: var(--sp-2); inset-inline-start: var(--sp-2);
  background: rgba(10, 8, 7, .78); backdrop-filter: blur(8px); color: var(--text);
  padding: .6rem .9rem; border-radius: var(--r-pill); font-size: var(--fs-xs); border: 1px solid var(--line);
}
.split__body { display: grid; gap: var(--sp-3); }
.steps { display: grid; gap: var(--sp-2); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: start; counter-increment: s; }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-size: var(--fs-sm); font-weight: 700;
}
.steps b { display: block; }
.steps span { color: var(--text-dim); font-size: var(--fs-sm); }
.section--paper .steps span { color: var(--text-dark-dim); }

/* ---------- faq ---------- */
.faq { display: grid; gap: .55rem; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--ink-2);
  padding: .2rem .2rem; transition: border-color var(--t);
}
.section--paper .faq details { background: #fff; border-color: rgba(25, 21, 18, .12); }
.faq details[open], .faq details:hover { border-color: var(--gold); }
.faq summary {
  cursor: pointer; list-style: none; padding: .95rem 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 1rem 1rem; color: var(--text-dim); }
.section--paper .faq p { color: var(--text-dark-dim); }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--sp-2); }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--text-dim); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  color: var(--text); transition: border-color var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: var(--ink-2); }
.field[data-error='true'] input, .field[data-error='true'] textarea { border-color: var(--err); }
.field__msg { font-size: var(--fs-xs); color: var(--err); display: none; }
.field[data-error='true'] .field__msg { display: block; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: var(--fs-xs); color: var(--text-dim); }
.alert {
  display: none; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r-md);
  font-size: var(--fs-sm); border: 1px solid transparent;
}
.alert[data-show='true'] { display: flex; }
.alert[data-kind='ok'] { background: rgba(127, 174, 134, .14); border-color: rgba(127, 174, 134, .5); color: #cfe6d2; }
.alert[data-kind='err'] { background: rgba(217, 139, 124, .12); border-color: rgba(217, 139, 124, .5); color: #f3cfc7; }
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: .15rem; }

/* ---------- cart / selection ---------- */
.line { display: grid; grid-template-columns: 62px 1fr auto; gap: .7rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }
.line__media { width: 62px; height: 62px; border-radius: var(--r-sm); background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.line__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line__t { display: grid; gap: .2rem; }
.line__t b { font-size: var(--fs-sm); font-weight: 600; }
.line__t span { font-size: var(--fs-xs); color: var(--text-dim); }
.line__q { display: flex; align-items: center; gap: .3rem; }
.line__q button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-soft);
  display: grid; place-items: center; transition: border-color var(--t-fast), color var(--t-fast);
}
.line__q button:hover { border-color: var(--gold); color: var(--gold-lite); }
.line__q b { min-width: 22px; text-align: center; font-size: var(--fs-sm); }
.cart__total { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-md); }
.cart__total b { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--gold-lite); }

/* ---------- product modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.modal[data-open='true'] { opacity: 1; visibility: visible; }
.modal__box {
  width: min(880px, 100%); max-height: 92dvh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(18px);
  transition: transform var(--t-slow) var(--ease-out);
}
.modal[data-open='true'] .modal__box { transform: none; }
.modal__grid { display: grid; gap: 0; }
.modal__media { background: var(--paper); padding: var(--sp-3); display: grid; gap: .6rem; }
.modal__media img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; border-radius: var(--r-md); }
.modal__thumbs { display: flex; gap: .4rem; }
.modal__thumbs button { width: 56px; height: 56px; border-radius: var(--r-sm); background: #fff; border: 1px solid transparent; overflow: hidden; }
.modal__thumbs button[aria-pressed='true'] { border-color: var(--gold); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.modal__body { padding: var(--sp-3); display: grid; gap: var(--sp-2); align-content: start; }
.modal__body h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); }
.modal__price { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--gold-lite); }
.modal__acts { display: grid; gap: .5rem; }
.modal__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.facts { display: grid; gap: .45rem; padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); }
.facts div { display: flex; gap: .6rem; font-size: var(--fs-sm); color: var(--text-dim); }
.facts svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: .2rem; }

/* ---------- cta band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-3); text-align: center; display: grid; gap: var(--sp-3); justify-items: center;
  background: linear-gradient(140deg, #171310, #0c0a09 60%);
  border: 1px solid var(--line);
}
.band::before {
  content: ''; position: absolute; inset-inline-start: -20%; top: -60%; width: 90vmax; height: 90vmax;
  background: conic-gradient(from 90deg, transparent, rgba(211, 173, 100, .22), transparent 45%);
  filter: blur(24px); animation: sweep 40s linear infinite;
}
.band > * { position: relative; }
.band h2 { font-size: var(--fs-xl); font-family: var(--font-display); font-weight: 400; }
.band__acts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line-soft); padding: var(--sp-5) 0 var(--sp-4); background: var(--ink-2); }
.ftr__grid { display: grid; gap: var(--sp-4); }
.ftr__col { display: grid; gap: .6rem; align-content: start; }
.ftr__col h3 { font-size: var(--fs-sm); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ftr__col a, .ftr__col p { color: var(--text-dim); font-size: var(--fs-sm); }
.ftr__col a { display: inline-flex; align-items: center; gap: .5rem; transition: color var(--t-fast); }
.ftr__col a:hover { color: var(--gold-lite); }
.ftr__col svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.ftr__bottom {
  margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between;
  font-size: var(--fs-xs); color: var(--text-dim);
}
.socials { display: flex; gap: .5rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--text); transition: all var(--t-fast);
}
.socials a:hover { border-color: var(--gold); color: var(--gold-lite); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

/* ---------- brand page hero ---------- */
.bhero { position: relative; padding: calc(var(--sp-7) + 3rem) 0 var(--sp-5); overflow: hidden; }
.bhero__media { position: absolute; inset: 0; z-index: -2; }
.bhero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.bhero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 7, .7), rgba(10, 8, 7, .88) 60%, var(--ink));
}
.bhero__in { display: grid; gap: var(--sp-3); }
.bhero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); }
.bhero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.bhero__shots { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: var(--sp-2); }
.bhero__shots img { width: 76px; height: 76px; object-fit: contain; background: var(--paper); border-radius: var(--r-sm); mix-blend-mode: normal; }

/* ---------- page head ---------- */
.phead { padding: calc(var(--sp-7) + 2rem) 0 var(--sp-4); display: grid; gap: var(--sp-2); }
.phead h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); }
.crumbs { display: flex; gap: .5rem; font-size: var(--fs-xs); color: var(--text-dim); }
.crumbs a:hover { color: var(--gold-lite); }

/* ---------- misc ---------- */
.note {
  display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md);
  background: rgba(211, 173, 100, .1); border: 1px solid rgba(211, 173, 100, .3); font-size: var(--fs-sm);
}
.note svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.fourt { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: var(--sp-6) var(--sp-3); }
.fourt__in { display: grid; gap: var(--sp-3); justify-items: center; }
.fourt h1 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 400; }
.info-grid { display: grid; gap: .7rem; }
.info-grid .card { padding: var(--sp-3); gap: .5rem; background: var(--ink-2); color: var(--text); border: 1px solid var(--line-soft); }
.info-grid .card b { color: var(--gold-lite); font-size: var(--fs-sm); }
.info-grid .card p { color: var(--text-dim); font-size: var(--fs-sm); }

/* ---------- reveal (JS adds .is-in) ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { gap: 1rem; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { place-items: center; }
  .modal__box { border-radius: var(--r-lg); max-height: 90dvh; }
}
@media (min-width: 780px) {
  :root { --wrap: min(1240px, 100% - 4rem); }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .chapter { grid-template-columns: 120px 1fr 1fr; gap: var(--sp-4); align-items: center; padding: var(--sp-6) 0; }
  .chapter__shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter__shots img:first-child { grid-column: span 1; aspect-ratio: 1; object-fit: contain; }
  .modal__grid { grid-template-columns: 1fr 1fr; }
  .modal__media { padding: var(--sp-4); }
  .modal__body { padding: var(--sp-4); }
  .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: var(--sp-7) 0; }
  .section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .shop__ctrl { grid-template-columns: 1fr auto; align-items: center; }
  .view { display: flex; }
}
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: .1rem; }
  .burger { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .scroll-cue { display: flex; }
  .hero__in { max-width: 60%; }
  .bhero__in { grid-template-columns: 1.3fr 1fr; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sheen, .band::before, .marquee__row { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .hdr, .panel, .modal, .scrim, .marquee { display: none; }
  body { background: #fff; color: #000; }
}
