/* ============================================================
   KURDISTAN SHOP — Design System
   Color tokens per spec: emerald primary, gold accent
   ============================================================ */

:root {
  --color-primary: #0F5C4D;       /* Deep Emerald Green */
  --color-accent: #C9A227;        /* Warm Gold */
  --color-bg: #F8F7F3;            /* Warm Off-White */
  --color-text: #171717;          /* Dark Charcoal */
  --color-text-secondary: #6B6B6B;
  --color-primary-light: #E8F3EF; /* Light Green */
  --color-success: #207D58;  /* darkened for WCAG AA text contrast (was #238B62 at 4.25:1, now 5.08:1) */
  --color-warning: #D99A22;
  --color-error: #C13E3E;  /* darkened for WCAG AA text contrast (was #D64545 at 4.38:1, now 5.22:1) */
  --color-accent-text: #796117;  /* Darker gold, used only where gold is small readable text on a
     tinted background (badges/kickers) — the original brand gold was failing contrast at 2.03:1
     there. The brand gold itself (--color-accent) stays untouched for the logo and larger accents,
     since WCAG explicitly exempts logo/brand-name text from contrast requirements. */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(23,23,23,0.06);
  --shadow-md: 0 4px 16px rgba(23,23,23,0.08);
  --shadow-lg: 0 12px 32px rgba(23,23,23,0.12);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ------------------------------------------------------------
   RTL handling — deliberately scoped to a body class + whitelist,
   NOT the <html dir> attribute. Flipping the whole document via
   dir="rtl" mirrors elements that should stay LTR (numbers, logos,
   embedded widgets) and is hard to undo selectively. Scoping lets
   us opt specific containers into RTL flow instead.
   ------------------------------------------------------------ */
body.lang-ku,
body.lang-ar {
  direction: rtl;
}

body.lang-ku .ltr-only,
body.lang-ar .ltr-only {
  direction: ltr;
  display: inline-block;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--color-accent);
  color: #171717;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23,23,23,0.06);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--color-primary);
  white-space: nowrap;
}
.logo span { color: var(--color-accent); }

.header-search {
  flex: 1;
  max-width: 480px;
}
.header-search input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(23,23,23,0.10);
  background: #fff;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.header-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--color-primary-light); }

/* ------------------------------------------------------------
   Empty / loading / error states
   ------------------------------------------------------------ */
.state-block {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-secondary);
}
.state-block .state-icon { font-size: 40px; margin-bottom: 12px; }

.skeleton {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 90px 20px 100px;
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-bg {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 22s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,162,39,0.14), transparent 45%),
    linear-gradient(180deg, rgba(10,20,17,0.78) 0%, rgba(10,20,17,0.55) 45%, rgba(10,20,17,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  top: 50%;
  inset-inline-end: 6%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 2;
}
.hero-glow-circle {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.5), transparent 70%);
  animation: glowPulse 3.2s ease-in-out infinite;
}
.hero-scene img.hero-float {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(201,162,39,0.35), 0 20px 50px rgba(0,0,0,0.4);
  animation: heroFloat 4.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 900px) {
  .hero-scene { display: none; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-text);
  background: rgba(201,162,39,0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.1s forwards;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}
.hero-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.3s forwards;
}
.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
}
.hero-search input:focus { outline: 3px solid rgba(201,162,39,0.5); }

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}
.hero-actions .btn-accent { box-shadow: 0 8px 24px rgba(201,162,39,0.35); }
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.1); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   Scroll-reveal (generic, used by any section)
   ------------------------------------------------------------ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Categories mega-menu (hover to reveal subcategories)
   ------------------------------------------------------------ */
.categories-nav {
  position: relative;
}
.categories-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.categories-trigger:hover,
.categories-nav.open .categories-trigger {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 600;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.categories-nav.open .mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-list {
  width: 240px;
  padding: 10px;
  border-inline-end: 1px solid rgba(23,23,23,0.06);
  max-height: 420px;
  overflow-y: auto;
}
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}
.mega-menu-item:hover,
.mega-menu-item.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.mega-menu-item .cat-icon { font-size: 18px; }

.mega-menu-panel {
  width: 420px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  align-content: start;
}
.mega-menu-panel .subcat-link {
  padding: 8px 4px;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-radius: 6px;
  transition: color 0.12s ease;
}
.mega-menu-panel .subcat-link:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   Shops carousel (horizontal scroll)
   ------------------------------------------------------------ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 12px;
}
.section-heading h2 { font-size: 20px; margin: 0; }
.scroll-arrows { display: flex; gap: 8px; }
.scroll-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(23,23,23,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.scroll-arrow:hover { background: var(--color-primary-light); }

.shops-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 20px 20px;
  max-width: 1280px;
  margin: 0 auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.shops-scroll::-webkit-scrollbar { display: none; }

.shop-card {
  flex: 0 0 220px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.demo-shop-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
}
.shop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ------------------------------------------------------------
   Filter tabs (Week / Month / Year / Discounts)
   ------------------------------------------------------------ */
.filter-tabs {
  display: flex;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 16px;
  overflow-x: auto;
}
.filter-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid rgba(23,23,23,0.10);
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--color-primary); }
.filter-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .mega-menu { position: fixed; inset: 0; top: 60px; flex-direction: column; border-radius: 0; }
  .mega-menu-list { width: 100%; max-height: 40vh; border-inline-end: none; border-bottom: 1px solid rgba(23,23,23,0.06); }
  .mega-menu-panel { width: 100%; grid-template-columns: 1fr; }
}

/* ============================================================
   HOMEPAGE REDESIGN V2 — story-driven sections
   ============================================================ */

/* ---- shared ---- */
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-kicker.light {
  color: var(--color-accent-text);
  background: rgba(201,162,39,0.14);
}
.story-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.reveal-fade {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: var(--d, 0s);
}

/* ---- 1. HERO V2 ---- */
.hero-v2 {
  position: relative;
  overflow: hidden;
  color: var(--color-text);
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 60px 24px;
  text-align: start;
  background: var(--color-bg);
}
.hero-v2-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-v2-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-24h-grid { height: 260px; }
  .hero-24h-item { height: 120px; }
}
.hero-v2-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(15,92,77,0.2);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-v2-inner h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  margin: 0 0 24px;
  font-weight: 800;
  color: var(--color-text);
}
.hero-v2-search {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 0 20px;
}
.hero-v2-search input {
  flex: 1;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(23,23,23,0.14);
  font-size: 15px;
}
.hero-v2-search input:focus { outline: 3px solid rgba(201,162,39,0.35); }
.hero-v2-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-v2-actions .btn-outline { border-color: rgba(23,23,23,0.2); color: var(--color-text); }
.hero-v2-actions .btn-outline:hover { background: rgba(23,23,23,0.05); }

.hero-24h-grid {
  display: flex;
  gap: 10px;
  height: 400px;
}
.hero-24h-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.hero-24h-col-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
}
.hero-24h-ticker-up { animation: heroTickerUp linear infinite; }
.hero-24h-ticker-down { animation: heroTickerDown linear infinite; }
@keyframes heroTickerUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes heroTickerDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
.hero-24h-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  height: 190px;
  transition: transform .2s ease;
}
.hero-24h-item:hover { transform: translateY(-3px); }
.hero-24h-item img { width: 100%; height: 100%; object-fit: cover; display: block; animation: heroCollageDrift 20s ease-in-out infinite alternate; }
@keyframes heroCollageDrift {
  0%   { transform: scale(1) translate(0, 0); }
  33%  { transform: scale(1.07) translate(-1.5%, -1%); }
  66%  { transform: scale(1.11) translate(1%, -1.8%); }
  100% { transform: scale(1.16) translate(-0.5%, 0.5%); }
}
.hero-24h-badge {
  position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.hero-24h-name {
  position: absolute; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: #fff; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- 2. DISCOVER strip ---- */
.discover {
  max-width: 1280px;
  margin: -36px auto 0;
  padding: 0 20px 20px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.discover-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.discover-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.discover-item h3 { font-size: 15px; margin: 0 0 6px; }
.discover-item p { font-size: 13px; color: var(--color-text-secondary); margin: 0; line-height: 1.5; }

/* ---- 3. CATEGORIES rail ---- */
.categories-rail-section { max-width: 1280px; margin: 0 auto; padding: 48px 20px 20px; }
.categories-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.categories-rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 130px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}
.rail-card.revealed { opacity: 1; transform: translateY(0); }
.rail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rail-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.rail-label { font-size: 12px; font-weight: 600; }

/* ---- 4. Empty panel (products) ---- */
.empty-panel {
  background: #fff;
  border: 1.5px dashed rgba(23,23,23,0.12);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 56px 20px;
}
.empty-panel-icon { font-size: 40px; margin-bottom: 12px; }
.empty-panel h3 { margin: 0 0 6px; font-size: 16px; }
.empty-panel p { margin: 0; font-size: 13px; color: var(--color-text-secondary); }

/* ---- Shops mini strip (top of hero, under header) ---- */
.shops-mini-scroll {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  padding: 6px 0;
  background: #F0B90B;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.shops-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation-name: shopsTicker;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes shopsTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.shop-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.shop-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-chip-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  background: linear-gradient(135deg, var(--color-primary), #0a4238);
}
.shop-chip-name { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---- 6. Compare explainer ---- */
.compare-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.compare-text h2 { font-size: 28px; margin: 0 0 14px; }
.compare-text p { color: var(--color-text-secondary); line-height: 1.6; }
.compare-mock {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.compare-row {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.compare-shop { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.compare-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary-light);
  position: relative;
}
.compare-row.best .compare-bar { background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); }
.compare-price { font-size: 13px; font-weight: 700; text-align: end; }
.compare-badge {
  position: absolute;
  top: -8px;
  inset-inline-start: 78px;
  background: var(--color-accent);
  color: #171717;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.compare-note {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin: 14px 0 0;
  text-align: center;
}
.compare-search-row {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
}
.compare-search-row input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(23,23,23,0.12);
  font-size: 15px;
}

/* ---- 7. AI section ---- */
.ai-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1512 0%, #10241d 60%, var(--color-primary) 100%);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}
.ai-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.28), transparent 70%);
  animation: glowPulse 3.5s ease-in-out infinite;
}
.ai-content { position: relative; z-index: 2; max-width: 620px; margin: 0 auto 32px; }
.ai-content h2 { font-size: clamp(24px, 4vw, 34px); margin: 12px 0; }
.ai-content p { color: rgba(255,255,255,0.82); line-height: 1.6; }
.ai-mock {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: start;
}
.ai-mock-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 10px;
  max-width: 85%;
}
.ai-mock-msg.user {
  background: var(--color-accent);
  color: #171717;
  margin-inline-start: auto;
  border-end-end-radius: 4px;
}
.ai-mock-msg.bot {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-end-start-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-typing { display: inline-flex; gap: 3px; }
.ai-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-accent);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---- 8. Promo banner ---- */
.promo-banner {
  max-width: 1280px;
  margin: 48px auto;
  padding: 56px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-light), #fff);
  border-radius: var(--radius-lg);
}
.promo-banner h2 { font-size: 26px; margin: 0 0 10px; }
.promo-banner p { color: var(--color-text-secondary); margin: 0 0 22px; }

/* ---- Footer ---- */
.site-footer {
  background: #10241d;
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 20px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 13px; margin-top: 10px; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .discover { grid-template-columns: 1fr 1fr; }
  .compare-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .discover { grid-template-columns: 1fr; }
}

/* ---- Form fields (shop registration, etc.) ---- */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--color-text);
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(23,23,23,0.12);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ------------------------------------------------------------
   Wishlist heart button — sits in the corner of a product card
   ------------------------------------------------------------ */
.product-card { position: relative; }
.wishlist-heart-btn {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  z-index: 2;
}
.wishlist-heart-btn.saved { color: var(--color-error, #C13E3E); }
.wishlist-heart-btn:hover { color: var(--color-error, #C13E3E); }

/* Small, unobtrusive Terms link in the header — visible without scrolling to the footer */
.terms-header-link {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.terms-header-link:hover { color: var(--color-primary); text-decoration: underline; }
