/* ==========================================================
   LUBAN & MUSK — identity v2
   Sand → gold gradients · thin serif headings · maximum space
   ========================================================== */

:root {
  /* neutrals */
  --ink:      #1e1b18;
  --ink-soft: #4a443d;
  --muted:    #948c81;
  --line:     #dcd6cc;
  --paper:    #ededed;
  --panel:    #ffffff;
  --card:     #e3e0dc;   /* flavour card, same in both states */
  --icon-off: #aca69e;   /* resting icon grey */

  /* sand → gold */
  --sand-50:  #fcfaf7;
  --sand-100: #f6f0e7;
  --sand-200: #ece0cf;
  --gold:     #b8974f;
  --gold-dp:  #8f7238;
  --brand:    #dc7a47;   /* sampled from the printed box */
  --berry:    #9c464c;   /* amber-toot accent, also the cart badge */
  --leaf:     #2f6b4a;   /* confirm green */
  --support:    #1f72cf; /* support blue, same blue as the card marks */
  --support-dp: #175aa6;

  --grad-sand: linear-gradient(150deg, #faf5ee 0%, #f1e6d5 52%, #e6d4b6 100%);
  --grad-gold: linear-gradient(100deg, #c8a75f 0%, #a8843d 100%);

  --app: 480px;        /* the store always renders at mobile width */
  --maxw: 100%;
  /* Jannat (خط جنة) is not web-licensed — used if installed, Cairo otherwise */
  --sans:  "Jannat", "IBM Plex Sans Arabic", "Noto Sans Arabic",
           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  /* logo = packaging face (Optima); Marcellus is the closest free match */
  --latin: "Optima", "Marcellus", "Palatino Linotype", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--paper);            /* backdrop spans the whole browser */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* one mobile-width column, centred on any screen, seamless background */
  width: 100%;
  max-width: var(--app);
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;                  /* iOS: excludes the collapsing toolbar */
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-left));
}

/* section divider — hairline · label · hairline */
.label {
  display: flex; align-items: center; gap: 16px;
  font-size: 13.5px; color: var(--ink); font-weight: 400;
}
.label::before, .label::after {
  content: ""; flex: 1; height: 1px; background: rgba(30,27,24,.35);
}

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: transparent; padding: 10px 14px;
}

/* floating capsule */
.hdr-bar {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 8px; border-radius: 100px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 20px rgba(30,27,24,.08);
}

.hdr-stack {
  position: relative; flex: 1; order: 1; height: 38px;
  border-radius: 100px; overflow: hidden;
}
.hdr-in, .ship-bar {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .32s ease;
}
/* neither layer is interactive — only the cart icon is clickable */
.hdr-stack { pointer-events: none; }
.hdr-in { transform: translateY(0); opacity: 1; }
.ship-bar { transform: translateY(100%); opacity: 0; }

.hdr.alt .hdr-in { transform: translateY(-100%); opacity: 0; }
.hdr.alt .ship-bar { transform: translateY(0); opacity: 1; }

/* set exactly as printed on the box: mixed case, spaced ampersand, coral ink */
.logo {
  font-family: var(--latin); font-weight: 400;
  font-size: 21px; letter-spacing: .3px;
  color: var(--brand); white-space: nowrap;
  cursor: default; user-select: none;
}
.logo b { font-weight: 400; padding-inline: 1px; }

/* free-shipping progress — grey track, gold fill right → left, no outline */
.ship-track {
  position: relative; width: 72%; height: 100%;
  border-radius: 100px; background: #d8d4cf; overflow: hidden;
}
.ship-track i {
  position: absolute; top: 0; bottom: 0; right: 0; width: 0;
  background: var(--grad-gold); border-radius: 100px;
  transition: width .9s cubic-bezier(.22,.61,.36,1), background .4s ease;
}
.ship-track i.done { background: var(--leaf); }   /* threshold reached */
.ship-txt {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; white-space: nowrap;
  color: var(--ink); transition: color .4s ease;
}
.ship-txt.over { color: #fff; }

/* home — RTL: sits at the far right */
.home {
  flex: 0 0 auto; order: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; transition: background .2s;
}
.home:hover { background: rgba(30,27,24,.05); }
.home svg { width: 21px; height: 21px; fill: var(--gold); stroke: none; }

/* cart */
.cart {
  position: relative; flex: 0 0 auto; order: 2;   /* RTL: sits at the far left */
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; transition: background .2s;
}
.cart:hover { background: rgba(30,27,24,.05); }
.cart svg {
  width: 22px; height: 22px; stroke: none;
  fill: var(--icon-off);                 /* grey until something is in it */
  transition: fill .45s ease;
}
.cart.filled svg { fill: var(--gold); }

.cart b {
  position: absolute; top: -1px; inset-inline-start: -2px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 100px;
  background: var(--berry); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  line-height: 17px; text-align: center;
}
.cart b[hidden] { display: none; }

/* add-to-cart feedback */
@keyframes lm-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.cart.pop { animation: lm-pop .5s cubic-bezier(.22,.61,.36,1); }
.btn.ok { background: var(--grad-gold); }

/* ==========================================================
   PRODUCT
   ========================================================== */
.pdp { padding-bottom: 10px; }

/* gallery — main panel + 4 stacked thumbs, equal total height */
/* flex (not grid): the thumb column must never drive the row height —
   it stretches to whatever the square main panel resolves to. */
.gal {
  display: flex; align-items: stretch;
  gap: 10px;
  padding: 10px 22px 0;
}

.gal-slides {
  flex: 1 1 auto;
  aspect-ratio: 1 / 1;
  min-width: 0; min-height: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--grad-sand);
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gal-slides::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; height: 100%; min-width: 0; scroll-snap-align: center; }

.gal-thumbs {
  flex: 0 0 calc((100% - 40px) / 5);   /* keeps thumbs ≈ square */
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0; height: auto;
}
.gal-thumbs button {
  flex: 1 1 0; min-height: 0;
  border-radius: 12px; overflow: hidden; padding: 0;
  background: var(--grad-sand); opacity: .45;
  transition: opacity .3s ease;
}
.gal-thumbs button[aria-current="true"] { opacity: 1; }

.gal picture { display: block; height: 100%; }
.gal img { width: 100%; height: 100%; object-fit: cover; }

/* info */
.info { padding: 34px 22px 0; }

/* title + country picker — square, sat on the title's own line */
.title-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
/* RTL: the title takes the slack, so the chip sits at the far LEFT, centred vertically */
.title-row h1 { flex: 1 1 auto; margin-bottom: 0; }
.cty {
  flex: 0 0 auto;
  font-family: var(--sans); font-size: 13px; line-height: 1;
  color: var(--ink); background: var(--panel);
  border: none; border-radius: 0;              /* square */
  height: 38px; cursor: pointer;
  /* native selects size to the widest option, so centre the label
     instead of leaving a gap on short names like "البحرين" */
  text-align: center; text-align-last: center;
  appearance: none; -webkit-appearance: none;
  /* chevron drawn in, so the box stays a clean rectangle */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%231e1b18' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 11px;
  padding-inline-start: 12px;
  padding-inline-end: 28px;
}
.cty:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold-dp); }

h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 8vw, 42px); line-height: 1.35;
  letter-spacing: -.8px; margin-bottom: 12px;
}

.meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 26px;
}
.meta .stars { color: var(--gold); letter-spacing: 2px; font-size: 12px; }

/* fixed feature grid — 3 right, 3 left */
/* fills the right column top-to-bottom first, then the left */
.feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 16px 10px; margin-bottom: 42px;
}
.feat { display: flex; align-items: center; gap: 10px; }
.feat svg {
  width: 22px; height: 22px; flex: 0 0 auto;
  fill: none; stroke: var(--ink);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.feat span { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

/* option rows */
.opt { margin-bottom: 36px; }
.opt .label { margin-bottom: 20px; }

/* scent cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card {
  position: relative; border-radius: 14px;
  padding: 15px 7px 13px; text-align: center;
  background: var(--card);            /* grey in both states, no outline */
  -webkit-tap-highlight-color: transparent;
}

.card svg {
  display: block; width: 36px; height: 36px; margin: 0 auto 9px;
  fill: var(--icon-off); stroke: none;
  transition: fill .45s ease;
}
.card[aria-checked="true"] svg {
  fill: var(--accent);
  animation: icon-pop .55s cubic-bezier(.22,.61,.36,1);
}
@keyframes icon-pop {
  0%   { transform: scale(.88); }
  55%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.card-name {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--muted); line-height: 1.5;
  transition: color .35s ease;
}
.card[aria-checked="true"] .card-name { color: var(--ink); }
.card-notes {
  display: block; font-size: 9.5px; line-height: 1.7;
  color: var(--muted); margin-top: 3px;
}

.sizes { display: grid; gap: 9px; }
.size {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: start;
  padding: 13px 15px; border-radius: 12px; background: var(--card);
  font-size: 13px; color: var(--muted); transition: color .25s;
  -webkit-tap-highlight-color: transparent;
}
.size i {
  width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  background: #c6c0b8; border: none;      /* grey, no stroke */
  transition: background .35s ease;
}
.size[aria-checked="true"] { color: var(--ink); }
.size[aria-checked="true"] i { background: var(--grad-gold); }
.sz-name { font-weight: 500; }
.sz-wt { font-size: 12px; opacity: .8; }
.sz-tag {
  font-style: normal; font-size: 9.5px;
  padding: 2.5px 8px; border-radius: 100px;
  background: var(--berry); color: #fff; white-space: nowrap;
}
.sz-price { margin-inline-start: auto; font-weight: 500; white-space: nowrap; }
.sz-was { font-size: 11px; text-decoration: line-through; opacity: .6; white-space: nowrap; }

/* qty + price + cta */
/* qty + add-to-cart, side by side */
.buy { display: flex; align-items: stretch; gap: 10px; margin: 30px 0 14px; }
.buy .btn { flex: 1 1 auto; }
.btn em {
  font-style: normal; font-weight: 400;
  opacity: .72; margin-inline-start: 7px;
}

.qty {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  height: 54px; border-radius: 100px; background: var(--card);
}
.qty button { width: 38px; height: 100%; font-size: 17px; font-weight: 300; transition: color .2s; }
.qty button:hover { color: var(--gold-dp); }
.qty input {
  width: 34px; height: 100%; text-align: center; border: none; background: none;
  font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }


.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 54px; border-radius: 3px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  transition: .3s;
}
.btn:hover { background: var(--grad-gold); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* go-to-checkout — grey until something is in the cart, no outline */
.btn-co {
  margin-top: 10px; border: none;
  background: var(--card); color: var(--muted);
  pointer-events: none;
  transition: background .3s ease, color .3s ease;
}
.btn-co:hover { background: var(--card); }
.btn-co.on { background: #fff; color: var(--ink); pointer-events: auto; }
.btn-co.on:hover,
.btn-co.on:active,
.btn-co.on:focus-visible { background: var(--leaf); color: #fff; }

/* confirm-style buttons go green on press, red when something is missing */
.btn-go:hover,
.btn-go:active,
.btn-go.ok-go { background: var(--leaf); color: #fff; }
.btn-go.bad,
.btn-go.bad:hover { background: #b4483c; color: #fff; }

/* customer support — the one blue thing on the page, so it reads as help, not checkout */
.btn-support {
  margin-top: 12px; gap: 9px;
  background: var(--support); color: #fff;
}
.btn-support svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: #fff; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn-support:hover, .btn-support:active { background: var(--support-dp); }

/* the drawer's pay button: green on press, never gold */
#drawerPay:hover,
#drawerPay:active { background: var(--leaf); }

.ship { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* accordion */
.acc { margin-top: 48px; }
.acc details { border-top: 1px solid var(--line); }
.acc details:first-of-type { border-top: none; }
.acc details:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-size: 13.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 16px; color: var(--muted); font-weight: 300; }
.acc details[open] summary::after { content: "\2212"; }
.acc .body { padding-bottom: 22px; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }
.acc .body li { padding-inline-start: 15px; position: relative; }
.acc .body li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 13px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold);
}

/* ---------- Followers reel — swipe both ways, true 9:16 ---------- */
.reel { margin-top: 46px; }
.reel .label { margin-bottom: 18px; }
.reel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.reel-nav button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); display: grid; place-items: center;
  transition: background .2s ease, opacity .2s ease;
}
.reel-nav button:hover:not(:disabled) { background: #d5d0c9; }
.reel-nav button:disabled { opacity: .3; cursor: default; }
.reel-nav svg {
  width: 15px; height: 15px; fill: none; stroke: var(--ink);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.reel-track {
  display: flex; gap: 9px;
  overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: auto;                 /* don't inherit smooth — kills drag */
  overscroll-behavior-x: contain;        /* no browser back-swipe hijack */
  -webkit-overflow-scrolling: touch;
  padding-inline: 22px; scroll-padding-inline: 22px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.dragging { cursor: grabbing; scroll-snap-type: none; }

.reel-item {
  position: relative;
  flex: 0 0 43%; aspect-ratio: 9 / 16;
  border: 2px solid var(--gold);          /* gold stroke, 2px */
  border-radius: 14px; overflow: hidden;
  background: var(--card); scroll-snap-align: center;
}
/* the shine: a soft band travelling across each frame, staggered so the
   row glints in sequence rather than flashing all at once */
.reel-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 38%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 62%);
  transform: translateX(-130%);
  animation: reel-shine 4.5s ease-in-out infinite;
}
.reel-item:nth-child(2)::after { animation-delay: .5s; }
.reel-item:nth-child(3)::after { animation-delay: 1s; }
.reel-item:nth-child(4)::after { animation-delay: 1.5s; }
.reel-item:nth-child(5)::after { animation-delay: 2s; }
.reel-item:nth-child(6)::after { animation-delay: 2.5s; }
.reel-item:nth-child(7)::after { animation-delay: 3s; }
@keyframes reel-shine {
  0%   { transform: translateX(-130%); }
  55%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) { .reel-item::after { animation: none; opacity: 0; } }
.reel-item picture { display: block; height: 100%; }
.reel-item img {
  width: 100%; height: 100%; object-fit: cover;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}

/* ---------- Footer ---------- */
.ftr {
  margin-top: 64px; padding: 32px 22px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); text-align: center;
}
.ftr-social { display: flex; gap: 12px; margin-bottom: 6px; }
.ftr-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); color: var(--ink);
  display: grid; place-items: center; transition: transform .2s ease;
}
.ftr-social a:hover { transform: translateY(-2px); }
.ftr-social svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.ftr-num { font-size: 13px; color: var(--ink); }
.ftr-link {
  font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.ftr-link:hover { color: var(--ink); border-color: var(--ink); }
.ftr-link[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.ftr-copy { font-size: 10.5px; letter-spacing: 1.5px; }

/* ---------- legal pages ----------
   Every block of text starts on the same edge and both edges stay
   flush: justified Arabic, no list indent, no bullets. Line height
   is 1.5 throughout so headings, paragraphs and list items sit on
   one consistent rhythm.
   ------------------------------------------------------------- */
.legal { padding: 30px 22px 0; }
.legal h1 { font-size: 24px; font-weight: 400; margin-bottom: 14px; line-height: 1.5; }

/* the one highlighted block on the page: the summary */
.legal-lead {
  margin-bottom: 6px; padding: 15px 16px;
  background: var(--grad-sand); border-radius: 12px;
}

.legal-sec { margin-top: 26px; }
.legal-sec h2 {
  font-size: 14px; font-weight: 500; color: var(--ink);
  margin: 0 0 8px; padding: 0; border: none; line-height: 1.5;
}

/* the list carries no indent, so its text lines up with the prose */
.legal-sec ul { margin: 0; padding: 0; list-style: none; }
.legal-sec li + li { margin-top: 8px; }
.legal-sec li b { font-weight: 500; color: var(--ink); }
.legal-sec p + p, .legal-sec ul + p { margin-top: 10px; }

/* justify so the ragged edge disappears on both sides */
.legal-lead,
.legal-sec p,
.legal-sec li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}
.legal-lead { color: var(--ink); font-size: 13.5px; font-weight: 500; }

.legal-sec .btn-support { margin-top: 16px; }
.legal-date { margin-top: 34px; font-size: 11px; color: var(--muted); text-align: center; }

/* floating WhatsApp — pinned inside the mobile canvas */
.fabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app); height: 0;
  z-index: 55; pointer-events: none;
}
.fab {
  position: absolute; right: 16px; bottom: 94px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--card); color: var(--ink);
  display: grid; place-items: center; pointer-events: auto;
  box-shadow: 0 4px 18px rgba(30,27,24,.14);
  transition: transform .25s ease;
}
.fab:hover { transform: scale(1.07); }
.fab svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Sticky buy (mobile) ---------- */
.sticky {
  position: fixed; bottom: 0; left: 50%; z-index: 60;
  width: 100%; max-width: var(--app);
  background: rgba(237,237,237,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 11px 18px calc(11px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  transform: translate(-50%, 115%); transition: transform .35s ease;
}
.sticky.show { transform: translate(-50%, 0); }
.sticky .s-price { font-family: var(--serif); font-size: 19px; flex: 1; }
.sticky .btn { width: auto; padding-inline: 30px; height: 46px; }

/* ==========================================================
   CART DRAWER
   ========================================================== */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 90;
  width: 100%; max-width: var(--app); transform: translateX(-50%);
}
.drawer[hidden] { display: none; }

/* no slide, no fade — the panel is simply there */
.drawer-veil { position: absolute; inset: 0; background: rgba(30,27,24,.32); }

.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 1;
  width: 88%; background: var(--panel);
  display: flex; flex-direction: column;
}

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 24px 18px; border-bottom: 1px solid var(--line);
}
.drawer-top h2 { font-size: 22px; font-weight: 500; letter-spacing: -.4px; }
.drawer-x {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; margin-inline-end: -6px;
  transition: background .2s ease;
}
.drawer-x:hover { background: var(--card); }
.drawer-x svg {
  width: 19px; height: 19px; fill: none; stroke: var(--ink);
  stroke-width: 1.6; stroke-linecap: round;
}

.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }

/* image column stretches to whatever the text column needs */
.ci {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px;
  align-items: stretch; margin-bottom: 24px;
}
.ci:last-child { margin-bottom: 0; }
.ci picture {
  display: block; min-height: 0; border-radius: 10px;
  overflow: hidden; background: var(--card);
}
.ci img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-body {
  min-width: 0; display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
}
.ci-name { font-size: 14px; }
.ci-price { font-size: 13px; color: var(--muted); }
.ci-meta { font-size: 12px; color: var(--muted); }
.ci-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; }
.ci-qty button { width: 30px; height: 28px; font-size: 14px; transition: color .2s; }
.ci-qty button:hover { color: var(--gold-dp); }
.ci-qty span { min-width: 22px; text-align: center; font-size: 13px; }
/* trash buttons — cart drawer + checkout summary */
.ci-del, .si-del {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--muted); transition: color .2s ease, background .2s ease;
}
.ci-del:hover, .si-del:hover { color: #b4483c; background: rgba(180,72,60,.08); }
.ci-del svg, .si-del svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.si-del { margin-inline-start: 4px; }

.drawer-empty { text-align: center; padding: 60px 0; font-size: 13.5px; color: var(--muted); }

.drawer-foot { padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); }
.drawer-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.drawer-foot .btn { max-width: none; gap: 6px; }
.drawer-foot .btn em { font-style: normal; opacity: .7; }

/* ==========================================================
   CHECKOUT
   ========================================================== */
.co { padding: 34px 0 80px; display: grid; gap: 34px; }
.co h2 {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.f { margin-bottom: 16px; }
.f label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.f input, .f select, .f textarea {
  width: 100%; font-family: var(--sans); font-weight: 300; font-size: 16px;
  padding: 12px 0; border: none; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); border-radius: 0;
}
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold-dp); }
.f .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.opt-tag { font-size: 11px; color: var(--muted); font-weight: 300; }

/* phone reads LTR: dial code first, number after it */
.tel {
  display: flex; align-items: center; direction: ltr;
  border-bottom: 1px solid var(--line);
}
.tel input { text-align: left; }
.tel:focus-within { border-color: var(--gold-dp); }
.tel-code {
  flex: 0 0 auto; font-size: 16px; color: var(--muted);
  padding-inline-end: 10px; margin-inline-end: 10px;
  border-inline-end: 1px solid var(--line);
}
.tel input { border-bottom: none; padding-inline: 0; }
.tel input:focus { border-color: transparent; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.pays { display: grid; gap: 2px; margin-bottom: 8px; }
.pay {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  padding: 16px 0; border-bottom: 1px solid var(--line); transition: .2s;
}
/* same dot language as the size picker: grey, no stroke, solid gold when picked */
.pay { color: var(--muted); transition: color .25s; }
.pay i {
  width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  background: #c6c0b8; border: none;
  transition: background .35s ease;
}
.pay[aria-checked="true"] { color: var(--ink); }
.pay[aria-checked="true"] i { background: var(--grad-gold); }
.pay > span { font-size: 13.5px; }
.pay em {
  font-style: normal; font-size: 12px; color: var(--muted);
  margin-inline-start: auto; font-weight: 500; transition: color .25s ease;
}
/* the fee reads in the tone of what it costs you: gold for a charge, green for free */
.pay[aria-checked="true"][data-pay="cod"]  em { color: var(--gold-dp); }
.pay[aria-checked="true"][data-pay="card"] em { color: var(--leaf); }

/* accepted card marks */
.brands {
  margin-inline-start: auto; display: flex; align-items: center; gap: 5px;
  flex: 0 0 auto; opacity: .55; transition: opacity .25s ease;
}
.pay[aria-checked="true"] .brands { opacity: 1; }
.brands .brand {
  width: 34px; height: 22px; display: block; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(30, 27, 24, .09);
}
/* the fee label keeps the far-left slot, the marks sit just inside it */
.brands + em { margin-inline-start: 12px; }

/* accepted-payment strip under the free-shipping line */
.pay-marks {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 12px;
}
.pay-marks .brand {
  width: 34px; height: 22px; display: block; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(30, 27, 24, .09);
}
@media (max-width: 359px) {
  .brands { gap: 3px; }
  .brands .brand, .pay-marks .brand { width: 30px; height: 19px; }
}

.sum { background: var(--grad-sand); border-radius: 3px; padding: 26px 22px; }
.sum h3 { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; font-weight: 400; }
.sum-item { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(30,27,24,.08); }
.sum-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 2px; }
.sum-item .n { font-size: 13.5px; }
.sum-item .m { font-size: 11.5px; color: var(--muted); }
.sum-item .p { margin-inline-start: auto; font-size: 13.5px; white-space: nowrap; }
.sum-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; color: var(--ink-soft); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid rgba(30,27,24,.12); margin-top: 16px; padding-top: 16px;
}
.sum-total .t { font-size: 12.5px; color: var(--muted); }
/* settlement band sitting right above "تأكيد الطلب" */
.pay-hl {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 26px; padding: 14px 16px; border-radius: 12px;
  background: var(--grad-sand);
}
.pay-hl .k { font-size: 12.5px; color: var(--ink-soft); }
.pay-hl .v {
  font-family: var(--serif); font-size: 19px; color: var(--ink);
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.pay-hl .v i { font-style: normal; color: var(--muted); font-size: 15px; }
.pay-hl .v b { font-weight: 600; color: var(--gold-dp); }
.pay-hl.same .v i, .pay-hl.same .v b { display: none; }

/* settlement note — pulled out of the grey so it actually gets read */
.sum-note {
  margin-top: 14px; padding: 11px 13px;
  background: #fff; border-radius: 10px;
  border-inline-start: 3px solid var(--gold);
  font-size: 12.5px; font-weight: 400; color: var(--ink);
  text-align: start; line-height: 1.7;
}
.sum-total .v { font-family: var(--serif); font-size: 24px; }
.co-msg { text-align: center; padding: 80px 22px; }
.co-msg h2 { border: none; font-size: 26px; margin-bottom: 10px; padding: 0; }
.co-msg p { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.co-msg .btn { max-width: 260px; margin-inline: auto; }

/* checkout order on the mobile canvas */
.co .sum { order: -1; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Bundle offer — three smalls, one of each scent
   ========================================================== */
.offer {
  position: relative; overflow: hidden;
  margin-top: 18px; padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--grad-sand);
}
/* the shine: a soft band that keeps sweeping across the card */
.offer::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 42%;
  left: -60%; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: offer-shine 3.6s ease-in-out infinite;
}
@keyframes offer-shine {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* The three scents the bundle contains, in the banner's top-left. Spaced
   rather than overlapped: an overlap looks tidier but buries most of each
   icon, and the point here is that all three are legible. `left` is
   physical for the same reason as the thumbnail chip. */
.offer-scents {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  display: flex; gap: 5px;
}
.offer-scents .scent-mark {
  width: 26px; height: 26px;
  box-shadow: 0 0 0 2px var(--sand-100), 0 1px 4px rgba(30,27,24,.2);
}
.offer-scents .scent-mark svg { width: 17px; height: 17px; }

/* keep the badges clear of the cluster */
.offer-tags { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; padding-left: 98px; }
.offer-tag {
  font-size: 9.5px; padding: 3px 9px; border-radius: 100px;
  background: var(--berry); color: #fff; white-space: nowrap;
}
.offer-tag.term { background: var(--ink); }
.offer-tag.left { background: transparent; color: var(--gold-dp); padding-inline: 0; }

.offer h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.offer .offer-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 13px; }

/* Centred, not baseline-aligned. On a baseline the pill lines its TEXT up
   with the numbers, which leaves its padded box hanging below them — the
   three items read as three different levels. Centring aligns the boxes,
   and a shared line-height keeps those boxes the same height. */
.offer-price { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.offer-price .now { font-family: var(--serif); font-size: 25px; color: var(--ink); line-height: 1.25; }
.offer-price .was {
  font-size: 13px; color: var(--muted); text-decoration: line-through; line-height: 1.25;
}
.offer-price .save {
  font-size: 10.5px; color: var(--leaf); background: rgba(47, 107, 74, .1);
  padding: 3px 9px; border-radius: 100px; white-space: nowrap; line-height: 1.5;
}

.offer .btn-offer {
  position: relative; z-index: 1; height: 48px;
  background: var(--grad-gold); color: #fff; border-radius: 10px;
}
.offer .btn-offer:hover { background: var(--gold-dp); }
.offer .btn-offer.ok { background: var(--leaf); }

/* motion is decoration here — never fight a stated preference */
@media (prefers-reduced-motion: reduce) {
  .offer::after { animation: none; display: none; }
}

/* ==========================================================
   Rendering cost: skip layout/paint for blocks that are still
   off-screen. contain-intrinsic-size reserves the right space
   so the scrollbar never jumps when they come into view.
   ========================================================== */
.reel { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.ftr  { content-visibility: auto; contain-intrinsic-size: auto 220px; }

/* ---------- payment feedback ---------- */
.pay-msg {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: #fff5f3; border-inline-start: 3px solid #b4483c;
  font-size: 12.5px; line-height: 1.8; color: var(--ink);
}
.spin {
  width: 26px; height: 26px; margin: 22px auto 0;
  border: 2px solid var(--line); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

/* ==========================================================
   Prices are now pure Latin runs ("120 AED") sitting inside RTL
   Arabic. Isolating each one stops neighbouring punctuation or a
   currency change from reordering the number and the code.
   ========================================================== */
.sz-price, .sz-was, .s-price, #btnPrice,
.offer-price .now, .offer-price .was, .offer-price .save,
.sum-line span, .sum-total .v, .pay-hl .v, .pay-hl .v b,
.pay em, .sum-item .p, .ci-price {
  unicode-bidi: isolate;
}

/* the last section is a call to action: heading plus button, no prose */
.legal-sec h2 + .btn-support { margin-top: 12px; }

/* ==========================================================
   Story cards — stacked below the follower reel
   ========================================================== */
.story {
  margin-top: 40px; padding: 0 22px;
  display: flex; flex-direction: column; gap: 12px;
  content-visibility: auto; contain-intrinsic-size: auto 700px;
}

.scard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 14px;
  background: var(--panel);      /* no outline — the fill carries the shape */
}
.scard-art {
  flex: 0 0 84px; width: 84px; height: 84px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--grad-sand);
}
.scard-art svg { width: 58px; height: 58px; display: block; }
.scard-txt { flex: 1; min-width: 0; }
.scard-txt h3 {
  font-size: 14px; font-weight: 500; color: var(--ink);
  line-height: 1.5; margin-bottom: 4px;
}
.scard-txt p {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
  text-align: justify; text-justify: inter-word;
}

/* the third card stacks its three steps under the heading */
.scard.steps { flex-direction: column; align-items: stretch; gap: 12px; }
.scard.steps .scard-txt h3 { margin-bottom: 0; }
.step-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.step-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px;
  background: var(--grad-sand);  /* no outline — the fill carries the shape */
  counter-increment: step;
}
.step-art {
  flex: 0 0 46px; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--panel); border-radius: 10px;
}
.step-art svg { width: 32px; height: 32px; display: block; }

/* ==========================================================
   Cart / checkout thumbnail: packshot + scent chip
   The chip sits in the top-INLINE-end corner, which is the top left in
   this RTL layout — matching where the eye lands first.
   ========================================================== */
.thumb { position: relative; display: block; flex: 0 0 auto; line-height: 0; }
.thumb picture { display: block; }
/* the drawer's image column is a stretch grid cell — the wrapper has to
   pass that height through or the packshot collapses to its intrinsic size */
.ci .thumb, .ci .thumb picture { height: 100%; }
/* The chip itself is position-neutral so it can sit in a row as well as on
   a packshot; only the thumbnail pins it to a corner. */
.scent-mark {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 1px 5px rgba(30,27,24,.28);
  pointer-events: none;
}
/* Sits ON the packshot, inset rather than overhanging: the drawer body
   scrolls, and an overhanging badge either gets clipped or adds a
   scrollbar. `left` is physical on purpose — the logical properties both
   flip with direction, and this corner should stay put in either. */
.thumb .scent-mark { position: absolute; top: 5px; left: 5px; }
/* solid fill, no stroke — same treatment as the product card icons */
.scent-mark svg {
  width: 15px; height: 15px; display: block;
  fill: #fff; stroke: none;
}

/* ==========================================================
   Preparation steps — each one pops in turn, 2s apart, looping.
   The whole cycle is CSS; main.js only adds/removes .playing as
   the section enters and leaves the viewport, so nothing runs
   while it's off screen and there is no timer to drift.
   6s loop = 3 steps x 2s. Each step's delay is its position.
   ========================================================== */
@keyframes step-pop {
  0%            { transform: scale(1);    box-shadow: 0 0 0 0 rgba(184,151,79,0); }
  8%            { transform: scale(1.045); box-shadow: 0 6px 18px 0 rgba(184,151,79,.28); }
  22%           { transform: scale(1);    box-shadow: 0 2px 8px 0 rgba(184,151,79,.14); }
  33%, 100%     { transform: scale(1);    box-shadow: 0 0 0 0 rgba(184,151,79,0); }
}
@keyframes step-art-pop {
  0%        { transform: scale(1) rotate(0); }
  8%        { transform: scale(1.14) rotate(-4deg); }
  22%       { transform: scale(1) rotate(0); }
  33%, 100% { transform: scale(1) rotate(0); }
}

.step-list li { transform-origin: center; }
.step-art     { transform-origin: center; }

/* will-change only while it's actually animating — held permanently it
   just pins three needless compositor layers */
.step-list.playing li { animation: step-pop 6s ease-in-out infinite; will-change: transform; }
.step-list.playing li .step-art { animation: step-art-pop 6s ease-in-out infinite; }
.step-list.playing li:nth-child(2),
.step-list.playing li:nth-child(2) .step-art { animation-delay: 2s; }
.step-list.playing li:nth-child(3),
.step-list.playing li:nth-child(3) .step-art { animation-delay: 4s; }

/* motion-sensitive shoppers get the layout, never the movement */
@media (prefers-reduced-motion: reduce) {
  .step-list.playing li,
  .step-list.playing li .step-art { animation: none; }
}
.step-txt { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.step-txt b {
  display: block; font-weight: 500; color: var(--ink); margin-bottom: 1px;
}

@media (max-width: 359px) {
  .scard { gap: 11px; padding: 13px; }
  .scard-art { flex-basis: 70px; width: 70px; height: 70px; }
  .scard-art svg { width: 48px; height: 48px; }
}
