/* ====================================================================
   ATIZZON — Design System v2
   Inspired by: Apple, Aesop, Mejuri, Norse Projects, Noon
   Principles: restraint, hierarchy, generous space, refined motion
   ==================================================================== */

:root {
  /* Color tokens — only 4 primary */
  --brand: #1E5AAE;
  --brand-hover: #174785;
  --brand-soft: #EAF1FB;

  --ink: #0A2540;          /* primary text */
  --ink-muted: #5B6B82;    /* secondary text */
  --ink-soft: #8A97AC;     /* tertiary / placeholders */

  --canvas: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EFF2F6;
  --line: #E5E8EC;

  --success: #1B7F4D;
  --success-soft: #E6F4EC;
  --danger: #C8302F;
  --warn: #B8770B;

  /* Spacing scale (8pt) */
  --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: 56px; --s-10: 80px; --s-11: 96px; --s-12: 120px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadow tokens (subtle, layered) */
  --sh-1: 0 1px 2px rgba(10, 37, 64, .04), 0 1px 1px rgba(10, 37, 64, .03);
  --sh-2: 0 4px 12px rgba(10, 37, 64, .06), 0 2px 4px rgba(10, 37, 64, .04);
  --sh-3: 0 12px 32px rgba(10, 37, 64, .10), 0 4px 8px rgba(10, 37, 64, .06);
  --sh-4: 0 24px 48px rgba(10, 37, 64, .14);

  --container: 1280px;
  --header-h: 76px;
  --nav-h: 52px;

  /* Type scale */
  --t-xs: 12px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 17px;
  --t-lg: 20px;
  --t-xl: 24px;
  --t-2xl: 32px;
  --t-3xl: 40px;
  --t-4xl: 56px;

  /* ===== Backward-compat aliases (legacy variable names) ===== */
  --brand-dark: #174785;
  --brand-light: #3a7bd5;
  --brand-50: #EAF1FB;
  --brand-100: #DCE6F5;
  --accent: #f59e0b;
  --text: #0A2540;
  --muted: #5B6B82;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --border: #E5E8EC;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .04), 0 1px 1px rgba(10, 37, 64, .03);
  --shadow: 0 4px 12px rgba(10, 37, 64, .06);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, .10);
  --radius: 12px;
  --radius-lg: 16px;
  --container-width: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  direction: rtl;
  line-height: 1.7;
  font-size: var(--t-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--brand-soft); color: var(--brand); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }

/* ============ TOP BAR — minimal info strip ============ */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: var(--t-xs);
  padding: var(--s-2) 0;
  letter-spacing: .2px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.topbar .info { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }

/* ============ HEADER ============ */
.header {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-7);
  align-items: center;
  min-height: var(--header-h);
  padding: var(--s-3) 0;
}
.logo { display: flex; align-items: center; gap: var(--s-3); transition: opacity .15s; }
.logo:hover { opacity: .85; }
.logo img { height: 52px; width: auto; }

.search-box { position: relative; max-width: 540px; width: 100%; margin: 0 auto; }
.search-box input {
  width: 100%;
  padding: 11px 44px 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  background: var(--surface);
  transition: all .2s ease;
  color: var(--ink);
}
.search-box input::placeholder { color: var(--ink-soft); }
.search-box input:focus {
  outline: none;
  background: var(--canvas);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.search-box button {
  position: absolute;
  inset-inline-start: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--ink-muted);
  display: grid; place-items: center;
  transition: all .15s;
}
.search-box button:hover { color: var(--brand); background: var(--brand-soft); }

.header-actions { display: flex; gap: var(--s-1); align-items: center; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 16px;
  transition: all .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--brand); }
.icon-btn .badge {
  position: absolute;
  top: -2px;
  inset-inline-start: -2px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 2px solid var(--canvas);
}

/* ============ NAV — refined category bar ============ */
.nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 90;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0;
  flex-wrap: wrap;
  min-height: var(--nav-h);
}
.nav-item {
  position: relative;
  padding: 14px var(--s-5);
  font-weight: 500;
  font-size: var(--t-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  cursor: pointer;
  transition: color .15s ease;
}
.nav-item:hover { color: var(--brand); }
.nav-item .num {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--ink-muted);
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-weight: 600;
  transition: all .15s;
}
.nav-item:hover .num { background: var(--brand-soft); color: var(--brand); }
.nav-item .arrow { font-size: 10px; opacity: .5; transition: transform .15s; }
.nav-item:hover .arrow { transform: rotate(180deg); opacity: 1; }

.mega-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background: var(--canvas);
  min-width: 280px;
  box-shadow: var(--sh-3);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: var(--s-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 1000;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand);
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-menu a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  transition: all .12s;
}
.mega-menu a:hover { background: var(--surface); color: var(--brand); padding-inline-start: 18px; }
.mega-menu a i { color: var(--ink-soft); font-size: 10px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--t-sm);
  transition: all .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #DCE6F5; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: var(--t-xs); }
.btn-lg { padding: 16px 32px; font-size: var(--t-base); }

/* ============ HERO — editorial split ============ */
.hero {
  margin: var(--s-7) 0 var(--s-8);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #1E5AAE 0%, #143E7C 100%);
  color: #fff;
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 100% 0%, rgba(255,255,255,.08), transparent 50%),
    radial-gradient(600px circle at 0% 100%, rgba(255,255,255,.05), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-9) var(--s-10);
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, var(--t-4xl));
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: var(--s-4);
}
.hero h1 .accent {
  display: inline-block;
  background: linear-gradient(120deg, #FFE8B0, #FFB266);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: var(--t-md);
  line-height: 1.7;
  opacity: .92;
  margin-bottom: var(--s-7);
  max-width: 520px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-cta .btn-brand { background: #fff; color: var(--brand); }
.hero-cta .btn-brand:hover { background: #FFE8B0; color: var(--brand-hover); }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* Hero illustration — abstract product blocks */
.hero-visual { position: relative; height: 360px; display: flex; align-items: center; justify-content: center; }
.hero-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); transform: rotate(-12deg); }
.hero-tile {
  aspect-ratio: 1;
  width: 90px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 28px;
  color: rgba(255,255,255,.7);
  animation: floatTile 5s ease-in-out infinite;
}
.hero-tile:nth-child(2n) { animation-delay: .4s; }
.hero-tile:nth-child(3n) { animation-delay: .8s; }
.hero-tile.highlight { background: rgba(255,232,176,.2); color: #FFE8B0; border-color: rgba(255,232,176,.3); }
@keyframes floatTile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ TRUST STRIP — 4 icons, no boxes ============ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-10);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 var(--s-3);
}
.trust-item:not(:last-child) { border-inline-end: 1px solid var(--line); }
.trust-item i {
  font-size: 22px;
  color: var(--brand);
  flex-shrink: 0;
}
.trust-item h4 { font-size: var(--t-sm); font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.trust-item p { font-size: var(--t-xs); color: var(--ink-muted); line-height: 1.4; }

/* ============ SECTIONS ============ */
.section { padding: var(--s-10) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--s-7);
  gap: var(--s-4);
}
.section-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-2);
}
.section-head h2 {
  font-size: clamp(22px, 3vw, var(--t-2xl));
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.section-head p { color: var(--ink-muted); font-size: var(--t-sm); margin-top: 6px; }
.section-head .more {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--t-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: gap .15s;
}
.section-head .more:hover { gap: 10px; color: var(--brand); border-color: var(--brand); }

/* ============ CATEGORIES SHOWCASE — refined editorial ============ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.cat-card {
  background: var(--canvas);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  border: 1px solid var(--line);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  display: block;
}
.cat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 4px;
  background: var(--cat-color, var(--brand));
  transition: width .3s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-color, var(--brand));
  box-shadow: var(--sh-3);
}
.cat-card:hover::after { width: 100%; }
.cat-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-4);
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--cat-color, var(--brand));
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cat-title { font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
.cat-num {
  margin-inline-start: auto;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: var(--t-md);
}
.cat-subs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-subs a {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 7px 0;
  font-size: var(--t-sm);
  color: var(--ink-muted);
  transition: all .12s;
}
.cat-subs a:hover { color: var(--cat-color, var(--brand)); padding-inline-start: 6px; }
.cat-subs a i { font-size: 10px; opacity: .6; }

/* ============ PRODUCT CARDS — refined ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.product-card {
  background: var(--canvas);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.product-card:hover {
  border-color: var(--line);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.product-img-wrap {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-wrap .placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-size: 48px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}
.product-badge {
  position: absolute;
  top: var(--s-3);
  inset-inline-end: var(--s-3);
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 5px 10px;
  border-radius: var(--r-full);
}
.product-badge.featured { background: var(--brand); }
.product-badge.sold-out { background: var(--ink-muted); }
.product-badge.sale { background: var(--success); }

.product-body { padding: var(--s-4) var(--s-3) var(--s-3); display: flex; flex-direction: column; gap: 6px; }
.product-cat { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }
.product-name {
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-name:hover { color: var(--brand); }
.product-price { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-1); flex-wrap: wrap; }
.price-now { font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.price-old { font-size: var(--t-xs); color: var(--ink-soft); text-decoration: line-through; }
.price-save {
  font-size: 10px;
  font-weight: 700;
  background: var(--success-soft);
  color: var(--success);
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.product-card .btn { margin-top: var(--s-3); }
.product-card .btn-brand { background: var(--ink); }
.product-card .btn-brand:hover { background: var(--brand); }

/* ============ OFFERS BANNER ============ */
.offers-banner {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--s-9) var(--s-8);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-7);
  margin: var(--s-10) 0;
  position: relative;
  overflow: hidden;
}
.offers-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 100% 50%, rgba(30, 90, 174, .4), transparent 70%);
}
.offers-banner > * { position: relative; z-index: 1; }
.offers-banner .eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 2px;
  color: #FFE8B0;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.offers-banner h3 { font-size: clamp(20px, 3vw, var(--t-2xl)); font-weight: 700; margin-bottom: var(--s-2); line-height: 1.2; }
.offers-banner p { color: rgba(255,255,255,.75); font-size: var(--t-sm); max-width: 520px; }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  margin-top: var(--s-11);
  padding: var(--s-10) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
}
footer h4 { color: #fff; margin-bottom: var(--s-4); font-size: var(--t-sm); font-weight: 700; letter-spacing: .3px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: rgba(255,255,255,.7); font-size: var(--t-sm); transition: color .12s; }
footer ul a:hover { color: #fff; }
footer .brand-block img { height: 40px; margin-bottom: var(--s-4); filter: brightness(0) invert(1); }
footer .brand-block p { font-size: var(--t-sm); line-height: 1.8; max-width: 360px; color: rgba(255,255,255,.6); }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  color: #fff;
  transition: all .15s;
  font-size: 14px;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--s-5) 0;
  font-size: var(--t-xs);
  text-align: center;
  color: rgba(255,255,255,.5);
}

/* ============ EMPTY STATE ============ */
.empty {
  text-align: center;
  padding: var(--s-11) var(--s-5);
  color: var(--ink-muted);
}
.empty i { font-size: 56px; margin-bottom: var(--s-4); color: var(--ink-soft); opacity: .5; }
.empty h3 { color: var(--ink); margin-bottom: var(--s-2); font-size: var(--t-lg); font-weight: 700; }
.empty p { font-size: var(--t-sm); }

/* ============ MOBILE MENU ============ */
.menu-toggle { display: none; }
.mobile-overlay { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cats-grid, .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .trust-item:nth-child(2) { border-inline-end: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .topbar .info { display: none; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--s-3);
    padding: var(--s-3) 0;
  }
  .logo img { height: 42px; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 18px;
  }
  .search-box { order: 4; grid-column: 1 / -1; max-width: 100%; margin-top: var(--s-2); }
  .nav { display: none; position: fixed; inset: 0; z-index: 999; background: var(--canvas); padding: var(--s-5); overflow-y: auto; }
  .nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mega-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--surface);
    margin-top: var(--s-2);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    border-radius: var(--r-sm);
    border-top: none;
  }
  .nav-item.open .mega-menu { display: block; }
  .nav-item .arrow { margin-inline-start: auto; }
  .nav-item.open .arrow { transform: rotate(180deg); }
  .mobile-overlay.show { display: block; position: fixed; inset: 0; background: rgba(10,37,64,.4); z-index: 998; }

  .hero { min-height: auto; margin: var(--s-5) 0; }
  .hero-inner { grid-template-columns: 1fr; padding: var(--s-8) var(--s-6); text-align: center; gap: var(--s-5); }
  .hero-visual { display: none; }

  .trust-strip { grid-template-columns: 1fr 1fr; gap: var(--s-3); padding: var(--s-5) 0; margin-bottom: var(--s-7); }
  .trust-item { padding: 0; gap: var(--s-3); }
  .trust-item:nth-child(odd) { border-inline-end: 1px solid var(--line); padding-inline-end: var(--s-3); }
  .trust-item:nth-child(even) { border-inline-end: none; }

  .section { padding: var(--s-8) 0; }
  .cats-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .section-head { flex-direction: column; align-items: flex-start; }

  .offers-banner { grid-template-columns: 1fr; padding: var(--s-7) var(--s-5); text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 420px) {
  .products-grid { gap: var(--s-3); }
  .product-name { font-size: var(--t-xs); min-height: 32px; }
  .price-now { font-size: var(--t-sm); }
}

/* ============ UTILS ============ */
.spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--surface-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: var(--s-10) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: var(--s-5);
  inset-inline-end: var(--s-5);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  z-index: 9999;
  font-size: var(--t-sm);
  font-weight: 500;
  animation: slideUp .25s ease;
  max-width: 340px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============ Color-coded nav items ============ */
.nav-item[data-color="#1E5AAE"]:hover .num { background: #D8E5F7; color: #1E5AAE; }
.nav-item[data-color="#ea580c"]:hover .num { background: #FFE5D3; color: #ea580c; }
.nav-item[data-color="#7c3aed"]:hover .num { background: #E6DCFF; color: #7c3aed; }
.nav-item[data-color="#16a34a"]:hover .num { background: #D1FAE5; color: #16a34a; }
