/* =========================================================
   Parfumerie La Comtesse — midnight vanity
   Tokens, base, components, RTL-first
   ========================================================= */

:root {
  --bg: #0D0C10;
  --bg-elev: #141218;
  --bg-soft: #1C1A22;
  --ink: #FFFDF9;
  --muted: #A69F95;
  --gold: #D4AF37;
  --gold-soft: #E4C978;
  --gold-ink: #0D0C10;
  --rose: #B98A8A;
  --max: 1560px;
  --pad: clamp(20px, 4.2vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --sect: clamp(92px, 12vw, 190px);
  --font-display: 'Alexandria', 'Cairo', system-ui, sans-serif;
  --font-body: 'Cairo', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 84px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked, html.is-locked body { overflow: hidden; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
dialog { color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }

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

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 12px 20px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* film grain — one real texture over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 7.4rem); line-height: 1.04; }
h2 { font-size: clamp(2.15rem, 4.9vw, 4.4rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.25; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.7; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.6; }
.gold { color: var(--gold); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--sect); position: relative; }
.section--soft { background: var(--bg-soft); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-block-end: clamp(40px, 5vw, 76px);
}
.section-head .lead { max-width: 46ch; justify-self: start; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 15px 30px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 0;
  border-radius: 0;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.975); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: var(--bg-soft); color: var(--ink); }
.btn--ghost:hover { background: #26232d; }
.btn--small { min-height: 46px; padding: 12px 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  padding-block: 8px;
  border-bottom: 1px solid var(--gold);
  transition: color .3s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover svg { transform: translateX(-4px); }
[dir="ltr"] .link-arrow:hover svg { transform: translateX(4px); }

.icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { color: var(--gold); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .45s var(--ease), height .45s var(--ease);
}
.nav[data-scrolled="true"] { background: var(--bg); height: 70px; }
.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .32em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.2;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  margin-inline-start: auto;
}
.nav__link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 8px;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: 12px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}
.cart-count[data-empty="true"] { display: none; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav__actions { margin-inline-start: auto; }
  .brand__name { font-size: 1rem; }
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
}
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu[aria-hidden="false"] { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 600;
  padding-block: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.mobile-menu a svg { width: 22px; height: 22px; color: var(--gold); }
.mobile-menu__foot { margin-block-start: auto; display: grid; gap: 16px; color: var(--muted); }
.mobile-menu__close { position: absolute; inset-block-start: 18px; inset-inline-end: var(--pad); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 48px) 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  width: 100%;
}
.hero__copy { position: relative; z-index: 3; max-width: 720px; }
.hero h1 { margin-block-end: 26px; }
.hero h1 span { display: block; overflow: hidden; }
.hero h1 span > span { display: block; }
.hero__sub {
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-block-start: clamp(28px, 4vw, 44px);
}
.hero__note {
  margin-block-start: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--muted);
  font-size: .88rem;
}
.hero__note span { display: inline-flex; align-items: center; gap: 9px; }
.hero__note svg { width: 15px; height: 15px; color: var(--gold); }

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 560px);
  aspect-ratio: 4 / 5;
  z-index: 2;
}
.hero__aura { position: absolute; inset: -12% -18%; width: 136%; height: 124%; z-index: 3; pointer-events: none; }
.hero__flacon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 48%, #000 58%, transparent 80%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 48%, #000 58%, transparent 80%);
  filter: contrast(1.06) brightness(.96) saturate(1.05);
  will-change: transform;
}
.hero__caption {
  position: absolute;
  inset-block-end: 2%;
  inset-inline-start: 4%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__caption strong {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
}
.hero__caption span { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.hero__scroll {
  position: absolute;
  inset-block-end: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .08em;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--gold);
  transform-origin: top;
  animation: scrollLine 2.6s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 56px) 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__copy { order: 1; }
  .hero__visual { order: 2; width: min(100%, 440px); aspect-ratio: 1 / 1; margin-block-start: 8px; }
  .hero__scroll { display: none; }
  .hero__caption { inset-block-end: 0; }
}

/* ---------- marquee ---------- */
.houses {
  background: var(--bg-soft);
  padding-block: 22px;
  overflow: hidden;
  position: relative;
}
.houses__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.houses:hover .houses__track { animation-play-state: paused; }
.houses__group { display: flex; align-items: center; flex: none; }
.houses__item {
  font-family: var(--font-display);
  font-size: clamp(.9rem, 1.15vw, 1.05rem);
  font-weight: 500;
  color: var(--muted);
  padding-inline: clamp(22px, 3vw, 46px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
}
.houses__item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .houses__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal[data-delay="1"].is-in { transition-delay: .08s; }
.reveal[data-delay="2"].is-in { transition-delay: .16s; }
.reveal[data-delay="3"].is-in { transition-delay: .24s; }
.reveal[data-delay="4"].is-in { transition-delay: .32s; }
.reveal-img { overflow: hidden; }
.js .reveal-img img { transform: scale(1.06); transition: transform 1.3s var(--ease); }
.js .reveal-img.is-in img { transform: scale(1); }

/* ---------- makeup ---------- */
.makeup { overflow: hidden; }
.makeup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 26px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block-end: 4px;
  scrollbar-width: none;
  max-width: 100%;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  padding: 9px 16px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.filter:hover { color: var(--ink); background: #201d26; }
.filter:active { color: var(--ink); background: #2b2733; transform: scale(.97); }
.filter[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.rail-nav { display: flex; gap: 6px; flex: none; }
.rail-nav .icon-btn { background: var(--bg-elev); }
.rail-nav .icon-btn:hover { background: #26232d; color: var(--gold); }
.rail-nav .icon-btn[disabled] { opacity: .35; cursor: default; }

.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: var(--pad);
  padding-block-end: 10px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

.product-card {
  width: clamp(268px, 27vw, 410px);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  transition: background-color .45s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
.product-card[hidden] { display: none; }
.product-card:hover { background: #19161f; }
.product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #131118;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
  filter: saturate(.94) brightness(.94);
}
.product-card:hover .product-media img { transform: scale(1.045); filter: saturate(1.03) brightness(1); }
.product-media__tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  background: var(--bg);
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
  padding: 6px 12px;
  line-height: 1.4;
}
.product-media__view {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.product-media__view svg { width: 17px; height: 17px; }
.product-card:hover .product-media__view,
.product-card:focus-within .product-media__view { opacity: 1; transform: none; }
.product-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-brand {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-brand span { color: var(--muted); font-weight: 400; font-size: .74rem; }
.product-name { font-weight: 700; font-size: 1.18rem; }
.product-use { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 10px;
}
.price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.price small { font-weight: 400; font-size: .72rem; color: var(--muted); margin-inline-start: 3px; }
.price del { color: var(--muted); font-weight: 400; font-size: .8rem; margin-inline-end: 6px; }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.add-btn svg { width: 14px; height: 14px; }
.add-btn:hover { background: var(--gold); color: var(--gold-ink); }
.add-btn:active { transform: scale(.95); }
.add-btn.is-added { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 560px) {
  .product-card { width: 82vw; }
}

/* makeup editorial strip */
.makeup__foot {
  margin-block-start: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.makeup__foot p { max-width: 54ch; color: var(--muted); }

/* ---------- split pavilions ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-block-start: 8px;
}
.split__panel {
  position: relative;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.split__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(.82) saturate(.98);
  transition: filter .7s var(--ease);
  will-change: transform;
}
.split__panel:hover .split__media img { filter: brightness(1) saturate(1.04); }
.split__body {
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
}
.split__word {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: .95;
  font-weight: 700;
}
.split__body p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.split__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-block: 4px 8px;
}
.note-chip {
  font-size: .74rem;
  color: var(--gold);
  background: rgba(212, 175, 55, .09);
  padding: 5px 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.split__body .link-arrow { margin-block-start: auto; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 6px; }
  .split__media { aspect-ratio: 16 / 10; }
}

/* ---------- collections ---------- */
.collection { padding-block: clamp(64px, 8vw, 120px); }
.collection__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 34px;
  flex-wrap: wrap;
}
.collection__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.collection__title h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.collection__title span { color: var(--muted); font-size: .86rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.product-grid .product-card { width: auto; }
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-grid .product-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    align-items: stretch;
  }
  .product-grid .product-media { aspect-ratio: 1 / 1.15; height: 100%; }
  .product-grid .product-body { padding: 16px 16px 18px; }
  .product-grid .product-use { font-size: .82rem; }
  .product-grid .product-media__view { display: none; }
  .product-grid .product-brand { font-size: .72rem; }
  .product-grid .product-name { font-size: 1.05rem; }
  .product-grid .price { font-size: .98rem; }
  .product-grid .add-btn { padding: 8px 11px; font-size: .76rem; }
}

/* ---------- vault ---------- */
.vault { background: var(--bg-soft); overflow: hidden; }
.vault__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: var(--gap);
  align-items: stretch;
}
.vault-feature {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.vault-feature__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}
.vault-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.vault-feature:hover .vault-feature__media img { transform: scale(1.04); }
.vault-feature__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.vault-feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.vault-feature__body h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.vault-feature__body p { color: var(--muted); max-width: 48ch; }
.vault-feature__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-block-start: auto;
  padding-block-start: 16px;
  flex-wrap: wrap;
}
.vault-list { display: flex; flex-direction: column; gap: var(--gap); }
.vault-item {
  background: var(--bg);
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  transition: background-color .4s var(--ease);
}
.vault-item:hover { background: var(--bg-elev); }
.vault-item__media { overflow: hidden; height: 100%; }
.vault-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 190px;
  transition: transform 1s var(--ease);
}
.vault-item:hover .vault-item__media img { transform: scale(1.05); }
.vault-item__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.vault-item__body h4 { font-size: 1.12rem; font-family: var(--font-display); }
.vault-item__body p { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.vault-item__body .note-chip { align-self: flex-start; margin-block-start: 4px; }
.vault-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: 10px; flex-wrap: wrap; }
.vault-item__foot .add-btn { min-height: 36px; padding: 8px 12px; font-size: .78rem; }
.vault__seal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-start: clamp(36px, 4vw, 56px);
  color: var(--muted);
  font-size: .9rem;
  flex-wrap: wrap;
}
.vault__seal svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
@media (max-width: 940px) {
  .vault__grid { grid-template-columns: 1fr; }
  .vault-feature__media { aspect-ratio: 16 / 10; }
  .vault-list { display: grid; grid-template-columns: 1fr 1fr; }
  .vault-item { grid-template-columns: 40% 1fr; }
}
@media (max-width: 640px) {
  .vault-list { grid-template-columns: 1fr; }
}

/* ---------- scent atelier (quiz) ---------- */
.atelier { position: relative; overflow: hidden; }
.atelier__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.atelier__intro .lead { margin-block: 20px 26px; max-width: 42ch; }
.atelier__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
}
.atelier__image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); }
.atelier__card {
  background: var(--bg-elev);
  padding: clamp(22px, 3.4vw, 44px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.quiz__progress { display: flex; align-items: center; gap: 12px; margin-block-end: 26px; }
.quiz__step-label { font-size: .8rem; color: var(--muted); }
.quiz__dots { display: flex; gap: 6px; }
.quiz__dot { width: 26px; height: 4px; background: #2a2731; }
.quiz__dot.is-done { background: var(--gold); }
.quiz__question { font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-weight: 700; font-family: var(--font-display); line-height: 1.3; margin-block-end: 22px; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__opt {
  text-align: start;
  padding: 16px 18px;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.quiz__opt strong { font-size: .98rem; font-weight: 700; }
.quiz__opt span { font-size: .76rem; color: var(--muted); line-height: 1.5; transition: color .3s var(--ease); }
.quiz__opt:hover { background: #201d26; transform: translateY(-2px); }
.quiz__opt[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.quiz__opt[aria-pressed="true"] span { color: rgba(13, 12, 16, .72); }
.quiz__nav { margin-block-start: auto; padding-block-start: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.quiz__back { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.quiz__back:hover { color: var(--ink); }
.quiz__back svg { width: 15px; height: 15px; }
.quiz__result { display: none; gap: 20px; }
.quiz__result.is-active { display: grid; grid-template-columns: 40% 1fr; align-items: start; }
.quiz__result img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quiz__result h4 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; margin-block: 4px 8px; }
.quiz__result p { color: var(--muted); font-size: .88rem; }
.quiz__result .note-chip { margin-block: 12px 0; }
.quiz__result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 18px; }
.quiz__restart { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.quiz__restart:hover { color: var(--ink); }
.quiz__body.is-hidden { display: none; }
@media (max-width: 980px) {
  .atelier__grid { grid-template-columns: 1fr; }
  .atelier__image { aspect-ratio: 16 / 10; }
  .atelier__card { min-height: 0; }
}
@media (max-width: 520px) {
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__result.is-active { grid-template-columns: 1fr; }
  .quiz__result img { max-width: 220px; }
}

/* ---------- coffret ---------- */
.coffret { background: var(--bg-soft); }
.coffret__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}
.coffret__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.coffret__media img { width: 100%; height: 100%; object-fit: cover; }
.coffret__body h2 { margin-block-end: 18px; }
.coffret__body p { color: var(--muted); max-width: 48ch; }
.coffret__list { display: grid; gap: 10px; margin-block: 24px; }
.coffret__list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.coffret__list svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.coffret__buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.coffret__buy .price { font-size: 1.5rem; }
@media (max-width: 820px) {
  .coffret__inner { grid-template-columns: 1fr; }
  .coffret__media { aspect-ratio: 16 / 10; }
}

/* ---------- faq ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}
.faq__intro .lead { margin-block-start: 18px; max-width: 34ch; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item { background: var(--bg-elev); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 18px; height: 18px; color: var(--gold); flex: none; transition: transform .35s var(--ease); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item[open] summary { color: var(--gold); }
.faq__answer { padding: 0 24px 24px; color: var(--muted); font-size: .94rem; line-height: 1.85; max-width: 62ch; }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
}

/* ---------- concierge ---------- */
.concierge { background: var(--bg-soft); }
.concierge__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.concierge__intro .lead { margin-block: 18px 30px; max-width: 42ch; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 0;
  padding: 14px 16px;
  min-height: 52px;
  color: var(--ink);
  font-size: .95rem;
  transition: background-color .3s var(--ease), outline-color .3s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A69F95' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-inline-end: 42px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6878; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; background: #121016; }
.field__hint { font-size: .74rem; color: var(--muted); }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-block-start: 4px; }
.form__note { color: var(--muted); font-size: .78rem; max-width: 34ch; }
.form-status { display: none; padding: 14px 16px; font-size: .88rem; line-height: 1.6; }
.form-status.is-error { display: block; background: #2a1417; color: #f3b6bb; }
.form-status.is-success { display: block; background: rgba(212, 175, 55, .12); color: var(--gold-soft); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contact-card { background: var(--bg); padding: clamp(24px, 3vw, 38px); }
.contact-card__media { aspect-ratio: 16 / 10; overflow: hidden; margin-block-end: 26px; }
.contact-card__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.contact-list { display: grid; gap: 20px; }
.contact-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.contact-item svg { width: 19px; height: 19px; color: var(--gold); margin-block-start: 4px; }
.contact-item dt { font-size: .74rem; color: var(--muted); margin-block-end: 2px; }
.contact-item dd { margin: 0; font-size: .95rem; line-height: 1.65; }
.contact-item dd a:hover { color: var(--gold); }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.contact-card .btn { margin-block-start: 26px; }
.contact-card__temp { margin-block-start: 14px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
@media (max-width: 940px) {
  .concierge__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer { padding-block: clamp(56px, 7vw, 100px) 30px; border-top: 0; background: var(--bg); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .62fr));
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.footer__brand p { color: var(--muted); max-width: 34ch; margin-block-start: 18px; font-size: .92rem; }
.footer__col h3 { font-size: .8rem; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin-block-end: 14px; letter-spacing: 0; }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { color: var(--ink); font-size: .92rem; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--gold); }
.footer__word {
  margin-block: clamp(50px, 8vw, 110px) 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12.5vw, 13rem);
  line-height: .85;
  color: var(--bg-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .76rem;
  padding-block-start: 24px;
}
.footer__bottom div { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--gold); }
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--wide { grid-column: 1 / -1; }
}

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 110;
  width: min(460px, 100%);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
}
[dir="rtl"] .drawer { transform: translateX(-102%); }
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-elev);
}
.drawer__head h2 { font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
.cart-empty { padding: 48px 0; text-align: center; display: grid; gap: 18px; justify-items: center; color: var(--muted); }
.cart-empty svg { width: 42px; height: 42px; color: var(--gold); }
.cart-line { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding-block: 16px; }
.cart-line + .cart-line { border-top: 1px solid rgba(255, 253, 249, .08); }
.cart-line img { width: 74px; height: 92px; object-fit: cover; }
.cart-line h3 { font-size: .95rem; font-family: var(--font-display); line-height: 1.35; }
.cart-line .cart-brand { font-size: .7rem; color: var(--gold); margin-block: 2px 6px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: 8px; }
.qty { display: inline-flex; align-items: center; background: var(--bg); }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { color: var(--gold); }
.qty button svg { width: 13px; height: 13px; }
.qty span { min-width: 26px; text-align: center; font-size: .85rem; font-weight: 700; }
.cart-remove { font-size: .72rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-remove:hover { color: #f3b6bb; }
.drawer__foot { padding: 20px 24px 26px; background: var(--bg-soft); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-block-end: 16px; }
.cart-total span { color: var(--muted); font-size: .86rem; }
.cart-total strong { font-size: 1.35rem; }
.cart-total small { font-size: .78rem; color: var(--muted); font-weight: 400; }
.checkout { display: none; gap: 12px; margin-block-start: 18px; }
.checkout.is-active { display: grid; }
.checkout .form__row { gap: 10px; }
.checkout .field input, .checkout .field textarea { min-height: 46px; padding: 11px 13px; font-size: .88rem; }
.checkout .field textarea { min-height: 76px; }
.drawer__back { font-size: .8rem; color: var(--muted); margin-block-end: 12px; display: inline-flex; align-items: center; gap: 6px; }
.drawer__back:hover { color: var(--ink); }
.order-success { display: none; text-align: center; padding: 32px 4px; gap: 14px; }
.order-success.is-active { display: grid; justify-items: center; }
.order-success svg { width: 46px; height: 46px; color: var(--gold); }
.order-success h3 { font-family: var(--font-display); font-size: 1.3rem; }
.order-success p { color: var(--muted); font-size: .9rem; }
.order-success .order-ref { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); }

/* ---------- dialog / product detail ---------- */
.product-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(92svh, 860px);
  padding: 0;
  border: 0;
  background: var(--bg-elev);
  color: var(--ink);
  overflow: auto;
}
.product-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.product-dialog[open] { animation: dialogIn .45s var(--ease); }
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.dialog__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.dialog__media { position: relative; min-height: 340px; background: #131118; }
.dialog__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dialog__body { padding: clamp(24px, 4vw, 46px); display: flex; flex-direction: column; gap: 12px; }
.dialog__close { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; background: var(--bg); }
.dialog__brand { color: var(--gold); font-size: .8rem; font-weight: 700; }
.dialog__body h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.dialog__use { color: var(--muted); font-size: .95rem; line-height: 1.8; }
.dialog__notes { display: grid; gap: 8px; margin-block: 8px; }
.dialog__note-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: .86rem; }
.dialog__note-row dt { color: var(--muted); }
.dialog__note-row dd { margin: 0; color: var(--ink); }
.dialog__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-block-start: 8px; }
.dialog__price { font-size: 1.5rem; font-weight: 700; }
.dialog__price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.dialog__size { font-size: .82rem; color: var(--muted); }
.dialog__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-block-start: 14px; }
.dialog__fine { color: var(--muted); font-size: .76rem; line-height: 1.6; margin-block-start: 4px; }
@media (max-width: 760px) {
  .dialog__grid { grid-template-columns: 1fr; }
  .dialog__media { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  inset-block-end: 24px;
  left: 50%;
  right: auto;
  transform: translate(-50%, calc(100% + 48px));
  z-index: 140;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(430px, calc(100vw - 32px));
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; flex: none; color: var(--gold); }

/* ---------- whatsapp ---------- */
.wa {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 13px 18px;
  min-height: 52px;
  font-size: .84rem;
  font-weight: 700;
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.wa:hover { background: var(--gold-soft); transform: translateY(-3px); }
.wa svg { width: 20px; height: 20px; }
.wa span { display: inline; }
@media (max-width: 560px) {
  .wa { inset-block-end: 16px; inset-inline-end: 16px; padding: 13px; }
  .wa span { display: none; }
}

/* ---------- misc pages ---------- */
.page-hero { padding-block: calc(var(--nav-h) + 80px) 60px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.prose { padding-block: 40px clamp(60px, 8vw, 110px); max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-block: 34px 12px; }
.prose p, .prose li { color: var(--muted); line-height: 1.9; }
.prose ul { display: grid; gap: 8px; margin-block: 12px; padding-inline-start: 18px; list-style: disc; }
.prose a { color: var(--gold); }
.error-page { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-block: calc(var(--nav-h) + 40px) 80px; }
.error-page h1 { font-size: clamp(3.4rem, 12vw, 9rem); line-height: 1; }
.error-page p { color: var(--muted); margin-block: 18px 30px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img img { transform: none; }
  .hero__scroll i { display: none; }
}