/* ZENVY storefront — mobile-first. Warm ivory / ink palette, bronze accent used sparingly. */
:root {
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --surface-2: #EEE9E1;
  --surface-3: #E4DDD2;
  --ink: #1C1A17;
  --ink-2: #4B463F;
  --muted: #857E74;
  --line: #E1DACF;
  --line-2: #CFC6B8;
  --accent: #8A6A3E;
  --accent-soft: #EFE6D8;
  --sale: #96402B;
  --ok: #3F6B4E;
  --warn: #A5562A;
  --scrim: rgba(28, 26, 23, .42);
  --shadow: 0 1px 2px rgba(28,26,23,.04), 0 12px 32px -12px rgba(28,26,23,.16);

  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 2px;
  --r-lg: 4px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1440px;
  --hdr: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #131210;
  --surface: #1A1916;
  --surface-2: #211F1B;
  --surface-3: #2B2823;
  --ink: #EDE8E0;
  --ink-2: #C7C0B4;
  --muted: #8F887D;
  --line: #2D2A25;
  --line-2: #3B3731;
  --accent: #C9A46A;
  --accent-soft: #2C2519;
  --sale: #D9826A;
  --ok: #8DBB98;
  --warn: #E0A06E;
  --scrim: rgba(0,0,0,.6);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}
[lang="ar"] {
  --serif: 'Amiri', 'Noto Naskh Arabic', serif;
  --sans: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
[lang="ar"] body { font-size: 16px; letter-spacing: 0; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.ok { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.warn { color: var(--warn); display: block; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
[lang="ar"] .serif { letter-spacing: 0; font-weight: 700; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.h-sm { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
[lang="ar"] .h-sm { letter-spacing: 0; font-size: 15px; }
.page-title { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin: 8px 0 28px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
@media (max-width: 1023px) { .hide-m { display: none !important; } }
@media (min-width: 1024px) { .hide-d { display: none !important; } }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
[lang="ar"] .btn { letter-spacing: 0; font-size: 14.5px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover:not(:disabled) { background: var(--ink-2); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-block: 10px; }
.btn-grow { flex: 1; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 11.5px; }
.btn-lg { min-height: 56px; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--bg); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-line.loading::after { border-color: var(--ink); border-right-color: transparent; }
.btn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background-color .2s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn-line { border: 1px solid var(--line-2); border-radius: var(--r); width: 48px; height: 48px; }
.text-btn { font-size: 13px; font-weight: 500; padding: 8px 10px; }
.text-btn:hover, .link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid currentColor; transition: gap .3s var(--ease); }
[lang="ar"] .link-arrow { letter-spacing: 0; font-size: 14px; }
.link-arrow:hover { gap: 12px; }
.badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; transform: scale(0); transition: transform .3s var(--ease-out); }
.badge.on { transform: scale(1); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; background: var(--surface); color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--r); }
[lang="ar"] .tag { letter-spacing: 0; font-size: 12px; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-muted { background: var(--surface-2); color: var(--muted); }
.tag-gift { background: var(--accent-soft); color: var(--accent); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 40px; font-size: 13px; transition: all .2s var(--ease); }
.chip span { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on span { color: inherit; opacity: .7; }

/* ------------------------------------------------------------- header */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: 12px; letter-spacing: .06em; padding: 9px var(--gutter); }
[lang="ar"] .announce { letter-spacing: 0; font-size: 13px; }
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s, background-color .3s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr.tucked { transform: translateY(-100%); }
.hdr-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hdr); }
.hdr-start, .hdr-end { display: flex; align-items: center; gap: 2px; }
.hdr-end { justify-content: flex-end; }
.logo { direction: ltr; font-family: 'Bodoni Moda', 'Didot', serif; font-weight: 500; font-size: 21px; letter-spacing: .28em; margin-right: -.28em; line-height: 1; white-space: nowrap; }
.logo-sm { font-size: 18px; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; padding: 9px 0; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; }
.search-trigger:hover { color: var(--ink); border-color: var(--ink); }
.hdr-nav ul { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 38px); height: 44px; align-items: center; }
.hdr-nav a { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 12px 0; color: var(--ink-2); transition: color .2s; }
[lang="ar"] .hdr-nav a { letter-spacing: 0; font-size: 14px; }
.hdr-nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.hdr-nav a:hover, .hdr-nav a.on { color: var(--ink); }
.hdr-nav a:hover::after, .hdr-nav a.on::after { transform: scaleX(1); }
.hdr-nav .nav-sale { color: var(--sale); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: inline-block; }
[data-theme="dark"] .i-moon { display: none; }
.t-light { display: none; }
[data-theme="dark"] .t-light { display: inline; }
[data-theme="dark"] .t-dark { display: none; }
@media (min-width: 1024px) { :root { --hdr: 72px; } .logo { font-size: 28px; letter-spacing: .34em; margin-right: -.34em; } }

/* ------------------------------------------------------------- panels (drawers / sheets) */
.panel { position: fixed; inset: 0; z-index: 60; }
.panel[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .35s var(--ease); }
.panel.open .scrim { opacity: 1; }
.sheet { position: absolute; top: 0; bottom: 0; width: min(440px, 92vw); background: var(--bg); display: flex; flex-direction: column; transition: transform .45s var(--ease-out); box-shadow: var(--shadow); }
.panel-start .sheet { inset-inline-start: 0; transform: translateX(-100%); }
.panel-end .sheet { inset-inline-end: 0; transform: translateX(100%); }
[dir="rtl"] .panel-start .sheet { transform: translateX(100%); }
[dir="rtl"] .panel-end .sheet { transform: translateX(-100%); }
.panel.open .sheet { transform: none !important; }
.panel-top .sheet { inset-inline: 0; bottom: auto; width: 100%; max-height: 88vh; transform: translateY(-100%); overflow: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.sheet-body { flex: 1; overflow: auto; padding: 18px 22px; overscroll-behavior: contain; }
.sheet-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--bg); }
.menu-list { flex: 1; overflow: auto; padding: 8px 0; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 13px 22px; font-size: 15px; border-bottom: 1px solid var(--line); }
.menu-item span { flex: 1; }
.menu-cat img, .menu-cat .img-fallback { width: 44px; height: 54px; object-fit: cover; background: var(--surface-2); }
.menu-foot { display: grid; gap: 2px; padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.menu-foot a, .menu-foot button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; font-size: 14px; text-align: start; }
.search-sheet { padding: 6px 0 28px; }
.search-form { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; font-size: clamp(18px, 2.6vw, 26px); font-family: var(--serif); padding: 8px 0; outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-results { padding-top: 22px; display: grid; gap: 18px; }
.search-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.search-cats a { display: grid; gap: 6px; font-size: 13px; }
.search-cats img, .search-cats .img-fallback { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--surface-2); }
@media (min-width: 768px) { .search-cats { grid-template-columns: repeat(8, 1fr); } }
.suggest li a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.suggest img, .suggest .img-fallback { width: 52px; height: 64px; object-fit: cover; background: var(--surface-2); }
.suggest b { display: block; font-weight: 500; }

/* ------------------------------------------------------------- toast */
#toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); margin: auto; max-width: 420px; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--ink); color: var(--bg); font-size: 14px; border-radius: var(--r); transform: translateY(140%); transition: transform .45s var(--ease-out); }
#toast.show { transform: none; }
#toast a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- main transitions & reveal */
#main { min-height: 60vh; outline: none; transition: opacity .25s var(--ease); }
#main.leaving { opacity: .35; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.ssr { padding-block: 40px; }
.ssr h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 12px; }
.ssr nav, .ssr ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ssr img { width: 30%; display: inline-block; }

/* ------------------------------------------------------------- images */
.img-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); color: var(--line-2); }
.img-fallback span { font-family: 'Bodoni Moda', serif; letter-spacing: .3em; font-size: 13px; }

/* ------------------------------------------------------------- hero */
.hero { position: relative; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; display: grid; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.hero-slide.active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease); }
.hero-media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.hero-media img, .hero-media .img-fallback { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.active .hero-media img { transform: scale(1); }
.hero-copy { padding: 28px var(--gutter) 22px; display: grid; gap: 14px; justify-items: start; align-content: center; }
.hero-title { font-size: clamp(38px, 9vw, 92px); line-height: .98; max-width: 11ch; }
[lang="ar"] .hero-title { line-height: 1.25; }
.hero-sub { color: var(--ink-2); max-width: 38ch; font-size: 15.5px; }
.hero-copy .btn { margin-top: 8px; }
.hero-slide.active .hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-slide.active .hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-slide.active .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-slide.active .hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-ctrl { display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter) 8px; }
.hero-count { font-size: 12px; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-count b { color: var(--ink); font-weight: 600; }
.hero-bars { display: flex; gap: 6px; flex: 1; max-width: 220px; }
.hero-bars button { flex: 1; height: 18px; display: flex; align-items: center; }
.hero-bars i { display: block; width: 100%; height: 1.5px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-bars i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero-bars i::after { transform-origin: right; }
.hero-bars button.on i::after { transform: scaleX(1); }
.hero.run .hero-bars button.on i::after { animation: bar 7s linear both; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 4px; margin-inline-start: auto; }
@media (min-width: 900px) {
  .hero-slide { grid-template-columns: 1.65fr 1fr; min-height: min(84vh, 820px); }
  .hero-media { aspect-ratio: auto; height: 100%; }
  .hero-copy { padding: 40px clamp(32px, 5vw, 88px); }
  .hero-ctrl { position: absolute; inset-inline-end: 0; bottom: 28px; width: calc(100% / 2.65); padding: 0 clamp(32px, 5vw, 88px); }
}

/* ------------------------------------------------------------- sections */
.sec { padding-block: clamp(48px, 8vw, 104px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 36px); }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05; }
.sec-head p { margin-top: 6px; font-size: 14px; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); padding: 0; }
.promises > div { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); padding: 18px clamp(10px, 2vw, 28px); }
.promises .ic { color: var(--accent); margin-top: 2px; }
.promises b { display: block; font-weight: 600; font-size: 13.5px; }
.promises span { display: block; color: var(--muted); font-size: 12.5px; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(4, 1fr); } .promises > div { padding: 24px 28px; } }

.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cats::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; display: grid; gap: 12px; }
.cat-media { display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.cat-media img, .cat-media .img-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat:hover .cat-media img { transform: scale(1.045); }
.cat-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.cat-n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.cat-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.cat-count { font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; overflow: visible; margin: 0; padding: 0; } }

.promos { display: grid; gap: 14px; padding-top: clamp(48px, 8vw, 104px); }
.promo { position: relative; display: grid; overflow: hidden; background: var(--surface-2); }
.promo-media { aspect-ratio: 4 / 3; overflow: hidden; }
.promo-media img, .promo-media .img-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.promo:hover .promo-media img { transform: scale(1.04); }
.promo-copy { display: grid; gap: 8px; justify-items: start; padding: 22px 22px 26px; background: var(--surface); }
.promo-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.promo-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
@media (min-width: 900px) {
  .promos { grid-template-columns: 1fr 1fr; gap: 20px; }
  .promo-media { aspect-ratio: 5 / 6; }
  .promo-copy { position: absolute; inset-inline-start: 24px; bottom: 24px; max-width: 360px; padding: 26px 28px; }
}

.gift-band { margin-top: clamp(48px, 8vw, 104px); background: var(--accent-soft); }
.gift-inner { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding-block: 24px; }
.gift-media { width: 72px; height: 88px; overflow: hidden; background: var(--surface); }
.gift-media img { width: 100%; height: 100%; object-fit: cover; }
.gift-inner .eyebrow { color: var(--accent); }
.gift-title { font-size: clamp(18px, 2.3vw, 26px); line-height: 1.3; margin-top: 4px; }
.gift-inner .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .gift-inner { grid-template-columns: 96px 1fr auto; padding-block: 28px; } .gift-media { width: 96px; height: 118px; } .gift-inner .btn { grid-column: auto; } }

/* ------------------------------------------------------------- product cards & grids */
.grid.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
@media (min-width: 640px) { .grid.products { grid-template-columns: repeat(3, 1fr); gap: 36px 16px; } }
@media (min-width: 1200px) { .grid.products { grid-template-columns: repeat(4, 1fr); gap: 44px 20px; } }
.plp-results .grid.products { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .plp-results .grid.products { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.card-media img, .card-media .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.4s var(--ease-out); }
.card-media .img-b { opacity: 0; }
@media (hover: hover) {
  .card:hover .img-b { opacity: 1; }
  .card:hover .card-media img { transform: scale(1.035); }
}
.card-tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; z-index: 1; }
.wish-btn { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); transition: transform .3s var(--ease-out), color .2s; }
.wish-btn:hover { transform: scale(1.1); }
.wish-btn.on, .wish-big.on { color: var(--sale); }
.wish-btn.on svg, .wish-big.on svg { fill: currentColor; }
.card-body { display: grid; gap: 4px; }
.card-title { font-size: 14px; font-weight: 500; line-height: 1.35; }
[lang="ar"] .card-title { font-size: 15px; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: 12.5px; }
.price.sale .now { color: var(--sale); }
.swatches { display: flex; gap: 5px; margin-top: 2px; }
.swatches i, .color-opt i, .quick-choices i { width: 11px; height: 11px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); display: inline-block; }

/* quick add: overlays the bottom of the image on hover-capable desktops; touch users add from the product page */
.quick { display: none; }
@media (hover: hover) and (min-width: 1024px) {
  .card .quick { position: absolute; top: 0; inset-inline: 0; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; pointer-events: none; z-index: 2; }
  .card .quick > * { pointer-events: auto; }
  .quick-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; width: 100%; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .45s var(--ease-out), background-color .2s; }
  [lang="ar"] .quick-btn { letter-spacing: 0; font-size: 13px; }
  .quick-btn:hover { background: var(--ink); color: var(--bg); }
  .card:hover .quick-btn, .quick-btn:focus-visible { opacity: 1; transform: none; }
  .card.choosing .quick-btn { display: none; }
  .quick-choices { display: none; flex-wrap: wrap; gap: 6px; padding: 10px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rise .35s var(--ease-out); }
  .card.choosing .quick-choices { display: flex; }
  .quick-choices button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 30px; font-size: 12px; background: var(--surface); }
  .quick-choices button:hover:not(:disabled) { border-color: var(--ink); }
  .quick-choices button:disabled { opacity: .4; text-decoration: line-through; }
}

/* rails */
.wrap-rail { max-width: var(--max); margin-inline: auto; padding-inline-start: var(--gutter); }
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline-end: var(--gutter); scroll-padding-inline: 0; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > .card { scroll-snap-align: start; }
@media (min-width: 640px) { .rail-track { grid-auto-columns: 38%; } }
@media (min-width: 1024px) { .rail-track { grid-auto-columns: calc((100% - var(--gutter) - 60px) / 4.25); gap: 20px; } }
.rail-nav { position: absolute; top: -78px; inset-inline-end: var(--gutter); display: flex; gap: 6px; }
.wrap .rail-nav { inset-inline-end: 0; }
.wrap .rail-track { margin-inline-end: calc(var(--gutter) * -1); }
.sec-head + .rail .rail-nav, .wrap-rail .rail-nav { top: -84px; }
.wrap-rail .rail-nav { display: none; }
@media (min-width: 1024px) { .wrap-rail .rail-nav { display: flex; } .sec-head:has(+ .rail) .link-arrow, .wrap:has(+ .wrap-rail) .link-arrow { margin-inline-end: 110px; } }

/* bundles */
.bundles { display: grid; gap: 16px; }
@media (min-width: 1024px) { .bundles { grid-template-columns: 1fr 1fr; gap: 20px; } }
.bundle { border: 1px solid var(--line); background: var(--surface); padding: 18px; display: grid; gap: 18px; }
.bundle-items { display: flex; align-items: center; gap: 10px; }
.bundle-item { flex: 1; display: grid; gap: 6px; font-size: 13px; min-width: 0; }
.bundle-item img, .bundle-item .img-fallback { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--surface-2); }
.bundle-plus { color: var(--muted); }
.bundle-foot { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.bundle-name { font-size: 20px; line-height: 1.2; }
.bundle-price { display: grid; text-align: end; font-variant-numeric: tabular-nums; }
.bundle-price s { color: var(--muted); font-size: 13px; }
.bundle-price b { font-weight: 600; font-size: 17px; }
.bundle-foot .btn { grid-column: 1 / -1; }

/* ------------------------------------------------------------- breadcrumbs & listing */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); padding-top: 18px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--ink); }
.plp-head { padding: 22px 0 20px; display: grid; gap: 10px; max-width: 720px; }
.plp-head h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.02; }
.plp .chips { margin-bottom: 18px; }
.plp-bar { position: sticky; top: var(--hdr); z-index: 5; display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 0; margin-bottom: 18px; background: var(--bg); border-block: 1px solid var(--line); transition: top .45s var(--ease); }
body:has(.hdr.tucked) .plp-bar { top: 0; }
@media (min-width: 1024px) { .plp-bar { top: calc(var(--hdr) + 44px); } }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plp-count { font-size: 13px; }
.sort { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { appearance: none; border: 0; background: none; padding: 6px 22px 6px 0; color: var(--ink); font-weight: 500; cursor: pointer; }
[dir="rtl"] .sort select { padding: 6px 0 6px 22px; }
.sort .ic { position: absolute; inset-inline-end: 0; pointer-events: none; color: var(--ink); }
.plp-body { display: grid; gap: 32px; }
@media (min-width: 1024px) { .plp-body { grid-template-columns: 228px 1fr; gap: 44px; } .filters { position: sticky; top: calc(var(--hdr) + 44px + 74px); align-self: start; max-height: calc(100vh - 220px); overflow: auto; } }
.fgroup { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fgroup legend { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
[lang="ar"] .fgroup legend { letter-spacing: 0; font-size: 14px; }
.radio, .color-opt, .check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.radio input, .check input, .color-opt input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.color-list { display: grid; gap: 2px; }
.color-opt em { margin-inline-start: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.color-opt i { width: 14px; height: 14px; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--line-2); transition: background .25s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .25s var(--ease-out); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(16px); }
[dir="rtl"] .switch input:checked + .track::after { transform: translateX(-16px); }
.switch input:focus-visible + .track { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.more { display: grid; justify-items: center; gap: 14px; padding: 56px 0 0; }
.meter { width: 180px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.meter i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--ink); transition: width .6s var(--ease-out); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 72px 20px; text-align: center; }
.empty .serif { font-size: 26px; }
.empty .ic { color: var(--muted); }
.empty-404 .big-serif { font-family: var(--serif); font-size: clamp(90px, 18vw, 180px); line-height: 1; color: var(--line-2); }

/* ------------------------------------------------------------- product page */
.pdp-grid { display: grid; gap: 28px; padding-top: 14px; }
@media (min-width: 1024px) { .pdp-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); padding-top: 22px; } }
.gallery { display: grid; gap: 14px; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 1024px) { .gallery { grid-template-columns: 76px 1fr; margin: 0; align-items: start; } }
.g-thumbs { display: grid; gap: 10px; position: sticky; top: calc(var(--hdr) + 60px); }
.g-thumbs button { aspect-ratio: 4 / 5; overflow: hidden; opacity: .55; transition: opacity .25s; outline-offset: 2px; background: var(--surface-2); }
.g-thumbs button.on, .g-thumbs button:hover { opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-main { position: relative; min-width: 0; }
.g-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.g-slide img, .g-slide .img-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.g-slide.zoomed img { transform: scale(1.7); }
@media (min-width: 1024px) { .g-track { grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; overflow: visible; } }
.g-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: all .3s; }
.g-dots i.on { background: #fff; width: 18px; border-radius: 3px; }
.pdp-info { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) { .pdp-info { position: sticky; top: calc(var(--hdr) + 64px); padding-bottom: 40px; } }
.pdp-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price .price { font-size: 19px; }
.pdp-form { display: grid; gap: 14px; padding-top: 6px; }
.variants legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.variants legend b { color: var(--ink); font-weight: 500; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line-2); border-radius: 40px; font-size: 13px; cursor: pointer; transition: border-color .2s; }
.swatch input { position: absolute; opacity: 0; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatch:hover { border-color: var(--ink-2); }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:has(input:focus-visible) { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.swatch.out { opacity: .45; cursor: not-allowed; }
.swatch.out span { text-decoration: line-through; }
.stock-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); min-height: 20px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-ok { background: var(--ok); }
.dot-low { background: var(--warn); animation: pulse 2s infinite; }
.dot-out { background: var(--muted); }
@keyframes pulse { 50% { opacity: .35; } }
.buy-row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); height: 48px; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover:not(:disabled) { color: var(--ink); }
.qty button:disabled { opacity: .3; }
.qty input { width: 34px; border: 0; background: none; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.qty-sm { height: 34px; }
.qty-sm button { width: 30px; }
.qty-sm span { min-width: 22px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.pdp-delivery { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.pdp-delivery .ic { color: var(--accent); margin-top: 2px; }
.inline-select { font-size: 14px; font-weight: 500; }
.inline-select select { border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 2px; }
.pdp-points { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pdp-points li { display: flex; align-items: center; gap: 10px; }
.accordion { border-top: 1px solid var(--line); margin-top: 6px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
[lang="ar"] .accordion summary { letter-spacing: 0; font-size: 15px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ic { transition: transform .3s var(--ease); }
.accordion details[open] summary .ic { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.dots li { position: relative; padding-inline-start: 16px; margin: 3px 0; }
.dots li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.share { justify-self: start; }
.pdp-sticky { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease-out); }
.pdp-sticky.show { transform: none; }
.pdp-sticky div { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.pdp-sticky b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky .btn { min-height: 44px; padding: 0 18px; }

/* ------------------------------------------------------------- cart lines & summary */
.lines { display: grid; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.line-img img, .line-img .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.line-main { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.line-name { font-weight: 500; font-size: 14px; line-height: 1.35; }
.line-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.line-price { display: grid; text-align: end; font-size: 14px; font-variant-numeric: tabular-nums; }
.line-price s { color: var(--muted); }
.line-bad .line-img { opacity: .55; }
.line-gift { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.sk-line { height: 92px; margin: 10px 0; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.prog { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.prog .ic { color: var(--accent); flex: none; }
.prog > div { flex: 1; display: grid; gap: 8px; }
.prog .meter { width: 100%; }
.prog-done { background: var(--accent-soft); border-color: transparent; }
.empty-drawer { flex: 1; align-content: center; }
.sum { display: grid; gap: 10px; margin: 16px 0 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.sum-row dt, .sum-row dd { margin: 0; }
.sum-row dd { font-variant-numeric: tabular-nums; text-align: end; }
.sum-row.save dd { color: var(--ok); }
.sum-strong { font-weight: 600; font-size: 15px; }
.sum-total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.cart-grid, .order-grid { display: grid; gap: 32px; }
.cart-grid > *, .order-grid > *, .co-grid > *, .co-main > *, .pdp-grid > * { min-width: 0; }
.summary { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; align-content: start; }
@media (min-width: 1024px) { .cart-grid, .order-grid { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; } .summary { position: sticky; top: calc(var(--hdr) + 64px); } }

/* ------------------------------------------------------------- forms */
.fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field > span:first-child { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .phone-in, .code-row input {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus, .phone-in:focus-within, .code-row input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input:disabled { opacity: .6; }
.phone-in { display: flex; align-items: center; gap: 10px; padding-block: 0; }
.phone-in span { color: var(--muted); font-size: 14px; padding-inline-end: 10px; border-inline-end: 1px solid var(--line); }
.phone-in input { border: 0 !important; box-shadow: none !important; padding: 0; min-height: 46px; background: none; }
.select { position: relative; display: block; }
.select select { appearance: none; padding-inline-end: 38px; cursor: pointer; }
.select .ic { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid .phone-in, .field.invalid textarea { border-color: var(--sale); }
.field-error { color: var(--sale); font-size: 12.5px; }
.form-alert { padding: 12px 14px; border-inline-start: 2px solid var(--sale); background: color-mix(in srgb, var(--sale) 8%, transparent); color: var(--sale); font-size: 14px; }
.notice { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; margin: 16px 0; }
.notice a { text-decoration: underline; }

/* ------------------------------------------------------------- checkout */
body.is-checkout .hdr-nav, body.is-checkout .announce, body.is-checkout .hdr-start > *, body.is-checkout [data-action="theme"], body.is-checkout .ftr-grid { display: none !important; }
.co-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.co-grid { display: grid; gap: 28px; padding-bottom: 64px; }
@media (min-width: 1024px) { .co-grid { grid-template-columns: 1fr 400px; gap: 56px; align-items: start; } .sticky-side { position: sticky; top: calc(var(--hdr) + 20px); } }
.co-main { display: grid; gap: 22px; }
.co-step { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.co-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
[dir="rtl"] .co-step legend { float: right; }
.co-step legend + * { clear: both; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.addr-pick { display: grid; gap: 10px; }
.addr-opt, .pay-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 14px; transition: border-color .2s, background .2s; }
.addr-opt:has(input:checked), .pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.addr-opt input, .pay-opt input { accent-color: var(--ink); margin-top: 3px; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt > span:nth-of-type(2) { flex: 1; display: grid; gap: 3px; }
.pay-opt small { font-size: 12.5px; }
.pay-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.pay-ic { color: var(--accent); }
.pay-brands { display: flex; gap: 4px; }
.pay-brands i, .pay-chip { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.map-field { gap: 10px; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map-head > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.map { height: 280px; background: var(--surface-2); border: 1px solid var(--line-2); z-index: 0; }
.map.map-off { display: grid; place-items: center; height: auto; padding: 22px; text-align: center; }
.map-status { min-height: 18px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
[data-theme="dark"] .leaflet-tile-pane { filter: grayscale(.4) brightness(.8) contrast(1.1); }
.mini-lines { display: grid; gap: 14px; max-height: 340px; overflow: auto; padding: 4px 0 6px; }
.mini-lines li { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.mini-lines b { font-weight: 500; display: block; }
.mini-lines small { display: block; }
.mini-img { position: relative; display: block; width: 58px; aspect-ratio: 4 / 5; background: var(--surface-2); }
.mini-img img, .mini-img .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.mini-img em { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: var(--bg); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.code-box { padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input { min-height: 42px; text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------------------- order */
.order { padding-bottom: 72px; }
.order-hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 0 34px; }
.order-hero .ic { color: var(--ok); }
.order-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.order-failed .ic { color: var(--warn); }
.order-hero-plain { justify-items: start; text-align: start; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 14px; counter-reset: s; }
.steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; text-align: center; color: var(--muted); padding-top: 22px; }
.steps li span { position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg); z-index: 1; }
.steps li::before { content: ''; position: absolute; top: 5.5px; inset-inline-start: -50%; width: 100%; height: 1.5px; background: var(--line-2); }
.steps li:first-child::before { display: none; }
.steps li.done, .steps li.now { color: var(--ink); }
.steps li.done span { background: var(--ink); border-color: var(--ink); }
.steps li.done::before, .steps li.now::before { background: var(--ink); }
.steps li.now span { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }
.lines-static .line { grid-template-columns: 64px 1fr auto; }
.kv { display: grid; gap: 14px; padding-top: 8px; font-size: 14px; }
.kv p { display: grid; gap: 2px; }
.kv .pm { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.kv .muted { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
[lang="ar"] .kv .muted { letter-spacing: 0; font-size: 13px; }

/* ------------------------------------------------------------- account */
.auth { padding-block: 32px 72px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-tabs button { padding: 14px; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1.5px solid transparent; color: var(--muted); }
.auth-tabs button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.auth-grid { display: grid; gap: 24px; }
.auth-card { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); }
.auth-card h1, .auth-card h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
.auth-card-alt { background: transparent; }
@media (max-width: 1023px) { .auth-grid[data-tabbed="login"] .auth-card-alt, .auth-grid[data-tabbed="register"] .auth-card:not(.auth-card-alt) { display: none; } }
@media (min-width: 1024px) { .auth-grid { grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1080px; margin: 24px auto 0; } }
.acct { padding-bottom: 72px; }
.acct-head { padding: 32px 0 26px; display: grid; gap: 6px; }
.acct-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.acct-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .acct-grid { grid-template-columns: 220px 1fr; gap: 56px; } }
.acct-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.acct-nav a, .acct-nav button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; white-space: nowrap; color: var(--ink-2); border-bottom: 1.5px solid transparent; }
.acct-nav a.on { color: var(--ink); border-color: var(--ink); }
@media (min-width: 1024px) { .acct-nav { flex-direction: column; border: 0; align-self: start; position: sticky; top: calc(var(--hdr) + 64px); } .acct-nav a, .acct-nav button { border: 0; border-inline-start: 1.5px solid var(--line); } .acct-nav a.on { border-color: var(--ink); background: var(--surface); } }
.acct-body { display: grid; gap: 22px; align-content: start; min-width: 0; }
.order-list { display: grid; border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-row > .ic { display: none; }
.order-thumbs { display: flex; grid-row: span 2; }
.order-thumbs img, .order-thumbs .img-fallback { width: 44px; height: 54px; object-fit: cover; border: 2px solid var(--bg); margin-inline-start: -14px; background: var(--surface-2); }
.order-thumbs > :first-child { margin-inline-start: 0; }
.order-meta { display: grid; }
.order-total { font-variant-numeric: tabular-nums; grid-column: 3; grid-row: 1; text-align: end; }
.status { justify-self: start; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; border-radius: 20px; background: var(--surface-2); color: var(--ink-2); }
.status-delivered { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.status-cancelled, .status-returned { background: var(--surface-2); color: var(--muted); }
.status-out_for_delivery { background: var(--accent-soft); color: var(--accent); }
@media (min-width: 768px) { .order-row { grid-template-columns: auto 1fr auto auto 20px; } .order-thumbs { grid-row: auto; } .order-total { grid-column: auto; grid-row: auto; } .order-row > .ic { display: block; color: var(--muted); } .status { justify-self: end; } }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-actions { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.addr-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .addr-list { grid-template-columns: 1fr 1fr; } }
.addr-card { background: var(--surface); border: 1px solid var(--line); padding: 20px; display: grid; gap: 6px; align-content: space-between; font-size: 14px; }
.addr-card p { color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
.addr-form, .panel-form { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.panel-form .btn { justify-self: start; }

/* ------------------------------------------------------------- info / sandbox / table */
.info { padding-bottom: 72px; max-width: 920px; }
.prose { display: grid; gap: 18px; font-size: 16px; color: var(--ink-2); line-height: 1.75; }
.info-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.info-nav a.on { text-decoration: underline; text-underline-offset: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: start; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sandbox { display: grid; place-items: center; min-height: 70vh; padding-block: 40px; }
.sandbox-card { position: relative; overflow: hidden; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); padding: 40px 32px 32px; display: grid; gap: 12px; text-align: center; }
.sandbox-card h1 { font-size: 44px; }
.test-ribbon { position: absolute; top: 0; inset-inline: 0; background: repeating-linear-gradient(-45deg, #E9B949, #E9B949 10px, #1C1A17 10px, #1C1A17 20px); color: transparent; height: 6px; }
.sandbox-actions { display: grid; gap: 10px; margin-top: 12px; }

/* ------------------------------------------------------------- footer */
.ftr { margin-top: clamp(64px, 10vw, 128px); border-top: 1px solid var(--line); background: var(--surface); }
.ftr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: 52px 40px; }
.ftr-brand { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.ftr-tag { font-family: var(--serif); font-size: 22px; }
.ftr-contact { display: grid; gap: 6px; font-size: 14px; }
.ftr-contact a { display: inline-flex; align-items: center; gap: 8px; }
.ftr-social { display: flex; gap: 6px; }
.ftr-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; }
.ftr h3 { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
[lang="ar"] .ftr h3 { letter-spacing: 0; font-size: 14px; }
.ftr ul { display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.ftr ul a:hover { color: var(--ink); }
.ftr .link-btn { font-size: 14px; padding: 0; }
.ftr-base { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.accept { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.accept > span:first-child { margin-inline-end: 4px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ftr-brand { grid-column: auto; } }
body.is-checkout .ftr { margin-top: 24px; }

/* ------------------------------------------------------------- Leaflet tweaks */
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- bank transfer ---------- */
.bank-box { max-width: 720px; margin: 8px auto 28px; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); }
.bank-box h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.bank-box > p { margin: 0 0 12px; line-height: 1.6; }
.bank-box dl { margin: 0 0 12px; border-top: 1px solid var(--line); }
.bank-row { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bank-row dt { color: var(--muted); font-size: 13px; }
.bank-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; font-weight: 600; font-size: 14px; }
.bank-row bdi { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bank-row .link-btn { flex: none; }
.bank-box .warn { margin: 8px 0 0; }
