/* ==========================================================================
   NOIR — Intimate Wellness (bilingual EN / AR · RTL aware)
   Dark, sensual, premium. Rose-gold + wine palette.
   ========================================================================== */

:root {
  --bg:        #0d0a10;
  --bg-2:      #140f18;
  --surface:   #1a141e;
  --surface-2: #211823;
  --line:      rgba(216, 160, 122, .16);
  --line-soft: rgba(216, 160, 122, .08);

  --rose:      #d8a07a;   /* champagne rose gold */
  --rose-2:    #f0d2bc;
  --wine:      #8a3356;   /* deep rose */
  --wine-2:    #c96b8c;
  --gold:      #c9a24a;

  --text:      #f4eced;
  --muted:     #b6a3ab;
  --muted-2:   #8d7b84;

  --font-head: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "Inter", "Tajawal", "Segoe UI", sans-serif;

  --radius:    20px;
  --radius-sm: 14px;
  --shadow:    0 30px 60px -30px rgba(0, 0, 0, .8);
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* Arabic switches to an elegant naskh headline + geometric body */
html[dir="rtl"] {
  --font-head: "Amiri", "Cormorant Garamond", serif;
  --font-body: "Tajawal", "Inter", "Segoe UI", sans-serif;
}

/* ----------------------------- reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding-block: 96px; }

/* type helpers */
.eyebrow {
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose));
}
html[dir="rtl"] .eyebrow::before {
  background: linear-gradient(-90deg, transparent, var(--rose));
}
.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: .01em;
}
.section__subtitle { color: var(--muted); margin-top: 14px; max-width: 56ch; }

.section__head { margin-bottom: 52px; }
.section__head .section__subtitle { margin-inline: auto; }
.section__head { text-align: center; }

/* ----------------------------- buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), color .35s var(--ease), border-color .35s;
  white-space: nowrap;
}
.btn--gold {
  color: #1b0f16;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: 0 12px 34px -12px rgba(216, 160, 122, .55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(216, 160, 122, .7); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(216, 160, 122, .03);
}
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-2); }

/* ----------------------------- age gate ----------------------------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(138, 51, 86, .35), transparent 60%),
    radial-gradient(50% 70% at 90% 90%, rgba(201, 162, 74, .22), transparent 60%),
    #0b080d;
  transition: opacity .5s ease, visibility .5s ease;
}
.age-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.age-gate__card {
  max-width: 560px; text-align: center;
  background: rgba(26, 20, 30, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.age-gate__brand {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: .28em;
  margin-bottom: 8px;
  color: var(--rose-2);
}
.age-gate__tagline { font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.age-gate__body { color: var(--muted); margin: 18px auto 26px; max-width: 44ch; font-size: .95rem; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.age-gate__note { color: var(--muted-2); font-size: .8rem; margin-top: 20px; }
.rtl-line { display: block; direction: rtl; font-family: "Tajawal", "Inter", sans-serif; }
.age-gate__tagline .rtl-line, .age-gate__body .rtl-line { margin-top: 4px; }

/* ----------------------------- header ----------------------------- */
.announce {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 16px;
  color: #1b0f16;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose));
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }

.site-header { position: sticky; top: 0; z-index: 500; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand__mark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: .3em;
  color: var(--rose-2);
}
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: .9rem; letter-spacing: .06em; color: var(--muted);
  position: relative; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--rose);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; letter-spacing: .06em; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; transition: border-color .3s, color .3s;
}
.lang-switch:hover { border-color: var(--rose); color: var(--rose-2); }
.lang-switch__globe { font-size: 1rem; }

.cart {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .3s;
}
.cart:hover { border-color: var(--rose); }
.cart__icon { font-size: 1.1rem; }
.cart__count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 600;
  color: #1b0f16; background: var(--rose); border-radius: 999px;
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--text); transition: .3s; }

/* ----------------------------- hero ----------------------------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 120px) 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 10, 16, 0), var(--bg) 92%),
    radial-gradient(90% 80% at 80% 0%, rgba(138, 51, 86, .28), transparent 60%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero__glow--a { width: 480px; height: 480px; top: -120px; inset-inline-end: -100px; background: rgba(138, 51, 86, .55); }
.hero__glow--b { width: 380px; height: 380px; bottom: 40px; inset-inline-start: -140px; background: rgba(201, 162, 74, .28); }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 48px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: .01em;
}
.hero__title span { display: block; }
.hero__title-accent {
  font-style: italic; font-weight: 500;
  background: linear-gradient(120deg, var(--rose), var(--gold), var(--rose-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { color: var(--muted); max-width: 46ch; margin-top: 26px; font-size: 1.06rem; }
.hero__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.emblem { position: relative; width: min(320px, 80%); aspect-ratio: 1; display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.emblem__ring--1 { inset: 0; border-color: rgba(216,160,122,.35); }
.emblem__ring--2 { inset: 13%; border-color: rgba(201,162,74,.3); }
.emblem__ring--3 { inset: 28%; background: radial-gradient(circle, rgba(138,51,86,.55), rgba(138,51,86,.05) 70%); border-color: rgba(216,160,122,.3); }
.emblem__letter {
  font-family: var(--font-head); font-size: 6rem; font-style: italic;
  color: var(--rose-2); text-shadow: 0 0 40px rgba(216,160,122,.5);
}
.hero__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(48px, 7vw, 90px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--line-soft); overflow: hidden;
}
.stat { background: rgba(20, 15, 24, .92); padding: 26px 22px; text-align: center; }
.stat__value {
  display: block; font-family: var(--font-head); font-size: 2rem; color: var(--rose-2);
}
.stat__label { color: var(--muted); font-size: .82rem; letter-spacing: .05em; }

/* ----------------------------- benefits ----------------------------- */
.benefits { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
.benefit { background: var(--bg-2); padding: 34px 28px; }
.benefit__icon { color: var(--rose); font-size: 1.4rem; }
.benefit h3 { font-family: var(--font-head); font-size: 1.28rem; margin: 14px 0 8px; font-weight: 600; }
.benefit p { color: var(--muted); font-size: .9rem; }

/* ----------------------------- collections ----------------------------- */
.collections__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; overflow: hidden;
  min-height: 340px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--c1), var(--c2));
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-card::before {
  content: attr(data-char);
  position: absolute; inset-inline-end: -8px; bottom: -30px;
  font-family: var(--font-head); font-style: italic;
  font-size: 13rem; line-height: 1; color: rgba(255,255,255,.08);
  z-index: -1;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,10,16,.82));
  z-index: -1;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(0,0,0,.9); }
.cat-card__body { padding: 24px 26px; }
.cat-card__body h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.cat-card__body span {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-2);
  opacity: 0; transform: translateY(6px); transition: .35s var(--ease);
}
.cat-card:hover .cat-card__body span { opacity: 1; transform: translateY(0); }

/* ----------------------------- products ----------------------------- */
.products { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.card__media {
  position: relative; aspect-ratio: 4 / 4.4; overflow: hidden;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  display: grid; place-items: center;
}
.card__media::before {
  content: attr(data-char);
  font-family: var(--font-head); font-style: italic;
  font-size: 8rem; color: rgba(255,255,255,.1);
  transition: transform .6s var(--ease);
}
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 30% 20%, rgba(255,255,255,.16), transparent 60%);
}
.card:hover .card__media::before { transform: scale(1.15) rotate(-6deg); }
.card__badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  color: #1b0f16; background: var(--rose);
}
.card__badge--alt { background: var(--gold); }
.card__quick {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 2;
  padding: 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text); background: rgba(13,10,16,.6); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px);
  transition: .4s var(--ease);
}
.card:hover .card__quick { opacity: 1; transform: translateY(0); }
.card__quick:hover { background: var(--rose); color: #1b0f16; border-color: var(--rose); }
.card__body { padding: 20px 22px 22px; }
.card__body h3 { font-family: var(--font-head); font-size: 1.24rem; font-weight: 600; line-height: 1.3; }
.card__body p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-weight: 500; color: var(--rose-2); font-size: 1.05rem; }
.stars { color: var(--gold); font-size: .8rem; letter-spacing: 2px; }

/* ----------------------------- story ----------------------------- */
.story__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.story__visual { position: relative; }
.story__panel {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(70% 60% at 70% 20%, rgba(216,160,122,.25), transparent 60%),
    linear-gradient(160deg, #2a1020, #5e1f3a);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.story__panel::before {
  content: attr(data-char);
  font-family: var(--font-head); font-style: italic; font-size: 12rem;
  color: rgba(255,255,255,.07);
}
.story__panel-line {
  position: absolute; inset: 20px; border: 1px solid rgba(216,160,122,.25); border-radius: calc(var(--radius) - 8px);
}
.story__body { color: var(--muted); margin-top: 18px; max-width: 56ch; }
.story__points { margin: 24px 0 30px; display: grid; gap: 12px; }
.story__points li { position: relative; padding-inline-start: 28px; color: var(--muted); }
.story__points li::before {
  content: "✦"; position: absolute; inset-inline-start: 0; color: var(--rose);
}

/* ----------------------------- testimonials ----------------------------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px 28px;
}
.quote blockquote { font-family: var(--font-head); font-size: 1.28rem; line-height: 1.5; color: var(--text); font-weight: 500; }
.quote figcaption { margin-top: 20px; display: grid; }
.quote__name { color: var(--rose-2); font-weight: 500; }
.quote__role { color: var(--muted-2); font-size: .82rem; }

/* ----------------------------- newsletter ----------------------------- */
.newsletter { text-align: center; }
.newsletter__inner {
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(138,51,86,.4), transparent 60%),
    radial-gradient(50% 90% at 90% 100%, rgba(201,162,74,.25), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.newsletter__subtitle { color: var(--muted); max-width: 48ch; margin: 14px auto 30px; }
.newsletter__form { display: flex; gap: 12px; max-width: 480px; margin-inline: auto; }
.newsletter__form input {
  flex: 1; padding: 15px 22px; border-radius: 999px;
  background: rgba(13,10,16,.5); border: 1px solid var(--line);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .3s;
}
.newsletter__form input::placeholder { color: var(--muted-2); }
.newsletter__form input:focus { border-color: var(--rose); }
.newsletter__note { color: var(--muted-2); font-size: .8rem; margin-top: 18px; }

/* ----------------------------- footer ----------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: #0a070c; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand--footer { font-size: 1.4rem; letter-spacing: .3em; color: var(--rose-2); margin-bottom: 14px; }
.footer__brand p { color: var(--muted); max-width: 30ch; font-size: .9rem; }
.footer__col h4 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 16px; color: var(--text); }
.footer__col a { display: block; color: var(--muted); font-size: .9rem; padding-block: 6px; transition: color .3s; }
.footer__col a:hover { color: var(--rose-2); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: .82rem;
}

/* ----------------------------- reveal on scroll ----------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 300px; order: -1; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .collections__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .story__inner { grid-template-columns: 1fr; gap: 40px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding-block: 68px; }
  .nav__links {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: rgba(13,10,16,.97); border-block: 1px solid var(--line-soft);
    padding: 12px 0; transform-origin: top;
    transform: scaleY(0); opacity: 0; transition: .3s var(--ease);
  }
  .nav__links.is-open { transform: scaleY(1); opacity: 1; }
  .nav__links a { padding: 14px 24px; }
  .nav__toggle { display: flex; }
  .benefits__grid { grid-template-columns: 1fr; }
  .collections__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   AMBIENCE BOOST — deeper mood: vignette, film grain, glow breathe, sparkles
   ========================================================================== */
.ambience {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(138, 51, 86, .12), transparent 55%),
    radial-gradient(ellipse at center, transparent 52%, rgba(4, 2, 5, .9) 100%);
}
main, .site-footer { position: relative; z-index: 1; }

.noise {
  position: fixed; inset: 0; z-index: 3000; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* brand — 夜色 wordmark */
.brand__mark { letter-spacing: .12em; }
.nav .brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.brand__sub { font-size: .58rem; letter-spacing: .46em; color: var(--muted-2); }
.brand--footer { letter-spacing: .1em; }
.brand--footer .brand__sub { margin-inline-start: 10px; letter-spacing: .32em; }
.age-gate__brand { letter-spacing: .14em; }
.age-gate__brand-sub { font-size: .72rem; letter-spacing: .5em; color: var(--muted-2); margin: 2px 0 8px; }

/* hero glows — breathe + third layer */
.hero__glow { animation: breathe 9s ease-in-out infinite; }
.hero__glow--a { background: rgba(138, 51, 86, .6); opacity: .65; }
.hero__glow--b { background: rgba(201, 162, 74, .32); }
.hero__glow--c {
  width: 440px; height: 440px; top: 16%; inset-inline-start: 28%;
  background: rgba(201, 107, 140, .38); opacity: .42; animation-delay: 3s;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.14); opacity: .8; }
}

/* sparkles */
.sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkle {
  position: absolute; width: var(--s, 2px); height: var(--s, 2px);
  border-radius: 50%; background: #f0d2bc;
  box-shadow: 0 0 8px rgba(240, 210, 188, .85);
  opacity: 0; animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.5); }
  50% { opacity: .9; transform: translateY(-16px) scale(1); }
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(5, 3, 6, .62); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: .3s ease;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(420px, 92vw); z-index: 900;
  background: var(--surface); border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.7);
}
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); box-shadow: 30px 0 60px -30px rgba(0,0,0,.7); }
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--line-soft);
}
.cart-drawer__head h3 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; }
.cart-drawer__close { color: var(--muted); font-size: 1.05rem; transition: color .3s; }
.cart-drawer__close:hover { color: var(--rose-2); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-drawer__empty { color: var(--muted); text-align: center; padding: 44px 0; }
.cart-drawer__foot { border-top: 1px solid var(--line-soft); padding: 20px 24px; display: grid; gap: 12px; }
.cart-line { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); }
.cart-line span:last-child { color: var(--text); }
.cart-drawer__checkout { width: 100%; }
.cart-drawer__continue { color: var(--muted); text-decoration: underline; font-size: .85rem; }

.cart-item { display: flex; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line-soft); }
.cart-item__thumb {
  width: 58px; height: 66px; border-radius: 10px; flex: none; position: relative;
  overflow: hidden;
}
.cart-item__thumb::before {
  content: attr(data-char); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-style: italic; font-size: 1.6rem; color: rgba(255,255,255,.42);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.cart-item__price { color: var(--rose-2); font-size: .9rem; }
.cart-item__qty {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.cart-item__qty button { width: 20px; color: var(--rose-2); font-size: 1rem; }
.cart-item__remove { color: var(--muted-2); font-size: .95rem; transition: color .3s; }
.cart-item__remove:hover { color: var(--wine-2); }

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout { padding-block: 44px 84px; }
.checkout__back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 14px; transition: color .3s; }
.checkout__back:hover { color: var(--rose-2); }
.checkout__title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 34px; }
.checkout__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.checkout__heading { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; }
.checkout__form, .checkout__summary {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(13, 10, 16, .5); border: 1px solid var(--line);
  color: var(--text); font: inherit; outline: none; transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); }
.field select { appearance: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cod-box {
  display: flex; gap: 14px; padding: 16px 18px; margin: 22px 0;
  border: 1px solid rgba(201, 162, 74, .32); background: rgba(201, 162, 74, .06);
  border-radius: 14px;
}
.cod-box__icon { font-size: 1.6rem; color: var(--gold); line-height: 1.1; }
.cod-box__body strong { color: var(--rose-2); font-weight: 600; }
.cod-box__body p { color: var(--muted); font-size: .88rem; }
.cod-box__wa { margin-top: 6px; color: var(--gold); }
.checkout__submit { width: 100%; }

.summary-items { display: grid; gap: 12px; margin-bottom: 22px; }
.summary-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.sum-item { display: flex; gap: 12px; align-items: center; }
.sum-item__thumb { width: 48px; height: 56px; border-radius: 8px; flex: none; }
.sum-item__info { flex: 1; min-width: 0; }
.sum-item__name { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
.sum-item__qty { color: var(--muted); font-size: .82rem; }
.sum-item__price { color: var(--rose-2); font-size: .9rem; white-space: nowrap; }
.summary-lines { display: grid; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.cart-line--total { font-size: 1.05rem; font-weight: 500; color: var(--text); }
.cart-line--total span:last-child { color: var(--rose-2); font-size: 1.12rem; }

.checkout__success { display: grid; place-items: center; padding-block: 40px; }
.success-card {
  text-align: center; max-width: 520px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 46px 34px;
}
.success-card__mark {
  width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #1b0f16; font-size: 1.8rem;
}
.success-card h2 { font-family: var(--font-head); font-size: 2rem; }
.success-card p { color: var(--muted); margin-top: 12px; }
.success-card__cod { color: var(--gold); font-weight: 500; }
.success-card .btn { margin-top: 26px; }
.footer__bottom--single { justify-content: center; text-align: center; }

@media (max-width: 860px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WHATSAPP — floating contact button + order confirmation
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 700;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: #25D366;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 40px -10px rgba(37, 211, 102, .75); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.75); opacity: 0; }
}

.btn--whatsapp {
  color: #fff; background: #25D366;
  box-shadow: 0 12px 34px -12px rgba(37, 211, 102, .6);
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(37, 211, 102, .72); }

.success-card__wa-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.success-card__wa-opened { font-size: .85rem; color: var(--muted-2); margin-top: 10px; }
.success-card .btn--whatsapp { margin-top: 18px; }

/* utility */
.hidden { display: none !important; }
