/* ============================================================
   BOOKMYSPHERE — MASTER DESIGN SYSTEM
   Version: 1.0
   Mobile-First | Conversion-Optimized | Premium Clean
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --primary:      #0F172A;
  --secondary:    #2563EB;
  --accent:       #F97316;
  --bg:           #FFFFFF;
  --text:         #111827;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;
  --border:       #E5E7EB;
  --surface:      #F8FAFC;
  --surface-2:    #F1F5F9;
  --error:        #DC2626;
  --success:      #16A34A;
  --warning:      #D97706;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #0F172A 0%, #1E3A5F 60%, #1D4ED8 100%);
  --grad-accent:  linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  --grad-card:    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(15,23,42,0.85) 100%);

  /* Typography */
  --font-head:    'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     32px;
  --space-2xl:    48px;
  --space-3xl:    64px;

  /* Border Radius */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-card:  0 2px 12px rgba(15,23,42,0.08);
  --shadow-glow:  0 0 24px rgba(37,99,235,0.20);

  /* Transitions */
  --transition:   all 0.20s ease;
  --transition-slow: all 0.35s ease;

  /* Z-index */
  --z-header:     1000;
  --z-modal:      2000;
  --z-toast:      3000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: var(--space-sm); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.25; }
h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}
.section-subtitle { color: var(--text-muted); font-size: 14px; }
.section-header { margin-bottom: var(--space-xl); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 48px; /* Tap target */
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #EA6C00; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: #1E293B; }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 16px 32px; font-size: 16px; min-height: 56px; }
.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  padding: 0;
  min-height: unset;
}
.btn-block { width: 100%; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-secondary { background: var(--secondary); color: #fff; }
.badge-success { background: var(--success); color: #fff; }
.badge-error { background: var(--error); color: #fff; }
.badge-surface { background: var(--surface-2); color: var(--text); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
}
/* Top bar */
.header-topbar {
  background: var(--secondary);
  padding: 6px var(--space-md);
  text-align: center;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}
.header-topbar span { opacity: 0.85; }
.header-topbar strong { opacity: 1; }

/* Main header row */
.header-main {
  padding: 12px 0;
}
.header-main .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-text { color: #fff; }
.logo-text .name { font-family: var(--font-head); font-size: 18px; font-weight: 800; display: block; line-height: 1; }
.logo-text .tagline { font-size: 10px; color: rgba(255,255,255,0.6); display: block; margin-top: 2px; }

/* Search */
.header-search { position: relative; }
.header-search input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,0.50); }
.header-search input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  border-color: var(--secondary);
}
.header-search .search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  padding: 6px;
}
.header-search .search-btn:hover { color: var(--accent); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: 20px;
}
.header-action-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }
.header-action-btn .count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav Categories */
.header-nav {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.header-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav .container::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.nav-link .nav-icon { font-size: 16px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--grad-hero);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-content { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.30);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}
.hero-headline {
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.15;
}
.hero-headline .highlight { color: var(--accent); }
.hero-sub {
  color: rgba(255,255,255,0.70);
  font-size: 17px;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}
.hero-cta-group { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.80);
  font-size: 13px;
  font-weight: 500;
}
.trust-item .t-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Hero image side */
.hero-visual { position: relative; }
.hero-product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.hero-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.20); }
.hero-card-img {
  height: 140px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.hero-card-body { padding: 12px; }
.hero-card-name { color: #fff; font-size: 13px; font-weight: 600; }
.hero-card-price { color: var(--accent); font-size: 14px; font-weight: 700; margin-top: 4px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.view-all-link {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.view-all-link:hover { color: var(--accent); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-section { background: var(--surface); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--surface-2);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-card);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  opacity: 0.15;
}
.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-img { transform: scale(1.05); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}
.category-card-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 56px;
  line-height: 1;
}
.category-card-label {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.category-card-count { color: rgba(255,255,255,0.70); font-size: 12px; }

/* ============================================================
   FLASH DEALS SECTION
   ============================================================ */
.deals-section { background: var(--primary); }
.deals-header { color: #fff; }
.deals-header .section-subtitle { color: rgba(255,255,255,0.60); }
.countdown-strip {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.countdown-label {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
}
.countdown-timer { display: flex; align-items: center; gap: 6px; }
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.countdown-number {
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-head);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  min-width: 52px;
  text-align: center;
  line-height: 1;
}
.countdown-text { font-size: 10px; color: rgba(255,255,255,0.50); margin-top: 4px; text-transform: uppercase; }
.countdown-sep { color: var(--accent); font-weight: 800; font-size: 20px; margin-bottom: 14px; }

/* Deal Cards */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.deal-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.deal-card:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(249,115,22,0.15); transform: translateY(-2px); }
.deal-card-img {
  height: 180px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.deal-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--error);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.deal-card-body { padding: var(--space-md); }
.deal-card-name { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 8px; line-height: 1.4; }
.deal-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-sm); }
.deal-price { color: var(--accent); font-size: 18px; font-weight: 800; }
.deal-mrp { color: rgba(255,255,255,0.40); font-size: 13px; text-decoration: line-through; }
.deal-progress { height: 4px; background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.deal-progress-bar { height: 100%; background: var(--accent); border-radius: 2px; }
.deal-sold-text { color: rgba(255,255,255,0.50); font-size: 11px; }

/* ============================================================
   PRODUCT CARD (General)
   ============================================================ */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}
.product-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-action-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.product-badge-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-body { padding: var(--space-md); }
.product-card-category { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.product-card-name { font-weight: 600; font-size: 14px; line-height: 1.4; margin-bottom: 8px; color: var(--text); }
.product-card-name:hover { color: var(--secondary); }
.stars { color: #F59E0B; font-size: 13px; letter-spacing: 1px; }
.rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.product-mrp { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.product-discount { font-size: 12px; font-weight: 700; color: var(--success); }
.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}
.add-to-cart-btn:hover { background: var(--secondary); }
.add-to-cart-btn.added { background: var(--success); }

/* ============================================================
   AI RECOMMENDATION SECTION
   ============================================================ */
.reco-section { background: var(--surface); }
.reco-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reco-tabs::-webkit-scrollbar { display: none; }
.reco-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}
.reco-tab.active, .reco-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.reco-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.08);
  color: var(--secondary);
  border: 1px solid rgba(37,99,235,0.20);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   TRUST / WHY CHOOSE US
   ============================================================ */
.trust-section { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.trust-card {
  text-align: center;
  padding: var(--space-lg);
}
.trust-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.trust-card:hover .trust-card-icon { background: var(--secondary); border-color: var(--secondary); }
.trust-card-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.trust-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
.insta-section { background: var(--surface); }
.insta-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.insta-icon-wrap {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.insta-post {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.insta-post::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0);
  transition: var(--transition);
}
.insta-post:hover::after { background: rgba(15,23,42,0.40); }
.insta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  color: #fff;
  font-size: 24px;
}
.insta-post:hover .insta-overlay { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.80); padding-top: var(--space-3xl); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { }
.footer-logo { margin-bottom: var(--space-md); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: var(--space-lg); opacity: 0.70; }
.footer-socials { display: flex; gap: var(--space-sm); }
.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-btn:hover { background: var(--secondary); color: #fff; }
.footer-col-title { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: var(--space-md); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13px; transition: var(--transition); opacity: 0.70; }
.footer-link:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-bottom p { font-size: 12px; opacity: 0.50; }
.payment-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payment-badge {
  background: rgba(255,255,255,0.10);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
}

/* ============================================================
   PRODUCT PAGE SPECIFIC
   ============================================================ */
.product-page { padding: var(--space-2xl) 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb .sep { color: var(--border); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* Product Gallery */
.product-gallery { }
.gallery-main {
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  position: relative;
}
.gallery-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-thumbs { display: flex; gap: var(--space-sm); }
.gallery-thumb {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: var(--transition);
  overflow: hidden;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--secondary); }

/* Product Info */
.product-info { }
.product-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}
.product-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.product-stock { font-size: 13px; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 4px; }
.product-stock::before { content: '●'; }
.product-price-block { margin-bottom: var(--space-lg); }
.product-main-price { font-size: 32px; font-weight: 900; color: var(--primary); }
.product-price-details { display: flex; align-items: center; gap: var(--space-sm); margin-top: 4px; }
.product-mrp-tag { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.product-discount-tag {
  background: rgba(22,163,74,0.10);
  color: var(--success);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
}
.gst-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Variants */
.variant-section { margin-bottom: var(--space-lg); }
.variant-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
}
.variant-btn.active, .variant-btn:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(37,99,235,0.06); }

/* Quantity */
.qty-row { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  cursor: pointer;
}
.qty-btn:hover { background: var(--surface); }
.qty-value {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border: none;
  outline: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  padding: 8px 0;
}

.product-cta-group { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.product-cta-group .btn { flex: 1; font-size: 14px; }

/* Highlights */
.product-highlights {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.highlights-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.highlights-list { display: flex; flex-direction: column; gap: 8px; }
.highlight-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.highlight-item::before { content: '✓'; color: var(--success); font-weight: 700; }

/* Delivery info */
.delivery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.delivery-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.delivery-row .d-icon { font-size: 20px; flex-shrink: 0; }
.delivery-row .d-text strong { display: block; font-size: 13px; }
.delivery-row .d-text span { color: var(--text-muted); font-size: 12px; }

/* Tabs (Description, Reviews, FAQ) */
.product-tabs { margin-bottom: var(--space-2xl); }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: var(--space-lg); overflow-x: auto; }
.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}
.tab-btn.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Reviews */
.review-summary {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}
.review-score { text-align: center; }
.review-big-num { font-size: 64px; font-weight: 900; color: var(--primary); line-height: 1; }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.review-bar-track { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.review-bar-fill { height: 100%; background: #F59E0B; border-radius: 3px; }
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.reviewer-date { font-size: 12px; color: var(--text-muted); }
.verified-badge { font-size: 11px; color: var(--success); font-weight: 600; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md) 0;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
}
.faq-answer { padding-bottom: var(--space-md); font-size: 14px; color: var(--text-muted); line-height: 1.7; display: none; }
.faq-answer.open { display: block; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page { padding: var(--space-2xl) 0; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}
.cart-items-list { display: flex; flex-direction: column; gap: var(--space-md); }
.cart-item {
  display: flex;
  gap: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  align-items: flex-start;
}
.cart-item-img {
  width: 90px;
  height: 90px;
  background: var(--surface);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; gap: var(--space-md); }
.cart-item-price { font-weight: 800; font-size: 18px; color: var(--primary); white-space: nowrap; }
.remove-btn { font-size: 12px; color: var(--error); cursor: pointer; }
.remove-btn:hover { text-decoration: underline; }

/* Order Summary Sidebar */
.order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  position: sticky;
  top: 100px;
}
.summary-title { font-weight: 700; font-size: 16px; margin-bottom: var(--space-lg); }
.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.coupon-row input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.coupon-row input:focus { border-color: var(--secondary); }
.price-breakdown { border-top: 1px solid var(--border); padding-top: var(--space-md); margin-bottom: var(--space-md); }
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 10px; }
.price-row.total { font-weight: 800; font-size: 18px; border-top: 2px solid var(--border); padding-top: var(--space-md); margin-top: var(--space-sm); }
.price-row .savings { color: var(--success); font-weight: 700; }
.checkout-trust { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-md); }
.checkout-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.cart-upsell { margin-top: var(--space-xl); }
.cart-upsell-title { font-weight: 700; font-size: 15px; margin-bottom: var(--space-md); }
.cart-upsell-scroll { display: flex; gap: var(--space-md); overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cart-upsell-scroll::-webkit-scrollbar { display: none; }
.upsell-card {
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  flex-shrink: 0;
}
.upsell-card-img { width: 100%; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius-md); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.upsell-card-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.upsell-card-price { font-size: 13px; font-weight: 800; color: var(--accent); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-page { padding: var(--space-2xl) 0; background: var(--surface); min-height: 100vh; }
.checkout-header {
  background: var(--primary);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-xl);
}
.checkout-header .container { display: flex; align-items: center; justify-content: space-between; }
.checkout-secure { color: rgba(255,255,255,0.70); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: start;
}
.checkout-form-section {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}
.checkout-section-title { font-weight: 700; font-size: 16px; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.payment-methods { display: flex; flex-direction: column; gap: var(--space-sm); }
.payment-method-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.payment-method-option:hover, .payment-method-option.selected { border-color: var(--secondary); background: rgba(37,99,235,0.04); }
.payment-method-option input[type="radio"] { width: 18px; height: 18px; }
.pm-info .pm-name { font-weight: 600; font-size: 14px; }
.pm-info .pm-desc { font-size: 12px; color: var(--text-muted); }
.pm-icon { margin-left: auto; font-size: 22px; }

/* Checkout Order Summary */
.checkout-summary {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  position: sticky;
  top: 24px;
}

/* ============================================================
   COMPARE / AFFILIATE PAGE
   ============================================================ */
.compare-page { padding: var(--space-2xl) 0; }
.compare-hero {
  background: var(--grad-hero);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  text-align: center;
  color: #fff;
}
.compare-table-wrap { overflow-x: auto; margin-bottom: var(--space-2xl); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.compare-table th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
}
.compare-table th:first-child { background: var(--primary); text-align: left; }
.compare-table td:first-child { font-weight: 600; color: var(--text-muted); background: var(--surface); }
.compare-table tr:nth-child(even) td { background: var(--surface); }
.compare-table .winner { color: var(--success); font-weight: 700; }
.compare-table .check { color: var(--success); font-size: 18px; }
.compare-table .cross { color: var(--error); font-size: 18px; }
.affiliate-deals { margin-top: var(--space-xl); }
.affiliate-deal-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  background: var(--bg);
  transition: var(--transition);
}
.affiliate-deal-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.aff-img { width: 100px; height: 100px; background: var(--surface); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 48px; flex-shrink: 0; }
.aff-details { flex: 1; }
.aff-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.aff-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.aff-price { font-size: 22px; font-weight: 900; color: var(--primary); }
.aff-mrp { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.aff-save { color: var(--success); font-size: 13px; font-weight: 700; }
.aff-action { flex-shrink: 0; }
.aff-platform { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }

/* ============================================================
   MOBILE NAV BAR (Bottom)
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: var(--z-header);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-nav-items { display: flex; justify-content: space-around; align-items: center; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.mobile-nav-item .nav-ico { font-size: 22px; }
.mobile-nav-item.active { color: var(--secondary); }
.mobile-nav-item .m-badge {
  position: absolute;
  top: 0;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }
.toast.out { animation: toastOut 0.3s ease forwards; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: var(--space-lg) 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.shimmer {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  display: none;
}
