/* ============================================================================
   Clopr Commerce — storefront design system
   Tokens come from ECM_Settings (printed by shop/parts/layout.php as --brand,
   --accent, --surface, --radius, --on-brand, --on-accent); every tint is derived
   here with color-mix(), so any admin palette stays coherent.
   RTL / LTR: logical properties only. Western digits for prices.
   ========================================================================== */

:root {
  --brand: #1F4FD8;
  --accent: #F59E0B;
  --surface: #F6F7FB;
  --radius: 14px;
  --on-brand: #fff;
  --on-accent: #0f172a;

  --brand-800: color-mix(in srgb, var(--brand) 62%, #000);
  --brand-700: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-600: color-mix(in srgb, var(--brand) 88%, #000);
  --brand-400: color-mix(in srgb, var(--brand) 75%, #fff);
  --brand-200: color-mix(in srgb, var(--brand) 24%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 12%, #fff);
  --brand-50:  color-mix(in srgb, var(--brand) 6%, #fff);
  --accent-700: color-mix(in srgb, var(--accent) 70%, #000);
  --accent-600: color-mix(in srgb, var(--accent) 86%, #000);
  --accent-100: color-mix(in srgb, var(--accent) 16%, #fff);
  --accent-50:  color-mix(in srgb, var(--accent) 8%, #fff);
  --surface-2: color-mix(in srgb, var(--surface) 55%, #fff);
  --frame: color-mix(in srgb, var(--surface) 70%, color-mix(in srgb, var(--brand) 4%, #fff));

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5e8ef;
  --line-2: #eef0f5;
  --card: #fff;
  --ok: #15803d;   --ok-50: #ecfdf3;
  --bad: #dc2626;  --bad-50: #fef2f2;
  --warn: #b45309; --warn-50: #fffbeb;
  --info: #0369a1; --info-50: #f0f9ff;
  --sale: #e11d48; --sale-50: #fff1f3;
  --star: #f5a524;

  --r-xs: calc(var(--radius) * .45);
  --r-sm: calc(var(--radius) * .7);
  --r: var(--radius);
  --r-lg: calc(var(--radius) * 1.4);
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
  --sh-2: 0 10px 28px -14px rgba(15,23,42,.22);
  --sh-3: 0 26px 60px -24px rgba(15,23,42,.38);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 32%, transparent);
  --ease: cubic-bezier(.22,1,.36,1);
  --wrap: 1320px;
  --gut: 24px;
  --hdr-h: 76px;
  --font: 'Tajawal', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[lang="en"] { --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif; }
@media (max-width: 991px) { :root { --gut: 16px; --hdr-h: 60px; } }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
html[lang="en"] body { font-size: 14.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-200); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { inset-block-start: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.nowrap { white-space: nowrap; }
[dir="ltr"] .flip-x { transform: scaleX(-1); }
.hide { display: none !important; }
@media (max-width: 991px) { .hide-m { display: none !important; } }
@media (min-width: 992px) { .hide-d { display: none !important; } }
[hidden] { display: none !important; }

/* money: Western digits, isolated */
.money { display: inline-flex; align-items: baseline; gap: 0; font-weight: 800; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .money { direction: rtl; }
.money small { font-size: .72em; font-weight: 700; opacity: .8; }

/* stars */
.stars { position: relative; display: inline-block; line-height: 1; font-size: 14px; letter-spacing: 1px; vertical-align: middle; direction: ltr; }
.stars__bg { color: #e2e8f0; }
.stars__fg { position: absolute; inset-block-start: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars--sm { font-size: 12px; }
.stars--lg { font-size: 20px; }
.stars__n { font-size: 12px; color: var(--muted); margin-inline-start: 4px; vertical-align: middle; }

/* ----------------------------------------------------------------- buttons & forms */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .18s var(--ease), color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; user-select: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--primary:hover { background: var(--brand-700); color: var(--on-brand); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-600); color: var(--on-accent); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; color: #fff; }
.btn--outline { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--soft { background: var(--brand-50); color: var(--brand-700); }
.btn--soft:hover { background: var(--brand-100); color: var(--brand-800); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--line-2); color: var(--ink); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5a; color: #fff; }
.btn--danger { background: var(--bad-50); color: var(--bad); }
.btn--danger:hover { background: var(--bad); color: #fff; }
.btn--lg { min-height: 54px; font-size: 1rem; padding: 0 28px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--sq { padding: 0; width: 46px; }
.btn--lg.btn--sq { width: 54px; }
.btn .spin { display: none; }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy .spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy .btn__ic { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand); font-weight: 700; }
.link:hover { color: var(--brand-700); text-decoration: underline; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink-2); font-size: 1.1rem; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .label { font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.field .req { color: var(--bad); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm);
  font-size: .95rem; transition: border-color .15s, box-shadow .15s; outline: none; appearance: none; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select { padding-inline-end: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; }
html[dir="rtl"] .select { background-position: left 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #cbd5e1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.field.has-err .input, .field.has-err .select, .field.has-err .textarea { border-color: var(--bad); }
.field__err { color: var(--bad); font-size: .8rem; font-weight: 600; display: none; }
.field.has-err .field__err { display: block; }
.field__hint { color: var(--muted); font-size: .8rem; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 46px; }
.pw-wrap .pw-eye { position: absolute; inset-inline-end: 4px; inset-block-start: 50%; transform: translateY(-50%); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; user-select: none; line-height: 1.5; }
.check input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; border: 1.6px solid #cbd5e1; border-radius: 6px; background: var(--card);
  display: grid; place-items: center; transition: all .15s; cursor: pointer; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-brand); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--on-brand); transform: none; }
.check input:focus-visible { box-shadow: var(--ring); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 20px; background: #cbd5e1; position: relative; transition: background .2s; cursor: pointer; margin: 0; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: inset-inline-start .2s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { inset-inline-start: 21px; }

.opt-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.opt-card:hover { border-color: var(--brand-200); }
.opt-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card:has(input:focus-visible) { box-shadow: var(--ring); }
.opt-card__ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.05rem; }
.opt-card:has(input:checked) .opt-card__ic { background: var(--brand); color: var(--on-brand); }
.opt-card__b { flex: 1; min-width: 0; }
.opt-card__t { font-weight: 800; font-size: .95rem; display: flex; justify-content: space-between; gap: 10px; }
.opt-card__d { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.opt-card__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid #cbd5e1; flex: 0 0 20px; margin-top: 2px; display: grid; place-items: center; }
.opt-card:has(input:checked) .opt-card__dot { border-color: var(--brand); }
.opt-card:has(input:checked) .opt-card__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.opt-card.is-disabled { opacity: .55; pointer-events: none; }

/* badges, chips, pills */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: .72rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--brand); color: var(--on-brand); }
.badge--ws { background: var(--accent); color: var(--on-accent); }
.badge--out { background: var(--ink); color: #fff; }
.badge--soft { background: var(--brand-50); color: var(--brand-700); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--card); border: 1.4px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: all .15s var(--ease); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chip__x { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.08); font-size: .65rem; }
.chip--del { background: var(--brand-50); border-color: transparent; color: var(--brand-700); }
.chip--del:hover { background: var(--brand-100); color: var(--brand-800); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--warn { background: var(--warn-50); color: var(--warn); }
.pill--info { background: var(--info-50); color: var(--info); }
.pill--brand { background: var(--brand-50); color: var(--brand-700); }
.pill--ok { background: var(--ok-50); color: var(--ok); }
.pill--bad { background: var(--bad-50); color: var(--bad); }
.pill--muted { background: var(--line-2); color: var(--muted); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: .9rem; margin-bottom: 16px; }
.alert > i { margin-top: 3px; }
.alert--info { background: var(--info-50); color: #075985; }
.alert--ok { background: var(--ok-50); color: #166534; }
.alert--warn { background: var(--warn-50); color: #92400e; }
.alert--bad { background: var(--bad-50); color: #991b1b; }

.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.panel + .panel { margin-top: 16px; }
.panel__t { font-size: 1.05rem; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.panel__t .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-grid; place-items: center; font-size: .85rem; }
@media (max-width: 640px) { .panel { padding: 16px; border-radius: var(--r); } }

/* skeleton */
.sk { background: linear-gradient(90deg, #eef1f6 0%, #f7f8fb 40%, #eef1f6 80%); background-size: 300% 100%; animation: sk 1.3s ease-in-out infinite; border-radius: 8px; }
.sk--line { height: 12px; margin-bottom: 8px; }
.sk--line.w-40 { width: 40%; } .sk--line.w-60 { width: 60%; } .sk--line.w-80 { width: 80%; }
.sk--btn { height: 36px; border-radius: 12px; margin-top: 10px; }
.sk--block { height: 90px; border-radius: var(--r); margin-bottom: 12px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ----------------------------------------------------------------- top strip */
.topbar { background: var(--ink); color: #e2e8f0; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__msg { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; overflow: hidden; }
.topbar__msg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__msg i { color: var(--accent); }
.topbar__links { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.topbar__links a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.topbar__links a:hover { color: #fff; }
.topbar__lang { background: rgba(255,255,255,.1); padding: 3px 10px; border-radius: var(--r-pill); }
@media (max-width: 991px) {
  .topbar .wrap { justify-content: center; min-height: 34px; }
  .topbar__links { display: none; }
  .topbar__msg { font-size: .78rem; }
}

/* ----------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2); transition: box-shadow .2s; }
.hdr.is-stuck { box-shadow: 0 8px 24px -18px rgba(15,23,42,.35); }
.hdr__row { display: flex; align-items: center; gap: 22px; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); min-width: 0; }
.logo:hover { color: var(--ink); }
.logo img { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.logo__mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: var(--on-brand); box-shadow: 0 8px 18px -10px var(--brand); flex: 0 0 auto; }
.logo__mark i { font-size: 1.05rem; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__name { font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap; }
.logo__tag { font-size: .72rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.search { position: relative; flex: 1 1 auto; max-width: 680px; }
.search__box { display: flex; align-items: center; height: 50px; background: var(--surface); border: 1.6px solid transparent; border-radius: var(--r-pill);
  transition: border-color .18s, background .18s, box-shadow .18s; padding-inline: 18px 6px; gap: 10px; }
.search__box:focus-within { border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
.search__box > i { color: var(--muted); }
.search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; height: 100%; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__go { height: 40px; padding: 0 20px; border-radius: var(--r-pill); border: 0; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .88rem; transition: background .15s; }
.search__go:hover { background: var(--brand-700); }
.suggest { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line-2);
  padding: 8px; z-index: 50; max-height: min(70vh, 560px); overflow: auto; }
.suggest__sec { padding: 6px 8px 4px; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.suggest__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 10px; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--brand-50); color: var(--ink); }
.suggest__img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; background: var(--frame); overflow: hidden; display: grid; place-items: center; }
.suggest__img img { width: 100%; height: 100%; object-fit: contain; }
.suggest__name { flex: 1; min-width: 0; font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__name small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.suggest__price { font-size: .9rem; color: var(--ink); }
.suggest__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--surface); font-weight: 800; font-size: .88rem; color: var(--brand); }
.suggest__all:hover { background: var(--brand-50); }
.suggest__empty { padding: 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.suggest mark { background: none; color: var(--brand); font-weight: 900; }

.hdr-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-inline-start: auto; }
.hdr-ico { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); transition: background .15s, color .15s; }
.hdr-ico:hover { background: var(--brand-50); color: var(--brand-700); }
.hdr-ico > i { font-size: 1.25rem; }
.hdr-ico__lbl { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.hdr-ico__lbl small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.hdr-ico__lbl b { font-size: .86rem; font-weight: 800; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { position: absolute; inset-block-start: 4px; inset-inline-start: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
  font-size: .68rem; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; transition: transform .25s var(--ease); }
.count:empty, .count[data-n="0"] { display: none; }
.count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.hdr-cart { background: var(--brand); color: var(--on-brand); padding: 0 16px 0 14px; }
.hdr-cart:hover { background: var(--brand-700); color: var(--on-brand); }
.hdr-cart .count { inset-inline-start: 22px; border-color: var(--brand); }
.hdr-cart .hdr-ico__lbl small { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }

/* account dropdown */
.dd { position: relative; }
.dd__menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); min-width: 240px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line-2);
  padding: 8px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s var(--ease); }
.dd.is-open .dd__menu { opacity: 1; visibility: visible; transform: none; }
.dd__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dd__head b { display: block; font-size: .95rem; }
.dd__head small { color: var(--muted); }
.dd__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--ink-2); width: 100%; border: 0; background: none; text-align: start; }
.dd__item i { width: 18px; text-align: center; color: var(--muted); }
.dd__item:hover { background: var(--brand-50); color: var(--brand-700); }
.dd__item:hover i { color: var(--brand); }

/* category bar + mega menu */
.catbar { background: #fff; border-bottom: 1px solid var(--line-2); position: relative; z-index: 800; }
.catbar__row { display: flex; align-items: center; gap: 8px; height: 54px; }
.catbar__all { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: .86rem; flex: 0 0 auto; }
.catbar__all:hover, .catbar__all[aria-expanded="true"] { background: var(--brand); color: var(--on-brand); }
.catbar__all .caret { font-size: .65rem; transition: transform .2s; }
.catbar__all[aria-expanded="true"] .caret { transform: rotate(180deg); }
.catbar__list { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(to var(--fade-dir, left), #000 92%, transparent); }
html[dir="ltr"] .catbar__list { --fade-dir: right; }
.catbar__list::-webkit-scrollbar { display: none; }
.catbar__link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: var(--r-pill); font-weight: 700; font-size: .86rem; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.catbar__link i { color: var(--brand); font-size: .9rem; opacity: .9; }
.catbar__link:hover, .catbar__link.is-on { background: var(--brand-50); color: var(--brand-700); }
.catbar__offers { color: var(--sale); }
.catbar__offers i { color: var(--sale); }
.catbar__offers:hover { background: var(--sale-50); color: var(--sale); }
.mega { position: absolute; inset-inline: 0; inset-block-start: 100%; background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(15,23,42,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__in { display: grid; grid-template-columns: 290px 1fr; min-height: 340px; max-height: 70vh; }
.mega__roots { border-inline-end: 1px solid var(--line-2); padding: 14px 10px; overflow: auto; }
.mega__root { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: none; text-align: start; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.mega__root .ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.mega__root .chev { margin-inline-start: auto; font-size: .7rem; color: var(--muted-2); }
.mega__root.is-on, .mega__root:hover { background: var(--brand-50); color: var(--brand-700); }
.mega__root.is-on .ic { background: var(--brand); color: var(--on-brand); }
.mega__panel { padding: 22px 26px; overflow: auto; display: none; }
.mega__panel.is-on { display: block; }
.mega__ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mega__ph h3 { font-size: 1.15rem; margin: 0; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 26px; }
.mega__col h4 { font-size: .92rem; margin: 0 0 8px; }
.mega__col h4 a:hover { color: var(--brand); }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega__col li a { font-size: .86rem; color: var(--muted); font-weight: 600; }
.mega__col li a:hover { color: var(--brand); }
.mega__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mega__tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; font-weight: 700; font-size: .86rem; transition: all .15s var(--ease); }
.mega__tile:hover { border-color: var(--brand-200); background: var(--brand-50); transform: translateY(-2px); }
.mega__tile .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--brand); font-size: 1.2rem; box-shadow: var(--sh-1); }
.mega__tile small { color: var(--muted); font-weight: 600; font-size: .75rem; }
.backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 950; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.backdrop.is-on { opacity: 1; visibility: visible; }
.backdrop--mega { z-index: 700; background: rgba(15,23,42,.25); }

@media (max-width: 991px) {
  .hdr__row { gap: 8px; }
  .hdr .search, .hdr-actions .hide-m, .catbar { display: none; }
  .logo img { height: 36px; }
  .logo__mark { width: 36px; height: 36px; border-radius: 11px; font-size: 1.05rem; }
  .logo__name { font-size: 1.08rem; }
  .logo__tag { display: none; }
  .hdr-ico { height: 42px; padding: 0 9px; }
  .hdr-ico__lbl { display: none; }
  .hdr-cart { padding: 0 11px; }
  .count { inset-inline-start: 22px; }
}

/* mobile search overlay & menu sheet */
.sheet { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(88vw, 380px); background: #fff; z-index: 1000; transform: translateX(105%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--sh-3); }
html[dir="ltr"] .sheet { transform: translateX(-105%); }
.sheet.is-on { transform: none !important; }
.sheet--end { inset-inline-start: auto; inset-inline-end: 0; transform: translateX(-105%); }
html[dir="ltr"] .sheet--end { transform: translateX(105%); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.sheet__head h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.sheet__body { flex: 1; overflow: auto; padding: 12px 16px; overscroll-behavior: contain; }
.sheet__foot { padding: 14px 16px; border-top: 1px solid var(--line-2); background: #fff; }
.mnav__user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: var(--on-brand); margin-bottom: 14px; }
.mnav__user:hover { color: var(--on-brand); }
.mnav__av { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; }
.mnav__sec { font-size: .74rem; font-weight: 800; color: var(--muted); padding: 14px 4px 6px; text-transform: uppercase; letter-spacing: .04em; }
.mnav a:not(.btn), .mnav summary { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; font-weight: 700; font-size: .93rem; color: var(--ink-2); cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav a:not(.btn):hover, .mnav summary:hover { background: var(--brand-50); color: var(--brand-700); }
.mnav a:not(.btn) > i:first-child, .mnav summary > i:first-child { width: 22px; text-align: center; color: var(--brand); }
.mnav summary .chev { margin-inline-start: auto; font-size: .7rem; color: var(--muted); transition: transform .2s; }
.mnav details[open] > summary .chev { transform: rotate(180deg); }
.mnav details > div { padding-inline-start: 34px; }
.mnav details > div a { font-weight: 600; font-size: .88rem; padding: 8px; }
.mnav__lang { display: flex; gap: 8px; }
.sover { position: fixed; inset: 0; background: #fff; z-index: 1001; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .22s var(--ease); }
.sover.is-on { opacity: 1; visibility: visible; transform: none; }
.sover__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.sover__bar .search { flex: 1; max-width: none; position: static; }
.sover__bar .search__box { height: 46px; }
.sover__body { flex: 1; overflow: auto; padding: 12px 14px; position: relative; }
.sover .suggest { position: static; box-shadow: none; border: 0; padding: 0; max-height: none; }
.sover__hint h3 { font-size: .85rem; color: var(--muted); margin: 8px 0 10px; }
.sover__hint .chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* bottom nav */
.bnav { display: none; }
@media (max-width: 991px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 890; background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -18px rgba(15,23,42,.3); }
  .bnav__i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px; border: 0; background: none; color: var(--muted); font-size: .7rem; font-weight: 700; }
  .bnav__i > i { font-size: 1.2rem; transition: transform .2s var(--ease); }
  .bnav__i.is-on { color: var(--brand); }
  .bnav__i.is-on::before { content: ""; position: absolute; inset-block-start: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
  .bnav__i:active > i { transform: scale(.88); }
  .bnav .count { inset-block-start: 6px; inset-inline-start: calc(50% + 4px); }
  body.has-sticky-buy .bnav { display: none; }
  body.has-sticky-buy { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ----------------------------------------------------------------- cart drawer */
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(100vw, 440px); background: #fff; z-index: 1000; display: flex; flex-direction: column;
  transform: translateX(-105%); transition: transform .32s var(--ease); box-shadow: var(--sh-3); }
html[dir="ltr"] .drawer { transform: translateX(105%); }
.drawer.is-on { transform: none !important; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.drawer__head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.drawer__head h2 .badge { background: var(--brand-50); color: var(--brand-700); }
.drawer__body { flex: 1; overflow: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line-2); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: #fff; }
.drawer__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: .92rem; }
.drawer__row b { font-size: 1.15rem; }
.drawer__note { font-size: .78rem; color: var(--muted); margin: 0 0 12px; }
.drawer__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

.fsp { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; margin: 10px 0; font-size: .85rem; font-weight: 600; }
.fsp__bar { height: 8px; border-radius: 8px; background: var(--line); margin-top: 8px; overflow: hidden; }
.fsp__bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-400)); transition: width .5s var(--ease); }
.fsp.is-free { background: var(--ok-50); border-color: transparent; color: var(--ok); }
.fsp.is-free .fsp__bar span { background: var(--ok); }
.fsp i { color: var(--brand); margin-inline-end: 6px; }
.fsp.is-free i { color: var(--ok); }

.cl { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); position: relative; }
.cl:last-child { border-bottom: 0; }
.cl__img { width: 78px; height: 78px; border-radius: 12px; background: var(--frame); overflow: hidden; display: grid; place-items: center; }
.cl__img img { width: 100%; height: 100%; object-fit: contain; }
.cl__b { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cl__t { font-weight: 700; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-inline-end: 28px; }
.cl__u { font-size: .8rem; color: var(--muted); }
.cl__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl__x { position: absolute; inset-inline-end: -6px; inset-block-start: 10px; }
.cl__x:hover { color: var(--bad); background: var(--bad-50); }
.cl__prob { font-size: .78rem; font-weight: 700; color: var(--warn); background: var(--warn-50); padding: 4px 8px; border-radius: 8px; align-self: flex-start; }
.cl__prob--bad { color: var(--bad); background: var(--bad-50); }
.cl.is-out { opacity: .75; }

/* quantity stepper */
.qty { display: inline-flex; align-items: center; height: 38px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff; overflow: hidden; }
.qty button { width: 36px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); font-size: .8rem; transition: background .15s, color .15s; }
.qty button:hover:not(:disabled) { background: var(--brand-50); color: var(--brand); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 800; font-size: .95rem; background: transparent; outline: 0; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg { height: 54px; }
.qty--lg button { width: 46px; font-size: .9rem; }
.qty--lg input { width: 50px; font-size: 1.05rem; }
.qty--sm { height: 32px; }
.qty--sm button { width: 30px; }
.qty--sm input { width: 30px; font-size: .85rem; }

/* toasts */
.toasts { position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(92vw, 440px); }
html[dir="rtl"] .toasts { transform: translateX(50%); }
@media (max-width: 991px) { .toasts { inset-block-end: calc(76px + env(safe-area-inset-bottom)); } body.has-sticky-buy .toasts { inset-block-end: calc(90px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--sh-3);
  animation: toastIn .35s var(--ease) both; font-size: .9rem; font-weight: 600; }
html[dir="rtl"] .toast { padding: 12px 16px 12px 12px; }
.toast.is-out { animation: toastOut .25s ease both; }
.toast__ic { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.toast__img { width: 42px; height: 42px; border-radius: 10px; flex: 0 0 42px; background: #fff; overflow: hidden; }
.toast__img img { width: 100%; height: 100%; object-fit: contain; }
.toast--ok .toast__ic { background: var(--ok); }
.toast--bad .toast__ic { background: var(--bad); }
.toast__t { flex: 1; min-width: 0; line-height: 1.4; }
.toast__t small { display: block; opacity: .7; font-weight: 500; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__a { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-weight: 800; font-size: .82rem; display: inline-flex; align-items: center; border: 0; }
.toast__a:hover { background: var(--accent); color: var(--on-accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* modal / popup / lightbox */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-on { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(100%, 520px); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.modal.is-on .modal__box { transform: none; }
.modal__x { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(255,255,255,.9); }
.modal__body { padding: 24px; }
.popup .modal__box { width: min(100%, 560px); overflow: hidden; }
.popup__img { aspect-ratio: 16/9; background: var(--brand-50) center/cover no-repeat; }
.popup__b { padding: 22px 24px 24px; text-align: center; }
.popup__b h2 { font-size: 1.4rem; }
.popup__b p { color: var(--muted); }

.lb { position: fixed; inset: 0; z-index: 1150; background: rgba(8,12,22,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; touch-action: pan-y; }
.lb.is-on { opacity: 1; visibility: visible; }
.lb__img { max-width: min(92vw, 1100px); max-height: 84vh; object-fit: contain; border-radius: 12px; background: #fff; user-select: none; }
.lb__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: background .15s; }
.lb__btn:hover { background: rgba(255,255,255,.25); }
.lb__x { inset-block-start: 18px; inset-inline-end: 18px; }
.lb__prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; inset-block-end: 22px; color: #cbd5e1; font-size: .85rem; font-weight: 700; }

/* ----------------------------------------------------------------- page scaffolding */
main { min-height: 50vh; }
.page { padding-block: 22px 56px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.crumbs { margin-bottom: 14px; font-size: .82rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; color: var(--muted-2); margin-inline-end: 4px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] span { color: var(--ink-2); font-weight: 700; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

.sec { padding-block: 26px; }
.sec--white { background: #fff; }
.sec--tint { background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-title > i { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1rem; }
.sec-sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.sec-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: .88rem; white-space: nowrap; padding: 8px 14px; border-radius: var(--r-pill); background: var(--brand-50); transition: background .15s, gap .2s var(--ease); }
.sec-link:hover { background: var(--brand-100); color: var(--brand-700); gap: 12px; }
@media (max-width: 640px) { .sec { padding-block: 18px; } .sec-head { margin-bottom: 12px; } .sec-title > i { width: 32px; height: 32px; font-size: .9rem; } .sec-link { padding: 6px 10px; font-size: .8rem; } }

.empty { text-align: center; padding: 56px 20px; max-width: 520px; margin-inline: auto; }
.empty__ic { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--brand-100)); display: grid; place-items: center; font-size: 2.2rem; color: var(--brand); box-shadow: inset 0 0 0 8px var(--brand-50); }
.empty__t { font-size: 1.3rem; margin-bottom: 8px; }
.empty__p { color: var(--muted); margin-bottom: 20px; }

/* ----------------------------------------------------------------- product card */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .grid { --cols: 4; } }
@media (max-width: 991px) { .grid { --cols: 3; gap: 12px; } }
@media (max-width: 680px) { .grid { --cols: 2; gap: 10px; } }
.grid--4 { --cols: 4; }
@media (max-width: 991px) { .grid--4 { --cols: 3; } }
@media (max-width: 680px) { .grid--4 { --cols: 2; } }

.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; min-width: 0; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.pc__media { display: block; position: relative; margin: 8px 8px 0; aspect-ratio: 1 / 1; background: var(--frame); border-radius: calc(var(--r-lg) - 6px); overflow: hidden; }
.pc__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .45s var(--ease), opacity .3s; mix-blend-mode: multiply; }
.pc:hover .pc__media img { transform: scale(1.05); }
.pc__media img.is-loading { opacity: 0; }
.pc--out .pc__media img { filter: grayscale(.6); opacity: .7; }
.pc__badges { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; pointer-events: none; }
.pc__wish { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  color: var(--muted); display: grid; place-items: center; box-shadow: var(--sh-1); transition: transform .2s var(--ease), color .15s; font-size: .95rem; }
.pc__wish:hover { color: var(--sale); transform: scale(1.08); }
.pc__wish[aria-pressed="true"] { color: var(--sale); }
.pc__wish[aria-pressed="true"] i::before { font-weight: 900; }
.pc__wish.is-pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.pc__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.pc__meta { font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__title { font-size: .92rem; font-weight: 700; line-height: 1.45; margin: 0; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc__title a:hover { color: var(--brand); }
.pc__rating { display: flex; align-items: center; }
.pc__stock { font-size: .74rem; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.pc__stock--low { color: var(--warn); }
.pc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; position: relative; z-index: 2; }
.pc__price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pc__price .money { font-size: 1.08rem; color: var(--ink); }
.pc__price .money--sale { color: var(--sale); }
.pc__was { font-size: .78rem; color: var(--muted-2); font-weight: 600; }
.pc__cta { flex: 0 0 auto; }
.pc__add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 0;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .84rem; transition: background .18s, transform .18s var(--ease); white-space: nowrap; }
.pc__add:hover { background: var(--brand-700); color: var(--on-brand); transform: scale(1.04); }
.pc__add i { font-size: .8rem; }
.pc__add--opts { background: var(--brand-50); color: var(--brand-700); }
.pc__add--opts:hover { background: var(--brand-100); color: var(--brand-800); }
.pc__add--out { background: var(--line-2); color: var(--ink-2); }
.pc__add--out:hover { background: var(--ink); color: #fff; }
.pc__add.is-added { background: var(--ok); }
.pc .qty { height: 38px; border-color: var(--brand); }
.pc .qty button { width: 32px; color: var(--brand); }
.pc .qty input { width: 28px; }
@media (max-width: 680px) {
  .pc { border-radius: var(--r); }
  .pc__media { margin: 6px 6px 0; border-radius: calc(var(--r) - 4px); }
  .pc__badges { inset-block-start: 12px; inset-inline-start: 12px; }
  .pc__wish { inset-block-start: 10px; inset-inline-end: 10px; width: 32px; height: 32px; font-size: .85rem; }
  .pc__body { padding: 10px 10px 12px; }
  .pc__title { font-size: .85rem; }
  .pc__price .money { font-size: .98rem; }
  .pc__add { padding: 0; width: 36px; min-width: 36px; height: 36px; }
  .pc__add span { display: none; }
  .pc__foot { flex-wrap: wrap; }
  .pc .qty { height: 34px; }
  .pc .qty button { width: 28px; }
  .pc .qty input { width: 24px; }
}
/* list view */
.grid--list { --cols: 1 !important; }
.grid--list .pc { flex-direction: row; align-items: stretch; }
.grid--list .pc__media { width: 200px; flex: 0 0 200px; margin: 10px; }
.grid--list .pc__body { padding: 16px 18px 16px 6px; }
html[dir="rtl"] .grid--list .pc__body { padding: 16px 6px 16px 18px; }
.grid--list .pc__title { font-size: 1.02rem; min-height: 0; }
.grid--list .pc__foot { margin-top: auto; }
@media (max-width: 680px) { .grid--list .pc__media { width: 120px; flex-basis: 120px; margin: 6px; } }
.pc--sk { pointer-events: none; }
.pc--sk .pc__media { background: none; }

/* rails */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px; margin: -4px -2px -14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; min-width: 0; display: flex; }
.rail__item > .pc { flex: 1; }
@media (max-width: 1280px) { .rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 991px) { .rail__track { grid-auto-columns: calc((100% - 2 * 12px) / 3.15); gap: 12px; } }
@media (max-width: 680px) { .rail__track { grid-auto-columns: 46%; gap: 10px; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); } }
.rail__btn { position: absolute; top: 38%; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); box-shadow: var(--sh-2);
  display: grid; place-items: center; transition: opacity .2s, background .15s, color .15s, transform .2s var(--ease); }
.rail__btn:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rail__btn--prev { inset-inline-start: -18px; }
.rail__btn--next { inset-inline-end: -18px; }
.rail__btn[disabled] { opacity: 0; pointer-events: none; transform: scale(.8); }
@media (max-width: 991px) { .rail__btn { display: none; } }

/* ----------------------------------------------------------------- home */
.hero { padding-block: 20px 6px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.hero__grid--full { grid-template-columns: 1fr; }
@media (max-width: 1180px) { .hero__grid { grid-template-columns: 1fr; } .hero__side { display: none !important; } }
.carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-700); box-shadow: var(--sh-2); isolation: isolate; }
.carousel__track { display: flex; transition: transform .6s var(--ease); }
.slide { position: relative; flex: 0 0 100%; min-height: 400px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.slide__bg { position: absolute; inset: 0; z-index: -2; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Banner artwork is drawn for RTL (art on the left, text on the right); mirror it in LTR so the text side stays clear. */
html[dir="ltr"] .slide__bg img { transform: scaleX(-1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to var(--shade-dir, left), rgba(8,12,24,.72) 0%, rgba(8,12,24,.35) 45%, rgba(8,12,24,0) 75%); }
html[dir="ltr"] .slide { --shade-dir: right; }
.slide--light { color: var(--ink); }
.slide--light::before { background: linear-gradient(to var(--shade-dir, left), rgba(255,255,255,.88) 0%, rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 75%); }
.slide__in { padding: 48px 56px; max-width: 600px; }
.slide__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-size: .8rem; font-weight: 800; margin-bottom: 14px; backdrop-filter: blur(6px); }
.slide--light .slide__kicker { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.slide__t { font-size: clamp(1.6rem, 3.4vw, 2.75rem); font-weight: 900; line-height: 1.18; margin: 0 0 12px; text-wrap: balance; }
.slide__s { font-size: clamp(.95rem, 1.4vw, 1.12rem); opacity: .92; margin: 0 0 24px; max-width: 480px; }
.slide .btn { box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.slide__link { position: absolute; inset: 0; z-index: 1; }
.slide__in .btn { position: relative; z-index: 2; }
.slide--fallback { background: radial-gradient(1200px 400px at 90% 10%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), linear-gradient(120deg, var(--brand-800), var(--brand) 60%, var(--brand-400)); }
.slide--fallback::before { display: none; }
.slide__art { position: absolute; inset-inline-end: 6%; inset-block: 0; display: grid; place-items: center; font-size: 11rem; color: rgba(255,255,255,.14); z-index: -1; }
.carousel__dots { position: absolute; inset-block-end: 16px; inset-inline-start: 56px; display: flex; gap: 6px; z-index: 3; }
.carousel__dot { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: rgba(255,255,255,.5); transition: all .3s var(--ease); }
.carousel__dot.is-on { width: 28px; background: #fff; }
.carousel__nav { position: absolute; inset-block-end: 12px; inset-inline-end: 14px; display: flex; gap: 8px; z-index: 3; }
.carousel__nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .15s; }
.carousel__nav button:hover { background: rgba(255,255,255,.32); }
@media (max-width: 680px) {
  .slide { min-height: 260px; align-items: flex-end; }
  .slide::before { background: linear-gradient(to top, rgba(8,12,24,.78) 0%, rgba(8,12,24,.3) 55%, rgba(8,12,24,0) 85%); }
  .slide--light::before { background: linear-gradient(to top, rgba(255,255,255,.92) 0%, rgba(255,255,255,.4) 60%, transparent 90%); }
  .slide__in { padding: 22px 20px 40px; }
  .slide__s { margin-bottom: 14px; }
  .slide .btn { min-height: 42px; padding: 0 18px; font-size: .88rem; }
  .carousel__dots { inset-inline-start: 20px; inset-block-end: 14px; }
  .carousel__nav { display: none; }
  .slide__art { font-size: 7rem; inset-block-start: -10%; }
}
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.mini-promo { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; color: #fff; isolation: isolate; box-shadow: var(--sh-1); }
.mini-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.mini-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,12,24,.75), rgba(8,12,24,0) 70%); }
.mini-promo:hover img { transform: scale(1.05); }
.mini-promo:hover { color: #fff; }
.mini-promo h3 { font-size: 1.15rem; margin: 0 0 4px; }
.mini-promo p { font-size: .85rem; opacity: .9; margin: 0; }
.mini-promo--a { background: linear-gradient(135deg, var(--accent), var(--accent-700)); color: var(--on-accent); }
.mini-promo--a::before, .mini-promo--b::before { display: none; }
.mini-promo--b { background: linear-gradient(135deg, var(--ink), #334155); }
.mini-promo--a:hover { color: var(--on-accent); }
.mini-promo .big-ic { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; font-size: 3.4rem; opacity: .25; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.value { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.value > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.1rem; }
.value b { display: block; font-size: .9rem; }
.value span { font-size: .78rem; color: var(--muted); }
@media (max-width: 991px) {
  .values { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-snap-type: x mandatory; }
  .values::-webkit-scrollbar { display: none; }
  .value { scroll-snap-align: start; padding: 12px; }
}

.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.ctile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 8px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.ctile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: var(--ink); }
.ctile__img { width: 76px; height: 76px; border-radius: 50%; background: var(--frame); display: grid; place-items: center; overflow: hidden; font-size: 1.7rem; color: var(--brand); transition: background .2s; }
.ctile:hover .ctile__img { background: var(--brand-50); }
.ctile__img img { width: 100%; height: 100%; object-fit: cover; }
.ctile b { font-size: .86rem; line-height: 1.35; }
.ctile small { font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: -6px; }
@media (max-width: 680px) {
  .ctiles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 96px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); gap: 10px; }
  .ctiles::-webkit-scrollbar { display: none; }
  .ctile { padding: 12px 6px 10px; border-radius: var(--r); }
  .ctile__img { width: 60px; height: 60px; font-size: 1.35rem; }
  .ctile b { font-size: .78rem; }
}

.flash { border-radius: var(--r-lg); padding: 22px; background: radial-gradient(800px 200px at 100% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(135deg, var(--sale-50), #fff 60%); border: 1px solid color-mix(in srgb, var(--sale) 14%, #fff); }
.flash .sec-title > i { background: var(--sale); color: #fff; }
.flash__cd { display: inline-flex; align-items: center; gap: 6px; }
.cd { display: inline-flex; gap: 6px; direction: ltr; }
.cd__u { min-width: 46px; padding: 6px 4px; border-radius: 10px; background: var(--ink); color: #fff; text-align: center; line-height: 1.05; }
.cd__u b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cd__u small { font-size: .62rem; opacity: .7; font-weight: 600; }
.cd--inline .cd__u { min-width: 38px; padding: 4px; }
.cd--inline .cd__u b { font-size: .9rem; }
@media (max-width: 680px) { .flash { padding: 14px; border-radius: var(--r); } .flash .sec-head { flex-wrap: wrap; } .cd__u { min-width: 40px; } }

.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { position: relative; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: center; color: #fff; isolation: isolate; box-shadow: var(--sh-1); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to var(--shade-dir, left), rgba(8,12,24,.7), rgba(8,12,24,0) 75%); }
html[dir="ltr"] .promo { --shade-dir: right; }
.promo--light { color: var(--ink); }
.promo--light::before { background: linear-gradient(to var(--shade-dir, left), rgba(255,255,255,.9), rgba(255,255,255,0) 75%); }
.promo:hover img { transform: scale(1.04); }
.promo:hover { color: inherit; }
.promo__in { padding: 28px 32px; max-width: 70%; }
.promo__in h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); margin-bottom: 6px; }
.promo__in p { opacity: .9; margin: 0 0 14px; font-size: .92rem; }
.promo__in .btn { min-height: 40px; padding: 0 18px; font-size: .86rem; }
@media (max-width: 680px) { .promos { grid-template-columns: 1fr; gap: 12px; } .promo { min-height: 170px; } .promo__in { padding: 20px; max-width: 85%; } }

.strip { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; min-height: 130px; color: #fff; isolation: isolate; box-shadow: var(--sh-1); }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to var(--shade-dir, left), rgba(8,12,24,.65), rgba(8,12,24,.05)); }
html[dir="ltr"] .strip { --shade-dir: right; }
.strip--light { color: var(--ink); }
.strip--light::before { background: linear-gradient(to var(--shade-dir, left), rgba(255,255,255,.85), rgba(255,255,255,0)); }
.strip__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 36px; min-height: 130px; flex-wrap: wrap; }
.strip__in h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin: 0; }
.strip__in p { margin: 4px 0 0; opacity: .9; }
.strip:hover { color: inherit; }
@media (max-width: 680px) { .strip__in { padding: 20px; } }

.brands-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.brands-strip::-webkit-scrollbar { display: none; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 104px; padding: 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: all .2s var(--ease); text-align: center; }
.brand-tile img { max-height: 52px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .2s; }
.brand-tile:hover { border-color: var(--brand-200); box-shadow: var(--sh-2); transform: translateY(-2px); }
.brand-tile:hover img { filter: none; opacity: 1; }
.brand-tile b { font-size: .9rem; }
.brand-tile small { font-size: .72rem; color: var(--muted); }
.brand-tile__mono { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }

.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--ink), #1e293b); color: #fff; border-radius: var(--r-lg); padding: 34px 38px; position: relative; overflow: hidden; }
.why::after { content: ""; position: absolute; inset-inline-end: -80px; inset-block-start: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%); }
.why h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin-bottom: 8px; }
.why p { color: #cbd5e1; margin: 0; }
.why .kicker { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .03em; }
.why__cta { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; padding: 24px; } .why__cta { justify-content: flex-start; } }

/* newsletter band + footer */
.nl { background: linear-gradient(120deg, var(--brand-700), var(--brand) 55%, var(--brand-400)); color: var(--on-brand); position: relative; overflow: hidden; }
.nl::before { content: ""; position: absolute; inset-inline-start: -120px; inset-block-end: -160px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); }
.nl .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 34px; position: relative; flex-wrap: wrap; }
.nl h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.nl p { margin: 0; opacity: .9; }
.nl form { display: flex; gap: 8px; flex: 1 1 380px; max-width: 520px; background: rgba(255,255,255,.14); padding: 6px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.25); }
.nl input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--on-brand); padding-inline: 16px; font-size: .95rem; }
.nl input::placeholder { color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.nl .btn { background: #fff; color: var(--brand-700); min-height: 46px; }
.nl .btn:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 680px) { .nl .wrap { padding-block: 24px; } .nl form { flex-basis: 100%; } }

.ftr { background: #0b1220; color: #94a3b8; font-size: .9rem; }
.ftr a { color: #cbd5e1; transition: color .15s; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 32px; padding-block: 48px 32px; }
.ftr__brand .logo { color: #fff; margin-bottom: 14px; }
.ftr__brand .logo__tag { color: #94a3b8; }
.ftr__brand p { line-height: 1.8; margin-bottom: 16px; }
.ftr h3 { color: #fff; font-size: .98rem; margin: 0 0 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__contact i { color: var(--accent); margin-top: 4px; width: 16px; text-align: center; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #e2e8f0; transition: all .15s; }
.social a:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.ftr__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.ftr__bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; font-size: .82rem; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pay-icons img { height: 30px; width: auto; border-radius: 6px; background: #fff; }
@media (max-width: 1100px) { .ftr__grid { grid-template-columns: 1fr 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 680px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-block: 32px 20px; }
  .ftr__grid > .ftr__contactcol { grid-column: 1 / -1; }
  .ftr__bottom .wrap { justify-content: center; text-align: center; }
}

/* ----------------------------------------------------------------- catalogue */
.cat-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 26px 28px; margin-bottom: 18px; background: linear-gradient(120deg, var(--brand-50), #fff); border: 1px solid var(--line-2); display: flex; gap: 20px; align-items: center; }
.cat-hero__ic { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; box-shadow: var(--sh-1); flex: 0 0 auto; overflow: hidden; }
.cat-hero__ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero h1 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin: 0; }
.cat-hero p { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.cat-hero__n { font-weight: 700; color: var(--brand-700); font-size: .85rem; }
@media (max-width: 680px) { .cat-hero { padding: 16px; gap: 12px; border-radius: var(--r); } .cat-hero__ic { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; } }
.subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 16px; }
.subcats::-webkit-scrollbar { display: none; }
.subcats .chip { height: 38px; }
.listing-banner { display: block; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.listing-banner img { width: 100%; aspect-ratio: 5 / 1; object-fit: cover; }
@media (max-width: 680px) { .listing-banner img { aspect-ratio: 3 / 1; } }

.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .shop { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--hdr-h) + 16px); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); max-height: calc(100vh - var(--hdr-h) - 32px); display: flex; flex-direction: column; overflow: hidden; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.filters__head h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.filters__body { overflow: auto; padding: 4px 18px 10px; flex: 1; }
.filters__foot { display: none; }
@media (min-width: 1101px) { .filters__x { display: none !important; } }
@media (max-width: 1100px) { .filters__head [data-f-reset] { display: none; } }
.facet { border-bottom: 1px solid var(--line-2); padding-block: 14px; }
.facet:last-child { border-bottom: 0; }
.facet > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .92rem; cursor: pointer; }
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary i { font-size: .7rem; color: var(--muted); transition: transform .2s; }
.facet[open] > summary i { transform: rotate(180deg); }
.facet__list { display: grid; gap: 2px; margin-top: 10px; max-height: 260px; overflow: auto; }
.facet__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: .88rem; cursor: pointer; }
.facet__opt:hover { background: var(--surface-2); }
.facet__opt .check { flex: 1; min-width: 0; align-items: center; }
.facet__opt .n { font-size: .74rem; color: var(--muted); background: var(--line-2); border-radius: var(--r-pill); padding: 1px 8px; font-weight: 700; }
.facet__link { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-radius: 9px; font-size: .88rem; font-weight: 600; }
.facet__link:hover, .facet__link.is-on { background: var(--brand-50); color: var(--brand-700); }
.facet__link .n { font-size: .74rem; color: var(--muted); }
.facet__back { font-size: .82rem; color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.range { margin-top: 14px; }
.range__slider { position: relative; height: 24px; margin: 4px 8px 10px; }
.range__track { position: absolute; inset-inline: 0; top: 10px; height: 4px; border-radius: 4px; background: var(--line); }
.range__fill { position: absolute; top: 10px; height: 4px; border-radius: 4px; background: var(--brand); }
.range__slider input { position: absolute; inset-inline: -8px; width: calc(100% + 16px); top: 2px; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; direction: ltr; }
html[dir="rtl"] .range__slider input { direction: rtl; }
.range__slider input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: var(--sh-1); cursor: grab; }
.range__slider input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: grab; }
.range__slider input::-webkit-slider-runnable-track { background: none; }
.range__inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range__inputs .input { min-height: 40px; padding: 8px 10px; font-size: .88rem; text-align: center; }
.range__inputs span { color: var(--muted); }
@media (max-width: 1100px) {
  .filters { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(90vw, 360px); max-height: none; border-radius: 0; border: 0; z-index: 1000; transform: translateX(105%); transition: transform .3s var(--ease); box-shadow: var(--sh-3); }
  html[dir="ltr"] .filters { transform: translateX(-105%); }
  .filters.is-on { transform: none !important; }
  .filters__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
}

.toolbar { position: sticky; top: var(--hdr-h); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); flex-wrap: wrap; }
.toolbar__count { font-size: .88rem; color: var(--muted); font-weight: 600; margin-inline-end: auto; }
.toolbar__count b { color: var(--ink); }
.toolbar .select { min-height: 40px; height: 40px; padding-block: 0; width: auto; min-width: 170px; font-size: .86rem; font-weight: 700; border-radius: var(--r-pill); }
.toolbar__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: .86rem; }
.toolbar__btn:hover { border-color: var(--brand); color: var(--brand); }
.toolbar__btn .n { min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: .7rem; display: inline-grid; place-items: center; padding: 0 5px; }
.views { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.views button { width: 34px; height: 30px; border: 0; background: none; border-radius: var(--r-pill); color: var(--muted); }
.views button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-chips:empty { display: none; }
.active-chips .clear { font-size: .82rem; font-weight: 800; color: var(--bad); padding: 0 8px; border: 0; background: none; }
@media (min-width: 1101px) { .toolbar__filters { display: none; } }
@media (max-width: 680px) {
  .toolbar { gap: 8px; }
  .toolbar__count { flex: 1 0 100%; order: 3; margin: 0; font-size: .8rem; }
  .toolbar .select { min-width: 0; flex: 1; }
  .views { display: none; }
}
.results { position: relative; min-height: 200px; transition: opacity .2s; }
.results.is-loading { opacity: .45; pointer-events: none; }
.pager { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.pager__info { font-size: .85rem; color: var(--muted); }
.pager__bar { width: 220px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pager__bar span { display: block; height: 100%; background: var(--brand); }
.pager__nums { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager__nums a, .pager__nums span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 800; font-size: .88rem; background: #fff; border: 1px solid var(--line-2); }
.pager__nums a:hover { border-color: var(--brand); color: var(--brand); }
.pager__nums .is-on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.pager__nums .gap { background: none; border: 0; min-width: 20px; }

/* ----------------------------------------------------------------- product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 991px) { .pdp { grid-template-columns: 1fr; gap: 18px; } }
.gallery { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
.gallery--single { grid-template-columns: 1fr; }
.gallery__main { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: center; display: grid; place-items: center; background: var(--frame); cursor: zoom-in; overflow: hidden; border: 0; padding: 0; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform .2s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery__slide.is-zoom img { transform: scale(1.9); }
.gallery__badges { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.gallery__badges .badge { height: 28px; font-size: .8rem; padding: 0 10px; }
.gallery__tools { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.gallery__tools button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: var(--sh-1); color: var(--ink-2); display: grid; place-items: center; transition: color .15s, transform .2s var(--ease); }
.gallery__tools button:hover { color: var(--brand); transform: scale(1.06); }
.gallery__tools button[aria-pressed="true"] { color: var(--sale); }
.gallery__dots { position: absolute; inset-block-end: 12px; inset-inline: 0; display: none; justify-content: center; gap: 5px; z-index: 2; }
.gallery__dots span { width: 7px; height: 7px; border-radius: 7px; background: rgba(15,23,42,.2); transition: all .25s var(--ease); }
.gallery__dots span.is-on { width: 20px; background: var(--brand); }
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 14px; border: 2px solid transparent; background: var(--frame); padding: 0; overflow: hidden; transition: border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.thumb.is-on { border-color: var(--brand); }
.thumb:hover { border-color: var(--brand-200); }
@media (max-width: 991px) {
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: calc(-1 * var(--gut)); }
  .gallery__main { border-radius: 0; border: 0; }
  .thumbs { display: none; }
  .gallery__dots { display: flex; }
}
.pinfo__brand { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 800; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 10px; }
.pinfo h1 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.35; margin: 0 0 10px; }
.pinfo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.pinfo__meta a { color: var(--ink-2); font-weight: 700; }
.pinfo__meta a:hover { color: var(--brand); }
.pinfo__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.pinfo__short { color: var(--ink-2); margin-bottom: 18px; }
.pbox { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }
.pprice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.pprice .money { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); letter-spacing: -.02em; }
.pprice .money--sale { color: var(--sale); }
.pprice s { color: var(--muted-2); font-weight: 700; font-size: 1.05rem; }
.pprice .badge { height: 28px; font-size: .82rem; }
.pprice__vat { flex-basis: 100%; font-size: .8rem; color: var(--muted); }
.psave { font-size: .85rem; font-weight: 800; color: var(--ok); }
.pcd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 14px; border-radius: var(--r); background: var(--sale-50); color: var(--sale); font-weight: 800; font-size: .88rem; flex-wrap: wrap; }
.tiers { margin-top: 16px; border: 1px dashed var(--accent); background: var(--accent-50); border-radius: var(--r); padding: 12px 14px; }
.tiers h3 { font-size: .9rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.tiers table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tiers td, .tiers th { padding: 6px 8px; text-align: start; border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, #fff); }
.tiers tr:last-child td { border-bottom: 0; }
.tiers tr.is-on td { font-weight: 800; color: var(--accent-700); }
.pvars { margin-top: 18px; }
.pvars__l { font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.pvars__l span { color: var(--muted); font-weight: 600; }
.pvars__list { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 14px 5px 6px; border-radius: 14px; border: 1.6px solid var(--line); background: #fff; font-weight: 700; font-size: .88rem; transition: all .15s var(--ease); position: relative; }
html[dir="rtl"] .vchip { padding: 5px 6px 5px 14px; }
.vchip img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: var(--frame); }
.vchip:hover { border-color: var(--brand-200); color: var(--ink); }
.vchip.is-on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; color: var(--brand-800); }
.vchip.is-out { color: var(--muted-2); background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)); }
.vchip:not(:has(img)) { padding-inline: 16px; }
.pstock { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; font-size: .9rem; }
.pstock .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.pstock--in { color: var(--ok); }
.pstock--low { color: var(--warn); }
.pstock--out { color: var(--bad); }
.pbuy { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pbuy .qty { flex: 0 0 auto; }
.pbuy .btn--primary { flex: 1 1 200px; }
.pbuy2 { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; margin-top: 10px; }
@media (max-width: 480px) { .pbuy2 { grid-template-columns: 1fr auto auto; } .pbuy2 .cmp-btn { display: none; } }
.pnotify { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.pnotify h3 { font-size: .95rem; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.pnotify p { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.perks { display: grid; gap: 0; margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.perk { display: flex; gap: 12px; align-items: center; padding: 13px 16px; font-size: .86rem; }
.perk + .perk { border-top: 1px solid var(--line-2); }
.perk > i { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.perk b { display: block; font-size: .9rem; }
.perk span { color: var(--muted); }
.perk a { color: var(--brand); font-weight: 700; }
.pshare { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.pshare a, .pshare button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: all .15s; }
.pshare a:hover, .pshare button:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.tabs { margin-top: 40px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--hdr-h); background: var(--surface); z-index: 20; }
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn { position: relative; padding: 14px 18px; border: 0; background: none; font-weight: 800; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.tabs__btn::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__btn[aria-selected="true"]::after { transform: none; }
.tabs__btn .n { font-size: .75rem; background: var(--line-2); color: var(--muted); border-radius: var(--r-pill); padding: 1px 8px; margin-inline-start: 4px; }
.tabs__panel { padding-block: 24px; }
.prose { max-width: 80ch; color: var(--ink-2); line-height: 1.85; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
.prose th { background: var(--surface-2); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-inline-start: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; }
.specs { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.specs th, .specs td { padding: 12px 16px; text-align: start; font-size: .9rem; border-bottom: 1px solid var(--line-2); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 36%; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.rv { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .rv { grid-template-columns: 1fr; gap: 20px; } }
.rv__sum { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; }
.rv__avg { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rv__avg b { font-size: 2.8rem; line-height: 1; font-weight: 900; }
.rv__avg small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.dist { display: grid; gap: 6px; }
.dist__row { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.dist__bar { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.dist__bar span { display: block; height: 100%; border-radius: 8px; background: var(--star); }
.rv__item { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.rv__item:first-child { padding-top: 0; }
.rv__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.rv__av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 900; }
.rv__name { font-weight: 800; font-size: .92rem; }
.rv__date { font-size: .78rem; color: var(--muted); }
.rv__ver { font-size: .74rem; font-weight: 800; color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.rv__t { font-weight: 800; margin: 4px 0; }
.rv__b { color: var(--ink-2); margin: 0; white-space: pre-line; }
.rv__reply { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border-inline-start: 3px solid var(--brand); font-size: .88rem; }
.rv__reply b { display: block; font-size: .8rem; color: var(--brand-700); margin-bottom: 2px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.8rem; color: #e2e8f0; cursor: pointer; transition: color .1s, transform .15s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
html[dir="rtl"] .star-input { flex-direction: row-reverse; }

.sticky-buy { display: none; }
@media (max-width: 991px) {
  .sticky-buy { display: flex; align-items: center; gap: 10px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 880; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(15,23,42,.4); transform: translateY(110%); transition: transform .3s var(--ease); }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy__p { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .sticky-buy__p .money { font-size: 1.1rem; }
  .sticky-buy__p s { font-size: .75rem; color: var(--muted-2); }
  .sticky-buy .btn { flex: 1; min-height: 50px; }
}

/* ----------------------------------------------------------------- cart page & checkout */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .co { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 920px) { .co { grid-template-columns: 1fr; } }
.co__side { position: sticky; top: calc(var(--hdr-h) + 16px); }
.cart-lines .cl { grid-template-columns: 104px 1fr; padding: 18px 0; }
.cart-lines .cl__img { width: 104px; height: 104px; }
.cart-lines .cl__t { font-size: .98rem; }
.cart-lines .cl__lt { font-size: 1.05rem; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; }
.sum-row span:first-child { color: var(--ink-2); }
.sum-row--disc { color: var(--ok); font-weight: 700; }
.sum-row--disc span:first-child { color: var(--ok); }
.sum-total { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--line); }
.sum-total b { font-size: 1.05rem; }
.sum-total .money { font-size: 1.5rem; color: var(--ink); }
.sum-vat { font-size: .78rem; color: var(--muted); text-align: end; }
.coupon { display: flex; gap: 8px; margin: 14px 0 6px; }
.coupon .input { min-height: 44px; text-transform: uppercase; }
.coupon .btn { min-height: 44px; }
.coupon-ok { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ok-50); color: var(--ok); font-weight: 700; font-size: .86rem; margin: 12px 0 4px; }
.coupon-msg { font-size: .82rem; font-weight: 600; color: var(--bad); min-height: 0; }
.trust { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: .78rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust i { color: var(--ok); }
.mini-lines { display: grid; gap: 12px; max-height: 300px; overflow: auto; margin-bottom: 14px; padding-inline-end: 4px; }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.mini-line__img { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--frame); border: 1px solid var(--line-2); }
.mini-line__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.mini-line__q { position: absolute; inset-block-start: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.mini-line__t { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.addr-list { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-instr { display: block; margin-top: 8px; font-size: .84rem; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; white-space: pre-line; }
.co-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 22px; font-size: .82rem; font-weight: 800; color: var(--muted); flex-wrap: wrap; }
.co-steps span { display: inline-flex; align-items: center; gap: 8px; }
.co-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: .78rem; }
.co-steps .is-on { color: var(--ink); }
.co-steps .is-on .n { background: var(--brand); color: var(--on-brand); }
.co-steps .is-done .n { background: var(--ok); color: #fff; }
.co-steps .line { width: 40px; height: 2px; background: var(--line); }
.place-bar { display: none; }
@media (max-width: 920px) {
  .co__side { position: static; }
  .place-bar { display: flex; align-items: center; gap: 12px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 880; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(15,23,42,.4); }
  .place-bar .btn { flex: 1; }
  .place-bar__t { display: flex; flex-direction: column; line-height: 1.2; }
  .place-bar__t small { color: var(--muted); font-size: .75rem; }
  .place-bar__t .money { font-size: 1.15rem; }
  body.has-place-bar .bnav { display: none; }
  body.has-place-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ----------------------------------------------------------------- order & account */
.thanks { text-align: center; padding: 30px 20px 26px; background: radial-gradient(600px 200px at 50% 0, var(--ok-50), transparent 70%), #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); margin-bottom: 18px; }
.thanks__ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 0 0 10px var(--ok-50); animation: popIn .6s var(--ease) both; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.thanks p { color: var(--muted); margin: 0 0 4px; }
.thanks__no { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); font-weight: 800; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--tl-n, 5), minmax(0, 1fr)); position: relative; }
.tl::before { content: ""; position: absolute; inset-block-start: 17px; inset-inline: 10%; height: 3px; background: var(--line); border-radius: 3px; }
.tl__fill { position: absolute; inset-block-start: 17px; inset-inline-start: 10%; height: 3px; background: var(--ok); border-radius: 3px; transition: width .6s var(--ease); }
.tl li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); z-index: 1; }
.tl .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--muted-2); font-size: .85rem; }
.tl .is-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl .is-cur .dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 6px var(--brand-100); }
.tl .is-done, .tl .is-cur { color: var(--ink); }
.tl small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
@media (max-width: 600px) {
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl::before { inset-block: 18px; inset-inline-start: 17px; inset-inline-end: auto; width: 3px; height: auto; }
  .tl__fill { display: none; }
  .tl li { flex-direction: row; text-align: start; padding-block: 8px; gap: 12px; }
}
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { position: relative; padding: 0 0 16px; padding-inline-start: 26px; font-size: .86rem; }
.hist li::before { content: ""; position: absolute; inset-inline-start: 5px; inset-block-start: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.hist li::after { content: ""; position: absolute; inset-inline-start: 9px; inset-block: 20px 0; width: 2px; background: var(--line); }
.hist li:last-child::after { display: none; }
.hist time { display: block; font-size: .76rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.order-items { display: grid; gap: 0; }
.oi { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.oi:last-child { border-bottom: 0; }
.oi__img { width: 64px; height: 64px; border-radius: 12px; background: var(--frame); overflow: hidden; }
.oi__img img { width: 100%; height: 100%; object-fit: contain; }
.oi__t { font-weight: 700; font-size: .92rem; }
.oi__t small { display: block; color: var(--muted); font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; } }
.copy-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-weight: 800; justify-content: space-between; }

.acc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 991px) { .acc { grid-template-columns: 1fr; gap: 14px; } }
.acc-nav { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px; position: sticky; top: calc(var(--hdr-h) + 16px); }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 6px; border-radius: var(--r); background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: var(--on-brand); }
.acc-user .av { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; flex: 0 0 auto; }
.acc-user b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-user small { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.acc-user > div { min-width: 0; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--ink-2); width: 100%; border: 0; background: none; text-align: start; }
.acc-nav a i, .acc-nav button i { width: 20px; text-align: center; color: var(--muted); }
.acc-nav a:hover, .acc-nav button:hover { background: var(--surface-2); color: var(--ink); }
.acc-nav a.is-on { background: var(--brand-50); color: var(--brand-700); }
.acc-nav a.is-on i { color: var(--brand); }
@media (max-width: 991px) {
  .acc-nav { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-user { display: none; }
  .acc-nav a, .acc-nav button { width: auto; white-space: nowrap; padding: 9px 12px; font-size: .84rem; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; display: flex; align-items: center; gap: 12px; }
.stat > i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.1rem; flex: 0 0 auto; }
.stat b { display: block; font-size: 1.25rem; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 12px; } .stat > i { width: 38px; height: 38px; } }
.orow { display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.orow + .orow { margin-top: 10px; }
.orow:hover { border-color: var(--brand-200); box-shadow: var(--sh-1); color: var(--ink); }
.orow__no { font-weight: 800; }
.orow__no small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.orow__imgs { display: flex; }
.orow__imgs span { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #fff; background: var(--frame); overflow: hidden; margin-inline-start: -10px; box-shadow: var(--sh-1); }
.orow__imgs span:first-child { margin-inline-start: 0; }
.orow__imgs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) { .orow { grid-template-columns: 1fr auto; } .orow__imgs { display: none; } }
.addr { position: relative; padding: 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: .88rem; }
.addr.is-def { border-color: var(--brand); }
.addr b { font-size: .95rem; }
.addr__acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pts-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--accent), var(--accent-700)); color: var(--on-accent); margin-bottom: 16px; flex-wrap: wrap; }
.pts-hero b { font-size: 2.2rem; line-height: 1; display: block; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line-2); }
.tbl th { font-size: .78rem; color: var(--muted); font-weight: 800; background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.plus { color: var(--ok); font-weight: 800; }
.minus { color: var(--bad); font-weight: 800; }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); max-width: 1040px; margin: 10px auto 0; }
.auth__art { position: relative; padding: 40px; color: var(--on-brand); background: radial-gradient(700px 300px at 0% 100%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), linear-gradient(150deg, var(--brand-800), var(--brand) 70%); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth__art::after { content: ""; position: absolute; inset-inline-end: -90px; inset-block-start: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
.auth__art h2 { font-size: 1.7rem; margin: 18px 0 10px; }
.auth__art p { opacity: .88; }
.auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth__perks li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.auth__perks i { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.auth__form { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth__form h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth__form > p { color: var(--muted); margin-bottom: 22px; }
.auth__alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.auth__row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 16px; font-size: .86rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth__art { display: none; } .auth__form { padding: 26px 20px; } }

.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--sh-2); border-color: transparent; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 800; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: .75rem; transition: transform .25s var(--ease), background .2s; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--brand); color: var(--on-brand); }
.faq .faq__a { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.8; white-space: pre-line; }
.faq-search { max-width: 860px; margin: 0 auto 20px; position: relative; }
.faq-search .input { padding-inline-start: 44px; border-radius: var(--r-pill); }
.faq-search i { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.cinfo { display: grid; gap: 10px; }
.cinfo a, .cinfo div { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line-2); }
.cinfo i { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.cinfo small { display: block; color: var(--muted); font-size: .78rem; }
.cinfo b { font-size: .92rem; word-break: break-word; }

.cmp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; }
.cmp th, .cmp td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; text-align: start; font-size: .9rem; }
.cmp th { width: 160px; background: var(--surface-2); color: var(--muted); font-weight: 800; position: sticky; inset-inline-start: 0; z-index: 1; }
.cmp td { min-width: 200px; }
.cmp__img { aspect-ratio: 1; background: var(--frame); border-radius: 12px; overflow: hidden; margin-bottom: 10px; display: block; }
.cmp__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cmp-fab { position: fixed; inset-inline-start: 20px; inset-block-end: 24px; z-index: 860; display: none; }
.cmp-fab.is-on { display: inline-flex; }
@media (max-width: 991px) { .cmp-fab { inset-block-end: calc(76px + env(safe-area-inset-bottom)); inset-inline-start: 12px; } body.has-sticky-buy .cmp-fab { display: none; } }

.state-page { text-align: center; padding: 60px 20px; max-width: 620px; margin-inline: auto; }
.state-page .big { font-size: clamp(5rem, 14vw, 8rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.state-page h1 { font-size: 1.6rem; }
.state-page p { color: var(--muted); }
.state-page .search { margin: 22px auto; position: relative; }

/* ----------------------------------------------------------------- motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .topbar, .hdr, .catbar, .bnav, .ftr, .nl, .drawer, .toasts, .sticky-buy, .place-bar { display: none !important; } body { background: #fff; padding: 0; } }

/* ----------------------------------------------------------------- categories / brands index */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.catcard { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; transition: box-shadow .2s, border-color .2s; }
.catcard:hover { box-shadow: var(--sh-2); border-color: transparent; }
.catcard__head { display: flex; align-items: center; gap: 14px; }
.catcard__head b { display: block; font-size: 1.05rem; }
.catcard__head small { color: var(--muted); font-weight: 600; }
.catcard__head .ctile__img { width: 64px; height: 64px; flex: 0 0 64px; font-size: 1.4rem; }
.catcard__go { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: .8rem; transition: transform .2s var(--ease); }
.catcard__head:hover .catcard__go { transform: translateX(calc(var(--dir, -1) * 3px)); }
html[dir="ltr"] .catcard__head { --dir: 1; }
.catcard__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.catcard__subs .chip { height: 30px; font-size: .8rem; padding: 0 11px; }
@media (max-width: 680px) { .catgrid { grid-template-columns: 1fr; } }
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (max-width: 680px) { .brandgrid { grid-template-columns: 1fr 1fr; } }
.co-steps a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.co-steps .is-done { color: var(--ink); }
.stat { color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--brand-200); box-shadow: var(--sh-1); color: var(--ink); }
.pts-hero small { display: block; font-weight: 700; opacity: .85; }
.pts-hero span { font-weight: 700; }
form > .check, .modal__body > .check { display: flex; }

/* ---------------------------------------------------------------- e-mail verification + invite friends (referral, §11) */
.verify-bar { align-items: center; flex-wrap: wrap; }
.verify-bar > div { flex: 1 1 260px; min-width: 0; }
.verify-bar b { display: block; }
.verify-bar span { overflow-wrap: anywhere; }
.verify-bar .btn { flex: 0 0 auto; background: #fff; }
.verify-bar.is-flash { animation: verifyFlash 1.4s var(--ease) 1; }
@keyframes verifyFlash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .verify-bar.is-flash { animation: none; } }
.verify-box { max-width: 560px; margin: 20px auto; text-align: center; padding: 36px 26px; }
.verify-box h1 { font-size: 1.5rem; }
.verify-box__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty__ic--ok { color: var(--ok); background: radial-gradient(circle at 30% 30%, #fff, color-mix(in srgb, var(--ok) 14%, #fff)); box-shadow: inset 0 0 0 8px var(--ok-50); }

.ref-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r); background: var(--accent-50); border: 1px solid var(--accent-100); color: var(--ink); font-size: .9rem; }
.ref-note > i { color: var(--accent-700); font-size: 1.2rem; margin-top: 2px; }
.ref-note b { display: block; }
.ref-note span { color: var(--ink-2); }

.ref-cta { display: flex; align-items: center; gap: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ref-cta:hover { border-color: var(--brand-200); box-shadow: var(--sh-2); color: var(--ink); }
.ref-cta > span:nth-child(2) { flex: 1; min-width: 0; }
.ref-cta b { display: block; }
.ref-cta small { color: var(--muted); font-weight: 600; }
.ref-cta > i { color: var(--muted); }
.ref-cta__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-700); font-size: 1.15rem; flex: 0 0 auto; }

.ref-hero { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px; margin-bottom: 16px; border-radius: var(--r-lg);
  background: linear-gradient(125deg, var(--brand), var(--brand-800)); color: var(--on-brand); position: relative; overflow: hidden; }
.ref-hero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.ref-hero__txt { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.ref-hero__txt small { display: block; font-weight: 800; opacity: .85; letter-spacing: .02em; }
.ref-hero__txt h2 { font-size: 1.45rem; margin: 4px 0 8px; color: inherit; }
.ref-hero__txt p { margin: 0; opacity: .92; font-size: .92rem; max-width: 560px; }
.ref-code { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 20px; border-radius: var(--r);
  background: rgba(255,255,255,.14); border: 1.5px dashed rgba(255,255,255,.55); min-width: 190px; }
.ref-code span { font-size: .78rem; font-weight: 700; opacity: .9; }
.ref-code b { font-size: 1.7rem; letter-spacing: .18em; font-family: 'Inter', monospace; line-height: 1.1; }
.ref-code__btn { background: #fff; color: var(--brand-700); }
.ref-code__btn:hover { background: var(--brand-50); color: var(--brand-800); }
.ref-link { display: flex; gap: 10px; }
.ref-link .input { flex: 1; min-width: 0; font-family: 'Inter', monospace; font-size: .9rem; background: var(--surface-2); }
.ref-share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ref-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.ref-steps b { display: block; margin-bottom: 2px; }
.ref-steps span:not(.ref-steps__n) { color: var(--muted); font-size: .86rem; }
.ref-steps__n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.ref-friends { list-style: none; margin: 0; padding: 0; }
.ref-friends li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ref-friends li:last-child { border-bottom: 0; }
.ref-friends li > div { flex: 1; min-width: 0; }
.ref-friends b { display: block; }
.ref-friends small { color: var(--muted); }
.ref-friends .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
@media (max-width: 760px) {
  .ref-hero { padding: 18px; }
  .ref-hero__txt h2 { font-size: 1.2rem; }
  .ref-code { width: 100%; }
  .ref-link { flex-direction: column; }
  .ref-steps { grid-template-columns: 1fr; }
  .stats--3 { grid-template-columns: 1fr 1fr; }
  .stats--3 .stat:last-child { grid-column: 1 / -1; }
  .ref-share .btn { flex: 1 1 140px; }
}
