/* ============================================================
   BAZAAR — Premium Iraqi Marketplace Design System
   Author: Maram Hosting Co.
   ============================================================ */

/* ─────────────  FONTS  ───────────── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ─────────────  RESET  ───────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─────────────  DESIGN TOKENS — LIGHT THEME (DEFAULT)  ───────────── */
:root {
  /* Brand */
  --brand-primary: #E63946;
  --brand-primary-hover: #C1121F;
  --brand-primary-soft: #FCE5E7;
  --brand-secondary: #1D3557;
  --brand-accent: #D4A537;
  --brand-accent-soft: #FFF7E1;

  /* Status */
  --success: #059669;
  --success-soft: #D1FAE5;
  --warning: #F59E0B;
  --danger: #DC2626;
  --info: #2563EB;

  /* Surfaces (LIGHT MODE) */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --surface-3: #EDE6D9;
  --surface-elevated: #FFFFFF;

  /* Text (LIGHT MODE) */
  --text: #0E1422;
  --text-muted: #5C6680;
  --text-subtle: #8B95A8;
  --text-inverse: #FFFFFF;

  /* Borders & Lines (LIGHT) */
  --border: #E8E1D2;
  --border-strong: #D6CDB8;
  --border-faint: #F0EAD8;

  /* Shadows (LIGHT) */
  --shadow-xs: 0 1px 2px rgba(14,20,34,0.04);
  --shadow-sm: 0 2px 6px rgba(14,20,34,0.06);
  --shadow-md: 0 8px 20px rgba(14,20,34,0.08);
  --shadow-lg: 0 16px 40px rgba(14,20,34,0.12);
  --shadow-xl: 0 24px 60px rgba(14,20,34,0.16);
  --shadow-brand: 0 12px 32px rgba(230,57,70,0.32);
  --shadow-accent: 0 12px 32px rgba(212,165,55,0.28);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;

  /* Typography */
  --font-display: 'Bricolage Grotesque', 'Tajawal', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Tajawal', system-ui, sans-serif;
  --font-arabic: 'Tajawal', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container: 1400px;
  --container-wide: 1600px;
  --header-h: 144px;
  --topbar-h: 36px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-base: 280ms;
  --t-slow: 520ms;
}

/* ─────────────  DARK THEME  ───────────── */
[data-theme="dark"] {
  --bg: #0A0E1A;
  --surface: #131829;
  --surface-2: #1B2138;
  --surface-3: #242B47;
  --surface-elevated: #1F2740;

  --text: #F5F7FB;
  --text-muted: #A1ABC4;
  --text-subtle: #6E7896;
  --text-inverse: #0E1422;

  --border: #2A3251;
  --border-strong: #3A4470;
  --border-faint: #1F2540;

  --brand-primary-soft: rgba(230,57,70,0.16);
  --brand-accent-soft: rgba(212,165,55,0.12);
  --success-soft: rgba(5,150,105,0.18);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.55);
  --shadow-xl: 0 28px 72px rgba(0,0,0,0.65);
  --shadow-brand: 0 12px 36px rgba(230,57,70,0.4);
  --shadow-accent: 0 12px 36px rgba(212,165,55,0.32);
}

/* ─────────────  BASE  ───────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
  min-height: 100vh;
}

[lang="ar"], [dir="rtl"] body { font-family: var(--font-arabic); }
[dir="rtl"] { direction: rtl; }
[dir="rtl"] body { font-size: 15.5px; }

/* Display headings get the display font in both directions */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display { font-family: var(--font-arabic); font-weight: 800; letter-spacing: 0; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 700; }

/* Selection */
::selection { background: var(--brand-primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* ─────────────  LAYOUT  ───────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-10) 0; }
.section-sm { padding: var(--s-8) 0; }

/* ─────────────  TOPBAR  ───────────── */
.topbar {
  background: linear-gradient(90deg, #0E1422 0%, #1D3557 50%, #0E1422 100%);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(212,165,55,0.04) 12px 24px);
  pointer-events: none;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; }
.topbar__marquee { display: flex; align-items: center; gap: var(--s-6); }
.topbar__marquee strong { color: var(--brand-accent); font-weight: 700; }
.topbar__tools { display: flex; align-items: center; gap: var(--s-5); }
.topbar__tools button {
  color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-sm);
  font-size: 12.5px; transition: all var(--t-fast) var(--ease);
}
.topbar__tools button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.topbar__tools button svg { width: 14px; height: 14px; }

/* ─────────────  HEADER  ───────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-7); align-items: center; padding: var(--s-5) 0; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--text); }
[dir="rtl"] .logo { font-family: var(--font-arabic); font-weight: 900; letter-spacing: -0.01em; }
.logo__mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #FF6B5B 60%, var(--brand-accent) 100%);
  border-radius: 12px;
  position: relative;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: rotate(-3deg);
  transition: transform var(--t-base) var(--ease);
}
.logo:hover .logo__mark { transform: rotate(3deg) scale(1.06); }
.logo__mark::before { content: ""; position: absolute; inset: 4px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 8px; }
.logo__mark svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.logo__sub { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-top: -4px; }

/* Search bar — distinctive uiverse-inspired */
.search {
  position: relative;
  display: flex;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-full);
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.search::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent), var(--brand-secondary));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.search:focus-within { background: var(--surface); box-shadow: var(--shadow-md); }
.search:focus-within::before { opacity: 1; }
.search:focus-within { border-color: transparent; }

.search__cat {
  background: transparent; padding: 0 var(--s-5);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text);
  border-inline-end: 1px solid var(--border-strong);
}
.search__cat svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.search__cat:hover svg { transform: rotate(180deg); }

.search__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: var(--s-4) var(--s-5);
  font-size: 15px;
  color: var(--text);
}
.search__input::placeholder { color: var(--text-subtle); }

.search__btn {
  background: var(--brand-primary);
  color: #fff;
  padding: 0 var(--s-7);
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  transition: background var(--t-fast) var(--ease);
  margin: 4px;
  border-radius: var(--r-full);
}
.search__btn:hover { background: var(--brand-primary-hover); }
.search__btn svg { width: 16px; height: 16px; }

/* Header actions */
.header-actions { display: inline-flex; align-items: center; gap: var(--s-2); }
.header-action {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--text);
  transition: background var(--t-fast);
}
.header-action:hover { background: var(--surface-2); }
.header-action__icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
}
.header-action__icon svg { width: 22px; height: 22px; }
.header-action__label { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.header-action__label small { font-size: 11px; color: var(--text-muted); }
.header-action__label strong { font-size: 13px; font-weight: 700; }

.badge {
  position: absolute;
  top: 4px; inset-inline-end: 4px;
  background: var(--brand-primary); color: #fff;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid var(--surface);
  animation: badgePop 0.4s var(--ease) both;
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* Nav bar */
.nav {
  background: var(--surface);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 90;
}
.nav__inner { display: flex; align-items: center; gap: var(--s-5); padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__all {
  background: var(--brand-primary); color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
  transition: all var(--t-fast) var(--ease);
}
.nav__all:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(230,57,70,0.4); }
.nav__all svg { width: 18px; height: 18px; }

.nav__link {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color var(--t-fast);
  flex-shrink: 0;
}
.nav__link:hover { color: var(--brand-primary); }
.nav__link.is-hot::after {
  content: "HOT";
  background: var(--brand-primary);
  color: #fff; font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
  margin-inline-start: 5px;
  vertical-align: super;
  letter-spacing: 0.04em;
}

/* ─────────────  BUTTONS  ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-primary-hover); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(230,57,70,0.4); }
.btn--accent { background: var(--brand-accent); color: var(--brand-secondary); box-shadow: var(--shadow-accent); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--secondary { background: var(--brand-secondary); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ─────────────  THEME TOGGLE (uiverse style)  ───────────── */
.theme-toggle {
  position: relative;
  width: 64px; height: 32px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t-base) var(--ease);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.theme-toggle__knob {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 26px; height: 26px;
  background: var(--surface);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .theme-toggle__knob {
  transform: translateX(32px);
  background: linear-gradient(135deg, #1D3557, #0A0E1A);
}
[dir="rtl"] [data-theme="dark"] .theme-toggle__knob { transform: translateX(-32px); }
.theme-toggle__knob svg { width: 16px; height: 16px; transition: all var(--t-base); }
.theme-toggle__sun { color: var(--brand-accent); display: block; }
.theme-toggle__moon { color: #C4D0E8; display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ─────────────  LANGUAGE PILL  ───────────── */
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.lang-pill:hover { background: rgba(255,255,255,0.1); border-color: var(--brand-accent); }
.lang-pill::after { content: ""; width: 1px; height: 10px; background: rgba(255,255,255,0.3); }
.lang-pill__current { color: var(--brand-accent); }

/* ─────────────  HERO  ───────────── */
.hero { padding: var(--s-7) 0; }
.hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-6); }
.hero__main {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(120deg, #0E1422 0%, #1D3557 60%, #2A4A78 100%);
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
}
.hero__main::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(230,57,70,0.4), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(212,165,55,0.3), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(58,134,255,0.15), transparent 60%);
  z-index: 1;
}
.hero__main::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cpattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='400' height='400' fill='url(%23p)'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; padding: var(--s-9); max-width: 580px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,165,55,0.18);
  border: 1px solid rgba(212,165,55,0.4);
  color: var(--brand-accent);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: var(--s-5);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__lede { font-size: 1.05rem; color: rgba(255,255,255,0.78); margin-bottom: var(--s-7); max-width: 480px; line-height: 1.6; }
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__stats { display: flex; gap: var(--s-7); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.12); }
.hero__stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--brand-accent); font-family: var(--font-display); letter-spacing: -0.02em; }
[dir="rtl"] .hero__stat strong { font-family: var(--font-arabic); }
.hero__stat span { font-size: 12px; color: rgba(255,255,255,0.65); }

.hero__visual {
  position: absolute;
  inset-inline-end: 0; top: 50%;
  transform: translateY(-50%);
  width: 45%;
  z-index: 2;
  opacity: 0.95;
}
.hero__visual img { width: 100%; }

.hero__side { display: grid; gap: var(--s-5); }
.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-6);
  color: #fff;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease);
}
.hero__card:hover { transform: translateY(-4px); }
.hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: transform 1s var(--ease); }
.hero__card:hover::before { transform: scale(1.08); }
.hero__card--gold::before { background: linear-gradient(160deg, #D4A537 0%, #8B6914 100%); }
.hero__card--coral::before { background: linear-gradient(160deg, var(--brand-primary) 0%, #8B1A20 100%); }
.hero__card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cdefs%3E%3Cpattern id='c' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.2)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23c)'/%3E%3C/svg%3E");
}
.hero__card small { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-bottom: var(--s-2); }
.hero__card h3 { font-size: 1.5rem; margin-bottom: var(--s-2); }
.hero__card p { font-size: 13px; opacity: 0.85; }
.hero__card__arrow {
  position: absolute;
  top: var(--s-5); inset-inline-end: var(--s-5);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
  transition: all var(--t-base) var(--ease);
}
.hero__card:hover .hero__card__arrow { background: #fff; color: var(--brand-secondary); transform: rotate(-45deg); }
[dir="rtl"] .hero__card:hover .hero__card__arrow { transform: rotate(225deg); }
.hero__card__arrow svg { width: 18px; height: 18px; }

/* ─────────────  SECTION HEADER  ───────────── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s-7);
  gap: var(--s-5);
  position: relative;
}
.sec-head__title {
  display: flex; flex-direction: column; gap: 6px;
}
.sec-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sec-head__title em { font-style: normal; color: var(--brand-primary); }
.sec-head__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 4px;
  transition: gap var(--t-fast);
}
.sec-head__link:hover { gap: 14px; }
.sec-head__link svg { width: 16px; height: 16px; }

/* ─────────────  CATEGORY CIRCLES  ───────────── */
.cat-circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--s-4);
}
.cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-2);
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  transition: all var(--t-base) var(--ease);
  text-align: center;
}
.cat-circle:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.cat-circle__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px;
  position: relative;
  background: var(--surface-2);
  transition: all var(--t-base) var(--ease);
}
.cat-circle:hover .cat-circle__icon {
  background: var(--brand-primary);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}
.cat-circle span { font-size: 13px; font-weight: 600; color: var(--text); }
.cat-circle small { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* ─────────────  FLASH SALE  ───────────── */
.flash {
  background: linear-gradient(120deg, #1D0A12 0%, #3D0E1A 50%, #5C141F 100%);
  border-radius: var(--r-2xl);
  padding: var(--s-8) var(--s-7);
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.flash::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 50%, rgba(230,57,70,0.4), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(212,165,55,0.2), transparent 50%);
}
.flash::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(135deg, transparent 0 80px, rgba(255,255,255,0.02) 80px 81px);
}
.flash__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.flash__brand { display: flex; align-items: center; gap: var(--s-4); }
.flash__bolt {
  width: 56px; height: 56px;
  background: var(--brand-accent);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--brand-secondary);
  box-shadow: 0 0 40px rgba(212,165,55,0.5);
  animation: flashPulse 2s ease-in-out infinite;
}
@keyframes flashPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(212,165,55,0.5); }
  50% { box-shadow: 0 0 60px rgba(212,165,55,0.8); }
}
.flash__bolt svg { width: 30px; height: 30px; }
.flash__title h2 { color: #fff; }
.flash__title small { font-family: var(--font-mono); font-size: 11px; color: var(--brand-accent); letter-spacing: 0.14em; text-transform: uppercase; }

.countdown { display: flex; gap: var(--s-2); align-items: center; }
.countdown__cell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 10px 14px;
  min-width: 64px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.countdown__cell strong { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--brand-accent); letter-spacing: -0.04em; line-height: 1; }
.countdown__cell span { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.countdown__sep { font-family: var(--font-mono); font-size: 1.6rem; color: var(--brand-accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.flash__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}

/* ─────────────  PRODUCT CARD (uiverse-inspired)  ───────────── */
.product {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  position: relative;
  isolation: isolate;
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product:hover .product__media img { transform: scale(1.08); }
.product__badge {
  position: absolute;
  top: var(--s-3); inset-inline-start: var(--s-3);
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--brand-primary); color: #fff;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  letter-spacing: 0.04em;
  z-index: 2;
}
.product__badge--new { background: var(--success); }
.product__badge--hot { background: var(--brand-accent); color: var(--brand-secondary); }
.product__wish {
  position: absolute;
  top: var(--s-3); inset-inline-end: var(--s-3);
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  transition: all var(--t-fast) var(--ease);
  opacity: 0;
  transform: translateY(-8px);
  z-index: 2;
}
.product:hover .product__wish { opacity: 1; transform: translateY(0); }
.product__wish:hover { background: #fff; color: var(--brand-primary); transform: scale(1.1); }
.product__wish svg { width: 18px; height: 18px; }

.product__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  padding: var(--s-5) var(--s-3) var(--s-3);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-base) var(--ease);
  z-index: 2;
}
.product:hover .product__overlay { opacity: 1; transform: translateY(0); }
.product__quick {
  width: 100%;
  background: #fff; color: var(--brand-secondary);
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--t-fast);
}
.product__quick:hover { background: var(--brand-accent); }

.product__body { padding: var(--s-4); }
.product__vendor { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 4px; }
.product__vendor svg { width: 12px; height: 12px; color: var(--success); }
.product__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s-3);
  min-height: 39px;
}

.product__rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: var(--s-3); }
.product__rating strong { color: var(--text); font-weight: 700; }
.product__stars { display: inline-flex; gap: 1px; color: var(--brand-accent); }
.product__stars svg { width: 12px; height: 12px; fill: currentColor; }

.product__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); }
.product__price { display: flex; flex-direction: column; gap: 2px; }
.product__price strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
[dir="rtl"] .product__price strong { font-family: var(--font-arabic); }
.product__price del { font-size: 12px; color: var(--text-subtle); font-weight: 500; }
.product__price__iqd { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.product__add {
  width: 38px; height: 38px;
  background: var(--brand-primary); color: #fff;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.product__add:hover { background: var(--brand-secondary); transform: scale(1.05) rotate(8deg); }
.product__add svg { width: 18px; height: 18px; }

.product__progress { margin-top: var(--s-3); }
.product__progress__bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.product__progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); border-radius: 2px; }
.product__progress__text { font-size: 11px; color: var(--text-muted); margin-top: 6px; display: flex; justify-content: space-between; }
.product__progress__text strong { color: var(--brand-primary); }

/* ─────────────  PRODUCTS GRID  ───────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-5);
}

/* ─────────────  BRANDS  ───────────── */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
}
.brand {
  height: 80px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.brand:hover { background: var(--brand-primary); color: #fff; transform: translateY(-3px); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--t-fast);
}
.brand:hover .brand__name { color: #fff; }

/* ─────────────  CATEGORY SHOWCASE  ───────────── */
.cat-show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: var(--s-4);
}
.cat-show__item {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-5);
  color: #fff;
  cursor: pointer;
  isolation: isolate;
}
.cat-show__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-position: center; background-size: cover;
  transition: transform 0.8s var(--ease);
}
.cat-show__item:hover::before { transform: scale(1.1); }
.cat-show__item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.cat-show__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cat-show__item:nth-child(1)::before { background-image: linear-gradient(135deg, #2D1B4E 0%, #5B247A 100%); }
.cat-show__item:nth-child(2)::before { background-image: linear-gradient(135deg, var(--brand-primary), #8B1A20); }
.cat-show__item:nth-child(3)::before { background-image: linear-gradient(135deg, #1D3557, #0E1422); }
.cat-show__item:nth-child(4)::before { background-image: linear-gradient(135deg, #06A77D, #044F3B); }
.cat-show__item:nth-child(5)::before { background-image: linear-gradient(135deg, #D4A537, #8B6914); }

.cat-show__item small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.cat-show__item h3 { font-size: 1.4rem; margin: 4px 0 var(--s-2); }
.cat-show__item:nth-child(1) h3 { font-size: 2.4rem; }
.cat-show__item .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: var(--r-full);
  backdrop-filter: blur(10px);
  align-self: flex-start;
  transition: all var(--t-fast);
}
.cat-show__item:hover .pill { background: #fff; color: var(--brand-secondary); }

/* ─────────────  VENDORS STRIP  ───────────── */
.vendors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}
.vendor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  transition: all var(--t-base) var(--ease);
  position: relative;
}
.vendor:hover { transform: translateY(-3px); border-color: var(--brand-primary); box-shadow: var(--shadow-md); }
.vendor__logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}
.vendor__info { flex: 1; min-width: 0; }
.vendor__info h4 { font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.vendor__info h4 svg { width: 14px; height: 14px; color: var(--info); }
.vendor__info small { font-size: 11px; color: var(--text-muted); }
.vendor__stats { display: flex; gap: var(--s-3); margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.vendor__stats strong { color: var(--text); }
.vendor__arrow {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.vendor:hover .vendor__arrow { background: var(--brand-primary); color: #fff; }
.vendor__arrow svg { width: 16px; height: 16px; }
[dir="rtl"] .vendor__arrow svg { transform: rotate(180deg); }

/* ─────────────  PROMO STRIP  ───────────── */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.promo {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base) var(--ease);
}
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-primary); }
.promo__icon {
  width: 52px; height: 52px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.promo__icon svg { width: 26px; height: 26px; }
.promo h4 { font-size: 14px; margin-bottom: 4px; }
.promo small { font-size: 12px; color: var(--text-muted); }

/* ─────────────  NEWSLETTER  ───────────── */
.newsletter {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #0E1422 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: var(--s-9) var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.newsletter::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,165,55,0.2), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(230,57,70,0.18), transparent 50%);
}
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.newsletter__text small { font-family: var(--font-mono); font-size: 11px; color: var(--brand-accent); letter-spacing: 0.14em; text-transform: uppercase; }
.newsletter__text h2 { color: #fff; margin: var(--s-3) 0; }
.newsletter__text p { color: rgba(255,255,255,0.7); }
.newsletter__form { display: flex; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-full); padding: 6px; backdrop-filter: blur(10px); }
.newsletter__form input { flex: 1; background: transparent; border: 0; outline: 0; padding: 14px 20px; color: #fff; font-size: 14px; }
.newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }

/* ─────────────  FOOTER  ───────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--s-10) 0 var(--s-5);
  margin-top: var(--s-10);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-7); margin-bottom: var(--s-8); }
.footer__about p { color: var(--text-muted); font-size: 13.5px; margin: var(--s-4) 0; }
.footer__social { display: flex; gap: var(--s-2); }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.footer__social a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }
.footer h5 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: var(--s-4); color: var(--text); letter-spacing: -0.01em; }
[dir="rtl"] .footer h5 { font-family: var(--font-arabic); font-weight: 800; }
.footer ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer ul a { font-size: 13.5px; color: var(--text-muted); transition: color var(--t-fast); }
.footer ul a:hover { color: var(--brand-primary); }
.footer__contact li { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 8px; }
.footer__contact strong { color: var(--text); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
  flex-wrap: wrap; gap: var(--s-4);
}
.footer__pay { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.footer__pay__chip {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ─────────────  RESPONSIVE  ───────────── */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cat-show { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .cat-show__item:nth-child(1) { grid-column: span 2; grid-row: span 1; min-height: 220px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .promo-strip { grid-template-columns: 1fr 1fr; }
  .header-main { grid-template-columns: auto 1fr; }
  .header-actions { grid-column: 1 / -1; justify-content: space-between; }
  .newsletter__inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar__marquee span:not(:first-child) { display: none; }
  .header-action__label { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .cat-show { grid-template-columns: 1fr; }
  .promo-strip { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .flash__head { flex-direction: column; align-items: flex-start; }
  .hero__content { padding: var(--s-6); }
  .hero__visual { display: none; }
  .container { padding: 0 var(--s-4); }
}

/* ─────────────  ANIMATIONS  ───────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp 0.7s var(--ease) both; }
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.3s; }
.reveal-4 { animation-delay: 0.4s; }

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] @keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* Utility */
.text-brand { color: var(--brand-primary); }
.text-accent { color: var(--brand-accent); }
.gold-text {
  background: linear-gradient(135deg, var(--brand-accent), #fff5d6, var(--brand-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShine 4s linear infinite;
}
@keyframes goldShine { to { background-position: 200% center; } }
