/* Hdiya storefront. Mobile first; colours and fonts live in :root. */

:root {
  /* Brand: "Souk moderne" — Moroccan emerald, brass and warm cream */
  --bg: #fffdf8;
  --soft: #f6f1e6;
  --soft-2: #ebe3d1;
  --ink: #14231d;
  --ink-2: #34443d;
  --muted: #76807a;
  --line: #e7dfcd;
  --accent: #0e5a43;       /* emerald */
  --accent-2: #b8893b;     /* brass */
  --accent-soft: #e3efe9;
  --ok: #2f7d55;
  --bad: #b3261e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 29, .05), 0 6px 20px rgba(20, 35, 29, .06);
  --shadow-lg: 0 2px 4px rgba(20, 35, 29, .05), 0 18px 44px rgba(20, 35, 29, .10);
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tabbar: 68px;
  color-scheme: light;
}

[dir="rtl"] {
  --serif: "Noto Kufi Arabic", "Fraunces", serif;
  --sans: "Noto Kufi Arabic", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.i { flex: none; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.link .i { transition: transform .3s var(--ease); }
.link:hover .i { transform: translateX(3px); }
[dir="rtl"] .link .i, [dir="rtl"] .btn .i-flip { transform: scaleX(-1); }

/* ---------- Type ---------- */
.display {
  font: 400 clamp(38px, 10vw, 76px)/1.02 var(--serif);
  letter-spacing: -.025em;
  margin: 0;
}
.display em { font-style: italic; color: var(--accent); position: relative; white-space: nowrap; }
.display em::after {
  content: ""; position: absolute; inset-inline: 2%; bottom: .06em; height: .09em;
  background: var(--accent-2); border-radius: 99px; opacity: .55; z-index: -1;
  transform-origin: left; animation: underline 1.1s .5s var(--ease) both;
}
.display.small { font-size: clamp(28px, 7vw, 46px); }
[dir="rtl"] .display { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
[dir="rtl"] .display em { font-style: normal; }
.h2 { font: 500 clamp(24px, 5.5vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; margin: 0; }
.h3 { font: 600 18px/1.3 var(--sans); margin: 0 0 14px; }
[dir="rtl"] .h2 { letter-spacing: 0; font-weight: 700; }
.lead { font-size: 16.5px; color: var(--ink-2); max-width: 34em; margin: 14px 0 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px 7px 10px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.kicker.small { margin-bottom: 10px; box-shadow: none; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(217, 87, 58, .5); animation: ping 2.2s infinite; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 99px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid var(--line); background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { box-shadow: 0 10px 30px rgba(23, 19, 15, .25); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { min-height: 58px; font-size: 16px; padding: 0 28px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 4.5s 1.5s infinite;
}
.btn.loading { pointer-events: none; }
.btn.loading > * { opacity: .55; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--soft); }
.badge {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.badge.bump { animation: bump .5s var(--ease); }

/* ---------- Header ---------- */
.ticker { background: var(--ink); color: #f6efe7; font-size: 12px; font-weight: 500; overflow: hidden; height: 32px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 42px; white-space: nowrap; animation: marquee 32s linear infinite; padding-inline-start: 42px; }
.ticker-track span { display: inline-flex; align-items: center; gap: 7px; }
.ticker-track .i { color: var(--accent-2); }
[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--ink); display: inline-flex; }
.logo-bow { transform-origin: 16px 13px; animation: bow 6s ease-in-out infinite; }
.logo-word { font: 500 25px/1 var(--serif); letter-spacing: -.02em; text-transform: lowercase; }
.topnav { display: none; gap: 4px; margin-inline-start: 18px; }
.topnav a { padding: 8px 14px; border-radius: 99px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); transition: background .2s; display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover, .topnav a.on { background: var(--soft); color: var(--ink); }
.ai-dot { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; }
.search {
  display: none; align-items: center; gap: 8px; flex: 1; max-width: 360px; margin-inline-start: auto;
  background: var(--soft); border-radius: 99px; padding: 0 16px; height: 42px; color: var(--muted);
  border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input { border: 0; background: none; outline: 0; flex: 1; min-width: 0; color: var(--ink); font-size: 14.5px; }
.top-actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.search + .top-actions { margin-inline-start: 8px; }
.langs { display: flex; background: var(--soft); border-radius: 99px; padding: 3px; margin-inline-end: 4px; }
.langs a { font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 99px; color: var(--muted); transition: background .2s, color .2s; }
.langs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.topbar.search-open .search { display: flex; position: absolute; inset-inline: 12px; top: 10px; max-width: none; background: #fff; border-color: var(--ink); z-index: 2; }
.topbar .cart-btn { display: none; }

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; transition: color .2s; }
.tabbar > .on, .tabbar > *:active { color: var(--ink); }
.tabbar .badge { top: 6px; inset-inline-end: calc(50% - 22px); }
.tab-ai-bubble {
  width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 22px rgba(217, 87, 58, .38), 0 0 0 5px #fff; position: relative;
}
.tab-ai-bubble::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: halo 2.8s infinite; }
.tab-ai { color: var(--ink) !important; }

/* ---------- Hero + finder ---------- */
.hero { position: relative; padding: 28px 0 40px; overflow: hidden; isolation: isolate; }
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.b1 { width: 380px; height: 380px; background: #fde1d3; top: -120px; inset-inline-end: -120px; animation: drift 18s ease-in-out infinite; }
.b2 { width: 300px; height: 300px; background: #fdf0cf; top: 30%; inset-inline-start: -160px; animation: drift 22s ease-in-out infinite reverse; }
.b3 { width: 260px; height: 260px; background: #efe6f8; bottom: -80px; inset-inline-end: 10%; animation: drift 26s ease-in-out infinite; }
.zellige { position: absolute; top: 0; inset-inline-end: 0; width: 60%; max-width: 520px; color: var(--accent); opacity: .08; mask-image: radial-gradient(circle at 70% 30%, #000 0, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0, transparent 70%); }
.float-gift { position: absolute; color: var(--accent); opacity: .5; animation: bob 6s ease-in-out infinite; }
.g1 { top: 18px; inset-inline-end: 22px; }
.g2 { top: 150px; inset-inline-end: 12%; color: var(--accent-2); animation-delay: -2s; display: none; }
.g3 { top: 64px; inset-inline-start: 46%; color: #9b7bc8; animation-delay: -4s; display: none; }
.hero-in { display: grid; gap: 26px; }
.hero-copy { animation: rise .9s var(--ease) both; }

.finder {
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); padding: 8px 18px 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: rise .9s .12s var(--ease) both;
}
.step { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; }
.step-n { font: italic 500 13px/1 var(--serif); color: var(--accent); background: var(--accent-soft); padding: 5px 7px; border-radius: 8px; }
.step-value { margin-inline-start: auto; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.step-value b { font: 500 22px/1 var(--serif); color: var(--ink); display: inline-block; min-width: 1.3em; text-align: end; }
.step-value small { font-size: 11.5px; color: var(--accent); font-weight: 700; margin-inline-start: 4px; background: var(--accent-soft); padding: 3px 8px; border-radius: 99px; }
.opt { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }

.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-opt input, .chip input, .wrap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gender-card {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 62px;
  border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 16px;
  transition: all .3s var(--ease); cursor: pointer; user-select: none;
}
.gender-glyph { font-size: 22px; line-height: 1; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.gender-opt:hover .gender-card { border-color: #d6cec4; }
.gender-opt input:checked + .gender-card { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(23, 19, 15, .18); animation: pop .4s var(--ease); }
.gender-opt input:checked + .gender-card .gender-glyph { color: var(--accent-2); transform: rotate(-12deg) scale(1.15); }
.gender-opt input:focus-visible + .gender-card, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .25s var(--ease); user-select: none;
}
.chip:hover span { border-color: #d6cec4; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); animation: pop .35s var(--ease); }
.chips.swap span { animation: fadeSwap .4s var(--ease); }

.range { position: relative; height: 34px; }
.range-track { position: absolute; inset-inline: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.range-track i { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.range input[type=range] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; height: 34px;
}
.range.single input[type=range] { pointer-events: auto; }
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 10px rgba(23, 19, 15, .2); cursor: grab;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.range input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink);
  box-shadow: 0 3px 10px rgba(23, 19, 15, .2); cursor: grab;
}
.range input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(14, 90, 67, .14), 0 3px 10px rgba(23, 19, 15, .2); cursor: grabbing; }
.range input[type=range]::-webkit-slider-runnable-track { background: none; }
.range input[type=range]::-moz-range-track { background: none; }
.range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }

.notes { position: relative; }
.notes textarea {
  width: 100%; resize: vertical; min-height: 96px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--soft);
  padding: 14px 16px 34px; font-size: 15px; line-height: 1.5; outline: 0; transition: border-color .25s, background .25s;
}
.notes textarea:focus { border-color: var(--ink); background: #fff; }
.notes textarea::placeholder { color: #a99f94; transition: opacity .3s; }
.notes textarea.ph-fade::placeholder { opacity: 0; }
.notes-hint { position: absolute; bottom: 12px; inset-inline-start: 16px; font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; pointer-events: none; }
.notes-hint .i { color: var(--accent); }
.form-error { color: var(--bad); font-weight: 600; font-size: 14px; margin: 4px 0 10px; animation: shake .4s; }
.finder .btn.big { width: 100%; margin-top: 4px; }

.hero-steps { display: none; list-style: none; padding: 0; margin: 34px 0 0; gap: 14px; counter-reset: s; }
.hero-steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink-2); counter-increment: s; }
.hero-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: italic 500 15px/1 var(--serif); background: #fff; border: 1px solid var(--line); color: var(--accent); flex: none; }

/* ---------- Results ---------- */
.results { padding-top: 10px; padding-bottom: 30px; scroll-margin-top: 70px; }
.thinking { display: grid; place-items: center; gap: 18px; padding: 60px 0; text-align: center; }
.thinking p { font-weight: 600; color: var(--ink-2); animation: fadeSwap .5s var(--ease); }
.orb { width: 84px; height: 84px; position: relative; }
.orb span { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: multiply; animation: orb 2.4s ease-in-out infinite; }
.orb span:nth-child(1) { background: #f7c3ae; }
.orb span:nth-child(2) { background: #f8dd9c; animation-delay: -.8s; }
.orb span:nth-child(3) { background: #d7c6ef; animation-delay: -1.6s; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.u-chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--soft); animation: pop .4s var(--ease) both; }
.u-chip.like { background: #e7f3ec; color: var(--ok); }
.u-chip.dislike { background: #fbe7e4; color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.u-chip.occasion { background: #fdf1d8; color: #8a5a00; }

.podium { display: grid; gap: 14px; margin-bottom: 36px; }
.pick {
  display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; padding: 12px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  position: relative; opacity: 0; animation: rise .6s var(--ease) forwards; animation-delay: var(--d, 0ms);
}
.pick-media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.pick-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pick:hover .pick-media img { transform: scale(1.05); }
.pick-rank { position: absolute; top: 8px; inset-inline-start: 8px; font: italic 500 13px/1 var(--serif); background: #fff; padding: 5px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.pick h3 { font: 600 15.5px/1.3 var(--sans); margin: 0 0 4px; }
.pick .reasons { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 3px; }
.pick .reasons li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.pick .reasons .i { color: var(--ok); margin-top: 2px; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.match-ring { --p: 80; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--soft-2) 0); display: grid; place-items: center; }
.match-ring::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.pick.first { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2), #c9b3ec) border-box; border: 1.5px solid transparent; }
.best-label { position: absolute; top: -11px; inset-inline-end: 16px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; }
.empty-note { text-align: center; padding: 30px 10px; color: var(--ink-2); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: 34px; }
.section.tight { padding-block-start: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head p { margin: 6px 0 0; }

.cat-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none; max-width: 1240px; margin: 0 auto; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 128px; scroll-snap-align: start; display: grid; gap: 4px; text-align: center; transition-delay: var(--d, 0ms); }
.cat-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--soft); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat-img { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat:hover .cat-img img { transform: scale(1.08); }
.cat-name { font-weight: 600; font-size: 13.5px; margin-top: 6px; line-height: 1.3; }

.occasions-band { padding: 10px 0; }
.occasions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.occasions::-webkit-scrollbar { display: none; }
.occ { flex: none; padding: 10px 16px; border-radius: 99px; border: 1px dashed #dcd3c8; font-weight: 600; font-size: 13.5px; transition: all .25s var(--ease); }
.occ:hover { background: var(--ink); color: #fff; border-color: var(--ink); border-style: solid; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.pill { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #fff; }
.pill.sale { background: var(--accent); color: #fff; }
.pill.dark { background: var(--ink); color: #fff; inset-inline-start: auto; inset-inline-end: 10px; }
.pill.big { font-size: 13px; padding: 6px 12px; top: 14px; inset-inline-start: 14px; z-index: 2; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card h3 { font: 600 14.5px/1.35 var(--sans); margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-weight: 700; font-size: 15px; }
.price s { color: var(--muted); font-size: 12.5px; }
.price.big strong { font: 500 30px/1 var(--serif); }
.price.big s { font-size: 15px; }
.add-btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: transform .3s var(--ease), background .3s;
}
.add-btn:hover { transform: rotate(90deg); }
.add-btn.done { background: var(--ok); transform: rotate(0) scale(1.1); }
.add-btn.small { width: 34px; height: 34px; }

.split-cta { display: grid; gap: 12px; }
.split {
  display: flex; align-items: center; justify-content: space-between; padding: 26px 24px; border-radius: var(--radius);
  min-height: 120px; position: relative; overflow: hidden; transition: transform .4s var(--ease);
}
.split::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -60px; top: -80px; opacity: .6; transition: transform .8s var(--ease); }
.split:hover { transform: translateY(-3px); }
.split:hover::before { transform: scale(1.25); }
.split > * { position: relative; }
.for-him { background: #eef1ea; }
.for-him::before { background: #d6e0cc; }
.for-her { background: #fbede8; }
.for-her::before { background: #f6d4c8; }

.trust-band { background: var(--soft); margin-top: 20px; }
.trust { display: grid; gap: 14px; }
.trust-item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; background: #fff; padding: 16px; border-radius: var(--radius); }
.trust-item .muted { grid-column: 2; font-size: 13px; }
.trust-ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ---------- Shop ---------- */
.page-head { padding-block: 24px 12px; }
.page-head p { margin: 6px 0 0; }
.filters-bar { position: sticky; top: 62px; z-index: 30; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 8px 0; border-bottom: 1px solid var(--line); }
.chip-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.chip-rail::-webkit-scrollbar { display: none; }
.chip-link { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; transition: all .2s; }
.chip-link.on, .chip-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; background: var(--soft); border-radius: 99px; padding: 3px; }
.seg a { white-space: nowrap; padding: 7px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .2s; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.select { min-width: 0; flex: 0 1 auto; }
.select select { height: 38px; border-radius: 99px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font-size: 13px; font-weight: 600; width: 100%; max-width: 170px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; border: 1px solid var(--line); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 14px; }
.empty-art { width: 110px; height: 110px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--accent); animation: bob 5s ease-in-out infinite; }

/* ---------- Product page ---------- */
.crumbs { padding-top: 14px; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; gap: 22px; padding-top: 12px; padding-bottom: 20px; }
.gallery { position: relative; margin-inline: -16px; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.gallery-dots { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; }
.gallery-dots button { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; flex: none; }
.gallery-dots button.on { border-color: var(--ink); opacity: 1; }
.gallery-dots img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin: 6px 0 14px; }
.ideal { margin: 20px 0; display: grid; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--soft); }
.tags.soft .tag { background: none; border: 1px solid var(--line); color: var(--muted); }
.buy { display: flex; gap: 10px; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; height: 50px; padding: 0 4px; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.stepper button:hover { background: var(--soft); }
.stepper input { width: 32px; text-align: center; border: 0; outline: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn.wa { color: #128c4b; }
.perks { list-style: none; margin: 22px 0; padding: 0; border-top: 1px solid var(--line); }
.perks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.perks .i { color: var(--accent); margin-top: 2px; }
.desc p { color: var(--ink-2); margin: 0 0 16px; }
.sticky-buy {
  position: fixed; inset-inline: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 44;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  transform: translateY(120%); opacity: 0; visibility: hidden; transition: transform .4s var(--ease), opacity .3s, visibility .4s;
}
.sticky-buy.show { transform: none; opacity: 1; visibility: visible; }
.sticky-buy > div { display: grid; }
.sticky-buy .btn { min-height: 46px; }

/* ---------- Cart drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(23, 19, 15, .35); opacity: 0; transition: opacity .35s; }
.drawer-scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 61; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .45s var(--ease); visibility: hidden;
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.open { transform: none !important; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; }
.drawer-head h2 { font: 500 24px/1 var(--serif); margin: 0; }
.free-meter { padding: 6px 20px 14px; border-bottom: 1px solid var(--line); }
.free-meter p { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.free-bar { height: 6px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.free-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .6s var(--ease); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: rise .4s var(--ease); }
.line img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.line-price { font-size: 13px; color: var(--muted); }
.line .stepper { height: 36px; margin-top: 6px; display: inline-flex; }
.line .stepper button { width: 28px; height: 28px; }
.line .stepper span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.line-total { font-weight: 700; font-size: 14px; text-align: end; display: grid; gap: 6px; justify-items: end; }
.line-remove { font-size: 12px; color: var(--muted); text-decoration: underline; font-weight: 500; }
.drawer-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 16px; }
.drawer-foot .i { vertical-align: -3px; }

.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 70; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); transition: all .35s var(--ease); white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Checkout ---------- */
.checkout { padding-bottom: 30px; }
.co-grid { display: grid; gap: 22px; }
.co-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  padding: 12px 16px; font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 19, 15, .06); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.field small { color: var(--bad); font-weight: 600; }
.wrap-card, .pay-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); cursor: pointer; transition: all .25s var(--ease); }
.wrap-card > span:nth-child(2), .pay-opt > div { display: grid; }
.wrap-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .4s var(--ease); }
.wrap-price { font-weight: 700; }
.wrap-opt input:checked + .wrap-card { border-color: var(--ink); background: var(--soft); }
.wrap-opt input:checked + .wrap-card .wrap-ic { transform: rotate(-10deg) scale(1.08); background: var(--accent); color: #fff; }
.pay-box { display: grid; gap: 6px; }
.pay-opt { border-color: var(--ink); cursor: default; }
.pay-opt > .i:last-child { color: var(--ok); }
.co-summary { background: var(--soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; align-self: start; }
.co-lines { display: grid; gap: 10px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.co-line img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; }
.co-line .q { color: var(--muted); font-size: 12.5px; }
.co-totals { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.co-totals .row, .receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.row.total { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.row.total strong { font: 500 24px/1 var(--serif); }
.alert { padding: 12px 16px; border-radius: 14px; font-weight: 600; margin-bottom: 14px; }
.alert.error { background: #fbe7e4; color: var(--bad); }

.order-ok { max-width: 560px; padding-top: 30px; padding-bottom: 40px; display: grid; gap: 16px; }
.ok-burst { position: relative; width: 120px; height: 120px; margin: 10px auto; }
.ok-circle { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; animation: pop .7s var(--ease) both; }
.ok-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--accent); animation: burst .9s var(--ease) both; animation-delay: calc(.2s + var(--d)); transform: rotate(var(--a)) translateY(0); }
.ok-burst i:nth-child(odd) { background: var(--accent-2); width: 6px; height: 6px; }
.receipt { background: var(--soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 18px; margin-top: 30px; }
.footer-in { display: grid; gap: 24px; }
.footer p { margin: 8px 0 0; }
.footer-trust { display: grid; gap: 10px; font-weight: 600; font-size: 14px; }
.footer-trust span { display: flex; gap: 10px; align-items: center; }
.footer-trust .i { color: var(--accent); }
.footer-base { margin-top: 26px; font-size: 12.5px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.45); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217, 87, 58, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(217, 87, 58, 0); } }
@keyframes halo { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, 40px) scale(1.08); } 66% { transform: translate(-20px, 20px) scale(.95); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes bow { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@keyframes shine { 0% { transform: translateX(-100%); } 22%, 100% { transform: translateX(100%); } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(.75); } 33% { transform: translate(14px, -10px) scale(.9); } 66% { transform: translate(-12px, 8px) scale(.8); } }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0) scale(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-78px) scale(1); opacity: 0; } }

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

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
  .split-cta { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .pick { grid-template-columns: 150px 1fr; }
  .g2, .g3 { display: block; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .tabbar, .sticky-buy { display: none; }
  .topnav, .search { display: flex; }
  .search-toggle { display: none; }
  .topbar .cart-btn { display: inline-grid; }
  .topbar-in { height: 72px; }
  .filters-bar { top: 72px; }
  .wrap { padding-inline: 32px; }

  .hero { padding: 64px 0 70px; }
  .hero-in { grid-template-columns: 1fr minmax(440px, 520px); gap: 56px; align-items: start; }
  .hero-copy { padding-top: 40px; }
  .hero-steps { display: grid; }
  .lead { font-size: 18px; }
  .finder { padding: 10px 28px 26px; }

  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .pick { grid-template-columns: 1fr; align-items: start; padding: 14px; }
  .pick h3 { font-size: 17px; }

  .grid { grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
  .cat-rail { padding-inline: 32px; scroll-padding-inline: 32px; }
  .cat { flex-basis: 150px; }
  .section { padding-block: 54px; }
  .split { min-height: 170px; padding: 34px; }

  .pdp { grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: start; }
  .gallery { margin: 0; position: sticky; top: 92px; }
  .gallery-main { border-radius: 28px; }
  .gallery-dots { padding-inline: 0; }

  .co-grid { grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
  .co-summary { position: sticky; top: 92px; padding: 24px; }

  .footer-in { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .grid { gap: 40px 26px; }
}

/* ---------- Buy buttons ---------- */
.buy-btn {
  margin-top: 10px; width: 100%; height: 42px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.buy-btn:hover { box-shadow: 0 8px 22px rgba(23, 19, 15, .22); }
.buy-btn:active { transform: scale(.97); }
.card .buy-btn { margin-top: 10px; }
.pick .buy-btn { margin-top: 12px; }

/* ---------- Quick-buy pop-up ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(23, 19, 15, .4); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-scrim.show { opacity: 1; }
.modal {
  position: fixed; z-index: 81; inset-inline: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 26px 26px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); transform: translateY(105%); visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
.modal::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--line); }
.modal.open { transform: none; visibility: visible; }
.modal-x { position: absolute; top: 10px; inset-inline-end: 10px; }
.qb { display: grid; gap: 12px; }
.qb-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 6px 40px 12px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .qb-product { padding: 6px 0 12px 40px; }
.qb-product img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.qb-product h2 { font: 600 15px/1.3 var(--sans); margin: 0 0 4px; }
.qb-price strong { font-weight: 700; }
.stepper.small { height: 40px; padding: 0 2px; }
.stepper.small button { width: 32px; height: 32px; }
.stepper.small span { min-width: 22px; text-align: center; font-weight: 700; }
.qb .field input, .qb .field select { min-height: 50px; }
.qb .field small { font-size: 12.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qb-totals { display: grid; gap: 6px; background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.qb-totals .row { display: flex; justify-content: space-between; }
.qb-totals .row.total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 16px; }
.qb-totals .row.total strong { font: 500 22px/1 var(--serif); }
.qb-cod { margin: 0; }
.qb-cod .i { vertical-align: -3px; }
.qb-done { text-align: center; display: grid; gap: 10px; padding: 10px 0 4px; }
.qb-done h2 { font: 500 26px/1.15 var(--serif); margin: 0; }
.qb-done p { margin: 0; }
.qb-ref strong { font-size: 18px; letter-spacing: .04em; }
.ok-burst.small { width: 86px; height: 86px; margin: 0 auto 6px; }
.ok-burst.small i { animation-name: burst-sm; }
@keyframes burst-sm { from { transform: rotate(var(--a)) translateY(0) scale(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-58px) scale(1); opacity: 0; } }
@media (min-width: 640px) {
  .modal { inset: auto; left: 50%; top: 50%; bottom: auto; width: 440px; border-radius: 26px; padding: 26px 24px 22px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .35s var(--ease), opacity .3s, visibility .35s; }
  .modal.open { transform: translate(-50%, -50%); opacity: 1; }
  .modal::before { display: none; }
}

/* ---------- Close-to-criteria results ---------- */
.gaps { list-style: none; padding: 0; margin: 6px 0 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.gaps li { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fdf1d8; color: #8a5a00; }
.pick.is-close { border-style: dashed; }
.close-note { background: #fdf6e6; color: #7a5200; border-radius: 16px; padding: 12px 16px; font-weight: 600; font-size: 14px; margin: 0 0 18px; }
#results [data-close-wrap] { margin-top: 30px; }
.close-banner { display: flex; gap: 10px; align-items: center; background: #fdf6e6; color: #7a5200; border-radius: 16px; padding: 12px 16px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.close-banner p { margin: 0; }

/* Every product picture is a square of the same size, whatever the photo's shape. */
.pick-media, .card-media { aspect-ratio: 1 / 1; width: 100%; }
.pick-media img, .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-media::after, .card-media::after { content: ""; display: block; padding-top: 100%; } /* older browsers without aspect-ratio */
@supports (aspect-ratio: 1) { .pick-media::after, .card-media::after { display: none; } }
.pick { align-content: start; }
.pick-body { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 960px) {
  .pick { display: flex; flex-direction: column; align-items: stretch; }
  .pick-body { flex: 1; }
  .pick-body .buy-btn { margin-top: auto; }
  .pick-foot { margin-bottom: 12px; }
}
.field-note { font-size: 12px; color: var(--muted); }

/* ---------- Add-on offer after the order ---------- */
.qb-up { display: grid; gap: 12px; padding-top: 6px; }
.qb-up h2 { font: 500 26px/1.15 var(--serif); margin: 0; }
.qb-up p { margin: 0; }
.qb-up-ok { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 700; color: var(--ok); background: #e7f3ec; padding: 6px 12px; border-radius: 99px; }
.qb-up-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1.5px dashed #e3c6a0; border-radius: 18px; background: #fffaf3; }
.qb-up-card img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.qb-up-card strong { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.qb-up-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qb-up-price b { font: 500 22px/1 var(--serif); color: var(--accent); }
.qb-up-price s { color: var(--muted); font-size: 14px; }
.qb-up-price .pill { position: static; }

/* ---------- "Add X DH for a better match" ---------- */
.upgrade { margin: -14px 0 36px; padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, #fff8ec, #fdf0e8); border: 1.5px dashed #e8c48f; animation: rise .6s .35s var(--ease) both; }
.upgrade-text { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; font-size: 15.5px; color: #6b4300; }
.upgrade-ic { font-size: 20px; }
.upgrade-card { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; }
.upgrade-card h3 { font: 600 15.5px/1.3 var(--sans); margin: 0 0 4px; }
.upgrade-card .reasons { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 3px; }
.upgrade-card .reasons li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.upgrade-card .reasons .i { color: var(--ok); margin-top: 2px; flex: none; }
.upgrade-card .pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upgrade-extra { white-space: nowrap; font-size: 12.5px; font-weight: 800; color: #8a5a00; background: #fdf1d8; padding: 4px 10px; border-radius: 99px; }
@media (min-width: 640px) { .upgrade-card { grid-template-columns: 150px 1fr; } }
@media (min-width: 960px) { .upgrade { max-width: 760px; } }


/* ---------- Brand B: calm, Moroccan, no "template" effects ---------- */
.display { letter-spacing: -.005em; }
.display em { font-style: normal; color: var(--accent); }
.display em::after, .kicker-dot, .hero-deco, .step-n { display: none !important; }
.kicker { background: transparent; border: 0; box-shadow: none; padding: 0; margin-bottom: 14px; color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 13px; }
.btn.shine::after { display: none; }
.btn, .buy-btn, .chip span, .chip-link, .seg, .seg a, .langs, .langs a, .search, .stepper, .occ, .tag, .gender-card, .notes textarea, .field input, .field select, .wrap-card, .pay-opt, .u-chip, .gaps li, .select select, .pager a { border-radius: 8px; }
.cat-img, .add-btn, .icon-btn, .tab-ai-bubble, .match-ring, .ok-circle, .empty-art { border-radius: 50%; }
.btn.primary, .buy-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, .buy-btn:hover { background: #0b4936; box-shadow: 0 6px 18px rgba(14, 90, 67, .22); }
.gender-opt input:checked + .gender-card, .chip input:checked + span, .chip-link.on, .chip-link:hover, .occ:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.gender-opt input:checked + .gender-card .gender-glyph { color: #e9cf96; transform: none; }
.range-track i, .free-bar i { background: var(--accent); }
.range input[type=range]::-webkit-slider-thumb { border-color: var(--accent); }
.range input[type=range]::-moz-range-thumb { border-color: var(--accent); }
.ai-dot { background: var(--accent-2); }
.ticker { background: var(--accent); }
.ticker-track .i { color: #e9cf96; }
.tab-ai-bubble { background: var(--accent); box-shadow: 0 6px 16px rgba(14, 90, 67, .3), 0 0 0 5px var(--bg); }
.tab-ai-bubble::before { display: none; }
.pill.sale { background: var(--accent-2); }
.pick.first { background: #fff; border: 1.5px solid var(--accent); }
.best-label { background: var(--accent); }
.match { color: var(--accent); }
.finder { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 35, 29, .05); border-radius: 16px; }
.orb span:nth-child(1) { background: #b9d7c9; }
.orb span:nth-child(2) { background: #ecd9ae; }
.orb span:nth-child(3) { background: #d8e6df; }
.upgrade { background: #fbf6ea; border: 1px solid #e6d3a8; }
.upgrade-text { color: #6b4f16; }
.upgrade-extra { color: #6b4f16; background: #f3e6c4; }
.for-him { background: #e8f0eb; }
.for-him::before { background: #d3e3d9; }
.for-her { background: #f6eee0; }
.for-her::before { background: #ecdcbf; }
.logo-bow { fill: var(--accent-2); }
.hero-steps li::before { font: 600 13px/1 var(--sans); color: #fff; background: var(--accent); border: 0; width: 26px; height: 26px; }
