/* ============================================================
   AMKOY.MA — Premium Design System v2
   Inspired by Apple Store, Best Buy, Jumia
   ============================================================ */

:root {
  /* Brand colors */
  --brand: #52B848;          /* Amkoy Technology fresh green */
  --brand-dark: #3D9437;
  --brand-light: #E8F5E5;
  --brand-50: #F4FBF2;

  --accent: #1F3D2A;         /* Deep forest green */
  --accent-dark: #142A1C;
  --accent-light: #2D5C3D;

  --gold: #5DC551;           /* Bright lime accent (lighter brand green) */
  --emerald: #2F9E3C;        /* Success */
  --rose: #E11D48;           /* Sale/Danger */

  --ink: #0A0E1A;            /* Near-black for text */
  --ink-2: #1A1F2E;
  --ink-3: #4A5160;          /* Secondary text */
  --muted: #8A93A6;          /* Muted text */
  --line: #E8ECF3;           /* Borders */
  --line-2: #F2F4F8;
  --bg: #FAFBFD;             /* Page background */
  --surface: #FFFFFF;        /* Cards */
  --surface-2: #F7F9FC;

  /* Semantic */
  --success: var(--emerald);
  --danger: var(--rose);
  --warning: #F59E0B;
  --info: #3B82F6;

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

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(15, 44, 92, .06);
  --sh-sm: 0 2px 8px rgba(15, 44, 92, .08);
  --sh: 0 6px 24px rgba(15, 44, 92, .10);
  --sh-lg: 0 12px 40px rgba(15, 44, 92, .14);
  --sh-xl: 0 24px 60px rgba(15, 44, 92, .18);
  --sh-brand: 0 8px 24px rgba(82, 184, 72, .32);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: .25s var(--ease);
  --t-slow: .4s var(--ease);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15.5px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100vw; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
.container { max-width: 1340px; padding-left: 20px; padding-right: 20px; }
::selection { background: var(--brand); color: white; }

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); }

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 1030;             /* above any sticky sub-element on the page */
  transition: box-shadow var(--t);
}

/* Category filter sidebar — sticky but BELOW the global sticky header */
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky;
  top: 220px;                /* below topbar + main header + nav strip */
  z-index: 10;               /* well below .site-header (1030) */
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}
.filter-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.site-header.scrolled { box-shadow: var(--sh-sm); }
.header-inner { padding: 14px 0; gap: 20px; }

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1;
}
.logo-dot {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Premium Search ===== */
.header-search { position: relative; max-width: 720px; flex: 1; }
.search-wrapper {
  display: flex;
  align-items: stretch;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: all var(--t);
}
.search-wrapper:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(82, 184, 72, .12);
}
.search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 20px;
  font-size: .95rem;
  outline: none;
  min-width: 0;
  color: var(--ink);
}
.search-input::placeholder { color: var(--muted); }
.search-barcode-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 1.25rem;
  border-left: 1px solid var(--line);
  transition: color var(--t), background var(--t);
}
.search-barcode-btn:hover { color: var(--brand); background: var(--brand-50); }
.search-submit-btn {
  background: var(--ink);
  color: white;
  border: none;
  padding: 0 28px;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--t);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-submit-btn:hover { background: var(--brand); }

.search-suggestions {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  z-index: 500;
  display: none;
  max-height: 450px;
  overflow-y: auto;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  transition: background var(--t);
  font-size: .9rem;
}
.suggestion-item:hover { background: var(--brand-50); }
.suggestion-item img { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-sm); background: var(--surface-2); padding: 4px; }
.suggestion-item .price { margin-left: auto; font-weight: 800; color: var(--brand); white-space: nowrap; }

/* ===== Header Actions ===== */
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--r);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  transition: all var(--t);
  white-space: nowrap;
  position: relative;
}
.header-action-btn i {
  font-size: 1.4rem;
  color: var(--ink-3);
  transition: color var(--t);
}
.header-action-btn:hover { color: var(--brand); background: var(--brand-50); }
.header-action-btn:hover i { color: var(--brand); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: .68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  padding: 0 4px;
}

/* WhatsApp order button (product page + cart) */
.btn-wa-order {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--r-md);
  text-decoration: none !important;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}
.btn-wa-order:hover { color:#fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,211,102,.4); filter: brightness(1.05); }
.btn-wa-order i.bi-whatsapp { font-size: 1.25em; }

/* Header language switcher (in sticky header, always visible) */
.header-lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.header-lang-switch .lang-btn:hover { background: var(--surface-2); border-color: var(--brand); }
.header-lang-switch .lang-flag { font-size: 1.1rem; line-height: 1; }
.header-lang-switch .lang-code { letter-spacing: .5px; }
.header-lang-switch .dropdown-item.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

/* ===== Main Nav ===== */
.main-nav {
  background: var(--ink);
  position: relative;
}
.main-nav .container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
/* Hide desktop horizontal nav on mobile (mobile-bottom-nav takes over) */
@media (max-width: 767.98px) {
  .main-nav { display: none; }
}

/* Mobile speed wins: skip offscreen rendering for below-the-fold sections */
@media (max-width: 767.98px) {
  .section, .product-grid, footer { content-visibility: auto; contain-intrinsic-size: 500px; }
}

/* ===== Compare Drawer ===== */
.compare-drawer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 10px 14px;
  border: 1px solid var(--line);
  max-width: 720px;
  width: calc(100% - 40px);
  animation: cookieSlideUp .35s ease;
}
.compare-drawer-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compare-drawer-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.compare-drawer-label i { color: var(--brand); font-size: 1.2rem; }
.compare-drawer-thumbs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; }
.compare-drawer-thumb { position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; background: #f5f7fa; overflow: visible; }
.compare-drawer-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.compare-drawer-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--rose); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.compare-drawer-actions { display: flex; align-items: center; gap: 6px; }
.compare-drawer-actions .btn.disabled { pointer-events: none; opacity: .5; }
.compare-btn.active { background: var(--brand) !important; color: #fff !important; }
@media (max-width: 767.98px) {
  .compare-drawer { bottom: 80px; padding: 8px 10px; width: calc(100% - 16px); }
  .compare-drawer-label span { display: none; }
}

/* Compare table */
.compare-table { background: #fff; border-radius: 12px; overflow: hidden; }
.compare-table th { font-weight: 600; vertical-align: middle; background: var(--surface-2); }
.compare-table td { vertical-align: middle; }
.compare-table > thead > tr > th { background: #fff; border-bottom: 2px solid var(--line); }

/* ===== RGPD Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 18px 22px;
  z-index: 9999;
  border: 1px solid var(--line);
  animation: cookieSlideUp .4s ease;
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-banner-hidden { transform: translateY(150%); opacity: 0; transition: transform .35s, opacity .35s; }
@keyframes cookieSlideUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-banner-text { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 320px; min-width: 0; }
.cookie-banner-text p { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.cookie-icon { color: var(--brand); font-size: 1.6rem; flex-shrink: 0; }
.cookie-link { color: var(--brand); text-decoration: underline; margin-left: 4px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner-actions .btn { font-weight: 600; padding: 9px 18px; border-radius: 10px; font-size: .9rem; }
.cookie-btn-decline { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.cookie-btn-decline:hover { background: var(--line-2); }
.cookie-btn-customize { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cookie-btn-customize:hover { background: var(--line-2); }
.cookie-btn-accept { background: var(--brand); color: #fff; border: none; box-shadow: 0 4px 12px rgba(82,184,72,.3); }
.cookie-btn-accept:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 600px) {
  .cookie-banner { bottom: 80px; left: 8px; right: 8px; padding: 14px 16px; border-radius: 12px; }
  .cookie-banner-actions { width: 100%; flex-direction: column-reverse; }
  .cookie-banner-actions .btn { width: 100%; }
}
/* Smooth tap on iOS */
a, button, .btn, .product-card, .mobile-nav-item { -webkit-tap-highlight-color: transparent; }
/* Remove iOS input zoom (font-size >= 16px on input prevents auto-zoom) */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], select, textarea { font-size: 16px; }
.main-nav .container::-webkit-scrollbar { display: none; }
.nav-cat-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  border: none;
  padding: 14px 22px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter var(--t);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cat-btn:hover { filter: brightness(1.1); }
.nav-link-item {
  color: rgba(255,255,255,.85);
  padding: 14px 16px;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--t);
  position: relative;
}
.nav-link-item:hover { color: white; }
.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 3px;
  background: var(--brand);
  transition: all var(--t);
  transform: translateX(-50%);
}
.nav-link-item:hover::after { width: 70%; }
.nav-promo {
  color: var(--gold) !important;
  font-weight: 700;
}

/* Mega Menu */
.mega-menu-wrapper { position: relative; }
.mega-menu {
  min-width: 600px !important;
  border-radius: var(--r-lg) !important;
  border: 0 !important;
  box-shadow: var(--sh-xl) !important;
  margin-top: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.mega-menu-cats {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  min-width: 260px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}
.mega-cat-link {
  display: flex;
  align-items: center;
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t);
}
.mega-cat-link:hover {
  background: var(--brand);
  color: white;
  padding-left: 28px;
}
.mega-cat-link i { color: var(--brand); margin-right: 10px; font-size: 1.1rem; transition: color var(--t); }
.mega-cat-link:hover i { color: white; }
.mega-menu-featured { min-width: 280px; padding: 20px !important; }
.mega-menu-featured a { color: var(--ink); font-size: .88rem; padding: 6px 0; font-weight: 500; }
.mega-menu-featured a:hover { color: var(--brand); }

/* ===== Hero ===== */
.hero-section { background: var(--ink); position: relative; overflow: hidden; }
.hero-slide {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(82,184,72,.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,184,0,.18), transparent 55%),
    linear-gradient(135deg, var(--accent-dark) 0%, var(--ink) 60%, var(--accent) 100%);
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: .8;
}
.hero-slide > .container { position: relative; z-index: 2; }
.hero-content {
  color: white;
  padding: 60px 0;
  max-width: 620px;
}
.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.hero-content .badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 18px;
}
.hero-content h1 .hl {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  border-radius: var(--r-full);
  font-size: .95rem;
  transition: all var(--t);
  box-shadow: var(--sh-brand);
}
.hero-cta:hover { background: var(--brand-dark); color: white; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(82,184,72,.4); }
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  font-weight: 600;
  border-radius: var(--r-full);
  font-size: .95rem;
  transition: all var(--t);
  backdrop-filter: blur(8px);
}
.hero-cta-ghost:hover { background: rgba(255,255,255,.16); color: white; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat .num { font-size: 1.6rem; font-weight: 900; color: white; }
.hero-stat .lbl { font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 500; }

/* Swiper customization */
.swiper-pagination-bullet { background: white; opacity: .35; width: 24px !important; height: 4px !important; border-radius: 4px !important; transition: opacity var(--t); }
.swiper-pagination-bullet-active { opacity: 1; background: var(--brand); }
.swiper-button-next, .swiper-button-prev {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  width: 48px !important; height: 48px !important;
  border-radius: 50%;
  color: white !important;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; font-weight: 800; }

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 12px;
}
.trust-item i {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.trust-item-title { font-size: .9rem; font-weight: 700; color: var(--ink); }
.trust-item-sub { font-size: .76rem; color: var(--muted); }

/* ===== Section Headers ===== */
.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 0 0 4px;
}
.section-title .accent { color: var(--brand); }
.section-subtitle { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header > div { flex: 1; min-width: 200px; }
.section-link {
  font-size: .88rem;
  color: var(--brand);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
}
.section-link:hover { gap: 8px; color: var(--brand); }

/* ===== Category Cards ===== */
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--t);
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  opacity: 0;
  transition: opacity var(--t);
  z-index: 0;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--sh); }
.cat-card:hover::before { opacity: .04; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card .cat-icon {
  width: 64px; height: 64px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
  transition: all var(--t);
}
.cat-card:hover .cat-icon {
  background: var(--brand);
  color: white;
  transform: scale(1.08) rotate(-6deg);
}
.cat-name { font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 2px; }
.cat-count { font-size: .76rem; color: var(--muted); }

/* ===== Product Card — Premium ===== */
.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all var(--t);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--sh-lg);
  border-color: transparent;
  transform: translateY(-6px);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--line);
  opacity: .8;
}

.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.pbadge {
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pbadge-new { background: var(--emerald); color: white; }
.pbadge-sale { background: var(--rose); color: white; }
.pbadge-featured { background: linear-gradient(135deg, var(--gold), #3D9437); color: white; }
.pbadge-stock { background: rgba(0,0,0,.7); color: white; backdrop-filter: blur(4px); }

.product-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(12px);
  transition: all var(--t);
  z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .95rem;
  color: var(--ink);
  transition: all var(--t);
  box-shadow: var(--sh-sm);
}
.product-action-btn:hover { background: var(--brand); color: white; border-color: var(--brand); transform: scale(1.08); }
.product-action-btn.active { background: var(--rose); color: white; border-color: var(--rose); }

.product-info { padding: 16px 18px 12px; flex: 1; display: flex; flex-direction: column; }
.product-brand {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.product-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-name:hover { color: var(--brand); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: .8rem;
}
.stars { color: var(--gold); letter-spacing: 1px; font-size: .9rem; }
.rating-count { color: var(--muted); }

.product-price-wrap { margin-top: auto; }
.price-current {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.3px;
}
.price-current .unit { font-size: .75rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.price-old {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.price-discount {
  font-size: .72rem;
  background: var(--rose);
  color: white;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-weight: 800;
  margin-left: 6px;
  vertical-align: middle;
}
.product-footer { padding: 0 18px 18px; }
.btn-add-cart {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  padding: 11px;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-cart:hover { background: var(--brand); transform: translateY(-1px); box-shadow: var(--sh-brand); }
.btn-add-cart:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* "Already in cart" state — soft green pill with check icon */
.btn-add-cart.in-cart {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #fff;
  position: relative;
}
.btn-add-cart.in-cart:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.btn-add-cart.in-cart::after {
  /* a subtle "view cart" hint on hover */
  content: '';
}

/* Big "Ajouter au panier" button on product page when already in cart */
.btn-in-cart {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
}
.btn-in-cart:hover, .btn-in-cart:focus {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .35) !important;
}

/* Mobile sticky CTA cart button when in cart */
.mscta-btn-cart.in-cart {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  color: #fff !important;
  border: none !important;
}

/* Small icon-only quick-add button (category/search pages) when in cart */
.add-to-cart-quick.in-cart {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  color: #fff !important;
  border: 1px solid #10b981 !important;
}
.add-to-cart-quick.in-cart:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, .35);
}

/* ===== Cart page quantity control ===== */
.cart-qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cart-qty-btn {
  width: 40px;
  border: none;
  background: var(--surface-2, #f7f9fc);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
}
.cart-qty-btn:hover:not(:disabled) { background: var(--brand-light, #e8f5e5); color: var(--brand-dark, #3D9437); }
.cart-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.cart-qty-input {
  width: 56px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 8px 0;
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-qty-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand, #52B848); }
.out-of-stock {
  width: 100%;
  background: var(--line-2);
  color: var(--muted);
  border: none;
  padding: 11px;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 600;
  cursor: not-allowed;
}

/* ===== Promo Banners ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--r-xl);
  padding: 32px;
  color: white;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 60%);
}
.promo-banner h3 { font-weight: 900; letter-spacing: -.5px; }
.promo-banner .badge { background: rgba(255,255,255,.2); color: white; backdrop-filter: blur(6px); border-radius: var(--r-full); padding: 5px 14px; font-weight: 600; font-size: .75rem; }
.btn-on-banner {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--ink);
  padding: 10px 20px; border-radius: var(--r-full);
  font-weight: 700; font-size: .85rem;
  transition: all var(--t);
}
.btn-on-banner:hover { background: var(--ink); color: white; }

/* ===== Stat Card ===== */
.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--line);
  text-align: left;
  transition: all var(--t);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-card .stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* ===== Breadcrumb ===== */
.breadcrumb-section { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0; }
.breadcrumb { font-size: .85rem; margin: 0; }
.breadcrumb-item a { color: var(--ink-3); }
.breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }

/* ===== Product Detail Page ===== */
.product-gallery .main-img-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery .main-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb-list { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb-list img {
  width: 78px; height: 78px;
  object-fit: contain;
  border: 2px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  padding: 6px;
  background: var(--surface);
  transition: all var(--t);
}
.thumb-list img:hover, .thumb-list img.active { border-color: var(--brand); transform: translateY(-2px); }

.product-title { font-size: 1.8rem; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin: 8px 0 10px; }
.product-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.product-meta .sep { color: var(--line); }

.product-price-section {
  background: var(--brand-50);
  border: 1px solid var(--brand-light);
  border-radius: var(--r-lg);
  padding: 22px;
  margin: 20px 0;
}
.main-price { font-size: 2.6rem; font-weight: 900; color: var(--ink); letter-spacing: -1.5px; line-height: 1; }
.main-price .unit { font-size: 1rem; font-weight: 600; margin-left: 4px; color: var(--ink-3); }
.original-price { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.discount-badge {
  background: var(--rose); color: white;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: .82rem; font-weight: 800;
}

.stock-status { font-size: .9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock-status.in { color: var(--emerald); }
.stock-status.out { color: var(--danger); }

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
}
.qty-btn {
  background: none; border: none;
  width: 42px; height: 42px;
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer; color: var(--ink);
  transition: all var(--t);
}
.qty-btn:hover { background: var(--brand-50); color: var(--brand); }
.qty-input {
  width: 56px;
  text-align: center;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-cta-primary {
  background: var(--brand);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: var(--sh-brand);
}
.btn-cta-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(82,184,72,.4); }
.btn-cta-secondary {
  background: var(--ink);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--t);
}
.btn-cta-secondary:hover { background: var(--ink-2); transform: translateY(-2px); }

.product-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.product-perk { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--r); font-size: .85rem; }
.product-perk i { color: var(--brand); font-size: 1.3rem; }

.tab-section .nav-tabs { border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.tab-section .nav-link { color: var(--ink-3); font-weight: 600; font-size: .92rem; border: 0; padding: 12px 24px; }
.tab-section .nav-link.active { color: var(--brand); border-bottom: 3px solid var(--brand); background: transparent; }

.product-specs table { width: 100%; }
.product-specs table td { padding: 12px 16px; font-size: .9rem; border-bottom: 1px solid var(--line-2); }
.product-specs table td:first-child { font-weight: 700; color: var(--ink-3); width: 35%; background: var(--surface-2); }

/* ===== Cart ===== */
.cart-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: center;
}
.cart-item img { width: 92px; height: 92px; object-fit: contain; border-radius: var(--r); background: var(--surface-2); padding: 6px; }
.cart-summary {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line);
  position: sticky;
  top: 90px;
}
.cart-summary .row-line {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: .92rem;
}
.cart-summary .total-row {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  padding-top: 18px;
  margin-top: 8px;
  border-top: 2px solid var(--line);
}
.cart-summary .total-row span:last-child { color: var(--brand); }

/* ===== Checkout ===== */
.checkout-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.checkout-step {
  flex: 1; min-width: 180px;
  text-align: left;
  padding: 18px 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--t);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout-step .num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}
.checkout-step.active { border-color: var(--brand); color: var(--ink); }
.checkout-step.active .num { background: var(--brand); color: white; }
.checkout-step.done { border-color: var(--emerald); color: var(--emerald); }
.checkout-step.done .num { background: var(--emerald); color: white; }
.checkout-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.checkout-section h5 { font-weight: 800; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ===== Forms ===== */
.form-control, .form-select {
  border-radius: var(--r);
  border-color: var(--line);
  padding: 11px 16px;
  font-size: .92rem;
  transition: all var(--t);
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(82,184,72,.1); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: 6px; }

.btn { border-radius: var(--r); font-weight: 700; transition: all var(--t); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: white; }
.btn-lg { padding: 13px 28px; font-size: .95rem; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }

/* ===== Auth Pages ===== */
.auth-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(82,184,72,.05), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,184,0,.04), transparent 50%),
    var(--bg);
  display: flex;
  align-items: center;
  padding: 40px 20px;
}
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--line);
  width: 100%;
}
.auth-card .auth-logo {
  font-size: 2rem; font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .auth-logo .dot { color: var(--brand); }
.auth-card .auth-subtitle { color: var(--muted); text-align: center; margin-bottom: 32px; font-size: .92rem; }
.auth-divider { text-align: center; position: relative; margin: 24px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-divider span { background: var(--surface); padding: 0 16px; position: relative; color: var(--muted); font-size: .82rem; font-weight: 600; }

/* ===== Account ===== */
.account-sidebar {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--line);
}
.account-user-card {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.account-user-avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--r);
  color: var(--ink-3);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 4px;
  transition: all var(--t);
}
.account-nav-link:hover { background: var(--brand-50); color: var(--brand); }
.account-nav-link.active { background: var(--brand); color: white; }
.account-nav-link i { font-size: 1.1rem; }

/* ===== Status Badges ===== */
.status-badge {
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-confirmed  { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #EDE9FE; color: #5B21B6; }
.status-shipped    { background: #E0F2FE; color: #075985; }
.status-delivered  { background: #D1FAE5; color: #065F46; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }
.status-returned   { background: #F3F4F6; color: #374151; }

/* ===== Admin Panel ===== */
.admin-sidebar {
  width: 280px;
  min-height: 100vh;
  background: var(--ink);
  color: white;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--t);
}
.admin-sidebar .sidebar-logo {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-sidebar .sidebar-logo .dot { color: var(--brand); }
.admin-sidebar .sidebar-logo .tag {
  font-size: .6rem; font-weight: 700;
  background: var(--brand); color: white;
  padding: 3px 8px; border-radius: var(--r-full);
  letter-spacing: 1px;
  margin-left: auto;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--t);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { color: white; background: rgba(255,255,255,.05); border-left-color: rgba(82,184,72,.5); }
.admin-nav-link.active { color: white; background: rgba(82,184,72,.12); border-left-color: var(--brand); }
.admin-nav-link i { font-size: 1.15rem; width: 22px; }
.admin-nav-section {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  padding: 18px 28px 6px;
}
.admin-main { margin-left: 280px; min-height: 100vh; background: var(--bg); }
.admin-topbar {
  background: var(--surface);
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}
.admin-topbar h1, .admin-topbar h2, .admin-topbar h3 { margin: 0; font-weight: 800; }
.admin-content { padding: 28px; }
.admin-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.admin-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-header h5 { margin: 0; font-weight: 800; font-size: 1rem; }
.admin-card-body { padding: 22px; }

.kpi-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.kpi-card .kpi-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.kpi-card.kpi-orange .kpi-icon-wrap { background: var(--brand-light); color: var(--brand); }
.kpi-card.kpi-green .kpi-icon-wrap { background: #D1FAE5; color: var(--emerald); }
.kpi-card.kpi-blue .kpi-icon-wrap { background: #DBEAFE; color: var(--info); }
.kpi-card.kpi-red .kpi-icon-wrap { background: #FEE2E2; color: var(--rose); }
.kpi-card.kpi-purple .kpi-icon-wrap { background: #EDE9FE; color: #7C3AED; }
.kpi-card .kpi-value { font-size: 2rem; font-weight: 900; color: var(--ink); letter-spacing: -1px; line-height: 1; }
.kpi-card .kpi-label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.kpi-card .kpi-trend { font-size: .76rem; font-weight: 700; margin-top: 4px; }
.kpi-card .kpi-trend.up { color: var(--emerald); }
.kpi-card .kpi-trend.down { color: var(--danger); }

.admin-table { font-size: .88rem; }
.admin-table th { background: var(--surface-2); font-weight: 700; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: 12px 16px; text-transform: uppercase; font-size: .72rem; letter-spacing: .5px; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tr:hover td { background: var(--surface-2); }

/* ===== AI SEO Panel ===== */
.ai-seo-panel {
  background: linear-gradient(135deg, #E8F5E5, #F4FBF2);
  border: 1px solid var(--brand-light);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.ai-seo-panel::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(82,184,72,.15), transparent);
  border-radius: 50%;
}
.ai-seo-panel h6 { color: var(--brand-dark); font-weight: 800; }
.ai-badge {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: white;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .5px;
}
.btn-ai {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: white;
  border: none;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--r-full);
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ai:hover { transform: translateY(-2px); box-shadow: var(--sh-brand); color: white; }
.btn-ai:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); margin-top: 60px; }
.footer-top { padding: 60px 0 40px; }
.footer-logo { font-size: 1.7rem; font-weight: 900; color: white; letter-spacing: -1px; margin-bottom: 14px; }
.footer-logo .dot { color: var(--brand); }
.footer-heading {
  color: white; font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--t); }
.footer-links a:hover { color: var(--brand); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: .9rem; }
.footer-contact i { color: var(--brand); margin-top: 3px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1.15rem;
  transition: all var(--t);
}
.social-link:hover { background: var(--brand); color: white; border-color: var(--brand); transform: translateY(-2px); }
.trust-badge {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: .76rem;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.08);
}
.payment-badge {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-right: 6px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
}
.newsletter-form .form-control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: white; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--brand); }

/* ===== Floating elements ===== */
.back-to-top {
  position: fixed; bottom: 100px; right: 24px;
  width: 46px; height: 46px;
  background: var(--ink); color: white;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; transform: translateY(20px);
  transition: all var(--t);
  z-index: 500;
  box-shadow: var(--sh-lg);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); }

.whatsapp-float {
  position: fixed; bottom: 160px; right: 24px;
  width: 54px; height: 54px;
  background: #25D366; color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 500;
  transition: transform var(--t);
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ============================================================
   MOBILE EXPERIENCE — sticky CTAs, bottom nav, compact product
   ============================================================ */

/* ===== Mobile sticky add-to-cart bar (product page) ===== */
.mobile-sticky-cta {
  position: fixed;
  bottom: 56px;  /* sits above the mobile bottom nav */
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 998;
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.mobile-sticky-price { flex: 0 0 auto; line-height: 1.1; min-width: 0; }
.mscta-price-current { font-size: .98rem; font-weight: 800; color: var(--brand-dark, #3D9437); white-space: nowrap; }
.mscta-price-old { font-size: .68rem; color: #94a3b8; text-decoration: line-through; }
.mobile-sticky-actions { display: flex; gap: 6px; flex: 1; justify-content: flex-end; min-width: 0; }
.mobile-sticky-actions > * {
  height: 44px;       /* WCAG min touch */
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: transform .12s, filter .12s;
}
.mobile-sticky-actions > *:active { transform: scale(.96); }
.mscta-btn-wa {
  flex: 0 0 44px;
  width: 44px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  font-size: 1.4rem;
}
.mscta-btn-cart {
  flex: 1 1 0;
  background: #fff;
  color: var(--brand-dark, #3D9437);
  border: 2px solid var(--brand, #52B848) !important;
  padding: 0 8px;
}
.mscta-btn-cart.mscta-success {
  background: var(--brand, #52B848);
  color: #fff;
}
.mscta-btn-buy {
  flex: 1 1 0;
  background: linear-gradient(135deg, var(--brand, #52B848), var(--brand-dark, #3D9437));
  color: #fff !important;
  padding: 0 8px;
  box-shadow: 0 4px 12px rgba(82,184,72,.3);
}
.mscta-btn-soldout {
  flex: 1; background: #94a3b8; color: #fff;
}

/* Add safe space at bottom of product page so content doesn't hide under sticky bars */
@media (max-width: 767.98px) {
  body { padding-bottom: 120px !important; }     /* sticky CTA + bottom nav */
  .container, .container-fluid { padding-left: 12px; padding-right: 12px; }
  /* Tighter product page typography on mobile */
  h1, .h1 { font-size: 1.35rem !important; line-height: 1.25 !important; }
  h2, .h2 { font-size: 1.15rem !important; }
  /* Compact main product image */
  #mainProductImage { max-height: 320px !important; }
  /* Hide the BIG buy buttons since they're duplicated in sticky bar */
  .add-to-cart-form .btn-lg { font-size: .95rem; padding: 10px 12px; }
}

/* ===== Mobile Bottom Nav ===== */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.04);
}
.mobile-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 4px 8px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  transition: color var(--t);
  position: relative;
}
.mobile-nav-item i { font-size: 1.4rem; margin-bottom: 3px; transition: transform .15s; }
.mobile-nav-item.active { color: var(--brand); }
.mobile-nav-item.active i { transform: scale(1.12); }
.mobile-nav-item:hover { color: var(--brand); }
.mobile-nav-item:active i { transform: scale(.95); }
/* Active indicator pill above the icon */
.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--brand);
  border-radius: 0 0 3px 3px;
}
.mobile-cart-badge {
  position: absolute;
  top: 6px; right: calc(50% - 20px);
  background: var(--brand); color: white;
  border-radius: 50%;
  min-width: 18px; height: 18px;
  font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ===== Mobile Search Overlay (full-screen, slides in from top) ===== */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1100; /* above sticky CTA (998) and bottom nav (999) */
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .26s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  -webkit-overflow-scrolling: touch;
}
.mobile-search-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mso-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  z-index: 2;
}
.mso-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface, #f5f7fa);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
}
.mso-close {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
}
.mso-close:active { background: rgba(0,0,0,.06); }
.mso-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  height: 40px;
  font-size: 1rem;
  color: var(--ink);
  padding: 0 4px;
  min-width: 0;
}
.mso-input::placeholder { color: var(--muted); }
.mso-submit {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, transform .1s;
}
.mso-submit:active { transform: scale(.94); }
.mso-suggestions {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0 80px;
}
.mso-suggestions:empty::before {
  content: "";
  display: block;
}
.mso-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f3f5;
  text-decoration: none;
  color: var(--ink);
  min-height: 56px; /* touch target */
  transition: background .12s;
}
.mso-suggestion:active { background: var(--brand-light, #eaf6e7); }
.mso-suggestion img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f7fa;
  flex: 0 0 44px;
}
.mso-s-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mso-s-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mso-s-meta {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}
.mso-s-price {
  font-size: .88rem;
  font-weight: 800;
  color: var(--brand-dark, #3D9437);
  white-space: nowrap;
  flex: 0 0 auto;
}
.mso-empty {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  padding: 40px 20px;
}
/* Lock body scroll when overlay is open */
body.mso-locked { overflow: hidden; }
/* RTL: arrow flips */
body.rtl .mso-close i.bi-arrow-left::before { content: "\f135"; /* bi-arrow-right */ }

/* ===== Barcode Scanner ===== */
.barcode-video-wrapper {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  width: 100%;
  aspect-ratio: 4/3;
}
#barcodeVideo { width: 100%; height: 100%; object-fit: cover; }
.barcode-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.barcode-line { width: 70%; height: 2px; background: var(--brand); box-shadow: 0 0 12px var(--brand); animation: scan 2s linear infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-60px); } 50% { transform: translateY(60px); } }

/* ===== Filters ===== */
.filter-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.filter-section h6 { font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* ===== Pagination ===== */
.pagination .page-link {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  padding: 9px 14px;
  margin: 0 3px;
  border-radius: var(--r) !important;
}
.pagination .page-link:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); }

/* ===== Toast ===== */
.toast { border-radius: var(--r); box-shadow: var(--sh-lg); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .hero-content h1 { font-size: 2rem; }
}
@media (max-width: 767px) {
  html { font-size: 14.5px; }
  .hero-slide { min-height: 320px; }
  .hero-content { padding: 36px 0; }
  .hero-content h1 { font-size: 1.6rem; line-height: 1.2; }
  .hero-content .lead { font-size: .98rem; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .section-title { font-size: 1.25rem; }
  body { padding-bottom: 70px; }
  /* Product pages with sticky CTA need extra room */
  body:has(.mobile-sticky-cta) { padding-bottom: 130px; }
  /* Tighter spacing for product cards on small screens */
  .product-card { border-radius: 12px; }
  .product-card .product-img-wrapper { aspect-ratio: 1/1; }
  .product-card .product-title { font-size: .88rem; line-height: 1.25; }
  .product-card .product-price-current { font-size: 1rem; }
  /* Product page typography */
  .product-title-main { font-size: 1.25rem !important; line-height: 1.25; }
  #mainProductImage { max-height: 320px; object-fit: contain; }
  /* Compact tabs */
  .nav-tabs .nav-link { padding: 8px 10px; font-size: .85rem; }
  /* Section spacing tighter */
  .section { padding: 28px 0; }
  /* Wider tap targets for filters */
  .filter-section { padding: 16px; }
  /* Sticky header height a touch smaller */
  .sticky-header { padding: 8px 0; }
  /* Make all primary buttons at least 44px tall for WCAG */
  .btn-lg, .btn-primary, .btn-success { min-height: 44px; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

/* ===== Bootstrap color overrides ===== */
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.link-primary { color: var(--brand) !important; }
.alert-primary { --bs-alert-bg: var(--brand-light); --bs-alert-color: var(--brand-dark); --bs-alert-border-color: var(--brand-light); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(82,184,72,.15); }
.nav-pills .nav-link.active { background-color: var(--brand); }
.page-link { color: var(--brand); }
.page-link:hover { color: var(--brand-dark); }

/* AI button gradient styles */
.btn-info, .btn-outline-info { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: white; }

/* ===== Backward-compatible class aliases ===== */
.badge-new { background: var(--emerald); color: white; font-size: .68rem; font-weight: 800; padding: 4px 9px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .3px; }
.badge-sale { background: var(--rose); color: white; font-size: .68rem; font-weight: 800; padding: 4px 9px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .3px; }
.badge-promo {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: white;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--r-full);
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
  animation: pulsePromo 2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes pulsePromo {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(220,38,38,.35); }
  50%      { transform: scale(1.04); box-shadow: 0 4px 14px rgba(220,38,38,.55); }
}
.badge-featured { background: linear-gradient(135deg, var(--gold), #3D9437); color: white; font-size: .68rem; font-weight: 800; padding: 4px 9px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .3px; }
.product-price { margin-top: auto; }

/* ===== Utilities ===== */
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-light); color: var(--brand); }
.fw-black { font-weight: 900; }
.fs-7 { font-size: .82rem; }
.fs-8 { font-size: .72rem; }
.rounded-pill-soft { border-radius: var(--r-full); }

/* ============================================================
   RTL (Arabic) layout adjustments
   ============================================================ */
body.rtl { direction: rtl; text-align: right; }
body.rtl .me-1, body.rtl .me-2, body.rtl .me-3 { margin-right:0 !important; }
body.rtl .me-1 { margin-left: .25rem !important; }
body.rtl .me-2 { margin-left: .5rem !important; }
body.rtl .me-3 { margin-left: 1rem !important; }
body.rtl .ms-1, body.rtl .ms-2, body.rtl .ms-3, body.rtl .ms-auto { margin-left:0 !important; }
body.rtl .ms-1 { margin-right: .25rem !important; }
body.rtl .ms-2 { margin-right: .5rem !important; }
body.rtl .ms-3 { margin-right: 1rem !important; }
body.rtl .ms-auto { margin-right: auto !important; }
body.rtl .dropdown-menu { text-align: right; }
body.rtl .breadcrumb { padding-right: 0; }
body.rtl .text-start { text-align: right !important; }
body.rtl .text-end { text-align: left !important; }
body.rtl .float-start { float: right !important; }
body.rtl .float-end { float: left !important; }
body.rtl .header-actions { flex-direction: row-reverse; }
body.rtl .footer-links { padding-right: 0; }
body.rtl .search-input { text-align: right; }

/* ============================================================
   Dynamic Promo Cards (admin-controlled banners)
   ============================================================ */
.promo-card{position:relative;border-radius:18px;overflow:hidden;box-shadow:0 6px 24px rgba(15,42,29,.10);transition:transform .25s ease, box-shadow .25s ease;display:flex;flex-direction:column;justify-content:center;}
.promo-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 60%);pointer-events:none;}
.promo-card:hover{transform:translateY(-3px);box-shadow:0 12px 36px rgba(15,42,29,.18);}
.promo-card.promo-large{min-height:260px;padding:36px;}
.promo-card.promo-small{min-height:135px;padding:24px;}
.promo-card .promo-card-body{position:relative;z-index:2;}
.promo-card .promo-icon{font-size:2.6rem;opacity:.85;margin-bottom:.5rem;}
.promo-card.promo-small .promo-icon{font-size:1.8rem;margin-bottom:.25rem;}
.promo-card .promo-title{font-weight:800;font-size:1.65rem;margin-bottom:.5rem;line-height:1.15;}
.promo-card.promo-small .promo-title{font-size:1.1rem;margin-bottom:.25rem;}
.promo-card .promo-sub{opacity:.88;margin-bottom:1rem;font-size:.95rem;}
.promo-card.promo-small .promo-sub{font-size:.82rem;margin-bottom:.6rem;}
.promo-card .promo-badge{position:absolute;top:14px;right:14px;background:rgba(255,255,255,.92);color:#1f3d2a;font-weight:700;font-size:.72rem;padding:.3rem .65rem;border-radius:999px;z-index:3;letter-spacing:.02em;}
.promo-card .promo-btn{display:inline-flex;align-items:center;gap:.35rem;background:#fff;color:#3D9437;border:none;font-weight:700;padding:.55rem 1.1rem;border-radius:999px;text-decoration:none;font-size:.9rem;transition:transform .15s, box-shadow .15s, background .15s;}
.promo-card.promo-small .promo-btn{padding:.35rem .85rem;font-size:.82rem;}
.promo-card .promo-btn:hover{background:#E8F5E5;color:#3D9437;transform:translateX(2px);box-shadow:0 4px 12px rgba(0,0,0,.12);}
@media(max-width:767px){.promo-card.promo-large{min-height:200px;padding:24px;}.promo-card .promo-title{font-size:1.35rem;}}

/* ============================================================
   SEO/GEO blocks
   ============================================================ */
.quick-answer-card{display:flex;gap:1rem;align-items:flex-start;background:linear-gradient(135deg,#eaf6e7,#f6fbf3);border-left:4px solid #52B848;border-radius:12px;padding:1.1rem 1.2rem;margin-top:1.25rem;}
.quick-answer-card .qa-icon{font-size:1.6rem;color:#52B848;line-height:1;margin-top:.15rem;}
.quick-answer-card .qa-title{font-size:1rem;font-weight:700;color:#1f5b15;margin:0 0 .35rem;text-transform:uppercase;letter-spacing:.5px;}
.quick-answer-card .qa-text{margin:0;color:#274d1f;line-height:1.55;}
.takeaways-section .takeaways-title,.product-faq .faq-title,.compare-section .compare-title{font-size:1.15rem;font-weight:700;color:#1f5b15;margin:1rem 0 .75rem;}
.takeaways-list{list-style:none;padding-left:0;margin:0;}
.takeaways-list li{position:relative;padding:.5rem .25rem .5rem 2rem;border-bottom:1px dashed #d6ead2;}
.takeaways-list li:last-child{border-bottom:0;}
.takeaways-list li::before{content:"✓";position:absolute;left:.4rem;top:.55rem;width:1.2rem;height:1.2rem;display:inline-flex;align-items:center;justify-content:center;background:#52B848;color:#fff;border-radius:50%;font-size:.75rem;font-weight:700;}
.product-faq-accordion .accordion-item{border:1px solid #d6ead2;margin-bottom:.5rem;border-radius:8px !important;overflow:hidden;}
.product-faq-accordion .accordion-button{font-weight:600;color:#1f5b15;background:#f6fbf3;}
.product-faq-accordion .accordion-button:not(.collapsed){background:#e2f1de;color:#1f5b15;box-shadow:none;}
.product-faq-accordion .accordion-button:focus{box-shadow:0 0 0 .2rem rgba(82,184,72,.18);}
.compare-table thead th{background:#52B848;color:#fff;border-color:#3d8c36;}
.compare-table tbody tr:hover{background:#f6fbf3;}
@media (max-width:768px){.quick-answer-card{flex-direction:column;}.takeaways-list li{padding-left:1.6rem;}}
