/* ==========================================================================
   PrimeLegacy — stylesheet
   ========================================================================== */

:root {
  --ink: #111110;
  --ink-2: #1c1b19;
  --paper: #f6f3ee;
  --cream: #ece6dc;
  --sand: #d9cfbf;
  --muted: #6f6a62;
  --line: rgba(17, 17, 16, .12);
  --line-light: rgba(255, 255, 255, .18);
  --accent: #a8814a;
  --accent-soft: #c9a76a;
  --danger: #a3402c;
  --white: #fff;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 24px 60px -24px rgba(17, 17, 16, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-soft); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--accent); }
.section-title { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 72px); font-weight: 400; letter-spacing: -.01em; }
.section-title em { font-style: italic; color: var(--accent); }
.section-title--light { color: var(--paper); }
.section-title--light em { color: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .3s var(--ease);
  border-radius: var(--radius);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hover-bg, var(--ink));
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: scale(.98); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); --hover-bg: var(--accent); }
.btn--dark:hover { border-color: var(--accent); }
.btn--outline { --hover-bg: var(--ink); }
.btn--outline:hover { color: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --hover-bg: var(--accent); }
.btn--light:hover { color: var(--paper); border-color: var(--accent); }
.btn--ghost-light { --fg: var(--paper); --bd: rgba(255,255,255,.55); --hover-bg: var(--paper); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--text { border: 0; min-height: 40px; letter-spacing: .14em; color: var(--muted); }
.btn--text::before { display: none; }
.btn--text:hover { color: var(--ink); }
.btn--block { width: 100%; }
.link-btn { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.link-btn:hover, .link-btn.is-active { color: var(--ink); }

.icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s;
}
.icon-btn:hover { background: rgba(17,17,16,.06); }
.icon-btn--light { color: var(--paper); border: 1px solid rgba(255,255,255,.4); }
.icon-btn--light:hover { background: var(--paper); color: var(--ink); }
.icon-btn--outline { border: 1px solid var(--line); }
.icon-btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
}
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper);
  display: grid; place-content: center; gap: 28px; justify-items: center;
  transition: clip-path 1s var(--ease-in-out); clip-path: inset(0 0 0 0);
}
.preloader__mark { font-family: var(--serif); font-size: clamp(42px, 7vw, 84px); overflow: hidden; display: flex; gap: .15em; }
.preloader__word { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.preloader__word--italic { font-style: italic; color: var(--accent-soft); animation-delay: .12s; }
.preloader__bar { width: 160px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; animation: load 1.1s var(--ease) .2s forwards; }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes load { to { transform: scaleX(1); } }

/* ---------- Announcement ---------- */
.announce { background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .12em; text-align: center; height: 38px; position: relative; overflow: hidden; }
.announce__track { position: relative; height: 100%; }
.announce__msg { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 0 16px; opacity: 0; transform: translateY(100%); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.announce__msg.is-active { opacity: 1; transform: none; }
.announce__msg.is-leaving { opacity: 0; transform: translateY(-100%); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: transparent; color: var(--paper);
  transition: background .4s, color .4s, transform .5s var(--ease), box-shadow .4s;
  margin-bottom: calc(var(--header-h) * -1);
}
.header.is-solid, .header.is-open { background: rgba(246, 243, 238, .94); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header--static { margin-bottom: 0; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.mega__col .mega__title a { display: inline; padding: 0; font-size: inherit; color: inherit; }
.mega__col .mega__title a:hover { color: var(--accent); transform: none; }
.mega__col a[aria-current="page"], .mobile-nav__links a[aria-current="page"] { color: var(--accent); }
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.header__burger { display: none; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.header__text-link { margin-right: 14px; }
.header .icon-btn:hover { background: rgba(127,127,127,.14); }

.logo { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: .01em; display: inline-flex; align-items: baseline; white-space: nowrap; }
.logo__prime { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .62em; margin-right: .25em; }
.logo__legacy { font-style: italic; }
.logo--small { font-size: 26px; }
.logo--light { color: var(--paper); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav__link { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; display: inline-block; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover::after, .nav__item--mega:hover > .nav__link::after, .nav__item--mega:focus-within > .nav__link::after { transform: scaleX(1); transform-origin: left; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 40px; padding-top: 40px; padding-bottom: 44px; }
.mega__title { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; }
.mega__col a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; transition: color .25s, transform .25s; }
.mega__col a:hover { color: var(--ink); transform: translateX(4px); }
.mega__feature { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__feature:hover img { transform: scale(1.06); }
.mega__feature-text { position: absolute; left: 20px; bottom: 18px; color: #fff; font-family: var(--serif); font-size: 26px; display: flex; flex-direction: column; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.mega__feature-text em { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0 auto 0 0; z-index: 300; width: min(420px, 88vw); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .6s var(--ease); visibility: hidden;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mobile-nav__links { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; }
.mobile-nav__links a { font-family: var(--serif); font-size: 28px; padding: 8px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; }
.mobile-nav__links a:hover { color: var(--accent); }
.mobile-nav.is-open .mobile-nav__links a { opacity: 1; transform: none; }
.mobile-nav__foot { padding: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mobile-nav__foot a { color: var(--ink); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease-in-out), visibility 1.2s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.15); transition: transform 7s linear; }
.hero__slide.is-active .hero__media img { transform: scale(1.02); }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,9,.78) 0%, rgba(10,10,9,.35) 55%, rgba(10,10,9,.1) 100%), linear-gradient(0deg, rgba(10,10,9,.55), transparent 40%); }
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 38px); padding-bottom: 110px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 148px); line-height: .92; letter-spacing: -.02em; margin-bottom: 26px; }
.hero__title em { color: var(--accent-soft); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__slide.is-active .hero__title .line > span { transform: none; transition-delay: .35s; }
.hero__slide.is-active .hero__title .line:nth-child(2) > span { transition-delay: .5s; }
.hero__text, .hero__ctas, .hero__content .eyebrow { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero__slide.is-active .eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.hero__slide.is-active .hero__text { opacity: 1; transform: none; transition-delay: .7s; }
.hero__slide.is-active .hero__ctas { opacity: 1; transform: none; transition-delay: .85s; }
.hero__text { max-width: 460px; font-size: 17px; color: rgba(246,243,238,.82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: center; gap: 28px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 54px; height: 24px; display: grid; align-items: center; }
.hero__dot span { display: block; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__dot span::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { animation: fill var(--hero-dur, 6.5s) linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__count { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.hero__count span { color: var(--paper); }
.hero__arrows { margin-left: auto; display: flex; gap: 10px; }
.hero__scroll { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--paper); border-radius: 2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line-light); }
.marquee__track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 32s linear infinite; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--accent-soft); font-size: .6em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Collections ---------- */
.collections__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(280px, 34vw)); gap: 18px; max-height: none; }
.col-card { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.col-card--tall { grid-row: span 2; }
.col-card--tall img { object-position: center 80%; }
.col-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; opacity: .92; }
.col-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.72) 0%, rgba(10,10,9,0) 55%); transition: background .6s; }
.col-card:hover img { transform: scale(1.07); opacity: 1; }
.col-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 32px); }
.col-card h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; }
.col-card__count { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); display: block; margin-bottom: 6px; }
.col-card__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.col-card__cta::after { content: ''; width: 24px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.col-card:hover .col-card__cta::after { width: 52px; }
.collections__grid > :nth-child(2) { --d: .08s; } .collections__grid > :nth-child(3) { --d: .16s; } .collections__grid > :nth-child(4) { --d: .1s; } .collections__grid > :nth-child(5) { --d: .2s; }

/* ---------- Shop ---------- */
.shop { background: var(--white); }
.shop__tools { display: flex; gap: 12px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: transparent; padding: 12px 44px 12px 18px; font-size: 13px; letter-spacing: .06em; cursor: pointer; border-radius: var(--radius); }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 10px 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 13px; letter-spacing: .04em; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop__meta { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.product-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 42px 22px; }
.shop__more { text-align: center; margin-top: 56px; }
.shop__more[hidden] { display: none; }

.card { position: relative; animation: cardIn .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } }
.card__visual { position: relative; overflow: hidden; }
.card__media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--cream); }
.card__tags { pointer-events: none; }
.card__name a { transition: color .25s; }
.card__name a:hover { color: var(--accent); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.tag { background: var(--paper); color: var(--ink); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; }
.tag--sale { background: var(--danger); color: #fff; }
.tag--new { background: var(--ink); color: var(--paper); }
.card__wish { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(246,243,238,.92); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.card__wish svg { width: 18px; height: 18px; transition: fill .3s, stroke .3s; }
.card__wish:hover { transform: scale(1.08); }
.card__wish.is-active svg, .qv__wish.is-active svg { fill: var(--danger); stroke: var(--danger); }
.card__wish.is-active { animation: heart .5s var(--ease); }
@keyframes heart { 30% { transform: scale(1.25); } 100% { transform: scale(1); } }
.card__actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; z-index: 1; transform: translateY(calc(100% + 16px)); transition: transform .5s var(--ease); }
.card:hover .card__actions, .card:focus-within .card__actions { transform: none; }
.card__btn { background: var(--paper); color: var(--ink); min-height: 44px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; transition: background .3s, color .3s; }
.card__btn:hover { background: var(--ink); color: var(--paper); }
.card__btn--dark { background: var(--ink); color: var(--paper); }
.card__btn--dark:hover { background: var(--accent); }
.card__info { padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card__name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.price { font-size: 14px; font-weight: 600; white-space: nowrap; text-align: right; }
.price s { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.price--sale { color: var(--danger); }
.card { display: flex; flex-direction: column; }
.card__info { flex: 1; }
.card__buy, .btn--whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s, transform .2s;
}
.card__buy { margin-top: 14px; min-height: 46px; border-radius: var(--radius); }
.card__buy svg, .btn--whatsapp svg { width: 18px; height: 18px; color: #25d366; transition: color .3s; }
.card__buy:hover, .btn--whatsapp:hover { background: #1da851; }
.card__buy:hover svg, .btn--whatsapp:hover svg { color: #fff; }
.card__buy:active { transform: scale(.98); }
.btn--whatsapp { --bd: var(--ink); border: 1px solid var(--ink); }
.btn--whatsapp::before { display: none; }
.btn--whatsapp:hover { border-color: #1da851; }

.load-error { margin: 0; padding: calc(var(--header-h) + 16px) var(--gutter) 16px; background: var(--danger); color: #fff; text-align: center; font-size: 14px; }

/* ---------- Home category rows ---------- */
.cat-row { padding: clamp(56px, 7vw, 96px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.cat-row:nth-child(even) { background: var(--paper); }
.cat-row__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.cat-row__head .eyebrow { margin-bottom: 10px; }
.cat-row__title { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 60px); font-weight: 400; letter-spacing: -.01em; }
.cat-row__title a { transition: color .3s; }
.cat-row__title a:hover { color: var(--accent); }
.cat-row__count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; white-space: nowrap; }
.cat-row__foot { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.cat-row__foot .btn { min-width: 260px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-bottom: 8px; }

/* ---------- Story ---------- */
.story { overflow: hidden; }
.story__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.story__media { position: relative; padding: 0 12% 18% 0; }
.story__img { overflow: hidden; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img--main { aspect-ratio: 4/5; }
.story__img--main img { transform: scale(1.15); }
.story__img--float { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3/4; border: 10px solid var(--paper); box-shadow: var(--shadow); }
.story__stamp { position: absolute; top: -40px; right: 4%; width: 130px; height: 130px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; box-shadow: var(--shadow); }
.story__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; stroke: none; fill: var(--ink); }
.story__stamp text { font-size: 10px; letter-spacing: 2.6px; font-family: var(--sans); font-weight: 600; }
.story__stamp span { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.story__content .section-title { margin-bottom: 28px; }
.story__lead { font-size: 19px; color: var(--ink); }
.story__content p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 44px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__num, .stat__suffix { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 58px); line-height: 1; color: var(--ink); }
.stat__suffix { color: var(--accent); font-size: clamp(26px, 2.6vw, 34px); }
.stat p { font-size: 13px; margin: 8px 0 0; }

/* ---------- Lookbook ---------- */
.lookbook { background: var(--cream); overflow: hidden; }
.lookbook__nav { display: flex; gap: 10px; }
.lookbook__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  cursor: grab; user-select: none;
}
.lookbook__track::-webkit-scrollbar { display: none; }
.lookbook__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.lookbook__track.is-dragging .look { pointer-events: none; }
.look { flex: 0 0 clamp(260px, 28vw, 400px); scroll-snap-align: start; position: relative; }
.look__media { aspect-ratio: 3/4; overflow: hidden; position: relative; background: var(--sand); }
.look__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.look:hover .look__media img { transform: scale(1.05); }
.look__num { position: absolute; top: 14px; left: 16px; color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.look__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; gap: 12px; }
.look__title { font-family: var(--serif); font-size: 24px; }
.look__shop { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.look__shop:hover { color: var(--accent); }
.lookbook__progress { margin-top: 36px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.lookbook__progress span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--ink); transition: width .2s linear, transform .2s linear; }

/* ---------- Fragrance ---------- */
.fragrance { background: radial-gradient(120% 120% at 80% 20%, #2a2219 0%, var(--ink) 55%); color: var(--paper); overflow: hidden; }
.fragrance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.fragrance__lead { color: rgba(246,243,238,.75); font-size: 17px; max-width: 520px; margin: 22px 0 34px; }
.notes { margin-bottom: 34px; }
.notes__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-light); margin-bottom: 20px; }
.notes__tab { padding: 12px 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,243,238,.55); position: relative; transition: color .3s; }
.notes__tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-soft); transform: scaleX(0); transition: transform .4s var(--ease); }
.notes__tab.is-active { color: var(--paper); }
.notes__tab.is-active::after { transform: scaleX(1); }
.notes__panel { display: none; gap: 10px; flex-wrap: wrap; }
.notes__panel.is-active { display: flex; }
.notes__panel span { padding: 10px 18px; border: 1px solid var(--line-light); border-radius: 30px; font-family: var(--serif); font-size: 20px; font-style: italic; animation: cardIn .6s var(--ease) both; }
.notes__panel span:nth-child(2) { animation-delay: .07s; } .notes__panel span:nth-child(3) { animation-delay: .14s; }
.fragrance__specs { display: grid; gap: 14px; margin: 0 0 38px; max-width: 460px; }
.fragrance__specs div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; font-size: 14px; }
.fragrance__specs dt { color: rgba(246,243,238,.55); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.fragrance__specs dd { margin: 0; display: flex; align-items: center; gap: 14px; }
.meter { flex: 0 0 120px; height: 2px; background: var(--line-light); position: relative; overflow: hidden; }
.meter span { position: absolute; inset: 0; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.is-in .meter span { transform: scaleX(var(--v)); }
.fragrance__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.fragrance__visual { position: relative; aspect-ratio: 4/5; }
.fragrance__visual img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.fragrance__glow { position: absolute; inset: 10% -10% -10% 10%; background: radial-gradient(closest-side, rgba(201,167,106,.45), transparent); filter: blur(30px); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-6%, -4%) scale(1.08); opacity: .7; } }

/* ---------- Services ---------- */
.services { padding: clamp(60px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.service { padding: 10px clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.service:first-child { border-left: 0; padding-left: 0; }
.service svg { width: 40px; height: 40px; stroke-width: 1.2; color: var(--accent); margin-bottom: 20px; transition: transform .6s var(--ease); }
.service:hover svg { transform: translateY(-6px); }
.service h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14px; margin: 0; }
.services__grid > :nth-child(2) { --d: .08s; } .services__grid > :nth-child(3) { --d: .16s; } .services__grid > :nth-child(4) { --d: .24s; }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; color: var(--paper); text-align: center; padding: clamp(100px, 14vw, 180px) 0; background: var(--ink); }
.newsletter__bg { position: absolute; inset: -15% 0; }
.newsletter__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.newsletter__inner { position: relative; max-width: 760px; }
.newsletter__inner .eyebrow::before { display: none; }
.newsletter__inner > p { color: rgba(246,243,238,.75); margin: 18px 0 34px; }
.newsletter__form { display: flex; gap: 0; max-width: 560px; margin: 0 auto; flex-wrap: wrap; }
.newsletter__form input { flex: 1 1 260px; min-height: 56px; padding: 0 22px; border: 1px solid rgba(255,255,255,.4); border-right: 0; background: rgba(255,255,255,.06); color: var(--paper); outline: none; transition: border-color .3s, background .3s; border-radius: var(--radius) 0 0 var(--radius); }
.newsletter__form input::placeholder { color: rgba(246,243,238,.55); }
.newsletter__form input:focus { border-color: var(--paper); background: rgba(255,255,255,.1); }
.newsletter__form .btn { min-height: 56px; border-radius: 0 var(--radius) var(--radius) 0; }
.newsletter__form .form-msg { flex-basis: 100%; }
.form-msg { font-size: 13px; margin: 12px 0 0; min-height: 1.4em; }
.form-msg.is-error { color: #e9a08f; }
.form-msg.is-ok { color: var(--accent-soft); }
.contact .form-msg.is-error { color: var(--danger); }
.contact .form-msg.is-ok { color: var(--accent); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 26px; }
.contact__list li { display: grid; grid-template-columns: 170px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact__list li span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact__list a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; justify-self: start; }
.contact__list a:hover { color: var(--accent); border-color: currentColor; }
.socials { display: flex; gap: 10px; margin-bottom: 50px; }
.socials a { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.faq__title { font-family: var(--serif); font-size: 30px; margin-bottom: 10px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item p { color: var(--muted); padding-bottom: 18px; margin: 0; animation: cardIn .5s var(--ease); }

.contact__form { background: var(--white); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.contact__form h3 { font-family: var(--serif); font-size: 34px; margin-bottom: 26px; }
.field { position: relative; margin-bottom: 22px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 26px 0 10px; outline: none; resize: vertical;
  transition: border-color .3s; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; }
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .3s var(--ease), font-size .3s var(--ease), color .3s, letter-spacing .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 2px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(246,243,238,.72); padding: clamp(70px, 9vw, 110px) 0 30px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .logo { font-size: 36px; margin-bottom: 18px; }
.footer__brand p { max-width: 340px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); margin-bottom: 8px; font-weight: 600; }
.footer__col a, .footer__col .link-btn { font-size: 14px; color: rgba(246,243,238,.72); text-decoration: none; transition: color .3s, transform .3s var(--ease); }
.footer__col a:hover, .footer__col .link-btn:hover { color: var(--paper); transform: translateX(4px); }
.footer__big { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 17vw, 260px); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(246,243,238,.16); text-align: center; margin: 60px 0 20px; white-space: nowrap; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; }
.footer__bottom p { margin: 0; }
.footer__pay { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__pay span { border: 1px solid var(--line-light); padding: 4px 10px; font-size: 11px; letter-spacing: .1em; }

/* ---------- Overlay / Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 250; background: rgba(10,10,9,.5); opacity: 0; transition: opacity .5s var(--ease); backdrop-filter: blur(2px); }
.overlay.is-visible { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300; width: min(460px, 100vw); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__tabs { display: flex; gap: 22px; }
.drawer__tab { font-family: var(--serif); font-size: 24px; color: var(--muted); position: relative; padding: 4px 0; }
.drawer__tab span { font-family: var(--sans); font-size: 12px; }
.drawer__tab.is-active { color: var(--ink); }
.drawer__tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--ink); }
.drawer__ship { padding: 16px 20px; background: var(--cream); font-size: 13px; }
.drawer__ship p { margin: 0 0 10px; }
.drawer__ship-bar { height: 3px; background: rgba(17,17,16,.1); overflow: hidden; }
.drawer__ship-bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .8s var(--ease); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); background: var(--white); }
.drawer__row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; }
.drawer__note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: cardIn .45s var(--ease) both; }
.line-item img { width: 84px; aspect-ratio: 4/5; object-fit: cover; background: var(--cream); cursor: pointer; }
.line-item__name { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; margin-bottom: 4px; }
.line-item__name:hover { color: var(--accent); }
.line-item__meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.line-item__side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.line-item__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-item__remove:hover { color: var(--danger); }
.line-item .btn--add { min-height: 36px; padding: 0 14px; font-size: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 36px; }
.qty button { width: 34px; height: 100%; font-size: 16px; transition: background .2s; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 28px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.drawer-empty { text-align: center; padding: 70px 10px; }
.drawer-empty svg { width: 48px; height: 48px; stroke-width: 1; color: var(--sand); margin: 0 auto 18px; }
.drawer-empty h4 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.drawer-empty p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- Search ---------- */
.search { position: fixed; inset: 0 0 auto 0; z-index: 320; background: var(--paper); max-height: 100svh; overflow-y: auto; transform: translateY(-100%); transition: transform .6s var(--ease); visibility: hidden; box-shadow: var(--shadow); }
.search.is-open { transform: none; visibility: visible; }
.search__inner { padding-top: 28px; padding-bottom: 40px; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.search__bar > svg { width: 26px; height: 26px; flex: 0 0 auto; }
.search__bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(26px, 4vw, 44px); outline: none; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__suggest { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 26px; font-size: 13px; color: var(--muted); }
.search__suggest button { border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; transition: background .3s, color .3s; }
.search__suggest button:hover { background: var(--ink); color: var(--paper); }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.search__results .sr { display: block; animation: cardIn .45s var(--ease) both; }
.search__results .sr img { aspect-ratio: 4/5; width: 100%; object-fit: cover; background: var(--cream); margin-bottom: 10px; transition: opacity .3s; }
.search__results .sr:hover img { opacity: .85; }
.search__results .sr p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.search__results .sr span { font-size: 13px; color: var(--muted); }
.search__results mark { background: rgba(168,129,74,.22); color: inherit; }
.search__empty { grid-column: 1 / -1; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal::before { content: ''; position: absolute; inset: 0; background: rgba(10,10,9,.6); opacity: 0; transition: opacity .4s var(--ease); }
.modal.is-open { visibility: visible; }
.modal.is-open::before { opacity: 1; }
.modal__dialog { position: relative; width: min(620px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--paper); padding: clamp(24px, 4vw, 44px); opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.modal__dialog--wide { width: min(1040px, 100%); padding: 0; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--paper); }
.modal__title { font-family: var(--serif); font-size: 36px; margin-bottom: 14px; padding-right: 40px; }
.modal__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.qv { display: grid; grid-template-columns: 1.05fr 1fr; }
.qv__media { background: var(--cream); }
.qv__zoom { overflow: hidden; aspect-ratio: 4/5; cursor: zoom-in; height: 100%; }
.qv__zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.qv__zoom.is-zoom img { transform: scale(1.8); }
.qv__info { padding: clamp(24px, 3.4vw, 46px); display: flex; flex-direction: column; }
.qv__title { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); margin-bottom: 10px; padding-right: 40px; }
.qv__price { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.qv__price s { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 15px; }
.qv__desc { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.qv__opt-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.qv__opt-head .link-btn { letter-spacing: 0; text-transform: none; font-weight: 400; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.size { min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line); font-size: 13px; transition: border-color .2s, background .2s, color .2s; }
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sizes.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.qv__actions { display: flex; gap: 10px; align-items: stretch; }
.qv__actions .qty { height: auto; }
.qv__add { flex: 1; }
.qv__wish { width: 52px; height: auto; border-radius: var(--radius); }
.qv__perks { list-style: none; padding: 22px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.qv__perks li::before { content: '✓'; color: var(--accent); margin-right: 10px; }

.sg__tabs { display: flex; gap: 8px; margin: 6px 0 14px; }
.sg__unit { display: flex; gap: 14px; align-items: center; font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.sg__table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sg__table th, .sg__table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sg__table th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sg__table tbody tr:hover { background: var(--cream); }

.co__summary { margin: 20px 0; border-top: 1px solid var(--line); }
.co__line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.co__line span:last-child { white-space: nowrap; }
.co__total { font-weight: 700; font-size: 16px; }
.co__actions { display: grid; gap: 10px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 500; display: grid; gap: 10px; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 12px 14px; box-shadow: var(--shadow); animation: toastIn .5s var(--ease) both; font-size: 14px; }
.toast img { width: 44px; height: 54px; object-fit: cover; flex: 0 0 auto; }
.toast__text { flex: 1; line-height: 1.4; }
.toast__text small { display: block; color: rgba(246,243,238,.6); font-size: 12px; }
.toast button { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent-soft); white-space: nowrap; }
.toast.is-out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { stroke: var(--line); stroke-width: 1.5; }
.to-top__ring .to-top__progress { stroke: var(--accent); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top__arrow { width: 18px; height: 18px; }
.to-top:hover .to-top__arrow { animation: nudge .6s var(--ease); }
@keyframes nudge { 50% { transform: translateY(-4px); } }

/* ---------- Collection pages ---------- */
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.page-hero { position: relative; min-height: clamp(440px, 62vh, 620px); display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); animation: heroZoom 1.6s var(--ease) both; }
@keyframes heroZoom { from { opacity: 0; transform: scale(1.25); } }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.85) 0%, rgba(10,10,9,.35) 55%, rgba(10,10,9,.55) 100%); }
.page-hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero__content > * { animation: cardIn .9s var(--ease) both; }
.page-hero__content > :nth-child(2) { animation-delay: .1s; } .page-hero__content > :nth-child(3) { animation-delay: .18s; }
.page-hero__content > :nth-child(4) { animation-delay: .26s; } .page-hero__content > :nth-child(5) { animation-delay: .34s; }
.page-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 112px); line-height: .95; letter-spacing: -.02em; margin-bottom: 18px; }
.page-hero__desc { max-width: 560px; color: rgba(246,243,238,.8); font-size: 17px; }
.page-hero__count { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px; color: var(--muted); }
.page-hero .breadcrumb { color: rgba(246,243,238,.65); }
.breadcrumb a { transition: color .25s; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb a:hover { color: var(--paper); }
.breadcrumb [aria-current] { color: inherit; opacity: .9; }
.page-hero .breadcrumb [aria-current] { color: var(--paper); }
.breadcrumb__sep { opacity: .5; }

a.chip { display: inline-flex; align-items: center; }
.filters--sub { margin-top: -6px; }
.filters--sub .chip { padding: 7px 16px; font-size: 12px; background: var(--paper); border-color: transparent; }
.filters--sub .chip:hover { border-color: var(--ink); }
.filters--sub .chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar .shop__meta { margin: 0; }
.toolbar__controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.view-toggle button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.view-toggle svg { width: 18px; height: 18px; stroke-width: 1.4; }
.empty a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.explore { background: var(--cream); }
.explore__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.explore__grid .col-card { aspect-ratio: 3/4; }
.explore__grid .col-card h3 { font-size: clamp(22px, 2vw, 30px); }
.explore__grid > :nth-child(2) { --d: .08s; } .explore__grid > :nth-child(3) { --d: .16s; } .explore__grid > :nth-child(4) { --d: .24s; }

/* ---------- Product page ---------- */
.pdp { padding: calc(var(--header-h) * .5) 0 clamp(48px, 6vw, 80px); }
.pdp .breadcrumb { margin: 24px 0 28px; }
.pdp__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__zoom { overflow: hidden; aspect-ratio: 4/5; background: var(--cream); cursor: zoom-in; }
.pdp__zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); animation: cardIn .8s var(--ease) both; }
.pdp__zoom.is-zoom img { transform: scale(1.8); }
.pdp__hint { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.pdp__info { padding-top: 6px; }
.pdp__info > * { animation: cardIn .8s var(--ease) both; }
.pdp__tags { display: flex; gap: 6px; margin-bottom: 16px; min-height: 1px; }
.tag--outline { background: transparent; border: 1px solid var(--line); }
.pdp__title { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 58px); font-weight: 400; line-height: 1.02; margin-bottom: 14px; }
.pdp__price { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.pdp__price s { color: var(--muted); font-weight: 400; margin-left: 10px; font-size: 16px; }
.pdp__desc { color: var(--muted); font-size: 16px; margin-bottom: 30px; max-width: 520px; }
.pdp__info .qv__opt-head strong { font-weight: 600; color: var(--accent); }
.pdp__info .qv__actions .qty { height: 52px; }
.pdp__info .qv__wish { height: 52px; }
.pdp__buy { margin-top: 10px; }
.pdp__share { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--muted); transition: color .2s; }
.pdp__share svg { width: 18px; height: 18px; }
.pdp__share:hover { color: var(--ink); }
.pdp__accordion { margin-top: 22px; border-top: 1px solid var(--line); }
.pdp__accordion ul { margin: 0; padding: 0 0 18px 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.pdp__accordion p { font-size: 14px; }
.related { background: var(--white); }
.recent { padding-top: 0; background: var(--white); }
.notfound { min-height: 60vh; padding-top: calc(var(--header-h) + 80px); }
.notfound p { color: var(--muted); margin: 18px 0 30px; }

.qv__more { display: inline-block; margin-top: 16px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.qv__more:hover { color: var(--ink); }

.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter); background: rgba(246,243,238,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -20px rgba(0,0,0,.3);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc img { width: 44px; height: 54px; object-fit: cover; }
.sticky-atc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sticky-atc__text strong { font-family: var(--serif); font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__text span { font-size: 13px; color: var(--muted); }
.sticky-atc .btn { min-height: 46px; padding: 0 22px; }
body:has(.sticky-atc.is-visible) .to-top { bottom: 92px; }

.lightbox { position: fixed; inset: 0; z-index: 450; background: rgba(10,10,9,.94); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 20px; }
  .header__text-link { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .view-toggle { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header__burger { display: inline-grid; justify-self: start; }
  .logo { font-size: 26px; }
  .collections__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(240px, 52vw); }
  .col-card--tall { grid-row: span 1; grid-column: span 2; }
  .story__grid, .fragrance__grid, .contact__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 620px; }
  .fragrance__visual { max-width: 520px; order: -1; }
  .services__grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .service:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .contact__form { position: static; }
  .qv { grid-template-columns: 1fr; }
  .qv__zoom { aspect-ratio: 1/1; }
  .modal__dialog--wide { width: min(560px, 100%); }
  .view-toggle { display: none; }
  .explore__grid { grid-template-columns: repeat(2, 1fr); }
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; max-width: 620px; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .card__actions { display: none; }
  .card__buy { min-height: 42px; font-size: 10px; letter-spacing: .14em; }
  .cat-row__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; gap: 12px;
    scroll-padding-inline: var(--gutter);
  }
  .cat-row__track::-webkit-scrollbar { display: none; }
  .cat-row__track .card { flex: 0 0 68%; scroll-snap-align: start; }
  .cat-row__foot .btn { width: 100%; min-width: 0; }
  .card__name { font-size: 18px; }
  .card__info { flex-direction: column; gap: 4px; }
  .price { text-align: left; }
  .price s { display: inline; margin-left: 6px; }
  .hero__arrows, .hero__scroll { display: none; }
  .hero__title { font-size: clamp(52px, 15vw, 80px); }
  .hero__text { font-size: 15px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat p { font-size: 12px; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .newsletter__form input { border-right: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); }
  .newsletter__form .btn { flex: 1 1 100%; margin-top: 10px; border-radius: var(--radius); }
  .story__stamp { width: 100px; height: 100px; top: -24px; }
  .story__stamp text { font-size: 8px; letter-spacing: 2px; }
  .fragrance__specs div { grid-template-columns: 100px 1fr; }
  .meter { flex-basis: 70px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__controls .select { flex: 1; }
  .toolbar__controls .select select { width: 100%; }
  .page-hero__desc { font-size: 15px; }
}
@media (max-width: 480px) {
  .collections__grid { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, 92vw); }
  .col-card--tall { grid-column: auto; }
  .services__grid { grid-template-columns: 1fr; }
  .service { border-left: 0; padding-left: 0; }
  .header__actions { gap: 0; }
  .header__actions .icon-btn { width: 40px; height: 40px; }
  #wishOpen { display: none; }
  .qv__add { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  .drawer__tab { font-size: 21px; }
}

@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; }
  .marquee__track { animation: none; }
}
