/* ============================================================
   BGM — award-grade mobile-first storefront
   Editorial type (Instrument Serif accents) · liquid glass ·
   semantic category color · app-style bottom dock · grain.
   ============================================================ */

:root {
  --ink: #0c181f;
  --muted: #5d6e78;
  --line: rgba(13,26,33,.08);

  --brand: #0a6e84;
  --brand-700: #07566a;

  --c-skincare:    #AC558E;
  --c-eyecare:     #1F9FB4;
  --c-haircare:    #D8962B;
  --c-bodycare:    #4CA3D4;
  --c-supplements: #BE1B4D;
  --c-offers:      #E07A2C;

  --dock-h: 56px;
  --r: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.34,1.45,.4,1);
  --font-ui: Inter, "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #fdfdfd;
  min-height: 100svh;
  overflow-x: clip;
  padding-block-end: calc(74px + env(safe-area-inset-bottom, 0px)); /* bottom dock clearance */
}
@media (min-width: 760px) { body { padding-block-end: 0; } }

h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
svg { display: block; }
.wrap { width: min(1240px, 100% - 28px); margin-inline: auto; }

.skip-link { position: absolute; inset-block-start: -60px; inset-inline-start: 12px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { inset-block-start: 10px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }

/* ── Grain — makes the glass physical ── */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Aurora ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: clip; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5; will-change: transform; }
.a1 { width: 46vmax; height: 46vmax; inset-block-start: -18vmax; inset-inline-start: -12vmax; background: radial-gradient(circle, rgba(31,159,180,.40), transparent 65%); }
.a2 { width: 40vmax; height: 40vmax; inset-block-start: -12vmax; inset-inline-end: -10vmax; background: radial-gradient(circle, rgba(216,150,43,.34), transparent 65%); }
.a3 { width: 42vmax; height: 42vmax; inset-block-end: -16vmax; inset-inline-end: -8vmax;  background: radial-gradient(circle, rgba(172,85,142,.30), transparent 65%); }
.a4 { width: 34vmax; height: 34vmax; inset-block-end: -12vmax; inset-inline-start: -8vmax; background: radial-gradient(circle, rgba(76,163,212,.26), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .a1 { animation: drift1 26s ease-in-out infinite alternate; }
  .a2 { animation: drift2 22s ease-in-out infinite alternate; }
  .a3 { animation: drift1 30s ease-in-out infinite alternate-reverse; }
  .a4 { animation: drift2 24s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
  @keyframes drift2 { to { transform: translate(-5vmax, 6vmax) scale(1.05); } }
}

/* ── Glass ── */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.38));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 18px 48px rgba(13,26,33,.12), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
}
.glass-soft {
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.3));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 8px 28px rgba(13,26,33,.07), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

/* ── Stage — editorial ── */
.stage { padding-block-start: clamp(58px, calc(30svh - 130px), 34svh); text-align: center; }
.greet { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.ask {
  font-size: clamp(36px, 9.4vw, 64px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.04;
  margin-block-end: 24px;
}
.ask em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--brand) 0%, var(--c-skincare) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-inline-end: .04em;
}
[dir="rtl"] .ask { font-family: "IBM Plex Sans Arabic", var(--font-ui); font-weight: 700; }
[dir="rtl"] .ask em { font-family: inherit; font-style: normal; }

@media (prefers-reduced-motion: no-preference) {
  .greet { animation: rise .55s var(--ease) both; }
  .ask   { animation: rise .6s .07s var(--ease) both; }
  .dock-inner { animation: rise .6s .15s var(--ease) both; }
  .trend { animation: rise .6s .24s var(--ease) both; }
  .marquee { animation: rise .6s .32s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ── Dock ── */
.dock { position: sticky; inset-block-start: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 50; }
.dock-inner {
  display: flex; align-items: center; gap: 6px;
  height: var(--dock-h); max-width: 860px; margin-inline: auto;
  border-radius: 999px; padding-inline: 8px;
  transition: box-shadow .3s var(--ease);
}
.dock-inner:has(input:focus) {
  box-shadow: 0 18px 48px rgba(13,26,33,.14), 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent), inset 0 1px 0 rgba(255,255,255,.95);
}
.brand { display: inline-flex; align-items: center; gap: 7px; padding-inline: 8px 4px; flex: none; }
.brand-mark { width: 23px; height: 28px; fill: var(--brand); filter: drop-shadow(0 2px 4px rgba(10,110,132,.3)); }
.brand-mark .shine { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .5; }
.brand-text { font-weight: 800; font-size: 18px; letter-spacing: -.04em; color: var(--brand-700); }

.search { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; height: 100%; }
.search .i { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; background: none; outline: none; width: 100%; min-width: 0; font-size: 16px; color: var(--ink); font-weight: 500; }
.search input::placeholder { color: color-mix(in oklab, var(--muted) 78%, #fff); font-weight: 400; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear[hidden] { display: none; }
.search-clear { flex: none; border: 0; background: rgba(13,26,33,.07); width: 24px; height: 24px; border-radius: 50%; font-size: 17px; line-height: 1; color: var(--muted); display: grid; place-items: center; }
.kbd { flex: none; font: 600 11px/1 var(--font-ui); color: var(--muted); border: 1px solid var(--line); border-block-end-width: 2px; padding: 4px 6px; border-radius: 7px; background: rgba(255,255,255,.6); }
@media (pointer: coarse), (max-width: 759px) { .kbd { display: none; } }

.lang-btn { flex: none; border: 0; background: none; width: 38px; height: 38px; border-radius: 50%; font-size: 15px; font-weight: 700; color: var(--brand-700); display: grid; place-items: center; transition: background .2s var(--ease); }
.lang-btn:hover { background: rgba(13,26,33,.05); }
.cart { flex: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); display: grid; place-items: center;
  box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s var(--spring), background .2s var(--ease); }
.cart:hover { background: var(--brand-700); }
.cart:active { transform: scale(.92); }
.cart .i { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--c-supplements); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cart-count.bump { animation: bump .4s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
.fly { position: fixed; z-index: 99; width: 14px; height: 14px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 4px 12px rgba(10,110,132,.4); pointer-events: none;
  transition: transform .6s cubic-bezier(.3,.7,.4,1), opacity .6s ease; }

/* ── Trending ── */
.trend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-block-start: 16px; font-size: 13px; color: var(--muted); }
.trend-label { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; }
.chipbtn { border: 1px solid var(--line); background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--ink);
  transition: border-color .2s var(--ease), transform .12s var(--spring); }
.chipbtn:hover { border-color: var(--brand); }
.chipbtn:active { transform: scale(.94); }

/* ── Brand marquee ── */
.marquee {
  margin-block-start: clamp(26px, 6svh, 48px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; padding-block: 6px; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic;
  font-size: 21px; color: var(--muted); opacity: .75; white-space: nowrap;
}
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .4; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: ticker 30s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
  [dir="rtl"] .marquee-track { animation-name: ticker-rtl; }
  @keyframes ticker-rtl { to { transform: translateX(50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* ── Chips ── */
.chips-dock { position: sticky; inset-block-start: calc(env(safe-area-inset-top, 0px) + var(--dock-h) + 16px); z-index: 40;
  margin-block-start: clamp(20px, 4svh, 40px); display: flex; justify-content: center; }
.chips { display: flex; gap: 7px; max-width: 100%; border-radius: 999px; padding: 6px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--brand); scroll-snap-align: start; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding-inline: 15px; border-radius: 999px; border: 0; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease), transform .12s var(--spring), box-shadow .22s; }
.chip:active { transform: scale(.95); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 18%, transparent); transition: box-shadow .2s; }
.chip.is-active { color: #fff; background: var(--c); box-shadow: 0 8px 20px color-mix(in oklab, var(--c) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.chip.is-active .dot { background: #fff; box-shadow: none; }

/* ── Blocks ── */
.block { margin-block-start: clamp(32px, 6svh, 54px); scroll-margin-block-start: calc(var(--dock-h) + 84px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 13px; }
.block-head h2 { font-size: 20px; letter-spacing: -.02em; }
.block-head h2::first-letter { font-family: inherit; }
.rec-why { font-size: 12px; font-weight: 600; color: var(--brand-700);
  background: color-mix(in oklab, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in oklab, var(--brand) 22%, #fff);
  padding: 4px 11px; border-radius: 999px; }
.rec-why.pulse { animation: pulse .45s var(--spring); }
@keyframes pulse { 40% { transform: scale(1.08); } }
.count { font-size: 13px; color: var(--muted); }

/* ── Spotlight carousel ── */
.spotlight { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.spotlight::-webkit-scrollbar { display: none; }
.spot {
  --c: var(--brand);
  position: relative; flex: none; width: min(86%, 340px); scroll-snap-align: center;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 8px;
  border-radius: 28px; padding: 20px;
  background:
    radial-gradient(120% 140% at 85% 10%, color-mix(in oklab, var(--c) 14%, transparent), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.45));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 14px 38px rgba(13,26,33,.1), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.spot-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.spot h3 { margin: 6px 0 2px; font-size: 16.5px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot .brandline { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--muted); }
.spot .spot-cta { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 12px;
  height: 38px; padding-inline: 13px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(13,26,33,.25);
  transition: transform .15s var(--spring), background .2s; }
.spot .spot-cta:active { transform: scale(.95); }
.spot .spot-price { font-weight: 800; }
.spot-img { position: relative; height: 168px; display: grid; place-items: center; }
.spot-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(13,26,33,.18)); }

/* ── Rail ── */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: none; width: 162px; scroll-snap-align: start; }

/* ── Category tiles ── */
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile {
  --c: var(--brand);
  position: relative; border: 1px solid rgba(255,255,255,.85); border-radius: 22px;
  padding: 16px; min-height: 96px; text-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background:
    radial-gradient(130% 160% at 90% 0%, color-mix(in oklab, var(--c) 18%, transparent), transparent 58%),
    linear-gradient(150deg, rgba(255,255,255,.74), rgba(255,255,255,.4));
  box-shadow: 0 10px 28px rgba(13,26,33,.08), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: transform .18s var(--spring), box-shadow .2s var(--ease);
}
.cat-tile:active { transform: scale(.97); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13,26,33,.12), inset 0 1px 0 #fff; }
.cat-tile strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.cat-tile small { font-size: 12px; color: var(--muted); font-weight: 500; }
.cat-tile .arrow { position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in oklab, var(--c) 14%, #fff); color: color-mix(in oklab, var(--c) 75%, var(--ink));
  display: grid; place-items: center; }
.cat-tile .arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .cat-tile .arrow svg { transform: scaleX(-1); }

/* ── Product cards ── */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.card {
  --c: var(--brand);
  position: relative; border-radius: var(--r); padding: 11px;
  background: linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.46));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(13,26,33,.08), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  cursor: pointer; overflow: clip;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(13,26,33,.13), 0 0 0 1px color-mix(in oklab, var(--c) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.95); }
.card:active { transform: scale(.985); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.5) 50%, transparent 58%);
  transform: translateX(-130%); }
@media (prefers-reduced-motion: no-preference) {
  .card:hover::after { transition: transform .65s ease; transform: translateX(130%); }
}
.visual { position: relative; aspect-ratio: 1 / .86; display: grid; place-items: center;
  border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(13,26,33,.04); margin-block-end: 9px; }
.visual::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 120% at 80% 0%, color-mix(in oklab, var(--c) 7%, transparent), transparent 60%); }
.visual svg { position: relative; width: 62%; height: 62%; }
.visual img { position: relative; width: 86%; height: 86%; object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(13,26,33,.12)); }
.card.is-oos .visual { opacity: .5; filter: grayscale(.5); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .products .card { animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    @keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(.97); } }
  }
}

.badge { position: absolute; inset-block-start: 9px; inset-inline-start: 9px; z-index: 2;
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: var(--c-offers); padding: 4px 8px; border-radius: 8px;
  box-shadow: 0 4px 10px color-mix(in oklab, var(--c-offers) 40%, transparent); }
.badge.oos { background: #5d6e78; }
.heart { position: absolute; inset-block-start: 7px; inset-inline-end: 7px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.7); display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s var(--spring); }
.heart:active { transform: scale(.85); }
.heart svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.9; transition: fill .2s, stroke .2s; }
.heart[aria-pressed="true"] svg { fill: var(--c-supplements); stroke: var(--c-supplements); }
.heart[aria-pressed="true"] { animation: bump .4s var(--spring); }

.cat-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.card h3 { font-weight: 600; font-size: 13px; line-height: 1.3; margin: 3px 0 2px; letter-spacing: -.008em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }
.card .brandline { font-family: var(--font-display); font-style: italic; font-size: 12.5px; color: var(--muted); margin: 0; }
[dir="rtl"] .card .brandline { font-family: var(--font-ui); font-style: normal; font-size: 11.5px; }

.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-block-start: 9px; }
.price-stack { display: flex; flex-direction: column; line-height: 1.05; }
.was { font-size: 11px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price { font-weight: 800; font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 3px; }
.unit { font-size: 10px; color: var(--muted); font-weight: 600; }
.add { flex: none; width: 36px; height: 36px; border-radius: 13px; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px color-mix(in oklab, var(--brand) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s var(--spring), background .2s var(--ease); }
.add svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.add:hover { background: var(--brand-700); }
.add:active { transform: scale(.85); }
.add:disabled { background: #c9d2d6; box-shadow: none; cursor: default; }

.badge.sale { background: var(--c-offers); }

/* ── Brand bubbles ── */
.brand-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; margin-inline: -2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.brand-row::-webkit-scrollbar { display: none; }
.brand-bubble { flex: none; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 80px; }
.bubble { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(13,26,33,.1), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  transition: transform .18s var(--spring), box-shadow .2s; }
.bubble::after { content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--bc); opacity: .55; transition: opacity .2s, inset .2s; }
.bubble-mark { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--bc); }
.brand-bubble:active .bubble { transform: scale(.93); }
.brand-bubble:hover .bubble { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13,26,33,.14), inset 0 1px 0 #fff; }
.brand-bubble.is-active .bubble::after { inset: -4px; opacity: 1; border-width: 2.5px; }
.brand-bubble.is-active .bubble { box-shadow: 0 10px 26px color-mix(in oklab, var(--bc) 40%, transparent), inset 0 1px 0 #fff; }
.bubble-name { font-size: 11px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.15; max-width: 80px; }
.bubble-count { font-size: 10px; color: var(--muted); font-weight: 500; }

/* ── Segmented filter pills (Best sellers / New in) ── */
.seg { display: flex; gap: 7px; overflow-x: auto; padding-block-end: 11px; margin-block-start: -2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
.seg-pill { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 6px 15px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: all .2s var(--ease), transform .12s var(--spring); }
.seg-pill:active { transform: scale(.95); }
.seg-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Rail pagers ── */
.pager { display: inline-flex; align-items: center; gap: 6px; }
.pager-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; min-width: 30px; text-align: center; }
.pager-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); color: var(--ink); font-size: 16px; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, transform .12s var(--spring); }
.pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-btn:active { transform: scale(.9); }
[dir="rtl"] .pager-btn { transform: scaleX(-1); }
[dir="rtl"] .pager-btn:active { transform: scaleX(-1) scale(.9); }

.empty { border-radius: var(--r); text-align: center; padding: 36px 20px; }
.empty p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* ── Footer ── */
.footer { margin-block-start: clamp(44px, 9svh, 80px); border-block-start: 1px solid var(--line); padding-block: 26px 18px; }
.footer-mark { margin: 0 0 6px; font-family: var(--font-display); font-style: italic;
  font-size: clamp(64px, 18vw, 130px); line-height: .9; letter-spacing: -.02em;
  color: color-mix(in oklab, var(--brand) 14%, #fff);
  -webkit-text-stroke: 1px color-mix(in oklab, var(--brand) 35%, transparent); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--muted); }

/* ── Bottom dock (mobile app feel) ── */
.bottom-dock {
  position: fixed; z-index: 60;
  inset-inline: 12px; inset-block-end: calc(10px + env(safe-area-inset-bottom, 0px));
  height: 62px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-around; padding-inline: 8px;
}
@media (min-width: 760px) { .bottom-dock { display: none; } }
.bd-btn { position: relative; flex: 1; height: 50px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 10px; font-weight: 600; border-radius: 16px;
  transition: color .2s var(--ease), transform .12s var(--spring); }
.bd-btn:active { transform: scale(.92); }
.bd-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bd-btn.is-active { color: var(--brand-700); }
.bd-btn .cart-count { inset-block-start: 0; inset-inline-end: calc(50% - 22px); }

/* ── Breakpoints up ── */
@media (max-width: 479px) { .brand-text { display: none; } .brand { padding-inline: 6px 0; } }
@media (min-width: 560px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .spot { width: 380px; }
}
@media (min-width: 760px) {
  :root { --dock-h: 62px; }
  body { font-size: 16px; }
  .search input { font-size: 17px; }
  .brand { padding-inline: 12px 6px; }
  .lang-btn { width: 42px; height: 42px; }
  .cart { width: 46px; height: 46px; }
  .block-head h2 { font-size: 22px; }
  .rail .card { width: 178px; }
  .cat-tiles { grid-template-columns: repeat(6, 1fr); }
  .cat-tile { min-height: 110px; }
}
@media (min-width: 920px)  { .products { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1180px) { .products { grid-template-columns: repeat(5, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Show-all CTA (centered) ── */
.showall-wrap { display: flex; justify-content: center; margin-block: clamp(28px, 6svh, 48px); }
.showall-btn {
  border: 0; border-radius: 999px; padding: 15px 36px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: #fff; background: var(--brand);
  box-shadow: 0 10px 28px color-mix(in oklab, var(--brand) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s var(--spring), background .2s var(--ease);
}
.showall-btn:hover { background: var(--brand-700); }
.showall-btn:active { transform: scale(.96); }

/* ============================================================
   MIXXIA re-skin — Phase 1 (hero · promo banners · bag · logo)
   Additive only; built on existing tokens + glass system.
   ============================================================ */
:root { --accent: #BE1B4D; }

/* Bilingual show/hide driven by <html dir> (no JS) */
[data-lang="ar"] { display: none; }
[dir="rtl"] [data-lang="en"] { display: none; }
[dir="rtl"] [data-lang="ar"] { display: revert; }

/* Brand logo in dock */
.brand-logo { height: 26px; width: auto; display: block; }
@media (min-width: 760px) { .brand-logo { height: 30px; } }

/* ── Hero ── */
.hero {
  padding-block-start: clamp(18px, 6svh, 40px);
  display: grid; gap: clamp(16px, 4svh, 26px);
}
.hero-eyebrow {
  display: inline-block; margin: 0 0 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-700);
  background: color-mix(in oklab, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in oklab, var(--brand) 20%, #fff);
  padding: 6px 12px; border-radius: 999px;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(38px, 10vw, 58px); line-height: 1.02;
  font-weight: 800; letter-spacing: -.035em;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--c-offers) 0%, var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[dir="rtl"] .hero-title { font-family: "IBM Plex Sans Arabic", var(--font-ui); letter-spacing: 0; }
.hero-sub {
  margin: 0 0 22px; max-width: 36ch;
  font-size: clamp(15px, 3.6vw, 17px); line-height: 1.5; color: var(--muted);
}
[dir="rtl"] .hero-sub { font-family: "IBM Plex Sans Arabic", var(--font-ui); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-shop, .hero-rx {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding-inline: 22px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .15s var(--spring), background .2s var(--ease), border-color .2s var(--ease);
}
.hero-shop {
  background: var(--ink); color: #fff; border: 0;
  box-shadow: 0 12px 28px rgba(13,26,33,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-shop:hover { background: #000; }
.hero-shop svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .hero-shop svg { transform: scaleX(-1); }
.hero-rx {
  background: rgba(255,255,255,.7); color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero-rx:hover { border-color: var(--ink); }
.hero-rx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-shop:active, .hero-rx:active { transform: scale(.96); }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 22px; }

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.04fr .96fr; align-items: center;
    gap: clamp(20px, 4vw, 48px);
    padding-block: clamp(20px, 5svh, 52px);
  }
  .hero-title { font-size: clamp(46px, 5vw, 66px); }
}

/* ── Promo banners ── */
.promo { margin-block-start: clamp(20px, 4svh, 34px); }
.promo-rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 8px; margin-inline: -2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.promo-rail::-webkit-scrollbar { display: none; }
.promo-card {
  flex: none; width: min(86%, 440px); scroll-snap-align: center;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 14px 38px rgba(13,26,33,.10), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s var(--spring);
}
.promo-card:active { transform: scale(.985); }
.promo-card img { display: block; width: 100%; height: auto; }
@media (min-width: 760px) { .promo-card { width: min(46%, 520px); } }

/* ── Complete-collection (bag) block ── */
.showall-wrap { flex-direction: column; gap: 14px; text-align: center; }
.showall-bag { width: min(150px, 40vw); height: auto; filter: drop-shadow(0 16px 26px rgba(13,26,33,.12)); }
.showall-copy strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.showall-copy small { display: block; font-size: 12.5px; color: var(--muted); margin-block-start: 4px; }

/* ============================================================
   ===== SF-P0-HERO-MOBILE =====  Priority 0: mobile Safari
   hero/header density. Refinement only — spacing, hierarchy,
   composition. Scoped to phones; desktop is unaffected.
   ============================================================ */
@media (max-width: 759px) {
  /* lift the whole first screen: less top padding, tighter inter-block gap */
  .hero {
    padding-block-start: 8px;
    gap: 14px;
  }
  /* halve the doubled vertical margins — let the grid gap carry rhythm */
  .hero-eyebrow { margin-block-end: 8px; }
  .hero-title   { margin-block-end: 8px; line-height: 1.0; }
  .hero-sub     { margin-block-end: 12px; }
  .hero-ctas    { gap: 8px; }

  /* cap the hero image so it's a deliberate band, not ~312px of raw ratio.
     object-fit keeps it clean; the visual stays connected to the headline. */
  .hero-visual img {
    max-block-size: 38svh;
    inline-size: 100%;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 18px;
  }

  /* dock sits closer to the top so logo + search are in the first viewport */
  .dock { inset-block-start: calc(env(safe-area-inset-top, 0px) + 6px); }

  /* search reads as the primary action: a touch more presence */
  .dock-inner { gap: 8px; }
  .search input { font-size: 16px; } /* >=16px avoids iOS Safari zoom-on-focus */
}

/* very small phones: tighten once more so above-the-fold completes */
@media (max-width: 479px) {
  .hero-title { font-size: clamp(34px, 9.2vw, 48px); }
  .hero-visual img { max-block-size: 34svh; }
}

/* ===== SF-C2A — Selected offers + Trust band (structure; no animation) ===== */
.seloffers { margin-block-start: clamp(20px, 4svh, 34px); }
.seloffers-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r);
  background: color-mix(in oklab, var(--c-offers) 7%, #fff); border: 1px solid color-mix(in oklab, var(--c-offers) 18%, #fff);
  transition: border-color .2s var(--ease), transform .15s var(--spring); }
.seloffers-card:active { transform: scale(.99); }
.seloffers-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seloffers-kicker { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-offers); padding: 3px 9px; border-radius: 999px;
  background: color-mix(in oklab, var(--c-offers) 12%, #fff); }
.seloffers-card strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.seloffers-card small { color: var(--muted); font-size: 12.5px; }
.seloffers-arrow { margin-inline-start: auto; flex: none; width: 20px; height: 20px;
  fill: none; stroke: var(--c-offers); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .seloffers-arrow { transform: scaleX(-1); }
.trustband { margin-block-start: clamp(28px, 6svh, 54px); }
.trustband .trust-row { list-style: none !important; margin: 0; padding: 18px 0; display: grid; gap: 14px 18px;
  grid-template-columns: repeat(2, minmax(0,1fr)); border-block: 1px solid var(--line); }
@media (min-width: 700px) { .trustband .trust-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.trustband .trust-row > li { list-style: none !important; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; margin: 0; padding: 0; }
.trustband .trust-row > li::marker { content: "" !important; }
.trustband .trust-row > li::before { content: none !important; }
.trust-ic { flex: 0 0 auto; width: 18px; height: 18px; display: block; fill: none;
  stroke: var(--brand-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-ic * { fill: none; }
.footer-logo { height: 26px; width: auto; display: block; opacity: .9; }


/* ════════════ SF-CART: customer-facing bag drawer ════════════ */
.cart-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,18,24,.38);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .28s var(--ease, ease);
}
.cart-scrim.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 201;
  width: min(420px, 92vw); display: flex; flex-direction: column;
  background: color-mix(in oklab, #fff 86%, transparent);
  border-inline-start: 1px solid rgba(255,255,255,.6);
  box-shadow: -24px 0 60px rgba(13,26,33,.18);
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); box-shadow: 24px 0 60px rgba(13,26,33,.18); }
/* SF-CART-RTL-FIX: ensure open state pulls drawer fully on-screen in RTL (specificity + explicit) */
html[dir="rtl"] .cart-drawer.is-open { transform: translateX(0); }
.cart-drawer.is-open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px; border-bottom: 1px solid rgba(13,26,33,.08);
}
.cart-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.cart-close {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(13,26,33,.05); color: var(--ink); display: grid; place-items: center;
  cursor: pointer; transition: background .2s var(--ease, ease);
}
.cart-close:hover { background: rgba(13,26,33,.1); }
.cart-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cart-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 22px; -webkit-overflow-scrolling: touch; }
.cart-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px;
  align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(13,26,33,.06);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
  width: 60px; height: 60px; border-radius: 12px; object-fit: cover;
  background: rgba(13,26,33,.04); flex: none;
}
.cart-info { min-width: 0; }
.cart-name { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 4px; line-height: 1.3; }
.cart-unit { font-size: 13px; color: color-mix(in oklab, var(--ink) 62%, transparent); font-weight: 600; }
.cart-unit .unit { font-size: 11px; opacity: .7; margin-inline-start: 2px; }
.cart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-stepper { display: inline-flex; align-items: center; gap: 2px; background: rgba(13,26,33,.05); border-radius: 999px; padding: 3px; }
.cart-step {
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s var(--ease, ease);
}
.cart-step:hover { background: rgba(255,255,255,.8); }
.cart-qty { min-width: 22px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.cart-remove {
  border: 0; background: none; color: color-mix(in oklab, var(--ink) 45%, transparent);
  font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; transition: color .15s var(--ease, ease);
}
.cart-remove:hover { color: var(--c-offers); }
.cart-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; color: color-mix(in oklab, var(--ink) 50%, transparent); }
.cart-empty svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .5; }
.cart-empty p { margin: 0; font-size: 15px; font-weight: 600; }
.cart-foot { flex: none; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(13,26,33,.08); background: color-mix(in oklab, #fff 70%, transparent); }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cart-subtotal span { font-size: 15px; color: color-mix(in oklab, var(--ink) 70%, transparent); font-weight: 600; }
.cart-subtotal strong { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.cart-subtotal .unit { font-size: 13px; font-weight: 600; opacity: .65; }
.cart-checkout {
  width: 100%; border: 0; border-radius: 16px; padding: 16px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 28px color-mix(in oklab, var(--brand) 36%, transparent);
  transition: transform .15s var(--ease, ease), box-shadow .2s var(--ease, ease), opacity .2s;
}
.cart-checkout:hover { transform: translateY(-1px); box-shadow: 0 14px 34px color-mix(in oklab, var(--brand) 44%, transparent); }
.cart-checkout:active { transform: translateY(0); }
.cart-checkout:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.cart-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: color-mix(in oklab, var(--ink) 50%, transparent); }
body.cart-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-scrim { transition: none; }
}
@media (max-width: 760px) {
  .cart-drawer { width: 100vw; }
}
/* ════════════ /SF-CART ════════════ */

/* CMS brand logos in brand bubbles (fallback: initials) */
.bubble-logo { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; padding: 2%; box-sizing: border-box; }
