/* ============================================================
   WB CLASS BOOK STORE — V3 FLAGSHIP ULTRA-LUXURY REDESIGN
   Aesthetic: 20+ Years Senior Architect × Gen-Z Luxury Studio
   Palette: Deep Space Obsidian Noir × Aurora Emerald Teal × Rose Gold
   Typography: Plus Jakarta Sans · Inter · Noto Sans Bengali
   Depth: 3D Spine Lighting + Ultra-Glassmorphism + Bento Dynamics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens V3 ── */
:root {
  /* ▸ Aurora Teal / Luxury Emerald (Primary Brand) */

  /* ▸ Velvet Obsidian Noir (Dark Foundations) */

  /* ▸ Champagne Luxe Gold & Warm Amber (Ratings & Trust) */
  --gold-700: #b45309;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fcd34d;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  /* ▸ High-Conversion Crimson Coral & Rose Gold (Discounts & Cart Badges) */

  /* ▸ Emerald & Mint Aliases (Trust & Verified) */
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --mint-700: #047857;
  --mint-600: #059669;
  --mint-500: #10b981;
  --mint-400: #34d399;
  --mint-100: #d1fae5;
  --mint-50:  #ecfdf5;

  /* ▸ Slate & Zinc Neutrals (Crisp paper to slate) */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --zinc-950: #09090b;
  --zinc-900: #121316;
  --zinc-800: #1e2024;
  --zinc-700: #2f333a;
  --zinc-600: #4b515d;
  --zinc-500: #6b7280;
  --zinc-400: #9ca3af;
  --zinc-300: #cbd5e1;
  --zinc-200: #e2e8f0;
  --zinc-100: #f1f5f9;
  --zinc-50:  #f8fafc;
  --white:    #ffffff;
  /* ▸ THEME TOKENS — defaults; admin can override (Settings → Appearance) */
  --brand-50:#f5f4fb;
  --brand-100:#e5e4f7;
  --brand-200:#c8c6f1;
  --brand-300:#a39fe3;
  --brand-400:#847ee2;
  --brand-500:#655ee3;
  --brand-600:#4f46e5;
  --brand-700:#372ed5;
  --brand-800:#332bae;
  --brand-900:#2e288e;
  --brand-950:#28246e;
  --coral-50:#fbf7f3;
  --coral-100:#f9ebe1;
  --coral-200:#f6d6c0;
  --coral-300:#eab38d;
  --coral-400:#ed9b61;
  --coral-500:#f48436;
  --coral-600:#f97316;
  --coral-700:#d36213;
  --coral-800:#a75217;
  --coral-900:#834317;
  --coral-950:#613415;
  --noir-950:#080914;
  --noir-900:#0f1226;
  --noir-850:#131731;
  --noir-800:#181c3c;
  --noir-750:#1c2247;
  --noir-700:#222956;
  --noir-600:#2a336b;
  --brand-rgb:79,70,229;
  --accent-rgb:249,115,22;
  --ink-rgb:15,18,38;

  --grad-brand:      linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
  --grad-brand-deep: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  --grad-coral:      linear-gradient(135deg, var(--coral-700) 0%, var(--coral-600) 55%, var(--coral-500) 100%);
  --grad-dark:       linear-gradient(180deg, var(--noir-900) 0%, var(--noir-850) 100%);
  --grad-hero:       linear-gradient(135deg, var(--noir-950) 0%, var(--noir-900) 50%, var(--noir-800) 100%);
  --shadow-brand:    0 8px 24px -4px rgba(var(--brand-rgb), .35), 0 2px 6px -1px rgba(var(--brand-rgb), .18);
  --shadow-coral:    0 8px 24px -4px rgba(var(--accent-rgb), .35);
  --shadow-book-hover: 0 22px 40px -10px rgba(var(--ink-rgb), .28), 0 10px 18px -6px rgba(var(--ink-rgb), .16);


  /* ▸ Semantic Text */
  --text-dark:  #0f172a;
  --text-mid:   #334155;
  --text-soft:  #64748b;
  --text-muted: #94a3b8;

  /* ▸ Borders & Surfaces */
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --border-card:  rgba(226, 232, 240, 0.9);
  --surface:      #ffffff;
  --surface-warm: #fcfcfd;

  /* ▸ Dynamic Gradients */
  --grad-gold:       linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --grad-mint:       linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-card:       linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  --grad-shimmer:    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  --grad-gold-text:  linear-gradient(135deg, #f59e0b 0%, #fcd34d 50%, #d97706 100%);

  /* ▸ Multi-Layered Depth Shadows */
  --shadow-xs:         0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:         0 2px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md:         0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg:         0 12px 20px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl:         0 24px 36px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-2xl:        0 32px 64px -12px rgba(15, 23, 42, 0.2);
  --shadow-gold:       0 8px 24px -4px rgba(245, 158, 11, 0.28);
  --shadow-book:       0 12px 28px -6px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08);

  /* ▸ Radii & Dynamics */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-full: 9999px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:  all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Core Typography ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Top Aura */
body::before {
  content: '';
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(var(--brand-rgb), 0.12) 0%,
    rgba(var(--brand-rgb), 0.05) 45%,
    transparent 100%);
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-500); }

/* ── Layout Containers ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.sticky-col { position: sticky; top: 96px; }

/* ══════════════════════════════════════════════════════════
   TOP ANNOUNCEMENT MARQUEE BAR
   ══════════════════════════════════════════════════════════ */
.top-announcement-bar {
  background: #060913;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--brand-300);
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 8px var(--brand-400);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.announcement-text {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
}
.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
}
.announcement-item strong {
  color: #ffffff;
  font-weight: 700;
}
.announcement-code {
  background: rgba(255, 255, 255, 0.12);
  color: #fcd34d;
  font-family: monospace;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px dashed rgba(252, 211, 77, 0.4);
}

/* ══════════════════════════════════════════════════════════
   HEADER / NAVBAR — Ultra-Glassmorphism Obsidian
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8, 12, 24, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

/* Logo — Dynamic (supports image + text) */
.navbar-logo {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.navbar-logo img.logo-img {
  max-height: 40px; width: auto; border-radius: var(--radius-xs);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.navbar-logo i {
  font-size: 22px;
  color: #fff;
  background: var(--grad-brand);
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-brand);
  transition: transform .25s var(--ease-spring);
}
.navbar-logo:hover i { transform: scale(1.08) rotate(-4deg); }
.logo-text {
  font-size: 1.25rem; font-weight: 900; letter-spacing: -0.035em;
  color: #ffffff;
}
.logo-text span {
  font-weight: 600;
  color: var(--brand-300);
  background: rgba(var(--brand-rgb), 0.14);
  border: 1px solid rgba(129, 140, 248, 0.25);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Search Bar — Pill with Glass Glow & Shortcut */
.navbar-search {
  flex: 1; max-width: 520px;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  height: 44px;
  padding: 3px 6px 3px 18px;
  transition: var(--transition);
  position: relative;
}
.navbar-search:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2), 0 8px 24px rgba(0,0,0,0.3);
}
.navbar-search input {
  flex: 1; border: none; background: transparent;
  font-size: .88rem; font-family: inherit;
  color: rgba(255,255,255,.95); outline: none; height: 100%;
}
.navbar-search input::placeholder { color: rgba(255,255,255,.45); font-weight: 400; }
.search-shortcut {
  font-size: 0.65rem; font-family: inherit; font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 8px;
  pointer-events: none;
}
.navbar-search button {
  background: var(--grad-brand);
  border: none; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(var(--brand-rgb), 0.35);
}
.navbar-search button:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.55);
}

/* Navbar Actions */
.navbar-actions { display: flex; align-items: center; gap: 8px; }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 650; color: rgba(255,255,255,.8);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.09); color: #fff; transform: translateY(-1px); }
.nav-link i { font-size: 1.15rem; color: var(--brand-300); }

/* Cart Button — Pill with glow badge */
.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: .88rem; font-weight: 700;
  transition: var(--transition); cursor: pointer;
}
.cart-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.cart-btn i { font-size: 1.15rem; color: #fff; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--grad-coral);
  color: #fff;
  font-size: .64rem; font-weight: 850;
  min-width: 20px; height: 20px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: var(--shadow-coral);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Language Selector */
.lang-toggle {
  display: flex; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-full); padding: 3px;
}
.lang-toggle a {
  padding: 4px 11px; border-radius: var(--radius-full);
  font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.lang-toggle a.active {
  background: var(--brand-600); color: #ffffff;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.4);
}
.lang-toggle a:hover:not(.active) { color: #fff; }

/* ── Mobile Search Bar ── */
.mobile-search {
  display: none;
  background: var(--noir-900);
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-search form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  height: 42px; padding: 3px 5px 3px 14px;
}
.mobile-search input {
  flex: 1; border: none; background: transparent;
  font-size: .88rem; font-family: inherit;
  color: rgba(255,255,255,.95); outline: none; height: 100%;
}
.mobile-search input::placeholder { color: rgba(255,255,255,.45); }
.mobile-search button {
  background: var(--grad-brand); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION — Floating Glass Dock
   ══════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  padding: 6px 8px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items: center;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; color: var(--zinc-500); text-decoration: none;
  font-size: .68rem; font-weight: 700; flex: 1;
  padding: 6px 0; transition: var(--transition);
  border-radius: var(--radius-sm);
}
.mobile-nav-item i { font-size: 1.4rem; transition: all .25s var(--ease-spring); }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--brand-600); }
.mobile-nav-item.active i { transform: translateY(-3px) scale(1.1); color: var(--brand-600); }
.mobile-cart-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--grad-coral); color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: 2px 5px; border-radius: var(--radius-full); line-height: 1;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.35);
}

/* ══════════════════════════════════════════════════════════
   BANNER CAROUSEL — Cinematic Visuals
   ══════════════════════════════════════════════════════════ */
.banner-carousel {
  position: relative;
  overflow: hidden;
  margin: 24px 24px 0;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.banner-track {
  display: flex;
  transition: transform .55s var(--ease-out);
}
.banner-slide { min-width: 100%; position: relative; }
.banner-slide a { display: block; }
.banner-slide img {
  width: 100%; aspect-ratio: 21/9;
  object-fit: cover; border-radius: var(--radius-2xl);
}
.banner-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}
.banner-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer; transition: all .35s var(--ease-out);
  border: none;
}
.banner-dots .dot.active {
  background: var(--brand-400); width: 28px; border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.7);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION — Cosmic Luxe
   ══════════════════════════════════════════════════════════ */
.hero {
  background: var(--grad-hero);
  padding: 88px 0 80px; position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(var(--brand-rgb), 0.22) 0%, transparent 48%),
              radial-gradient(circle at 15% 75%, rgba(var(--accent-rgb), 0.12) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(var(--brand-rgb), 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.hero-text { max-width: 660px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--brand-rgb), 0.16);
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  color: var(--brand-300);
  font-size: .8rem; font-weight: 750;
  padding: 5px 14px; border-radius: var(--radius-full);
  margin-bottom: 20px; letter-spacing: 0.03em;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.4rem); font-weight: 900;
  color: #ffffff; line-height: 1.12; margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--brand-200) 0%, var(--brand-400) 45%, var(--brand-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem; line-height: 1.7; margin-bottom: 34px;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-features {
  margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap;
}
.hero-features .feat {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.85); font-size: .88rem; font-weight: 650;
}
.hero-features .feat i { font-size: 1.25rem; color: var(--brand-400); }

/* ══════════════════════════════════════════════════════════
   BENTO TRUST STRIP — High-Converting Value Props
   ══════════════════════════════════════════════════════════ */
.trust-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -32px 0 40px;
  position: relative;
  z-index: 10;
}
.trust-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-300);
}
.trust-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
}
.trust-card-icon.blue   { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.trust-card-icon.green  { background: var(--mint-50);  color: var(--mint-600);  border: 1px solid var(--mint-100); }
.trust-card-icon.gold   { background: var(--gold-50);  color: var(--gold-600);  border: 1px solid var(--gold-100); }
.trust-card-icon.coral  { background: var(--coral-50); color: var(--coral-600); border: 1px solid var(--coral-100); }
.trust-card-text strong {
  display: block; font-size: .88rem; font-weight: 800; color: var(--text-dark); line-height: 1.3;
}
.trust-card-text span {
  display: block; font-size: .75rem; color: var(--text-soft); margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   TRUST BENTO — Responsive fixes
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .trust-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: -16px 0 28px;
  }
}
@media (max-width: 600px) {
  .trust-bento {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin: 0 -16px 20px;
    padding: 0 16px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .trust-bento::-webkit-scrollbar { display: none; }
  .trust-card {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 14px 16px;
    gap: 10px;
  }
  .trust-card-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .trust-card-text strong { font-size: .80rem; }
  .trust-card-text span   { font-size: .70rem; }
}

/* ══════════════════════════════════════════════════════════
   FEATURED CATEGORIES SECTION (Main page only)
   ══════════════════════════════════════════════════════════ */
.featured-cats-section {
  padding: 0 0 36px;
}
.featured-cats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.featured-cats-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.featured-cats-sub {
  font-size: .88rem;
  color: var(--text-soft);
  margin: 0;
}
.feat-cat-view-all {
  white-space: nowrap;
  flex-shrink: 0;
}
.featured-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Category tile */
.feat-cat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform .22s var(--ease-out), box-shadow .22s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.feat-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.feat-cat-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.feat-cat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.feat-cat-info {
  flex: 1;
  min-width: 0;
}
.feat-cat-name {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.feat-cat-count {
  display: block;
  font-size: .75rem;
  opacity: .78;
  margin-top: 2px;
}
.feat-cat-arrow {
  font-size: 1.1rem;
  opacity: .65;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}
.feat-cat-tile:hover .feat-cat-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* Color variants */
.feat-cat-blue   { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); color: #fff; border-color: #6366f1; }
.feat-cat-green  { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; border-color: #059669; }
.feat-cat-coral  { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); color: #fff; border-color: #ef4444; }
.feat-cat-gold   { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; border-color: #d97706; }
.feat-cat-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: #fff; border-color: #7c3aed; }
.feat-cat-teal   { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); color: #fff; border-color: #0d9488; }
.feat-cat-rose   { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); color: #fff; border-color: #e11d48; }
.feat-cat-amber  { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #fff; border-color: #f59e0b; }

@media (max-width: 900px) {
  .featured-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .featured-cats-title { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .featured-cats-section { padding: 0 0 22px; }
  .featured-cats-header { margin-bottom: 14px; }
  .featured-cats-title { font-size: 1.1rem; }
  .featured-cats-sub { font-size: .80rem; }
  .featured-cats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .feat-cat-tile { padding: 13px 14px; gap: 10px; }
  .feat-cat-icon-wrap { width: 40px; height: 40px; font-size: 1.25rem; border-radius: 11px; }
  .feat-cat-name { font-size: .82rem; }
  .feat-cat-count { font-size: .70rem; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOOK-CARD TRUST STRIP
   ══════════════════════════════════════════════════════════ */
.book-card-trust-strip {
  display: none; /* hidden on desktop */
}
@media (max-width: 900px) {
  .book-card-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 10px 10px 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    background: rgba(248,250,252,.85);
  }
  .bct-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .69rem;
    font-weight: 600;
    color: var(--text-soft);
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 100px;
    padding: 3px 9px 3px 7px;
    white-space: nowrap;
  }
  .bct-item i {
    font-size: .85rem;
    color: var(--brand-500);
    flex-shrink: 0;
  }
}
@media (max-width: 600px) {
  .book-card-trust-strip {
    gap: 5px 6px;
    padding: 8px 8px 10px;
  }
  .bct-item {
    font-size: .64rem;
    padding: 2px 7px 2px 6px;
  }
  .bct-item i { font-size: .78rem; }
}

/* ══════════════════════════════════════════════════════════
   BUTTONS — Micro-Interactions & Gradients
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 700; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: all .2s var(--ease-out); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn i { font-size: 1.1em; }
.btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%);
  transition: left .4s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow-brand);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px -4px rgba(var(--brand-rgb), 0.45);
}

.btn-coral, .btn-rose {
  background: var(--grad-coral);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow-coral);
}
.btn-coral:hover, .btn-rose:hover {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px -4px rgba(244, 63, 94, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255,255,255,.45); color: #ffffff;
  transform: translateY(-1px);
}

.btn-slate {
  background: var(--white);
  color: var(--zinc-700);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-slate:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-danger { background: var(--coral-600); color: #fff; }
.btn-danger:hover { background: var(--coral-700); color: #fff; transform: translateY(-1px); }

.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 32px; font-size: 1.02rem; border-radius: var(--radius-md); font-weight: 750; }
.btn-block { width: 100%; }

/* Loading spinner */
.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   CATEGORY PILLS & CHIPS
   ══════════════════════════════════════════════════════════ */
.category-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-full);
  background: var(--white); border: 1.5px solid var(--border);
  font-size: .84rem; font-weight: 700; color: var(--zinc-600);
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.cat-pill:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cat-pill.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}
.cat-pill.active:hover { transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   SECTIONS & TOOLBAR
   ══════════════════════════════════════════════════════════ */
.section { padding: 36px 0; }
.section-header {
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-header h1,
.section-header h2 {
  font-size: 1.45rem; font-weight: 900; color: var(--text-dark);
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: .88rem; color: var(--text-soft); margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   FLAGSHIP 3D BOOK CARDS — WooCommerce Flagship Grade
   ══════════════════════════════════════════════════════════ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: transform .32s var(--ease-out), box-shadow .32s ease, border-color .32s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-book);
  position: relative;
}
.book-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-book-hover);
  border-color: rgba(var(--brand-rgb), 0.4);
}

/* 3D Realistic Book Cover */
.book-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1.38;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex; align-items: center; justify-content: center;
}
/* Spine Ridge Effect on Left Edge */
.book-card-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.18) 35%, rgba(0,0,0,0.15) 100%);
  z-index: 3;
  pointer-events: none;
}
.book-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease-out), filter .35s ease;
}
.book-card:hover .book-card-img img {
  transform: scale(1.05);
}

/* Hover Quick View Trigger */
.book-quick-view-btn {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: all .25s var(--ease-out);
  z-index: 4;
  cursor: pointer;
}
.book-card:hover .book-quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.book-quick-view-btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-400);
  color: #fff;
}

/* Badges */
.book-badge {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 4px;
  background: var(--brand-600); color: #fff;
  font-size: .68rem; font-weight: 800;
  padding: 4px 9px; border-radius: var(--radius-xs);
  letter-spacing: .03em;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  z-index: 2;
}
.book-badge-offer {
  background: var(--grad-coral);
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.4);
}
.book-badge-pdf {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8, 12, 24, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: .62rem; font-weight: 750;
  padding: 3px 7px; border-radius: var(--radius-xs);
  z-index: 2;
}

/* Card Body */
.book-card-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.book-card-cat {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--brand-600);
}
.book-card-title {
  font-size: .94rem; font-weight: 800; color: var(--text-dark);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.35; margin: 3px 0;
  transition: color .2s ease;
}
.book-card:hover .book-card-title { color: var(--brand-600); }
.book-card-author {
  font-size: .78rem; color: var(--zinc-500); margin-bottom: 4px;
}

/* Stars / Rating */
.book-card-stars {
  display: flex; align-items: center; gap: 3px;
  font-size: .75rem; color: var(--zinc-500);
  margin-bottom: 4px;
}
.book-card-stars i { font-size: .85rem; }
.book-card-stars i.filled { color: var(--gold-500); }
.book-card-stars span { font-weight: 650; margin-left: 2px; }

/* Pricing */
.book-card-price {
  display: flex; align-items: baseline; gap: 7px;
  margin-top: auto; padding-top: 10px;
}
.book-card-price .price {
  font-size: 1.25rem; font-weight: 900; color: var(--text-dark);
  letter-spacing: -0.03em;
}
.book-card-price .mrp {
  font-size: .78rem; color: var(--zinc-400); text-decoration: line-through;
}
.book-card-price .discount {
  font-size: .74rem; font-weight: 800; color: var(--coral-600);
  background: var(--coral-50); padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--coral-100);
}

/* Card Footer Action */
.book-card-footer {
  padding: 0 16px 16px;
}
.book-card-footer .btn {
  border-radius: var(--radius-sm); font-size: .84rem; font-weight: 750;
}

/* ══════════════════════════════════════════════════════════
   QUICK VIEW MODAL — Interactive Store Preview
   ══════════════════════════════════════════════════════════ */
.qv-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 12, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.qv-modal-overlay.active { opacity: 1; pointer-events: auto; }
.qv-modal-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  max-width: 720px; width: 100%;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform .3s var(--ease-spring);
  display: grid;
  grid-template-columns: 260px 1fr;
}
.qv-modal-overlay.active .qv-modal-card {
  transform: scale(1) translateY(0);
}
.qv-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.06); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; color: var(--zinc-600);
  transition: var(--transition);
}
.qv-modal-close:hover { background: rgba(0,0,0,0.12); color: var(--text-dark); }
.qv-modal-img {
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qv-modal-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.qv-modal-body {
  padding: 32px 28px;
  display: flex; flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
   PROMOTIONAL POPUP BANNER MODAL
   ══════════════════════════════════════════════════════════ */
.promo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}
.promo-popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  cursor: pointer;
}
.promo-popup-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 740px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(18px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.promo-popup-overlay.show .promo-popup-card {
  transform: scale(1) translateY(0);
}
.promo-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.22s var(--ease-spring);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.promo-popup-close:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.1) rotate(90deg);
  border-color: #ffffff;
  color: #ffffff;
}
.promo-popup-img {
  position: relative;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #090d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
}
.promo-popup-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.promo-popup-img img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.promo-popup-img a:hover img {
  transform: scale(1.03);
}
.promo-popup-body {
  padding: 22px 26px 26px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.promo-popup-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.02em;
}
.promo-popup-body .btn {
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 750;
  box-shadow: var(--shadow-brand);
}
@media (max-width: 520px) {
  .promo-popup-card {
    max-width: calc(100vw - 28px);
    border-radius: var(--radius-lg);
  }
  .promo-popup-img, .promo-popup-img img {
    max-height: 240px;
  }
  .promo-popup-body {
    padding: 16px 18px 20px;
    gap: 10px;
  }
  .promo-popup-title {
    font-size: 1.05rem;
  }
}

/* ══════════════════════════════════════════════════════════
   OFFICIAL RAZORPAY PARTNER CARD & TRUST BADGES
   ══════════════════════════════════════════════════════════ */
.razorpay-partner-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  max-width: 440px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}
.razorpay-partner-card:hover {
  border-color: rgba(51, 149, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.rzp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rzp-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.rzp-ssl {
  font-size: 0.72rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rzp-ssl i {
  color: #60a5fa;
}
.rzp-logo-wrap {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.rzp-logo-wrap img {
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.payment-methods-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pay-pill {
  font-size: 0.7rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.pay-pill:hover {
  background: rgba(51, 149, 255, 0.2);
  border-color: rgba(51, 149, 255, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Trust badge for Cart and Book pages */
.rzp-trust-badge {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.rzp-trust-badge:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.rzp-trust-badge .rzp-badge-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.rzp-trust-badge .rzp-badge-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.35;
}
.rzp-trust-badge .rzp-badge-info strong {
  color: var(--text-dark);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

/* ══════════════════════════════════════════════════════════
   BOOK DETAIL PAGE — Ultra Professional Flagship
   ══════════════════════════════════════════════════════════ */
.book-detail {
  display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start;
}
.book-cover-wrap {
  position: sticky; top: 96px;
}
.book-cover-wrap img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.25),
              0 0 0 1px rgba(0,0,0,.05);
  transition: transform .35s var(--ease-out);
}
.book-cover-wrap:hover img {
  transform: scale(1.02);
}

.file-pills {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.file-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--zinc-100); color: var(--zinc-700);
  font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-xs);
  border: 1px solid var(--zinc-200);
}

/* ══════════════════════════════════════════════════════════
   BOOK DETAIL PAGE — Ultra-Luxury Flagship Components
   ══════════════════════════════════════════════════════════ */
.price-box {
  background: #ffffff;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.price-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600, #4f46e5), var(--coral-500, #f97316));
}
.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.big-price {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-dark, #0f172a);
  letter-spacing: -0.035em;
  line-height: 1;
}
.old-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--zinc-400, #9ca3af);
  text-decoration: line-through;
}
.save-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--coral-700, #c2410c);
  background: var(--coral-50, #fff7ed);
  border: 1px solid var(--coral-200, #fed7aa);
  padding: 3px 10px;
  border-radius: var(--radius-full, 99px);
  letter-spacing: 0.02em;
}
.instant-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--emerald-700, #047857);
  background: var(--emerald-50, #ecfdf5);
  border: 1px solid var(--emerald-200, #a7f3d0);
  padding: 4px 10px;
  border-radius: var(--radius-full, 99px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-500, #10b981);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.price-features-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 11px 14px;
  background: var(--slate-50, #f8fafc);
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--slate-200, #e2e8f0);
  font-size: 0.82rem;
  color: var(--text-mid, #334155);
  font-weight: 600;
  margin: 14px 0 20px;
}
.pf-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pf-item i {
  color: var(--brand-600, #4f46e5);
  font-size: 0.95rem;
}
.pf-dot {
  color: var(--slate-300, #cbd5e1);
  user-select: none;
}
.book-action-buttons {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.btn-buy-main {
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 24px;
  letter-spacing: -0.01em;
}
.btn-cart-main {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 20px;
}

/* ── Specifications Bento Grid ────────────────────────────── */
.book-specs-card {
  background: #ffffff;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 6px 24px -6px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.book-specs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600, #4f46e5), #06b6d4, var(--emerald-500, #10b981));
}
.specs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.specs-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.specs-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-50, #f5f4fb);
  color: var(--brand-600, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.specs-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  margin: 0;
  letter-spacing: -0.02em;
}
.specs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--emerald-700, #047857);
  background: var(--emerald-50, #ecfdf5);
  border: 1px solid var(--emerald-200, #a7f3d0);
  padding: 4px 10px;
  border-radius: var(--radius-full, 99px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.book-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--slate-50, #f8fafc);
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.meta-item:hover {
  background: #ffffff;
  border-color: var(--brand-300, #a5b4fc);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(var(--brand-rgb, 79, 70, 229), 0.12);
}
.meta-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}
.meta-item:hover .meta-icon-box {
  transform: scale(1.08) rotate(3deg);
}
.meta-item-cat .meta-icon-box {
  background: rgba(var(--brand-rgb, 79, 70, 229), 0.1);
  color: var(--brand-600, #4f46e5);
  border: 1px solid rgba(var(--brand-rgb, 79, 70, 229), 0.2);
}
.meta-item-format .meta-icon-box {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}
.meta-item-dl .meta-icon-box {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.meta-item-lang .meta-icon-box {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft, #64748b);
  line-height: 1;
}
.meta-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.specs-sub-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line, #e2e8f0);
}
.specs-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mid, #334155);
  background: var(--slate-100, #f1f5f9);
  padding: 5px 11px;
  border-radius: var(--radius-xs, 8px);
  border: 1px solid var(--slate-200, #e2e8f0);
}

/* ── About This Book Luxury Section ───────────────────────── */
.book-about-card {
  background: #ffffff;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 28px;
  box-shadow: 0 6px 24px -6px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  margin-top: 26px;
  position: relative;
  overflow: hidden;
}
.book-about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-600, #4f46e5) 0%, var(--coral-500, #f97316) 100%);
}
.about-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.about-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-brand, linear-gradient(135deg, #4f46e5, #6366f1));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-brand, 0 8px 20px -4px rgba(79, 70, 229, 0.4));
  flex-shrink: 0;
}
.about-heading {
  font-size: 1.38rem;
  font-weight: 900;
  color: var(--text-dark, #0f172a);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.about-subheading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft, #64748b);
  display: block;
  margin-top: 3px;
}
.reading-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-700, #4338ca);
  background: var(--brand-50, #f5f4fb);
  border: 1px solid var(--brand-200, #c7d2fe);
  padding: 5px 12px;
  border-radius: var(--radius-full, 99px);
  letter-spacing: 0.02em;
}
.about-content-body {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  padding: 24px 26px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.about-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-mid, #334155);
  font-family: inherit;
  font-weight: 450;
  word-break: break-word;
}
.about-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.about-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--slate-50, #f8fafc);
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius-sm, 10px);
  transition: all 0.2s ease;
}
.about-perk-item:hover {
  background: #ffffff;
  border-color: var(--brand-200, #c7d2fe);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}
.perk-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(var(--brand-rgb, 79, 70, 229), 0.1);
  color: var(--brand-600, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.perk-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.perk-text strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
}
.perk-text span {
  font-size: 0.74rem;
  color: var(--text-soft, #64748b);
  line-height: 1.4;
}

/* ── Customer Library & Downloads ─────────────────────────── */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.library-card {
  background: #ffffff;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.library-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.library-card-cover {
  width: 76px;
  height: 104px;
  flex-shrink: 0;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.15);
  background: var(--slate-100);
}
.library-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.library-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}
.library-card-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   CART & FORMS
   ══════════════════════════════════════════════════════════ */
.cart-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #ffffff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-table th {
  background: var(--zinc-50);
  font-size: .76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--zinc-600);
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 16px 18px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; color: var(--text-dark);
  outline: none; transition: var(--transition);
}
.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

/* ══════════════════════════════════════════════════════════
   PREMIUM FOOTER — Deep Space Luxury Architecture
   ══════════════════════════════════════════════════════════ */

/* Base layer */
.footer {
  position: relative;
  background: #060913;
  color: rgba(255,255,255,0.7);
  padding: 0;
  margin-top: 70px;
  overflow: hidden;
}
.footer-inner {
  padding: 56px 0 0;
  position: relative;
  z-index: 2;
}

/* ── Animated Gradient Top Border ────────────────────────── */
.footer-gradient-line {
  height: 2px;
  background: linear-gradient(90deg,
    #4f46e5 0%, #7c3aed 20%, #06b6d4 40%,
    #10b981 60%, #f59e0b 80%, #4f46e5 100%);
  background-size: 200% 100%;
  animation: footer-line-flow 5s linear infinite;
}
@keyframes footer-line-flow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Ambient Glow Orbs ───────────────────────────────────── */
.footer-glow-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: footer-orb-pulse 8s ease-in-out infinite;
}
.footer-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,.22) 0%, transparent 70%);
  top: -100px; left: -80px;
  animation-delay: 0s;
}
.footer-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(16,185,129,.16) 0%, transparent 70%);
  bottom: 0; right: 10%;
  animation-delay: 2.5s;
}
.footer-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.13) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: 5s;
}
@keyframes footer-orb-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.15); }
}

/* ── Trust Ribbon ────────────────────────────────────────── */
.footer-trust-ribbon {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ftr-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease;
}
.ftr-trust-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.ftr-trust-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.ftr-trust-blue  { background: rgba(79,70,229,.18);  border: 1px solid rgba(99,102,241,.3);  color: #818cf8; }
.ftr-trust-green { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3);  color: #34d399; }
.ftr-trust-gold  { background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);  color: #fbbf24; }
.ftr-trust-coral { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);   color: #f87171; }
.ftr-trust-text strong {
  display: block; font-size: .88rem; font-weight: 750; color: #fff; line-height: 1.35;
}
.ftr-trust-text span {
  font-size: .74rem; color: rgba(255,255,255,.52); margin-top: 2px; display: block;
}

/* ── Section Divider ─────────────────────────────────────── */
.footer-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 30%, rgba(255,255,255,.1) 70%, transparent 100%);
  margin-bottom: 48px;
  display: none; /* only the trust ribbon border is used */
}

/* ── Main Grid ───────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

/* ── Brand Column ────────────────────────────────────────── */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-img {
  height: 38px; width: auto;
  border-radius: var(--radius-xs);
}
.footer-logo-icon {
  width: 44px; height: 44px;
  background: var(--grad-brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  box-shadow: 0 4px 18px rgba(79,70,229,.45);
  flex-shrink: 0;
}
.footer-logo-text strong {
  display: block;
  font-size: 1.15rem; font-weight: 900; color: #fff;
  letter-spacing: -0.02em; line-height: 1.2;
}
.footer-logo-text small {
  font-size: .73rem; color: rgba(255,255,255,.48); margin-top: 2px; display: block;
}
.footer-brand-desc {
  font-size: .84rem; line-height: 1.7;
  color: rgba(255,255,255,.58);
  margin-bottom: 22px;
  max-width: 360px;
}

/* Live Stats Row */
.footer-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
}
.footer-stat {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
}
.footer-stat strong {
  display: block;
  font-size: 1.15rem; font-weight: 900; color: #fff;
  letter-spacing: -0.02em;
}
.footer-stat span {
  font-size: .70rem; color: rgba(255,255,255,.48);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; display: block;
}
.footer-stat-divider {
  width: 1px; height: 44px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}

/* Razorpay Trust Card */
.footer-rzp-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(10px);
}
.rzp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rzp-verified-tag {
  font-size: .70rem; font-weight: 800;
  color: #34d399;
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 4px;
}
.rzp-ssl-tag {
  font-size: .70rem; font-weight: 700;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 4px;
}
.rzp-logo-row {
  margin-bottom: 12px;
}
.rzp-logo-row img {
  filter: brightness(0) invert(1);
  opacity: .85;
  height: 24px; width: auto;
}
.rzp-pay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pay-logo {
  height: 28px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pay-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* ── Link Columns ────────────────────────────────────────── */
.footer-col-title {
  font-size: .78rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.footer-col-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fcol-blue  { background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,.7); }
.fcol-green { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
.fcol-gold  { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.7); }

.footer-link-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-link-list a {
  color: rgba(255,255,255,.58);
  font-size: .84rem;
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
  padding: 2px 0;
}
.footer-link-list a i {
  font-size: 1rem;
  opacity: .65;
  flex-shrink: 0;
  transition: opacity .18s ease;
}
.footer-link-list a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-link-list a:hover i { opacity: 1; }

/* ── Bottom Bar ──────────────────────────────────────────── */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copyright {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.footer-copyright strong {
  color: rgba(255,255,255,.75);
}
.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fbb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.fbb-badge i { font-size: .82rem; color: #818cf8; }
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom-right a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-bottom-right a:hover { color: #fff; }
.fbb-sep {
  color: rgba(255,255,255,.2);
  font-size: .85rem;
}

/* ── Footer Responsive ───────────────────────────────────── */
@media (max-width: 992px) {
  .footer-trust-ribbon { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-stats-row { max-width: 400px; }
}
@media (max-width: 768px) {
  .footer-inner { padding: 40px 0 0; }
  .footer-trust-ribbon { grid-template-columns: repeat(2,1fr); gap: 10px; padding-bottom: 24px; margin-bottom: 24px; }
  .ftr-trust-item { padding: 12px 14px; gap: 10px; }
  .ftr-trust-icon { width: 38px; height: 38px; font-size: 1.15rem; }
  .ftr-trust-text strong { font-size: .80rem; }
  .ftr-trust-text span   { font-size: .68rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-trust-ribbon { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-col { grid-column: auto; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-right { flex-wrap: wrap; }
}


/* ══════════════════════════════════════════════════════════
   ADMIN BRANDING STUDIO STYLES
   ══════════════════════════════════════════════════════════ */
.brand-studio-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.brand-preview-box {
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 130px;
  position: relative;
  transition: var(--transition);
}
.brand-preview-box.dark {
  background: #080c18;
  border: 1px solid rgba(255,255,255,0.1);
}
.brand-preview-box.light {
  background: #f8fafc;
  border: 1.5px dashed var(--border);
}
.browser-tab-mockup {
  background: #1e293b;
  border-radius: 8px 8px 0 0;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--zinc-50);
}
.upload-dropzone:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

/* ══════════════════════════════════════════════════════════
   TOAST & NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; top: 88px; right: 20px; z-index: 3000;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: .86rem; font-weight: 650; color: var(--text-dark);
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform .35s var(--ease-spring);
}
.toast.show { transform: translateX(0); }
.toast.toast-success { border-left: 4px solid var(--mint-500); }
.toast.toast-error   { border-left: 4px solid var(--coral-500); }

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .hero-text { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-features { justify-content: center; }
  .trust-bento { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .footer-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .book-detail { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-search { display: none; }
  .mobile-search { display: block; }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .trust-bento { grid-template-columns: 1fr; }
  .qv-modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .qv-modal-img { height: 220px; }
}

/* ══════════════════════════════════════════════════════════
   GLOBAL BUTTON SYSTEM (Storefront + Admin)
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
  position: relative;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff !important;
  border-color: rgba(var(--brand-rgb), 0.4);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 24px -4px rgba(var(--brand-rgb), 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--zinc-100);
  color: var(--zinc-800) !important;
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--zinc-200);
  color: var(--text-dark) !important;
}

.btn-slate {
  background: #f1f5f9;
  color: #334155 !important;
  border-color: #cbd5e1;
}
.btn-slate:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--grad-coral);
  color: #ffffff !important;
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-coral);
}
.btn-danger:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(var(--accent-rgb), 0.45);
  color: #ffffff !important;
}

.btn-outline {
  background: transparent;
  color: var(--brand-700) !important;
  border-color: var(--brand-500);
}
.btn-outline:hover {
  background: var(--brand-50);
  color: var(--brand-800) !important;
  border-color: var(--brand-600);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
  gap: 6px;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  gap: 10px;
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL FORM CONTROLS & CARDS
   ══════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 18px;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label, label {
  display: block;
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3.5px rgba(var(--brand-rgb), 0.15);
  background: #ffffff;
}
.form-control::placeholder {
  color: var(--zinc-400);
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
}
.form-hint {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 5px;
}
.form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   BADGES & CHIPS
   ══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-green, .badge-emerald {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-yellow, .badge-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-red, .badge-coral {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-gray {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ══════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}
.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  transition: var(--transition);
}
.pagination a {
  background: #ffffff;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.pagination a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-400);
}
.pagination .current {
  background: var(--brand-600);
  color: #ffffff;
  border: 1px solid var(--brand-600);
  box-shadow: var(--shadow-brand);
}

/* ══════════════════════════════════════════════════════════
   ADMIN LAYOUT & NAVIGATION
   ══════════════════════════════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
  position: relative;
  width: 100%;
}

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--noir-900);
  color: #f8fafc;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar-logo {
  padding: 22px 20px 18px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-sidebar-logo small {
  display: block;
  width: 100%;
  margin-top: 2px;
}

.admin-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.admin-nav::-webkit-scrollbar {
  width: 4px;
}
.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: var(--transition);
}
.admin-nav a .icon {
  font-size: 1.2rem;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: var(--transition);
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.admin-nav a:hover .icon {
  color: var(--brand-400);
}
.admin-nav a.active {
  background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.16) 0%, rgba(var(--brand-rgb), 0.04) 100%);
  color: #ffffff;
  font-weight: 800;
  border-left: 3.5px solid var(--brand-500);
}
.admin-nav a.active .icon {
  color: var(--brand-400);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px 36px 60px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-header h1 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}
.admin-header p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Mobile Admin Topbar */
.admin-topbar-mobile {
  display: none;
}
.admin-sidebar-backdrop {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   ADMIN STAT CARDS & ANALYTICS
   ══════════════════════════════════════════════════════════ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}
.stat-icon.green   { background: #ecfdf5; color: #059669; }
.stat-icon.blue    { background: #eff6ff; color: #2563eb; }
.stat-icon.purple  { background: #f5f3ff; color: #7c3aed; }
.stat-icon.emerald { background: #f0fdfa; color: #0d9488; }
.stat-icon.gold    { background: #fffbeb; color: #d97706; }
.stat-icon.coral   { background: #fff1f2; color: #e11d48; }

.stat-info {
  flex: 1;
  min-width: 0;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
  display: block;
}

/* ══════════════════════════════════════════════════════════
   ADMIN TABLE
   ══════════════════════════════════════════════════════════ */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.88rem;
}
.admin-table th {
  background: #f8fafc;
  color: var(--text-mid);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-dark);
}
.admin-table tbody tr:hover td {
  background: #f8fafc;
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ══════════════════════════════════════════════════════════
   OVERLAY MODALS, MOCKUPS & CARDS
   ══════════════════════════════════════════════════════════ */
.rzp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.rzp-overlay.show {
  opacity: 1;
  visibility: visible;
}
.rzp-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s var(--ease-spring);
}
.rzp-overlay.show .rzp-box {
  transform: translateY(0) scale(1);
}
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row .form-control {
  flex: 1;
}

.browser-tab-mockup {
  background: #0f172a;
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

/* ══════════════════════════════════════════════════════════
   ADMIN RESPONSIVE SYSTEM
   ══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    z-index: 3000;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2999;
    display: none;
  }
  .admin-sidebar-backdrop.open {
    display: block;
  }
  .admin-topbar-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--noir-900);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }
  .admin-menu-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }
  .admin-topbar-brand {
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
  }
  .admin-topbar-store-btn {
    color: var(--brand-400);
    font-size: 1.3rem;
    text-decoration: none;
  }
  .admin-main {
    padding: 24px 18px 48px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .stat-cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }
  .admin-sidebar-close {
    display: block !important;
  }
}




/* ╔══════════════════════════════════════════════════════════════════╗
   ║  V4 — PROFESSIONAL STOREFRONT LAYER (WooCommerce-grade shop UX)  ║
   ║  Fully token-driven: colours/radius/logo size come from Admin →  ║
   ║  Settings → Appearance. Do not hard-code brand colours below.    ║
   ╚══════════════════════════════════════════════════════════════════╝ */
:root {
  --page-bg: #f5f6fa;
  --line: #e6e8f0;
  --card-shadow: 0 1px 2px rgba(var(--ink-rgb), .05), 0 1px 3px rgba(var(--ink-rgb), .04);
  --card-shadow-hover: 0 14px 30px -10px rgba(var(--ink-rgb), .22), 0 4px 10px -4px rgba(var(--ink-rgb), .10);
}
body { background: var(--page-bg); font-size: 15px; }
body::before { display: none; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.25; }
a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }
::selection { background: rgba(var(--brand-rgb), .18); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ── Buttons: flat, confident, no shimmer ── */
.btn::before, .btn:hover::before { display: none !important; }
.btn { border-radius: var(--radius-sm); font-weight: 700; letter-spacing: 0; gap: 8px; transition: background .18s, box-shadow .18s, transform .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--brand-600); color: #fff; border: 1px solid var(--brand-600); box-shadow: 0 1px 2px rgba(var(--ink-rgb), .12), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn-primary:active { transform: translateY(0); }
.btn-slate { background: #fff; color: var(--text-dark); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.btn-slate:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand-700); border: 1.5px solid var(--brand-300); }
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-800); }
.btn-coral { background: var(--coral-600); border: 1px solid var(--coral-600); color: #fff; }
.btn-coral:hover { background: var(--coral-700); color: #fff; }
.btn-icon { padding-left: 0 !important; padding-right: 0 !important; width: 38px; justify-content: center; flex: none; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Announcement bar ── */
.top-announcement-bar { background: var(--noir-950); border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.78); font-size: .78rem; }
.announcement-inner { display: flex; align-items: center; gap: 14px; min-height: 38px; padding: 6px 0; }
.announcement-badge { background: rgba(var(--brand-rgb), .28); color: #fff; border: 1px solid rgba(var(--brand-rgb), .5); padding: 3px 10px; border-radius: var(--radius-full); font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.announcement-text { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.announcement-item i { color: var(--brand-300); margin-right: 3px; }
.announcement-sep { opacity: .35; }
.announcement-code { background: var(--coral-600); color: #fff; padding: 1px 8px; border-radius: 4px; font-weight: 800; letter-spacing: .06em; }
.announcement-mail { color: rgba(255,255,255,.6); font-size: .74rem; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.announcement-mail:hover { color: #fff; }
@media (max-width: 820px) { .announcement-mail, .announcement-sep { display: none; } .announcement-badge { display: none; } .announcement-text { justify-content: center; } }

/* ── Navbar ── */
.navbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); box-shadow: none; position: sticky; top: 0; z-index: 900; }
.navbar-inner { min-height: 72px; gap: 22px; }
.navbar-logo { color: var(--text-dark); gap: 11px; }
.navbar-logo > i { font-size: 1.5rem; color: #fff; background: var(--grad-brand); width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); box-shadow: var(--shadow-brand); }
.navbar-logo:hover > i { transform: none; }
.navbar-logo img.logo-img { height: var(--logo-h, 40px); width: auto; max-width: 240px; object-fit: contain; border-radius: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.12rem; font-weight: 800; color: var(--text-dark); letter-spacing: -.02em; }
.logo-text span { font-size: .68rem; font-weight: 600; color: var(--text-soft); letter-spacing: .02em; margin-top: 2px; background: none; padding: 0; -webkit-text-fill-color: currentColor; }
@media (max-width: 560px) { .logo-text span { display: none; } }
.navbar-search { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; }
.navbar-search:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); background: #fff; }
.navbar-search button { background: var(--brand-600); color: #fff; border-radius: calc(var(--radius-sm) - 3px); }
.navbar-search button:hover { background: var(--brand-700); }
.search-shortcut { border: 1px solid var(--line); background: var(--page-bg); color: var(--text-soft); border-radius: 5px; font-size: .68rem; }
.nav-link { color: var(--text-mid); font-weight: 600; border-radius: var(--radius-sm); }
.nav-link:hover { background: var(--brand-50); color: var(--brand-700); }
.cart-btn { background: #fff; color: var(--text-dark); border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; box-shadow: none; transition: transform .2s, border-color .2s, background .2s; }
.cart-btn:hover { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }
.cart-count { background: var(--coral-600); color: #fff; box-shadow: 0 0 0 2px #fff; }
.lang-toggle { background: var(--page-bg); border: 1px solid var(--line); border-radius: var(--radius-full); }
.lang-toggle a { color: var(--text-soft); font-weight: 700; }
.lang-toggle a.active { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-xs); }

/* ── Sub-navigation (category bar) ── */
.subnav { background: var(--noir-900); border-bottom: 1px solid rgba(255,255,255,.05); }
.subnav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link { color: rgba(255,255,255,.74); font-size: .82rem; font-weight: 600; padding: 12px 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.subnav-link:hover { color: #fff; border-bottom-color: var(--brand-400); background: rgba(255,255,255,.04); }
.subnav-all { background: var(--brand-600); color: #fff; margin-right: 8px; border-radius: 0; }
.subnav-all:hover { background: var(--brand-700); border-bottom-color: transparent; }
.subnav-spacer { flex: 1; }
.subnav-right { color: rgba(255,255,255,.55); font-weight: 500; }
@media (max-width: 720px) { .subnav-right { display: none; } .subnav-link { padding: 11px 12px; } }

/* ── Hero (no-banner fallback) ── */
.hero { background: var(--grad-hero); border-radius: 0; position: relative; overflow: hidden; }
.hero::before { background: radial-gradient(circle at 78% 18%, rgba(var(--brand-rgb), .38) 0%, transparent 46%), radial-gradient(circle at 12% 82%, rgba(var(--accent-rgb), .16) 0%, transparent 42%); }
.hero-eyebrow { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); border-radius: var(--radius-full); }
.hero-text h1 { color: #fff; }
.hero-text h1 span { background: linear-gradient(120deg, var(--brand-300), var(--coral-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { color: rgba(255,255,255,.72); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.hero-features .feat { color: rgba(255,255,255,.8); }
.hero-features .feat i { color: var(--brand-300); }
.banner-carousel { border-radius: 0; }

/* ── Trust strip ── */
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--card-shadow); }
.trust-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: var(--brand-200); }
.trust-card-icon { border-radius: var(--radius-sm); }
.trust-card-icon.blue { background: var(--brand-50); color: var(--brand-600); }
.trust-card-icon.coral { background: var(--coral-50); color: var(--coral-600); }
.trust-card-text strong { color: var(--text-dark); }

/* ── Shop layout ── */
.section.shop { padding-top: 18px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-soft); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb i { font-size: .7rem; opacity: .6; }
.breadcrumb span { color: var(--text-dark); font-weight: 700; }
.shop-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--card-shadow); }
.widget-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dark); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 34px; height: 2px; background: var(--brand-600); border-radius: 2px; }
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: var(--radius-xs); color: var(--text-mid); font-size: .88rem; font-weight: 600; }
.cat-list a em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--text-soft); background: var(--page-bg); padding: 1px 8px; border-radius: var(--radius-full); }
.cat-list a:hover { background: var(--brand-50); color: var(--brand-700); }
.cat-list a.active { background: var(--brand-600); color: #fff; }
.cat-list a.active em { background: rgba(255,255,255,.22); color: #fff; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text-soft); }
.price-range .form-control { padding: 9px 10px; font-size: .84rem; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 600; color: var(--text-mid); margin-bottom: 14px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--brand-600); }
.clear-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: .8rem; font-weight: 700; color: var(--coral-600); }
.widget-help { background: var(--grad-hero); border: 0; color: #fff; text-align: center; padding: 22px 18px; }
.widget-help > i { font-size: 2rem; color: var(--brand-300); }
.widget-help strong { display: block; margin: 6px 0 4px; font-size: .95rem; }
.widget-help p { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.widget-help .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.widget-help .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.shop-toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
.shop-title { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.result-count { font-size: .82rem; color: var(--text-soft); margin-top: 2px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select { width: auto; min-width: 190px; padding: 9px 36px 9px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.filter-toggle { display: none; }
.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 64px 20px; text-align: center; }
.empty-state > i { font-size: 3.4rem; color: var(--brand-300); }
.empty-state h2 { font-size: 1.3rem; margin: 10px 0 6px; }
.empty-state p { color: var(--text-soft); margin-bottom: 20px; }

@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: none; }
  .shop-sidebar.open { display: flex; }
  .filter-toggle { display: inline-flex; }
}

/* ── Product grid & card ── */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; }
@media (max-width: 600px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--brand-200); }
.book-card-img { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--brand-50), var(--page-bg)); overflow: hidden; border-radius: 0; box-shadow: none; }
.book-card-img::before { display: none; }
.book-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.book-card:hover .book-card-img img { transform: scale(1.05); }
.book-badge { border-radius: 6px; font-weight: 800; }
.book-badge-offer { background: var(--coral-600); color: #fff; box-shadow: var(--shadow-coral); }
.book-badge-pdf { background: rgba(var(--ink-rgb), .82); color: #fff; backdrop-filter: blur(6px); border-radius: 6px; }
.book-quick-view-btn { background: rgba(255,255,255,.96); color: var(--text-dark); border: 0; border-radius: var(--radius-full); font-weight: 700; box-shadow: var(--shadow-lg); }
.book-quick-view-btn:hover { background: var(--brand-600); color: #fff; }
.book-card-body { padding: 14px 16px 6px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.book-card-cat { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-600); }
.book-card-title { font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.book-card:hover .book-card-title { color: var(--brand-700); }
.book-card-author { font-size: .8rem; color: var(--text-soft); }
.book-card-stars i { color: var(--zinc-300); font-size: .8rem; }
.book-card-stars i.filled { color: var(--gold-500); }
.book-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 8px; }
.book-card-price .price { font-size: 1.18rem; font-weight: 800; color: var(--text-dark); }
.book-card-price .mrp { font-size: .82rem; color: var(--text-muted); text-decoration: line-through; }
.book-card-price .discount { font-size: .72rem; font-weight: 800; color: var(--coral-700); background: var(--coral-50); padding: 1px 7px; border-radius: 4px; }
.book-card-footer { padding: 12px 16px 16px; border: 0; background: transparent; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn-add { flex: 1; justify-content: center; }
@media (max-width: 600px) { .book-card-body { padding: 10px 12px 4px; } .book-card-footer { padding: 10px 12px 12px; } .btn-add { font-size: .78rem; padding-left: 8px; padding-right: 8px; } }

/* ── Forms, cards, tables ── */
.form-control { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); min-height: 44px; font-size: .92rem; color: var(--text-dark); transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .13); outline: 0; background: #fff; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cart-table th { background: var(--page-bg); color: var(--text-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.alert { border-radius: var(--radius-sm); }
.alert-info { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.pagination a, .pagination span { border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-mid); }
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.pagination .current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.badge-blue { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.toast { border-radius: var(--radius-sm); box-shadow: var(--shadow-xl); }
.qv-modal-card, .promo-popup-card { border-radius: var(--radius-lg); }

/* ── Footer ── */
.footer { background: var(--noir-950); color: rgba(255,255,255,.7); margin-top: 56px; }
.footer-trust-strip, .footer-trust-ribbon { border-color: rgba(255,255,255,.08); }
.trust-icon { background: rgba(var(--brand-rgb), .2); color: var(--brand-300); border-radius: var(--radius-sm); }
.footer-grid h3 { color: #fff; }
.footer-grid ul a { color: rgba(255,255,255,.62); }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ── Mobile bottom navigation ── */
.mobile-bottom-nav { background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--brand-600); }
.mobile-cart-badge { background: var(--coral-600); color: #fff; }

/* ── Admin panel ── */
.admin-layout { background: var(--page-bg); }
.admin-sidebar { background: var(--noir-900); border-right: 1px solid rgba(255,255,255,.05); }
.admin-sidebar-logo { color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-nav a { color: rgba(255,255,255,.66); border-radius: var(--radius-sm); font-weight: 600; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: rgba(var(--brand-rgb), .26); color: #fff; box-shadow: inset 3px 0 0 var(--brand-400); }
.admin-nav a.active .icon, .admin-nav a:hover .icon { color: var(--brand-300); }
.admin-main { background: var(--page-bg); }
.admin-header h1 { color: var(--text-dark); }
.stat-card, .brand-studio-card, .review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--card-shadow); }
.brand-studio-card { padding: 24px; margin-bottom: 22px; }
.stat-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--brand-200); }
.stat-icon { border-radius: var(--radius-sm); }
.stat-icon.green, .stat-icon.blue, .stat-icon.purple { background: var(--brand-50); color: var(--brand-600); }
.stat-icon.coral { background: var(--coral-50); color: var(--coral-600); }
.admin-table { background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.admin-table th { background: #f8f9fc; color: var(--text-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; border-bottom: 1px solid var(--line); }
.admin-table td { border-bottom: 1px solid var(--border-light); }
.admin-table tbody tr:hover td { background: var(--brand-50); }

/* Admin → Appearance studio */
.theme-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.theme-preset { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-full); background: #fff; font-weight: 700; font-size: .82rem; font-family: inherit; color: var(--text-dark); cursor: pointer; transition: all .15s; }
.theme-preset:hover { border-color: var(--brand-400); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.theme-preset .sw { display: inline-flex; }
.theme-preset .sw i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px var(--line); }
.theme-preset .sw i:first-child { margin-left: 0; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 14px; }
@media (max-width: 820px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-fields { display: flex; flex-direction: column; gap: 10px; }
.theme-field { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.theme-field span { flex: 1; font-size: .86rem; font-weight: 600; }
.theme-field input[type=color] { width: 42px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.theme-field code { font-size: .78rem; color: var(--text-soft); min-width: 64px; }
.theme-radios { display: flex; gap: 8px; }
.theme-radios label { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: .84rem; font-weight: 700; cursor: pointer; }
.theme-radios input { accent-color: var(--brand-600); margin-right: 6px; }
.theme-preview { --p: var(--brand-600); --pd: var(--brand-700); --pl: var(--brand-50); --a: var(--coral-600); --i: var(--noir-900); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.tp-bar { background: var(--i); color: #fff; padding: 12px 16px; font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tp-bar span { width: 22px; height: 22px; border-radius: 6px; background: var(--p); }
.tp-body { padding: 16px; display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: #f5f6fa; }
.tp-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .78rem; }
.tp-cover { aspect-ratio: 3/4; border-radius: 6px; background: linear-gradient(150deg, var(--pl), var(--p)); margin-bottom: 8px; }
.tp-price { margin: 4px 0 8px; font-weight: 800; } .tp-price s { color: #9ca3af; font-weight: 500; } .tp-price em { font-style: normal; color: #fff; background: var(--a); border-radius: 4px; padding: 0 5px; font-size: .68rem; }
.tp-btn { display: block; text-align: center; background: var(--p); color: #fff; border-radius: 7px; padding: 7px; font-weight: 700; }
.tp-badge { display: inline-block; background: var(--pl); color: var(--pd); border: 1px solid var(--p); border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 800; }
.tp-body p { font-size: .8rem; color: #6b7280; margin-top: 8px; }

/* V4 fixes: hero secondary button contrast, logo tagline */
.hero .btn-outline, .hero a.btn-outline { color: #fff !important; border-color: rgba(255,255,255,.4) !important; background: rgba(255,255,255,.06); }
.hero .btn-outline:hover { background: rgba(255,255,255,.16); border-color: #fff !important; }
.logo-text span { border: 0 !important; text-decoration: none !important; box-shadow: none !important; }

/* V4 contrast guarantees (beat legacy dark-navbar rules) */
.navbar, .navbar.scrolled { background: rgba(255,255,255,.94) !important; box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(var(--ink-rgb), .25) !important; }
.navbar .nav-link { color: var(--text-mid) !important; }
.navbar .nav-link:hover { color: var(--brand-700) !important; background: var(--brand-50) !important; transform: none; }
.navbar .nav-link i { color: var(--brand-600); }
.navbar .cart-btn { color: var(--text-dark) !important; background: #fff !important; }
.navbar .cart-btn i { color: var(--brand-600); }
.widget-help .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.4) !important; }
.widget-help .btn-outline:hover { background: rgba(255,255,255,.14) !important; }

/* ═══════════════════════════════════════════════════════════
   MISSING COMPONENTS — added to complete the storefront
   ═══════════════════════════════════════════════════════════ */

/* ── Library Grid (My Books page) ─────────────────────────── */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.library-card {
  background: var(--surface-1, #fff);
  border: 1.5px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.library-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.library-card-cover {
  height: 180px;
  overflow: hidden;
  background: var(--brand-50, #eef2ff);
  flex-shrink: 0;
}
.library-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.library-card:hover .library-card-cover img { transform: scale(1.04); }
.library-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}
.library-card-title {
  font-weight: 800;
  font-size: .96rem;
  color: var(--text-dark, #111);
  line-height: 1.3;
  margin-bottom: 4px;
}
.library-card-meta {
  font-size: .78rem;
  color: var(--text-soft, #9ca3af);
}

/* ── Download progress bar ────────────────────────────────── */
.download-progress {
  height: 5px;
  background: var(--brand-100, #e0e7ff);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
}
.download-progress-bar {
  height: 100%;
  background: var(--brand-600, #4f46e5);
  border-radius: 99px;
  transition: width .5s ease;
}

/* ── Cart summary panel ───────────────────────────────────── */
.cart-summary {
  background: var(--surface-1, #fff);
  border: 1.5px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 14px);
  padding: 24px;
}
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #f3f4f6);
  font-size: .9rem;
  color: var(--text-mid, #4b5563);
}
.cart-summary .row:last-of-type { border-bottom: none; }
.cart-summary .total-row {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-dark, #111);
  border-top: 2px solid var(--line, #e5e7eb);
  margin-top: 4px;
  padding-top: 12px;
}

/* ── Glass Panel ──────────────────────────────────────────── */
.glass-panel {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* ── Stars rating ─────────────────────────────────────────── */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: -.05em;
}

/* ── Razorpay partner card ────────────────────────────────── */
.razorpay-partner-card {
  margin-top: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md, 12px);
  padding: 14px 16px;
}
.rzp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rzp-verified-badge {
  font-size: .72rem;
  font-weight: 800;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.rzp-ssl {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
}
.rzp-logo-wrap {
  margin-bottom: 10px;
}
.payment-methods-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pay-pill {
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  padding: 3px 8px;
  letter-spacing: .02em;
}

/* ── Scroll-to-top button ─────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-600, #4f46e5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(79,70,229,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 900;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--brand-700, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.55);
}
/* ══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE OPTIMIZATION ENGINE (All Pages & Views)
   Breakpoints: 992px (Tablet) · 768px (Mobile) · 600px (Phablet) · 400px (Compact)
   ══════════════════════════════════════════════════════════ */

/* ── Tablet / Small Desktop (<= 992px) ── */
@media (max-width: 992px) {
  .book-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .book-cover-wrap {
    position: static;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }
  .book-cover-wrap img {
    max-height: 420px;
    margin: 0 auto;
  }
  .file-pills {
    justify-content: center;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Standard Mobile (<= 768px) ── */
@media (max-width: 768px) {
  /* Global viewport fix */
  html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
  }
  body {
    padding-bottom: 74px; /* Room for floating bottom nav dock */
  }
  .container, .container-sm {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Sticky Top Bar & Announcement */
  .top-announcement-bar {
    font-size: 0.74rem;
  }
  .announcement-inner {
    min-height: 34px;
    padding: 4px 0;
  }
  .announcement-badge {
    display: none;
  }
  .announcement-mail, .announcement-sep {
    display: none;
  }
  .announcement-text {
    justify-content: center;
    text-align: center;
  }

  /* Header & Navigation */
  .navbar-inner {
    min-height: 58px;
    gap: 12px;
  }
  .navbar-search {
    display: none;
  }
  .mobile-search {
    display: block;
    background: #ffffff;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-search form {
    position: relative;
    display: flex;
    align-items: center;
  }
  .mobile-search input {
    width: 100%;
    min-height: 44px;
    font-size: 16px; /* Prevents auto zoom in iOS Safari */
    border: 1.5px solid var(--line);
    border-radius: 99px;
    padding: 10px 48px 10px 18px;
    background: var(--slate-50);
    color: var(--text-dark);
    outline: none;
  }
  .mobile-search input:focus {
    background: #ffffff;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
  }
  .mobile-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-600);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
  }

  /* Horizontal touch-scroll Subnav bar */
  .subnav {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .subnav-inner {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding: 0 4px;
  }
  .subnav-inner::-webkit-scrollbar {
    display: none;
  }
  .subnav-link {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  .subnav-right, .subnav-spacer {
    display: none;
  }

  /* Breadcrumb scrollable on mobile */
  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 14px;
    font-size: 0.78rem;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  /* Floating Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1.5px solid var(--line, #e2e8f0);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 4px 8px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--zinc-500, #64748b);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  .mobile-nav-item i {
    font-size: 1.35rem;
    line-height: 1;
  }
  .mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--brand-600, #4f46e5);
  }
  .mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--coral-600, #ea580c);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 99px;
    line-height: 1;
    border: 2px solid #ffffff;
  }

  /* Book Detail Page Elements */
  .book-specs-card {
    padding: 20px 16px;
  }
  .book-about-card {
    padding: 20px 16px;
  }
  .about-content-body {
    padding: 18px 16px;
  }
  .about-perks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Cart Mobile Table to Cards Transformation */
  .cart-table {
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .cart-table thead {
    display: none;
  }
  .cart-table tbody, .cart-table tr, .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    background: #ffffff;
    border: 1.5px solid var(--line, #e2e8f0);
    border-radius: var(--radius-md, 14px);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
    position: relative;
  }
  .cart-table td {
    padding: 6px 0;
    border: none;
    text-align: left !important;
  }
  .cart-table td:last-child {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--line, #f1f5f9);
    display: flex;
    justify-content: flex-end;
  }

  /* Razorpay Buy Now Overlay / Modal */
  .rzp-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .rzp-box {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px 20px 12px 12px;
    padding: 22px 18px;
    -webkit-overflow-scrolling: touch;
  }

  /* Quick View Modal */
  .qv-modal-card {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
    width: 94%;
  }
  .qv-modal-img {
    height: 200px;
  }

  /* Footer */
  .footer-trust-ribbon, .footer-trust-strip {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 24px 0 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .scroll-to-top {
    bottom: 84px !important;
    right: 16px !important;
  }
}

/* ── Phones (<= 600px) ── */
@media (max-width: 600px) {
  /* Book Details Specifics */
  .book-detail h1 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    margin: 6px 0 4px !important;
  }
  .big-price {
    font-size: 1.9rem;
  }
  .price-box {
    padding: 18px 14px;
  }
  .price-features-strip {
    padding: 9px 12px;
    font-size: 0.76rem;
  }
  .book-action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .book-action-buttons .btn {
    width: 100%;
  }
  .book-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .meta-item {
    padding: 12px 14px;
  }
  .meta-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 10px;
  }
  .meta-value {
    font-size: 0.92rem;
  }
  .about-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .about-heading {
    font-size: 1.18rem;
  }
  .about-icon-pill {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    border-radius: 10px;
  }

  /* Catalog Grid: 2 clean columns */
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .book-card-body {
    padding: 10px 10px 4px !important;
  }
  .book-card-footer {
    padding: 8px 10px 12px !important;
  }
  .book-card-title {
    font-size: 0.84rem !important;
    min-height: 2.5em;
  }
  .book-card-price .price {
    font-size: 1.05rem !important;
  }
  .book-card-price .mrp {
    font-size: 0.74rem !important;
  }
  .book-card-price .discount {
    font-size: 0.68rem !important;
    padding: 1px 5px !important;
  }
  .card-actions .btn {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  /* Customer Library Card */
  .library-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .library-card {
    padding: 14px;
  }
  .library-card-title {
    font-size: 0.95rem;
  }

  /* Form cards */
  .form-card {
    padding: 22px 16px !important;
  }

  /* Shop Toolbar & Controls */
  .shop-toolbar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar-right {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
  }
  .toolbar-right form {
    flex: 1;
  }
  .sort-select {
    width: 100%;
    min-width: 0;
  }
}

/* ── Ultra-Compact Phones (<= 400px) ── */
@media (max-width: 400px) {
  .logo-text strong {
    font-size: 0.95rem;
  }
  .navbar-logo > i {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }
  .big-price {
    font-size: 1.7rem;
  }
  .about-content-body {
    padding: 14px 12px;
  }
}


/* ══════════════════════════════════════════════════════════
   CATEGORY-WISE BOOK ROWS
   ══════════════════════════════════════════════════════════ */

.cat-row-section {
  padding: 28px 0 8px;
  position: relative;
}

/* Header */
.cat-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cat-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-row-pill {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
}
.cat-pill-blue   { background: linear-gradient(90deg,#4f46e5,#6366f1); }
.cat-pill-green  { background: linear-gradient(90deg,#059669,#10b981); }
.cat-pill-coral  { background: linear-gradient(90deg,#ef4444,#f97316); }
.cat-pill-gold   { background: linear-gradient(90deg,#d97706,#f59e0b); }
.cat-pill-purple { background: linear-gradient(90deg,#7c3aed,#8b5cf6); }
.cat-pill-teal   { background: linear-gradient(90deg,#0d9488,#14b8a6); }
.cat-pill-rose   { background: linear-gradient(90deg,#e11d48,#f43f5e); }
.cat-pill-amber  { background: linear-gradient(90deg,#f59e0b,#fbbf24); }

.cat-row-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 0;
}
.cat-row-count {
  font-size: .78rem;
  color: var(--text-soft);
  background: var(--zinc-100);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
}
.cat-row-see-all {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Horizontal scroll track */
.cat-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  position: relative;
}
.cat-scroll-track::-webkit-scrollbar { display: none; }

/* Individual book card */
.cat-book-card {
  flex: 0 0 auto;
  width: 170px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .22s var(--ease-out), box-shadow .22s ease;
  position: relative;
}
.cat-book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cat-book-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--zinc-100);
  overflow: hidden;
}
.cat-book-img a { display: block; width: 100%; height: 100%; }
.cat-book-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.cat-book-card:hover .cat-book-img img { transform: scale(1.05); }
.cat-book-no-cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--zinc-400);
  background: linear-gradient(135deg, var(--zinc-100), var(--zinc-200));
}
.cat-book-badge-off {
  position: absolute;
  top: 8px; left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.cat-book-qv {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(15,23,42,.8);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .2s;
}
.cat-book-card:hover .cat-book-qv {
  opacity: 1;
  transform: scale(1);
}
.cat-book-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-book-title {
  font-size: .80rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.cat-book-title:hover { color: var(--brand-600); }
.cat-book-author {
  font-size: .70rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-book-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 2px 0 6px;
}
.cat-price-main {
  font-size: .92rem;
  font-weight: 800;
  color: var(--brand-600);
}
.cat-price-mrp {
  font-size: .70rem;
  text-decoration: line-through;
  color: var(--text-soft);
}
.cat-add-btn {
  font-size: .72rem !important;
  padding: 6px 10px !important;
  width: 100%;
  justify-content: center;
}

/* "See All" card at end of each row */
.cat-see-all-card {
  flex: 0 0 auto;
  width: 140px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s ease;
}
.cat-see-all-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-see-all-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.15),transparent);
}
.cat-see-all-blue   { background: linear-gradient(135deg,#4f46e5,#6366f1); }
.cat-see-all-green  { background: linear-gradient(135deg,#059669,#10b981); }
.cat-see-all-coral  { background: linear-gradient(135deg,#ef4444,#f97316); }
.cat-see-all-gold   { background: linear-gradient(135deg,#d97706,#f59e0b); }
.cat-see-all-purple { background: linear-gradient(135deg,#7c3aed,#8b5cf6); }
.cat-see-all-teal   { background: linear-gradient(135deg,#0d9488,#14b8a6); }
.cat-see-all-rose   { background: linear-gradient(135deg,#e11d48,#f43f5e); }
.cat-see-all-amber  { background: linear-gradient(135deg,#f59e0b,#fbbf24); }

.cat-see-all-icon { font-size: 2rem; opacity: .9; position: relative; z-index: 1; }
.cat-see-all-card span {
  font-size: .82rem; font-weight: 800;
  position: relative; z-index: 1;
}
.cat-see-all-card small {
  font-size: .68rem; opacity: .8;
  position: relative; z-index: 1;
}

/* Scroll arrow buttons */
.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 10;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.cat-scroll-btn:hover {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 6px 18px rgba(79,70,229,.35);
}
.cat-scroll-left  { left: -18px; }
.cat-scroll-right { right: -18px; }
/* Hide arrows on small screens (touch scroll works) */
@media (max-width: 768px) {
  .cat-scroll-btn { display: none; }
}

/* The section needs relative positioning for arrow buttons */
.cat-row-section .container { position: relative; }

/* ── Banner Interstitials ─────────────────────────────────── */
.cat-banner-interstitial {
  margin: 28px auto;
}
.cat-banner-img-wrap {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-banner-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}
.cat-banner-img-wrap img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .cat-row-title  { font-size: 1.05rem; }
  .cat-book-card  { width: 140px; }
  .cat-see-all-card { width: 110px; }
  .cat-scroll-track { gap: 10px; }
  .cat-banner-img-wrap img { max-height: 120px; }
}
