/* ==========================================================================
   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: 10px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px -8px rgba(47, 91, 255, .9);
}
.brand-mark svg { width: 20px; height: 20px; }
.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; }
.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 */
.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); }

/* 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: 1fr auto; gap: 18px; align-items: center;
  padding: 18px 20px; 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-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; }

/* 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; }

/* ---------- 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); }
.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: 8px; margin-top: 12px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .16s;
}
.oauth-btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.oauth-btn.disabled { opacity: .55; }
.oauth-dot { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.auth-shell { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1.02fr .98fr; }
.auth-side { position: relative; overflow: hidden; background: var(--grad-night); color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; }
.auth-side > * { position: relative; }
.auth-quote { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.2; max-width: 22ch; }
.auth-form-wrap { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-tabs { display: flex; padding: 4px; background: var(--surface-3); border-radius: 12px; margin-block: 24px; }
.auth-tab { flex: 1; height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.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); }

/* ---------- 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.6fr 1fr 1fr 1fr 1.4fr; gap: 32px; padding-block: 52px 34px; }
.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); flex-wrap: wrap; }
.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-screen { height: 100vh; display: grid; place-items: center; gap: 18px; color: var(--muted); }
.boot-mark { width: 46px; height: 46px; border-radius: 16px; background: var(--grad-brand); animation: pulse 1.6s infinite; }
.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.4fr 1fr 1fr 1.2fr; }
  .footer-grid > :nth-child(4) { 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; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .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: 1fr; }
  .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; }

/* ---------- Auth theme variants ------------------------------------------ */
.auth-shell.theme-glass { background: radial-gradient(1200px 600px at 10% 0%, #1b2550, #070a14 60%); }
.auth-shell.theme-glass .auth-card { background: rgba(255,255,255,.08); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.18); color: #f4f6ff; box-shadow: 0 24px 80px -30px #000; }
.auth-shell.theme-glass .auth-card .label, .auth-shell.theme-glass .auth-card .muted { color: #b9c3e0; }
.auth-shell.theme-glass .auth-card .input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.auth-shell.theme-panel { background: var(--surface-2); }
.auth-shell.theme-panel .auth-aside { display: none; }
.auth-shell.theme-panel .auth-card { max-width: 460px; margin: auto; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); }
.auth-shell.theme-split .auth-aside { background: linear-gradient(160deg, #101a3c, #1c2b5e 60%, #24306b); }
.auth-theme-switch { position: absolute; top: 18px; inset-inline-end: 18px; display: flex; gap: 6px; z-index: 5; }
.auth-theme-switch button { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-3); }
.auth-theme-switch button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.auth-shell { position: relative; }
.auth-shell.theme-glass .auth-side { display: none; }
.auth-shell.theme-panel .auth-side { display: none; }
.auth-shell.theme-split .auth-side { background: linear-gradient(160deg, #0d1738, #1b2b61 60%, #263273); }
.auth-shell.theme-glass { background: radial-gradient(1200px 600px at 10% 0%, #1b2550, #070a14 60%); }
/* ---------- 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-card { display: block; padding: 14px; transition: transform .16s, box-shadow .16s; }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.brand-rank { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: var(--brand); }
.brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px;
  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); }


/* 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; }
.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: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.footer-social-link { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #cfd8ee; border: 1px solid rgba(255,255,255,.18); }
.footer-social-link:hover { color: #fff; border-color: var(--brand); }
