/* ==========================================================================
   GlobeB2B design system
   Editorial-tech B2B: navy canvas, electric indigo, amber accents, soft depth.
   Logical properties everywhere so Arabic (RTL) mirrors for free.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #f5f6fa;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --surface-3: #f2f4f9;
  --ink: #0a1122;
  --ink-2: #26314a;
  --muted: #5d6880;
  --faint: #8b94a8;
  --line: #e4e8f1;
  --line-strong: #d3d9e6;

  --brand: #2f5bff;
  --brand-600: #2348db;
  --brand-700: #1b37ad;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --accent: #f59e0b;
  --accent-ink: #7c4a03;
  --success: #10b981;
  --danger: #e5484d;
  --warning: #f59e0b;

  --grad-brand: linear-gradient(135deg, #2f5bff 0%, #6d5cff 48%, #b14bff 100%);
  --grad-ink: linear-gradient(120deg, #0a1122 20%, #2f5bff 60%, #7c3aed 100%);
  --grad-night: radial-gradient(1200px 520px at 12% -10%, #1b2a6b 0%, transparent 60%),
                radial-gradient(900px 500px at 88% 0%, #4a1d77 0%, transparent 55%),
                linear-gradient(180deg, #070c18 0%, #0a1226 60%, #070c18 100%);
  --grad-amber: linear-gradient(135deg, #fbbf24, #f97316);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 17, 34, .06);
  --shadow-sm: 0 1px 2px rgba(10, 17, 34, .05), 0 4px 12px -4px rgba(10, 17, 34, .10);
  --shadow: 0 1px 2px rgba(10, 17, 34, .05), 0 16px 40px -20px rgba(10, 17, 34, .28);
  --shadow-lg: 0 2px 4px rgba(10, 17, 34, .06), 0 32px 64px -28px rgba(10, 17, 34, .38);
  --ring: 0 0 0 3px rgba(47, 91, 255, .22);

  --font: "Inter var", "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Noto Sans Arabic", "Noto Sans KR", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter var", "Inter", "Segoe UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --header-h: 72px;
  --container: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-elev: #0c1322;
  --surface: #0e1526;
  --surface-2: #111a2e;
  --surface-3: #16203a;
  --ink: #eef2fb;
  --ink-2: #cbd4e8;
  --muted: #93a0bb;
  --faint: #6c7a97;
  --line: #1e2942;
  --line-strong: #2b3957;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 48px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .45), 0 40px 80px -30px rgba(0, 0, 0, .9);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px -8px rgba(0, 0, 0, .6);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { background: var(--surface-3); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(47, 91, 255, .22); }

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout helpers ------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1480px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { display: grid; place-items: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.tick { width: 15px; height: 15px; flex: none; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 4. Type ------------------------------------------------------ */
.display { font-family: var(--font-display); font-weight: 720; letter-spacing: -.035em; line-height: 1.02; }
h1, .h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.05; }
h2, .h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 680; letter-spacing: -.028em; line-height: 1.15; }
h3, .h3 { font-size: 1.18rem; font-weight: 650; letter-spacing: -.015em; }
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.gradient-text {
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .gradient-text { background: linear-gradient(120deg, #fff 10%, #9db8ff 55%, #c7a8ff 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  transition: transform .16s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary {
  --btn-bg: var(--grad-brand); --btn-fg: #fff; --btn-bd: transparent;
  box-shadow: 0 10px 30px -12px rgba(47, 91, 255, .8);
}
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(47, 91, 255, .85); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink-2); }
.btn-ghost:hover { --btn-bg: var(--surface-3); box-shadow: none; }
.btn-outline { --btn-bg: transparent; --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bd: var(--ink); }
.btn-amber { --btn-bg: var(--grad-amber); --btn-fg: #2b1602; --btn-bd: transparent; }
.btn-danger { --btn-bg: #fdecec; --btn-fg: #b42318; --btn-bd: #f6c9c7; }
[data-theme="dark"] .btn-danger { --btn-bg: #331418; --btn-fg: #ff9a9a; --btn-bd: #4d1f24; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px;
  color: var(--ink-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- 6. Inputs ---------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-inline-end: 38px;
}
[dir="rtl"] .select { background-position: left 14px center; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .icon { position: absolute; inset-inline-start: 14px; width: 19px; height: 19px; color: var(--faint); }
.input-group .input { padding-inline-start: 44px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }
.error-text { color: var(--danger); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- 7. Chips / badges ------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 550;
  transition: all .18s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-sm { height: 28px; padding: 0 11px; font-size: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 7px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  background: var(--surface-3); color: var(--ink-2);
}
.badge-brand { background: rgba(47, 91, 255, .10); color: var(--brand-600); }
[data-theme="dark"] .badge-brand { background: rgba(93, 134, 255, .16); color: #9db8ff; }
.badge-success { background: rgba(16, 185, 129, .12); color: #047857; }
[data-theme="dark"] .badge-success { color: #6ee7b7; background: rgba(16, 185, 129, .16); }
.badge-amber { background: rgba(245, 158, 11, .14); color: var(--accent-ink); }
[data-theme="dark"] .badge-amber { color: #fcd34d; background: rgba(245, 158, 11, .16); }
.badge-violet { background: rgba(124, 58, 237, .10); color: #6d28d9; }
[data-theme="dark"] .badge-violet { color: #c4b5fd; background: rgba(124, 58, 237, .18); }
.badge-danger { background: rgba(229, 72, 77, .10); color: #b42318; }
[data-theme="dark"] .badge-danger { color: #fca5a5; background: rgba(229, 72, 77, .16); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tick { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* ---------- 8. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -.03em; font-size: 19px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 0; background: none;
  display: grid; place-items: center; box-shadow: none; color: inherit; flex: none;
}
.brand-mark img { width: 34px; height: 34px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: background .16s, color .16s; white-space: nowrap;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link.active { color: var(--brand); background: rgba(47, 91, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-search { flex: 1 1 170px; min-width: 150px; max-width: 340px; }
.header-search .input { min-height: 40px; border-radius: var(--radius-pill); background: var(--surface); }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; }
.lang-btn:hover { background: var(--surface-3); }
.lang-btn .flag { font-size: 15px; display: inline-flex; align-items: center; }
.lang-flag {
  width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14); background: #e2e8f0; vertical-align: -2px;
}
.menu-item .lang-flag { width: 22px; height: 15px; }
.menu-panel {
  position: absolute; z-index: 80; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); animation: pop .16s var(--ease-out);
}
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  font-size: 14px; width: 100%; text-align: start;
}
.menu-item:hover { background: var(--surface-3); }
.menu-item.active { background: rgba(47, 91, 255, .08); color: var(--brand); font-weight: 600; }
.menu-label { padding: 8px 11px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 650; font-size: 14px;
}
.mobile-toggle { display: none; }
.cart-count {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--accent); color: #2b1602; font-size: 10.5px;
  font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- 9. Hero ------------------------------------------------------ */
.hero { position: relative; background: var(--grad-night); color: #f4f7ff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; padding-block: 76px 88px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  font-size: 12.5px; font-weight: 550; color: #cfd9ff; backdrop-filter: blur(8px);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); letter-spacing: -.04em; line-height: 1.02; margin-block: 22px 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #7aa2ff, #b78cff 55%, #7ee7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #a9b6d6; font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-search {
  margin-top: 30px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px; padding: 8px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.hero-search-tabs { display: flex; gap: 4px; padding: 4px 4px 8px; }
.hero-tab { padding: 7px 13px; border-radius: 9px; font-size: 13px; color: #b7c3de; font-weight: 550; }
.hero-tab.active { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-search-row { display: flex; gap: 8px; }
.hero-search .input {
  min-height: 52px; border-radius: 14px; border-color: transparent; background: rgba(255, 255, 255, .96);
  color: #0a1122; font-size: 15px;
}
.hero-search .input::placeholder { color: #6b7690; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 12.5px; color: #93a2c4; }
.hero-tag { padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .14); }
.hero-tag:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero-visual { position: relative; min-height: 460px; }
.hero-card {
  position: absolute; width: 210px; border-radius: 20px; overflow: hidden;
  background: #fff; color: #0a1122; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .95);
  border: 1px solid rgba(255, 255, 255, .5);
  animation: float 9s var(--ease) infinite;
}
.hero-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero-card-body { padding: 12px 14px 14px; }
.hero-card.c1 { top: 2%; inset-inline-end: 2%; width: 232px; transform: rotate(3deg); animation-delay: -2s; z-index: 1; }
.hero-card.c2 { bottom: 0; inset-inline-start: 2%; width: 208px; transform: rotate(-5deg); animation-delay: -5s; z-index: 2; }
.hero-glass {
  position: absolute; inset-inline-start: 0; top: 2%; padding: 12px 16px; border-radius: 16px;
  background: rgba(12, 20, 40, .62); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px); font-size: 12.5px; color: #d5e0ff; display: flex; gap: 10px; align-items: center;
  box-shadow: var(--shadow-lg); z-index: 5;
}
.hero-glass .pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.65rem; font-weight: 720; letter-spacing: -.03em; }
.hero-stat span { font-size: 12.5px; color: #96a4c6; }
.trust-strip { border-top: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .02); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 20px; }
.trust-item { display: flex; align-items: center; gap: 11px; color: #c3cee9; font-size: 13.5px; }
.trust-item .icon-wrap {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #9fb6ff;
}

/* ---------- 10. Sections ------------------------------------------------ */
.section { padding-block: 68px; }
.section-tight { padding-block: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }

/* category tiles (legacy / elsewhere) */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: all .22s var(--ease);
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; inset: auto -30% -70% auto; width: 140px; height: 140px;
  background: var(--grad-brand); opacity: 0; filter: blur(40px); transition: opacity .3s;
}
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.cat-card:hover::after { opacity: .16; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px;
  background: var(--surface-3); border: 1px solid var(--line); flex: none;
}
.cat-card b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.cat-card span { font-size: 12px; color: var(--faint); }

/* compact L1 / L2 / L3 category browser */
.cat-browser {
  display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 0;
  margin-top: 16px; min-height: 360px; max-height: 420px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden;
}
.cat-browser-nav {
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  border-inline-end: 1px solid var(--line); background: var(--surface-2);
  overflow: auto; max-height: 420px;
}
.cat-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 10px; border-radius: 12px; text-align: start; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.cat-nav-item:hover { background: rgba(15, 118, 110, .06); }
.cat-nav-item.active {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-xs), 0 0 0 1px var(--line);
}
.cat-nav-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(15, 118, 110, .12), rgba(232, 168, 56, .14));
  color: #0f766e;
}
.cat-nav-item.active .cat-nav-ico { color: #0b7a6f; background: linear-gradient(145deg, rgba(15, 118, 110, .18), rgba(232, 168, 56, .18)); }
.cat-ico { display: block; flex: 0 0 auto; width: 18px; height: 18px; color: #0f766e; line-height: 0; overflow: visible; }
.cat-ico svg { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.cat-ico-nav { width: 19px; height: 19px; }
.cat-ico-group { width: 16px; height: 16px; }
.cat-ico-leaf { width: 13px; height: 13px; color: var(--faint); }
.cat-nav-ico .cat-ico { margin: auto; }
[data-theme="dark"] .cat-nav-ico { background: linear-gradient(145deg, rgba(45, 212, 191, .16), rgba(232, 168, 56, .12)); color: #5eead4; }
[data-theme="dark"] .cat-nav-item.active .cat-nav-ico { color: #99f6e4; }
[data-theme="dark"] .cat-ico { color: #5eead4; }
[data-theme="dark"] .cat-ico-leaf { color: #7c8aa5; }
.cat-nav-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-nav-copy b {
  font-size: 13.5px; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-nav-copy em { font-style: normal; font-size: 11px; color: var(--faint); }
.cat-browser-panel { display: flex; flex-direction: column; min-height: 0; max-height: 420px; }
.cat-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.cat-panel-title { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.cat-panel-body {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px;
  padding: 14px 16px 18px; overflow: auto; align-content: start;
}
.cat-group { min-width: 0; }
.cat-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.cat-group-title .cat-ico, .cat-leaf .cat-ico { flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px; max-width: 16px; }
.cat-leaf .cat-ico { flex: 0 0 13px; width: 13px; height: 13px; min-width: 13px; max-width: 13px; }
.cat-group-title span:nth-of-type(1) {
  flex: 1; min-width: 0; margin-inline-start: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-group-title em { font-style: normal; font-size: 11px; color: var(--faint); font-weight: 600; }
.cat-group-title:hover { color: #0f766e; }
.cat-leaves { display: flex; flex-direction: column; gap: 4px; }
.cat-leaf {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 0 4px 2px; font-size: 12.5px; color: var(--muted); border-radius: 6px;
}
.cat-leaf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-leaf em { font-style: normal; font-size: 11px; color: var(--faint); flex: none; }
.cat-leaf:hover { color: #0f766e; }
.cat-panel-empty {
  grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; gap: 10px; text-align: center;
}
@media (max-width: 1024px) {
  .cat-panel-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cat-browser {
    grid-template-columns: 1fr; max-height: none; min-height: 0;
  }
  .cat-browser-nav {
    flex-direction: row; overflow-x: auto; max-height: none;
    border-inline-end: 0; border-bottom: 1px solid var(--line);
  }
  .cat-nav-item { min-width: 150px; }
  .cat-browser-panel { max-height: 360px; }
  .cat-panel-body { grid-template-columns: 1fr; }
}

/* product card */
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .22s var(--ease), box-shadow .25s, border-color .2s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-3); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-flags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-fav {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #0a1122; display: grid; place-items: center;
  opacity: 0; transform: translateY(-4px); transition: all .2s; backdrop-filter: blur(6px);
}
.product-card:hover .product-fav { opacity: 1; transform: none; }
.product-fav.on { opacity: 1; color: #e5484d; transform: none; }
.product-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; min-height: 2.7em; }
.product-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.product-price b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.product-price span { font-size: 12px; color: var(--faint); }
.product-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.product-supplier { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.product-supplier b { font-weight: 550; color: var(--ink-2); }

/* supplier card */
.supplier-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .22s; display: flex; flex-direction: column; gap: 14px; }
.supplier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.supplier-top { display: flex; gap: 13px; align-items: center; }
.supplier-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.supplier-name { font-weight: 650; letter-spacing: -.015em; font-size: 15px; }
.supplier-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.supplier-stats b { display: block; font-size: 14px; font-family: var(--mono); }
.supplier-stats span { font-size: 11px; color: var(--faint); }

/* rfq rows */
.rfq-list { display: flex; flex-direction: column; gap: 12px; }
.rfq-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: all .2s;
}
.rfq-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateX(2px); }
[dir="rtl"] .rfq-row:hover { transform: translateX(-2px); }
.rfq-thumb {
  width: 88px; height: 88px; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--surface-3); border: 1px solid var(--line);
}
.rfq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfq-body { min-width: 0; }
.rfq-action { flex: none; }
.rfq-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.rfq-meta b { color: var(--ink-2); font-weight: 600; }
.rfq-detail-layout {
  display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 22px; align-items: start;
}
.rfq-detail-gallery { display: grid; gap: 10px; }
.rfq-detail-media {
  width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line);
}
.rfq-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfq-detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rfq-detail-thumb {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: var(--surface-3); cursor: pointer;
}
.rfq-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfq-detail-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.rfq-detail-body { min-width: 0; }
.rfq-buyer-facts {
  display: grid; gap: 10px; margin: 16px 0 0; padding: 0;
}
.rfq-buyer-facts > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; align-items: baseline;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.rfq-buyer-facts dt {
  margin: 0; font-size: 12px; color: var(--muted); font-weight: 500;
}
.rfq-buyer-facts dd {
  margin: 0; font-size: 13.5px; color: var(--ink-2); word-break: break-word;
}
.rfq-buyer-facts a { color: var(--brand); text-decoration: none; }
.rfq-buyer-facts a:hover { text-decoration: underline; }

/* AI band */
.ai-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--grad-night); color: #e9eeff; padding: 46px 44px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.ai-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 65%);
  inset-inline-end: -120px; top: -120px; filter: blur(30px);
}
.ai-band h2 { color: #fff; }
.ai-band p { color: #aeb9d8; }
.ai-steps { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.ai-step { display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); }
.ai-step-num { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.lang-pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); font-size: 12.5px; color: #d7e0f8;
}
.lang-pill.on { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* CTA banner */
.cta-band {
  border-radius: var(--radius-lg); padding: 48px; background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: 8px; }
.cta-band > * { position: relative; z-index: 1; }

.cat-node { display: block; }
.cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: start;
}
.cat-link:hover { background: var(--surface-3); color: var(--brand); }
.cat-link.active { background: rgba(47, 91, 255, .08); color: var(--brand); font-weight: 600; }

/* Category tree: L1 -> L2 -> L3 with per-level icons */
.filter-block[data-cat-tree] { position: relative; }
.cat-link-all { margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.cat-link-all .cat-ico-svg { width: 17px; height: 17px; flex: none; }
.cat-row { display: flex; align-items: center; gap: 2px; border-radius: 9px; }
.cat-row:hover { background: var(--surface-3); }
.cat-node > .cat-row > .cat-link,
.cat-node > .cat-row:hover > .cat-link { background: transparent; }
.cat-node > .cat-row:hover > .cat-link:not(.active) { color: var(--brand); }
.cat-toggle,
.cat-caret-spacer { width: 20px; flex: none; display: grid; place-items: center; }
.cat-toggle {
  height: 26px; border-radius: 7px; color: var(--faint);
  transition: transform .18s ease, color .15s ease, background .15s ease;
}
.cat-toggle:hover { color: var(--brand); background: rgba(47, 91, 255, .10); }
.cat-toggle .cat-caret { width: 14px; height: 14px; }
.cat-node.open > .cat-row > .cat-toggle { transform: rotate(90deg); }
.cat-toggle.loading { opacity: .45; }
.cat-link {
  flex: 1; min-width: 0; padding: 6px 8px 6px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: start;
}
.cat-link-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.cat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count {
  flex: none; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--faint);
  padding: 1px 6px; border-radius: var(--radius-pill); background: var(--surface-3);
}
.cat-link.active .cat-count { color: var(--brand); background: rgba(47, 91, 255, .12); }
/* Level badge icon (catalog sidebar). Scoped so it never styles the home category browser. */
.cat-link .cat-ico {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px;
  font-size: 12px; line-height: 1; overflow: hidden;
  background: rgba(47, 91, 255, .09); color: var(--brand);
}
.cat-ico.lv1 { width: 24px; height: 24px; border-radius: 8px; }
.cat-ico.lv2 { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.cat-ico.lv3 { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; background: transparent; }
.cat-ico-svg { width: 15px; height: 15px; }
.cat-ico.lv1 .cat-ico-svg { width: 15px; height: 15px; }
.cat-ico.lv2 .cat-ico-svg { width: 13px; height: 13px; }
.cat-ico.lv3 .cat-ico-svg { width: 12px; height: 12px; }
.cat-ico > svg:not(.cat-ico-svg) { width: 100%; height: 100%; flex: none; }
.cat-ico-glyph { font-size: 1em; line-height: 1; }
.cat-ico.tone-brand  { color: #2f5bff; background: rgba(47, 91, 255, .09); }
.cat-ico.tone-teal   { color: #0f766e; background: rgba(15, 118, 110, .10); }
.cat-ico.tone-amber  { color: #b45309; background: rgba(232, 168, 56, .16); }
.cat-ico.tone-violet { color: #7c3aed; background: rgba(124, 58, 237, .10); }
.cat-children {
  margin-inline-start: 12px; padding-inline-start: 8px; border-inline-start: 1px dashed var(--line-strong);
  animation: cat-slide .18s ease-out;
}
.cat-children .cat-children { margin-inline-start: 8px; border-inline-start-color: transparent; }
.cat-node.lv3 > .cat-row > .cat-link { font-size: 12.5px; color: var(--muted); }
.cat-node.lv3 > .cat-row:hover { background: transparent; }
.cat-empty { padding: 4px 6px; }
@keyframes cat-slide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
[data-theme="dark"] .cat-ico.tone-brand { background: rgba(120, 150, 255, .16); color: #93aaff; }
[data-theme="dark"] .cat-ico.tone-teal { background: rgba(45, 212, 191, .14); color: #5eead4; }
[data-theme="dark"] .cat-ico.tone-amber { background: rgba(251, 191, 36, .14); color: #fcd34d; }
[data-theme="dark"] .cat-ico.tone-violet { background: rgba(167, 139, 250, .16); color: #c4b5fd; }


/* ---------- 11. Catalog page ------------------------------------------- */
.ad-banner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--grad-night);
  color: #fff; min-height: 210px; max-height: 280px;
}
.ad-banner img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; grid-column: 2; grid-row: 1; opacity: .92; }
.ad-banner-body { padding: 26px 32px; display: flex; flex-direction: column; gap: 8px; justify-content: center; grid-column: 1; grid-row: 1; }
.ad-banner-body h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.ad-banner-body p { color: #a9b6d6; font-size: 13px; max-width: 46ch; }
.ad-company { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #cfd9ff; margin-top: 4px; }
[data-theme="dark"] .ad-banner { border-color: var(--line); }
.page-head { padding-block: 34px 10px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }
.catalog-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; padding-block: 20px 60px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 18px; }
.filter-block { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.filter-title { font-size: 13px; font-weight: 650; margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.filter-option:hover { color: var(--brand); }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong); background: var(--surface); transition: all .16s;
}
.filter-option input[type="checkbox"] { border-radius: 5px; }
.filter-option input:checked {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 12px var(--brand);
}
.filter-option input[type="checkbox"]:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center/11px no-repeat;
  box-shadow: none;
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.result-count { font-size: 13.5px; color: var(--muted); }
.result-count b { color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 550; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- 12. Product detail ----------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding-block: 28px 20px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.03em; line-height: 1.15; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin-block: 18px 6px; font-family: var(--mono); }
.pdp-price b { font-size: 2rem; letter-spacing: -.03em; }
.pdp-price span { color: var(--muted); font-size: 13px; }
.pdp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-block: 22px; }
.pdp-fact { background: var(--surface); padding: 13px 14px; }
.pdp-fact span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.pdp-fact b { display: block; font-size: 14px; margin-top: 3px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: start; font-weight: 550; color: var(--muted); padding: 11px 0; width: 42%; }
.spec-table td { padding: 11px 0; color: var(--ink); }
.supplier-panel { position: sticky; top: calc(var(--header-h) + 18px); }
.supplier-actions {
  display: flex; align-items: stretch; gap: 8px; width: 100%;
}
.supplier-actions .btn {
  flex: 1 1 0; min-width: 0; height: 42px; padding-inline: 6px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  justify-content: center; gap: 5px;
}
.supplier-actions .btn .tick { width: 15px; height: 15px; flex: none; }
.supplier-actions .btn span {
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
@media (max-width: 520px) {
  .supplier-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
.sticky-cta {
  position: sticky; bottom: 18px; z-index: 30; display: flex; gap: 10px; padding: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}

/* ---------- 13. Storefront --------------------------------------------- */
.store-cover { position: relative; height: 250px; overflow: visible; background: var(--surface-3); }
.store-cover > img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 20, .55)); pointer-events: none; }
.store-logo {
  position: absolute; bottom: -54px; inset-inline-start: max(24px, calc((100vw - var(--container)) / 2 + 24px)); z-index: 3;
  width: 112px; height: 112px; border-radius: 24px; border: 4px solid var(--bg); object-fit: cover;
  background: var(--surface); box-shadow: var(--shadow);
}
.store-head { position: relative; z-index: 2; display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap;
  padding-top: 66px; padding-inline-start: 152px; }
.store-title { color: var(--ink); flex: 1 1 auto; min-width: 0; }
.store-title h1 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.03em; }
.store-title p { color: var(--muted); }
.store-actions { display: flex; gap: 8px; }
.store-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-block: 26px 24px; overflow-x: auto; }
.store-tab { padding: 12px 16px; font-size: 14px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.store-tab.active { color: var(--ink); border-color: var(--brand); }
.trust-box { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface-3); font-size: 12.5px; color: var(--ink-2); }
.seal {
  width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(from 200deg, #2f5bff, #7c3aed, #06b6d4, #2f5bff);
  display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.1;
}

/* ---------- AI assistant widget ---------------------------------------- */
.ai-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px;
  border-radius: 999px; background: var(--grad-brand); color: #fff; font-weight: 600; font-size: 13px;
  box-shadow: 0 16px 36px -14px rgba(47, 91, 255, .9);
}
.ai-fab .icon { width: 18px; height: 18px; }
.ai-panel {
  position: fixed; inset-inline-end: 22px; bottom: 82px; z-index: 90; width: min(370px, calc(100vw - 32px));
  max-height: min(560px, 72vh); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); animation: pop .2s var(--ease-out);
}
.ai-panel.hidden { display: none; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--grad-night); color: #fff; }
.ai-head .icon-btn { color: #fff; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.ai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.ai-bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.ai-bubble.assistant { background: var(--surface-3); align-self: flex-start; border-start-start-radius: 5px; }
.ai-bubble.user { background: var(--grad-brand); color: #fff; align-self: flex-end; border-start-end-radius: 5px; }
.ai-suggestions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.ai-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ai-input .input { min-height: 40px; }
@media (max-width: 760px) {
  .ai-fab span { display: none; }
  .ai-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
}
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease);
}
.oauth-btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.oauth-btn.disabled { opacity: .55; }
.oauth-icon { width: 20px; height: 20px; flex: none; display: block; }
.oauth-dot { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.oauth-label { line-height: 1; }

/* ---------- Auth (port-of-trade split) ---------------------------------- */
body.auth-page .site-header,
body.auth-page .site-footer,
body:has(.auth-shell) .site-header,
body:has(.auth-shell) .site-footer { display: none !important; }
body.auth-page #main,
body:has(.auth-shell) #main { min-height: 100vh; padding: 0; margin: 0; }

.auth-shell {
  --auth-ink: #071018;
  --auth-paper: #f3f5f8;
  --auth-amber: #e8a838;
  --auth-sky: #38bdf8;
  --auth-pad: clamp(28px, 4.2vw, 64px);
  --auth-font: "Source Sans 3", var(--font);
  --auth-display: "Syne", var(--font-display);
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr) !important;
  grid-template-rows: minmax(100vh, auto);
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  background: var(--auth-paper);
  font-family: var(--auth-font);
}
.auth-shell > .auth-side,
.auth-shell > .auth-form-wrap { min-width: 0; min-height: 100vh; }
.auth-shell-solo {
  grid-template-columns: 1fr !important;
  place-items: center;
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(232, 168, 56, .12), transparent 60%),
    var(--auth-paper);
}
.auth-shell-solo .auth-form-wrap { width: 100%; max-width: 520px; min-height: auto; }

.auth-side {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(720px 420px at 8% -10%, rgba(232, 168, 56, .28), transparent 55%),
    radial-gradient(640px 380px at 100% 20%, rgba(56, 189, 248, .18), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0c1624 52%, #0a121c 100%);
}
.auth-stage { position: absolute; inset: 0; pointer-events: none; }
.auth-grain {
  position: absolute; inset: 0; opacity: .22;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.auth-routes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .9;
}
.auth-route { stroke-linecap: round; }
.auth-route-a {
  stroke-dasharray: 8 14;
  animation: auth-dash 18s linear infinite;
}
.auth-route-b { animation: auth-dash 28s linear infinite reverse; }
.auth-node {
  transform-origin: center;
  animation: auth-pulse 2.8s var(--ease-out) infinite;
}
.auth-node-delay { animation-delay: .9s; }
.auth-horizon {
  position: absolute; inset-inline: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 24, .88));
}
@keyframes auth-dash { to { stroke-dashoffset: -320; } }
@keyframes auth-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.auth-side-inner {
  position: relative; z-index: 1;
  height: 100%; min-height: 100vh;
  padding: var(--auth-pad);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 14px;
  color: #fff; text-decoration: none; width: fit-content;
  animation: auth-rise .7s var(--ease-out) both;
}
.auth-brand-mark {
  width: 48px; height: 48px; border-radius: 0;
  background: none; color: inherit;
  display: grid; place-items: center;
  box-shadow: none; overflow: visible;
}
.auth-brand-mark img { width: 48px; height: 48px; object-fit: contain; }
.auth-brand-word {
  font-family: var(--auth-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1;
}
.auth-side-copy { max-width: min(560px, 92%); }
.auth-kicker {
  margin: 0;
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(232, 168, 56, .92);
  animation: auth-rise .7s var(--ease-out) .05s both;
}
.auth-quote {
  margin: 18px 0 0;
  font-family: var(--auth-display);
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  font-weight: 750; letter-spacing: -.045em; line-height: 1.08;
  max-width: 13ch;
  animation: auth-rise .75s var(--ease-out) .1s both;
}
.auth-quote-line { display: block; }
.auth-lede {
  margin: 18px 0 0; max-width: 42ch;
  color: rgba(214, 224, 236, .78); font-size: 15.5px; line-height: 1.55;
  animation: auth-rise .75s var(--ease-out) .16s both;
}
.auth-side-meta { display: grid; gap: 22px; }
.auth-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.auth-stat {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  animation: auth-rise .7s var(--ease-out) var(--d, 0ms) both;
}
.auth-stat b {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700; letter-spacing: -.04em; color: #fff;
}
.auth-stat span {
  font-size: 12px; color: rgba(180, 196, 214, .78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.auth-bullets {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 16px;
}
.auth-bullets li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(220, 230, 242, .86);
}
.auth-bullets .tick { width: 15px; height: 15px; color: var(--auth-sky); flex: none; }

.auth-form-wrap {
  display: grid; place-items: center;
  padding: clamp(28px, 6vh, 64px) clamp(20px, 4vw, 48px);
  background: var(--auth-paper);
}
.auth-panel,
.auth-card {
  width: 100%; max-width: 440px;
  padding: 8px 4px 0;
  animation: auth-rise .65s var(--ease-out) .08s both;
}
.auth-card-center {
  text-align: center; max-width: 460px;
  padding: 36px 28px; border-radius: 22px;
  background: #fff; border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 24px 60px -36px rgba(7, 16, 24, .35);
}
.auth-card-head { margin-top: 22px; }
.auth-card-head h1 {
  margin: 0;
  font-family: var(--auth-display);
  font-size: clamp(1.7rem, 2.5vw, 2.05rem);
  font-weight: 750; letter-spacing: -.035em; line-height: 1.15; color: var(--auth-ink);
}
.auth-card-head p { margin: 8px 0 0; color: #64748b; font-size: 14.5px; line-height: 1.5; }

.auth-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px; gap: 0;
  background: rgba(15, 23, 42, .05); border-radius: 14px;
}
.auth-tab {
  position: relative; z-index: 1; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; width: 100%;
  font-size: 13.5px; font-weight: 650; color: #64748b;
  transition: color .2s;
}
.auth-tab.active { color: var(--auth-ink); }
.auth-tab-ink {
  position: absolute; top: 5px; bottom: 5px; inset-inline-start: 0;
  border-radius: 11px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 0 0 1px rgba(15, 23, 42, .06);
  transition: transform .35s var(--ease-out), width .35s var(--ease-out);
  pointer-events: none;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-field .label { margin-bottom: 7px; color: #334155; }
.auth-input { position: relative; }
.auth-input .input {
  height: 50px; padding-inline: 44px 44px; border-radius: 14px;
  background: #fff; border-color: #dbe2ea;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-input .input:focus {
  border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .16); background: #fff;
}
.auth-input-ico {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; display: grid; place-items: center; pointer-events: none;
}
.auth-input-ico .icon { width: 17px; height: 17px; }
.auth-eye {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px; color: #64748b;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.auth-eye:hover { background: #eef2f6; color: var(--auth-ink); }
.auth-eye .icon { width: 17px; height: 17px; }
.auth-hint { font-size: 11.5px; color: #94a3b8; }
.auth-roles { border: 0; margin: 0; padding: 0; }
.auth-roles .label { margin-bottom: 8px; }
.auth-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-role { cursor: pointer; position: relative; }
.auth-role input { position: absolute; opacity: 0; pointer-events: none; }
.auth-role-card {
  display: flex; flex-direction: column; gap: 4px; min-height: 108px;
  padding: 14px 14px 12px; border-radius: 16px;
  border: 1.5px solid #dbe2ea; background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.auth-role-card b { font-size: 13.5px; font-weight: 700; color: var(--auth-ink); }
.auth-role-card small { font-size: 11.5px; color: #64748b; line-height: 1.4; }
.auth-role-ico {
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 6px;
  display: grid; place-items: center; background: rgba(15, 118, 110, .1); color: #0f766e;
}
.auth-role-ico .icon { width: 17px; height: 17px; }
.auth-role input:checked + .auth-role-card {
  border-color: #0f766e; background: rgba(15, 118, 110, .04);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); transform: translateY(-1px);
}
.auth-role:hover .auth-role-card { border-color: #94a3b8; }
.auth-submit {
  margin-top: 4px; height: 52px; border-radius: 14px; font-weight: 700;
  letter-spacing: -.01em; gap: 10px;
  background: linear-gradient(135deg, #0f766e, #0ea5a4) !important;
  border: 0 !important;
  box-shadow: 0 14px 30px -16px rgba(15, 118, 110, .7);
  transition: transform .18s var(--ease), box-shadow .18s, filter .18s;
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 36px -16px rgba(15, 118, 110, .8);
}
.auth-submit.is-loading { opacity: .72; pointer-events: none; }
.auth-switch {
  margin-top: 16px; text-align: center; font-size: 13.5px; color: #64748b;
}
.auth-switch a { color: #0f766e; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.auth-divider {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: #94a3b8; font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; height: 1px; background: #dbe2ea;
}
.auth-success-mark {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, rgba(15, 118, 110, .14), rgba(232, 168, 56, .12));
  color: #0f766e;
}
.auth-lede-light { margin-top: 8px; color: #64748b; }
.auth-shell .oauth-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.auth-shell .oauth-btn {
  border-radius: 14px; background: #fff; border-color: #dbe2ea;
  min-height: 48px; padding: 0 8px; font-size: 12.5px; gap: 7px;
  justify-content: center;
}
.auth-shell .oauth-icon { width: 22px; height: 22px; }
.auth-shell .oauth-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 1100px) {
  .auth-shell .oauth-grid { grid-template-columns: 1fr 1fr; }
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-route-a, .auth-route-b, .auth-node,
  .auth-panel, .auth-card, .auth-quote, .auth-lede, .auth-kicker, .auth-stat, .auth-brand {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
  }
  .auth-shell > .auth-side,
  .auth-shell > .auth-form-wrap { min-height: auto; }
  .auth-side-inner { min-height: auto; gap: 28px; padding: 28px 22px 26px; }
  .auth-side-copy { max-width: 100%; }
  .auth-quote { font-size: 1.7rem; max-width: 16ch; }
  .auth-shell .oauth-grid { grid-template-columns: 1fr 1fr; }
  .auth-stats { gap: 12px; }
  .auth-form-wrap { padding: 22px 18px 48px; align-content: start; }
  .auth-routes { opacity: .55; }
}
.demo-box { margin-top: 20px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.demo-box code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }

/* ---------- Country picker --------------------------------------------- */
.country-picker { position: relative; }
.country-picker-trigger {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #dbe2ea; color: #64748b;
  text-align: start; cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.country-picker-trigger:hover,
.country-picker.is-open .country-picker-trigger {
  border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
}
.country-picker-trigger.is-invalid {
  border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .14);
}
.country-picker-flag {
  flex: none; width: 30px; height: 20px; object-fit: cover;
  border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
  background: #e2e8f0; display: block;
}
.country-picker-flag.is-globe {
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1;
  box-shadow: none; background: transparent; color: #64748b;
}
.country-picker-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.country-picker-label.is-selected { color: #071018; font-weight: 550; }
.country-picker-caret { color: #94a3b8; display: grid; place-items: center; transition: transform .18s; }
.country-picker-caret .icon { width: 16px; height: 16px; }
.country-picker.is-open .country-picker-caret { transform: rotate(180deg); }
.country-picker-panel {
  position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #dbe2ea; border-radius: 16px;
  box-shadow: 0 24px 48px -28px rgba(7, 16, 24, .45);
  overflow: hidden;
}
.country-picker-search { position: relative; padding: 10px; border-bottom: 1px solid #eef2f6; }
.country-picker-search .input {
  height: 42px; padding-inline: 40px 12px; border-radius: 12px; background: #f8fafc;
}
.country-picker-search .auth-input-ico {
  position: absolute; inset-inline-start: 22px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}
.country-picker-list { max-height: 280px; overflow: auto; padding: 6px; }
.country-picker-group {
  padding: 10px 10px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #94a3b8;
}
.country-picker-option {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 11px; text-align: start; color: #0f172a;
  transition: background .12s;
}
.country-picker-option:hover,
.country-picker-option:focus-visible { background: #f1f5f9; outline: none; }
.country-picker-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-picker-code { font-family: var(--mono); font-size: 11px; color: #94a3b8; }
.country-picker-empty { padding: 22px 12px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---------- 15. Onboarding wizard -------------------------------------- */
.wizard { max-width: 960px; margin: 40px auto 80px; padding-inline: 24px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-block: 26px 34px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; border: 1px solid var(--line-strong); color: var(--faint); background: var(--surface); flex: none; }
.step.done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 255, .15); }
.step-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.step.active .step-label { color: var(--ink); font-weight: 600; }
.step-line { height: 1px; background: var(--line); flex: 1; }
.wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: all .2s; position: relative; }
.plan-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.plan-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 91, 255, .16); }
.plan-card .price { font-family: var(--mono); font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.plan-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.plan-badge { position: absolute; top: -10px; inset-inline-end: 14px; }

/* ---------- 16. Dashboard ---------------------------------------------- */
.dash { display: grid; grid-template-columns: 244px 1fr; gap: 28px; padding-block: 28px 60px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 11px; font-size: 14px; color: var(--muted); font-weight: 550; }
.dash-nav-item:hover { background: var(--surface-3); color: var(--ink); }
.dash-nav-item.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.dash-nav-item .icon { width: 18px; height: 18px; }
.dash-nav-item .count { margin-inline-start: auto; font-size: 11px; background: var(--accent); color: #2b1602; border-radius: 6px; padding: 2px 6px; font-weight: 700; }
.dash-group { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 12px 4px; font-weight: 650; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.kpi-value { font-family: var(--mono); font-size: 27px; font-weight: 650; letter-spacing: -.03em; margin-top: 8px; }
.kpi-delta { font-size: 11.5px; margin-top: 4px; display: inline-flex; gap: 5px; align-items: center; color: var(--success); }
.chart { width: 100%; height: 200px; }
.chart text { font-size: 10px; fill: var(--faint); font-family: var(--mono); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: start; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 15px; font-size: 13.5px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--ink); border-color: var(--brand); }
.empty-state { padding: 54px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-art { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-3); display: grid; place-items: center; font-size: 26px; }
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 520px; }
.inbox-list { border-inline-end: 1px solid var(--line); overflow-y: auto; max-height: 620px; }
.inbox-item { padding: 15px 16px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.active { background: rgba(47, 91, 255, .07); border-inline-start: 2px solid var(--brand); }
.inbox-thread { display: flex; flex-direction: column; }
.thread-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.thread-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; flex: 1; max-height: 430px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.bubble.buyer { background: var(--surface-3); border-start-start-radius: 5px; align-self: flex-start; }
.bubble.seller { background: var(--grad-brand); color: #fff; border-start-end-radius: 5px; align-self: flex-end; }
.bubble-time { font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.thread-compose { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; align-items: flex-end; }
.upload-drop { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; background: var(--surface-2); }
.upload-drop:hover, .upload-drop.drag { border-color: var(--brand); background: rgba(47, 91, 255, .05); color: var(--brand); }
.image-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.image-tile { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.image-tile img { width: 100%; height: 100%; object-fit: cover; }
.image-tile button { position: absolute; top: 4px; inset-inline-end: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 17, 34, .7); color: #fff; display: grid; place-items: center; font-size: 12px; }
.lang-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang-cell { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }

/* ---------- 17. Footer -------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr)); gap: 30px; padding-block: 52px 30px; }
.footer-title { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.footer-link { display: block; padding: 4px 0; font-size: 13.5px; color: var(--muted); }
.footer-link:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* Footer nav columns read as one panel each: soft tint, hairline, tiny lift on hover. */
.site-footer .footer-grid > div:not(.footer-brand) {
  padding: 14px 16px 12px; border-radius: 14px;
  border: 1px solid transparent; background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.site-footer .footer-grid > div:not(.footer-brand):hover {
  border-color: var(--line); background: var(--surface-2); transform: translateY(-1px);
}
[data-theme="dark"] .site-footer .footer-grid > div:not(.footer-brand) { background: rgba(255, 255, 255, .025); }
[data-theme="dark"] .site-footer .footer-grid > div:not(.footer-brand):hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter .input { min-height: 42px; }

/* ---------- 18. Toasts, modal, skeletons -------------------------------- */
.toaster { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px; min-width: 260px; max-width: 380px;
  padding: 13px 15px; border-radius: 13px; background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slideUp .25s var(--ease-out);
}
.toast.error { background: #7f1d1d; color: #fff; }
.toast.success { background: #064e3b; color: #ecfdf5; }
.toast .icon { width: 18px; height: 18px; flex: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(7, 12, 24, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .18s; }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease-out); }
.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--surface); }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
/* Boot splash: the uploaded artwork only, centred on a plain white page.
   No themed background, no second mark — the artwork *is* the splash. */
.boot-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 32px 24px; background: #ffffff; color: #0e1b34;
}
.boot-screen .boot-logo {
  display: block; width: min(760px, 82vw); height: auto; max-height: 52vh; object-fit: contain;
  animation: boot-settle .8s cubic-bezier(.22, 1, .36, 1) both;
}
.boot-screen .boot-bar {
  width: 168px; height: 3px; border-radius: 999px; background: #e8edf4; overflow: hidden;
}
.boot-screen .boot-bar i {
  display: block; height: 100%; width: 40%; border-radius: 999px;
  background: linear-gradient(90deg, #1f5fd0, #22c1b4); animation: boot-progress 1.35s ease-in-out infinite;
}
@keyframes boot-settle { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes boot-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
/* Repeat visits: no artwork, plain white page until the app shell paints. */
html.splash-done .boot-screen { background: #ffffff; }
html.splash-done .boot-screen .boot-logo,
html.splash-done .boot-screen .boot-bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .boot-screen .boot-logo, .boot-screen .boot-bar i { animation: none; }
}
.skeleton-card { height: 320px; border-radius: var(--radius); }

/* ---------- 19. Motion -------------------------------------------------- */
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.reveal { animation: rise .5s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.route-enter > * { animation: rise .42s var(--ease-out) both; }
.route-enter > *:nth-child(2) { animation-delay: .05s; }
.route-enter > *:nth-child(3) { animation-delay: .1s; }

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

/* ---------- 20. Responsive --------------------------------------------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-grid > :nth-child(5) { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 52px 60px; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .supplier-panel { position: static; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .dash-nav-item { white-space: nowrap; }
  .ai-band { grid-template-columns: 1fr; padding: 34px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 280px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .nav-links, .header-search { display: none; }
  .mobile-toggle { display: inline-grid; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 1.35rem; }
  .section { padding-block: 46px; }
  .grid-2, .grid-3, .grid-4, .cat-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .plan-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .wizard-card { padding: 22px; }
  .step-label { display: none; }
  .pdp-facts { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .store-head { padding-inline-start: 0; padding-top: 62px; }
  .store-logo { width: 84px; height: 84px; bottom: -42px; inset-inline-start: 18px; border-radius: 18px; }
  .rfq-row { grid-template-columns: 72px 1fr; }
  .rfq-thumb { width: 72px; height: 72px; border-radius: 12px; }
  .rfq-action { grid-column: 2; justify-self: start; }
  .rfq-detail-layout { grid-template-columns: 1fr; }
  .rfq-detail-media { max-width: 280px; }
  .toaster { inset-inline: 12px; }
  .toast { max-width: none; }
}

/* ---------- 21. RTL ----------------------------------------------------- */
[dir="rtl"] .hero-card:nth-child(1) { transform: rotate(-4deg); }
[dir="rtl"] .hero-card:nth-child(2) { transform: rotate(5deg); }
[dir="rtl"] .hero-card:nth-child(3) { transform: rotate(-2deg); }
[dir="rtl"] .select { background-position: left 14px center; }
[dir="rtl"] .bubble.buyer { border-start-start-radius: 16px; border-start-end-radius: 5px; }
[dir="rtl"] .bubble.seller { border-start-end-radius: 16px; border-start-start-radius: 5px; }
[dir="rtl"] .product-price, [dir="rtl"] .mono, [dir="rtl"] .kpi-value { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .timeline-line { transform: scaleX(-1); }

/* ---------- 22. Print --------------------------------------------------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .filters, .toaster { display: none !important; }
  body { background: #fff; }
}
/* ---------- News channel -------------------------------------------------- */
.news-card { display: block; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-3); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.news-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.news-excerpt { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-content p { margin-bottom: 12px; line-height: 1.75; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Locale typography & direction --------------------------------- */
html[lang="hi"] body, html[lang="mr"] body {
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
  line-height: 1.7; letter-spacing: 0;
}
html[lang="bn"] body {
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  line-height: 1.7; letter-spacing: 0;
}
html[lang="ur"] body {
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Jameel Noori Nastaleeq", serif;
  line-height: 2.05; letter-spacing: 0;
}
html[lang="hi"] .btn, html[lang="bn"] .btn, html[lang="mr"] .btn, html[lang="ur"] .btn {
  line-height: 1.35; font-weight: 600;
}
html[lang="ur"] .h1, html[lang="ur"] .h2, html[lang="ur"] .hero-title { line-height: 1.7; }
html[lang="ur"] .eyebrow, html[lang="ur"] .dash-group { letter-spacing: 0; }

/* Long translations must never break the layout */
.btn, .chip, .badge, .store-tab, .dash-nav-item span, .nav-links a {
  white-space: nowrap;
}
.nav-links a, .dash-nav-item span, .btn { text-overflow: ellipsis; overflow: hidden; }
.hero-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); overflow-wrap: anywhere; }
h1, h2, h3, .panel-title, .product-title { overflow-wrap: anywhere; }

/* RTL: flip directional chrome */
[dir="rtl"] .icon-arrow, [dir="rtl"] [data-flip] { transform: scaleX(-1); }
[dir="rtl"] .breadcrumbs span { transform: none; }
[dir="rtl"] .input-group .icon:first-child { order: 2; }
[dir="rtl"] .dash-nav-item .count { margin-inline-start: 0; margin-inline-end: auto; }
[dir="rtl"] .news-excerpt, [dir="rtl"] .clamp-2, [dir="rtl"] .clamp-3 { text-align: right; }

/* Language menu: native names need room */
.lang-menu { min-width: 220px; }
.lang-menu a { display: flex; align-items: center; gap: 10px; }
.lang-menu .native { font-weight: 600; }
.lang-menu .region { color: var(--faint); font-size: 11px; margin-inline-start: auto; }

/* ---------- Chat ---------------------------------------------------------- */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; margin-top: 16px; min-height: 560px; }
.chat-list { padding: 8px; overflow-y: auto; max-height: 640px; }
.chat-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; }
.chat-item:hover, .chat-item.active { background: var(--surface-3); }
.chat-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.chat-pane { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 74%; align-self: flex-start; background: var(--surface-3); padding: 10px 12px;
  border-radius: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.chat-bubble.mine { align-self: flex-end; background: var(--grad-brand); color: #fff; }
.chat-bubble.mine .xs { color: rgba(255,255,255,.7); }
.chat-bubble .xs { font-size: 10px; }
.chat-product { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.16);
  padding: 6px; border-radius: 10px; color: inherit; }
.chat-product img { border-radius: 8px; object-fit: cover; }
.chat-image { max-width: 240px; border-radius: 10px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: center; }
.empty-chat { padding: 40px; text-align: center; color: var(--faint); }
@media (max-width: 900px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 200px; }
}
.brand-board .brand-filters { display: grid; gap: 8px; margin-top: 12px; }
.brand-podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 18px; align-items: end;
}
.brand-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px;
}
.brand-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .16s, box-shadow .16s, border-color .16s; min-height: 100%;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.brand-card-podium { padding: 16px; }
.brand-card-gold { border-color: #f0b429; box-shadow: 0 16px 36px -24px rgba(240, 180, 41, .55); }
.brand-card-silver { border-color: #94a3b8; }
.brand-card-bronze { border-color: #d97706; }
.brand-card-top, .brand-card-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-card-main { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--surface-3); border: 1px solid var(--line);
}
.brand-name { font-size: 14.5px; letter-spacing: -.01em; display: block; }
.brand-rank {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand);
  min-width: 2.2em;
}
.brand-rank.is-gold { color: #b45309; }
.brand-rank.is-silver { color: #475569; }
.brand-rank.is-bronze { color: #c2410c; }
.brand-strength {
  height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden;
}
.brand-strength span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #e8a838);
}
.brand-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.brand-stats span { display: flex; flex-direction: column; gap: 2px; }
.brand-stats b { font-size: 12.5px; }
.brand-stats em { font-style: normal; font-size: 10px; color: var(--faint); }
.brand-empty { grid-column: 1 / -1; padding: 28px; text-align: center; }
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .brand-podium, .brand-grid { grid-template-columns: 1fr; }
}


/* Product gallery performance */
.gallery-main { aspect-ratio: 4 / 3; background: var(--surface-3); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--surface-3); content-visibility: auto; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--brand); }
.gallery-more { display: grid; place-items: center; font-weight: 700; color: var(--ink-3); }
.product-description { color: var(--ink-2); line-height: 1.8; font-size: 14px; }
.product-description > :first-child { margin-top: 0; }
.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4 { color: var(--ink); line-height: 1.35; letter-spacing: -.01em; margin: 22px 0 10px; }
.product-description h1 { font-size: 20px; }
.product-description h2 { font-size: 17px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.product-description h3 { font-size: 15px; }
.product-description h4 { font-size: 14px; color: var(--ink-2); }
.product-description p { margin: 0 0 12px; }
.product-description ul,
.product-description ol { margin: 0 0 14px; padding-inline-start: 22px; }
.product-description li { margin: 4px 0; }
.product-description hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.product-description table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.product-description th,
.product-description td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.product-description th { background: var(--surface-2); font-weight: 600; }
.product-description strong,
.product-description b { color: var(--ink); }
.product-description img { max-width: 100%; height: auto; border-radius: 10px; }
.desc-image { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 12px;
  content-visibility: auto; contain-intrinsic-size: 320px 240px; }


/* Image zoom overlay */
.image-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 18, .92);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.image-zoom img { max-width: min(1400px, 96vw); max-height: 92vh; border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }


/* Gallery fade-in over colour placeholder */
.gallery-main img { opacity: 0; transition: opacity .25s ease; background-size: cover; background-position: center; }
.gallery-main img.loaded { opacity: 1; }


/* Description image editor */
.desc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.desc-drop { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px;
  background: var(--surface-2); margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.desc-drop.dragging { border-color: var(--brand); background: rgba(47, 91, 255, .06); color: var(--brand); }
.desc-progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.desc-progress > div { height: 100%; background: var(--grad-brand); transition: width .2s; }


/* RTL: keep numbers, prices and codes LTR and isolated from surrounding text */
[dir="rtl"] .mono, [dir="rtl"] .price, [dir="rtl"] .pdp-price, [dir="rtl"] .money,
[dir="rtl"] .product-price, [dir="rtl"] .brand-stats b, [dir="rtl"] .kpi-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
[dir="rtl"] .spec-table td, [dir="rtl"] .data-table td.mono {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
[dir="rtl"] .price-range, [dir="rtl"] .order-amount {
  unicode-bidi: plaintext;
}


/* Brand positioning line under the hero */
.hero-positioning { max-width: 64ch; margin-top: 14px; font-size: 13px; line-height: 1.7;
  color: #b9c6e6; border-inline-start: 2px solid rgba(255,255,255,.25); padding-inline-start: 12px; }


.footer-social { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.footer-social-link { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #cfd8ee; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); padding: 0;
  position: relative; isolation: isolate; line-height: 0;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, border-color .18s, background .18s; }
.footer-social-link svg { display: block; width: 24px; height: 24px; border-radius: 7px; }
.footer-social-link:hover, .footer-social-link:focus-visible {
  transform: translateY(-2px) scale(1.05); border-color: transparent;
  box-shadow: 0 8px 18px rgba(4, 10, 22, .30), 0 0 0 3px color-mix(in srgb, var(--social, #fff) 42%, transparent);
}
