/* ==========================================================================
   MasterBookstores.com - Flagship Design System & Stylesheet
   ========================================================================== */

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

:root {
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', serif;

  /* Default Dark Mode Theme (Midnight Luxury) */
  --bg-page: #0A0E17;
  --bg-surface: #121824;
  --bg-surface-elevated: #1A2232;
  --bg-accent-soft: #242D40;
  --bg-card: #141C2B;
  --bg-dark-section: #070B12;
  --bg-dark-card: #0F1622;

  --text-primary: #F1F4F9;
  --text-secondary: #9DA9BE;
  --text-muted: #64738B;
  --text-inverse: #0A0E17;
  --text-inverse-muted: #525D73;

  --gold-primary: #C59738;
  --gold-hover: #B28325;
  --gold-light: rgba(197, 151, 56, 0.15);
  --gold-gradient: linear-gradient(135deg, #DFB758 0%, #B8860B 100%);
  --gold-border: rgba(197, 151, 56, 0.35);

  --accent-emerald: #10B981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);
  --accent-ruby: #EF4444;
  --accent-ruby-soft: rgba(239, 68, 68, 0.15);
  --accent-indigo: #4F46E5;

  --border-light: #263347;
  --border-subtle: #1C2738;
  --border-focus: #DFB758;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-book: -8px 12px 24px rgba(0, 0, 0, 0.45), -2px 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-book-hover: -14px 20px 32px rgba(0, 0, 0, 0.6), -3px 8px 16px rgba(0, 0, 0, 0.4);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 80px;
  --announcement-height: 40px;
}

/* Explicit Dark Mode enforcement */
body.dark-mode {
  --bg-page: #0A0E17;
  --bg-surface: #121824;
  --bg-surface-elevated: #1A2232;
  --bg-accent-soft: #242D40;
  --bg-card: #141C2B;
  --bg-dark-section: #070B12;
  --bg-dark-card: #0F1622;

  --text-primary: #F1F4F9;
  --text-secondary: #9DA9BE;
  --text-muted: #64738B;
  --text-inverse: #0A0E17;
  --text-inverse-muted: #525D73;

  --border-light: #263347;
  --border-subtle: #1C2738;
  --gold-light: rgba(197, 151, 56, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Warm Parchment Light Mode (when user toggles) */
body.light-mode {
  --bg-page: #FDFBF7;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8F5EE;
  --bg-accent-soft: #F4EBD9;
  --bg-card: #FFFFFF;
  --bg-dark-section: #0D131D;
  --bg-dark-card: #151D2A;

  --text-primary: #191E28;
  --text-secondary: #525D73;
  --text-muted: #8591A5;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #A0ABC0;

  --gold-primary: #C59738;
  --gold-hover: #B28325;
  --gold-light: #F9F1DC;
  --border-light: #E7E2D7;
  --border-subtle: #EFEBE3;
  --border-focus: #C59738;

  --shadow-sm: 0 2px 8px rgba(20, 24, 33, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 24, 33, 0.08), 0 2px 6px rgba(20, 24, 33, 0.04);
  --shadow-lg: 0 16px 40px rgba(20, 24, 33, 0.12), 0 4px 12px rgba(20, 24, 33, 0.06);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  transition: all var(--transition-fast);
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 88px 0;
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  background: var(--gold-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.65;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: var(--bg-dark-section);
  color: #F8F5EE;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 24px;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(223, 183, 88, 0.25);
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-pill {
  background: var(--gold-gradient);
  color: #0F141C;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.announcement-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.announcement-link {
  color: #DFB758;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

body.dark-mode .site-header {
  background: rgba(10, 14, 23, 0.92);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-crest {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F141C;
  box-shadow: 0 4px 12px rgba(197, 151, 56, 0.3);
  position: relative;
  overflow: hidden;
}

.logo-crest::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-tld {
  color: var(--gold-primary);
  font-style: italic;
  font-weight: 700;
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Search Bar in Header */
.header-search-wrap {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.search-input-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: left;
  transition: all var(--transition-fast);
}

.search-input-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.search-input-btn kbd {
  margin-left: auto;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  background: var(--border-light);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--gold-primary);
  color: #0F141C;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.cart-btn-label {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 40px 0 70px;
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(223, 183, 88, 0.12) 0%, rgba(20, 89, 66, 0.04) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: var(--gold-hover);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-headline .serif-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #0F141C;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(197, 151, 56, 0.28);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(197, 151, 56, 0.4);
  color: #000;
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

/* Hero Trust Stats */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-light);
}

/* Hero Showcase Card */
.hero-visual-card {
  position: relative;
}

.hero-main-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-light);
}

.hero-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.hero-main-frame:hover img {
  transform: scale(1.06);
}

.hero-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 29, 0.1) 0%, rgba(13, 19, 29, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}

.frame-badge {
  background: rgba(223, 183, 88, 0.95);
  color: #0D131D;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.frame-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.frame-subtitle {
  font-size: 0.86rem;
  opacity: 0.9;
}

/* WhatsApp CTA Button on Left Column */
.hero-whatsapp-cta-wrap {
  margin-top: 20px;
  width: 100%;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: all var(--transition-fast);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #28E770 0%, #1FAF62 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  color: #FFFFFF !important;
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Floating Book Mini-Badge */
.floating-book-badge {
  position: absolute;
  bottom: -24px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-hover);
  font-size: 1.3rem;
}

.floating-text-wrap {
  display: flex;
  flex-direction: column;
}

.floating-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.floating-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Trust / Value Props Strip
   ========================================================================== */
.features-strip {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 30px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Category Filter & Catalog Showcase
   ========================================================================== */
.catalog-section {
  position: relative;
}

.catalog-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: fit-content;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #0F141C;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(197, 151, 56, 0.25);
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

/* Book Card */
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}

/* Book Image Container */
.book-card-visual {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  padding: 24px 24px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.book-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-dark-section);
  color: #DFB758;
  border: 1px solid rgba(223, 183, 88, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.book-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 2;
  transition: all var(--transition-fast);
}

body.dark-mode .book-wishlist-btn {
  background: rgba(20, 28, 43, 0.9);
}

.book-wishlist-btn:hover,
.book-wishlist-btn.active {
  color: var(--accent-ruby);
  transform: scale(1.1);
}

.book-wishlist-btn.active svg {
  fill: currentColor;
}

/* 3D Realistic Book Artwork Wrapper */
.book-cover-3d {
  width: 175px;
  height: 250px;
  position: relative;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow-book);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  overflow: hidden;
  background: #111;
}

.book-card:hover .book-cover-3d {
  transform: rotateY(-8deg) rotateX(4deg) translateY(-4px);
  box-shadow: var(--shadow-book-hover);
}

/* Simulated Spine Sheen */
.book-cover-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.book-cover-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover Quick-View trigger on image */
.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 29, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 3;
}

.book-card-visual:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-pill-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.book-card-visual:hover .quick-view-pill-btn {
  transform: translateY(0);
}

.quick-view-pill-btn:hover {
  background: var(--gold-gradient);
  color: #0F141C;
  border-color: transparent;
}

/* Book Details */
.book-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-genre-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.book-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.book-card-author {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.book-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.star-rating {
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 2px;
}

.review-count {
  color: var(--text-muted);
}

.book-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.book-current-price {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.book-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.book-discount-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-ruby);
  background: var(--accent-ruby-soft);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.book-add-bag-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.book-add-bag-btn:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #0F141C;
  box-shadow: 0 4px 14px rgba(197, 151, 56, 0.25);
}

/* ==========================================================================
   Editorial Spotlight Section ("Book of the Month")
   ========================================================================== */
.spotlight-section {
  background: var(--bg-dark-section);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.spotlight-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 151, 56, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.spotlight-cover-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.spotlight-cover-3d {
  width: 270px;
  height: 380px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), -10px 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.spotlight-cover-3d:hover {
  transform: rotate(0deg) scale(1.03);
}

.spotlight-cover-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-limited-seal {
  position: absolute;
  bottom: -15px;
  right: 15%;
  width: 80px;
  height: 80px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0D131D;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border: 3px solid #0D131D;
}

.spotlight-content {
  position: relative;
  z-index: 1;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(223, 183, 88, 0.15);
  border: 1px solid rgba(223, 183, 88, 0.4);
  color: #DFB758;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 8px;
}

.spotlight-author-credit {
  font-size: 1.1rem;
  color: #DFB758;
  margin-bottom: 20px;
  font-weight: 600;
}

.spotlight-synopsis {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 24px;
}

.spotlight-critique-quote {
  border-left: 3px solid #DFB758;
  padding-left: 18px;
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: #E2E8F0;
}

.quote-source {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  color: #94A3B8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-meta-specs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.06em;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: #F8FAFC;
}

.spotlight-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.spotlight-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spotlight-current-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #DFB758;
}

.spotlight-old-price {
  font-size: 1.1rem;
  color: #64748B;
  text-decoration: line-through;
}

/* ==========================================================================
   Interactive Book Matchmaker / Reading Quiz
   ========================================================================== */
.quiz-section {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.quiz-card-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}

.quiz-step-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.quiz-choice-btn {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
}

.quiz-choice-btn:hover {
  border-color: var(--gold-primary);
  background: var(--bg-surface);
}

.quiz-choice-btn.selected {
  border-color: var(--gold-primary);
  background: var(--gold-light);
}

.choice-emoji {
  font-size: 1.5rem;
}

.choice-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.choice-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.quiz-recommendation-box {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  animation: fadeIn 0.4s ease;
}

.quiz-recommendation-box.active {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.rec-cover-thumb {
  width: 90px;
  height: 125px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  flex-shrink: 0;
}

.rec-details-wrap {
  flex: 1;
}

.rec-reason-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.rec-book-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rec-book-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ==========================================================================
   Indian Literature & Vernacular Heritage Spotlight
   ========================================================================== */
.heritage-strip {
  background: linear-gradient(135deg, #1C110A 0%, #2A170F 50%, #150B07 100%);
  color: #F8F5EE;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(223, 183, 88, 0.3);
  border-bottom: 1px solid rgba(223, 183, 88, 0.3);
}

.heritage-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(223, 183, 88, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.heritage-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.heritage-text-col {
  max-width: 600px;
}

.heritage-tag {
  color: #DFB758;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.heritage-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.heritage-desc {
  font-size: 0.98rem;
  color: #D1C5B5;
  line-height: 1.6;
  margin-bottom: 20px;
}

.language-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 183, 88, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E6DFD5;
  transition: all var(--transition-fast);
}

.lang-pill:hover {
  background: #DFB758;
  color: #1C110A;
  border-color: #DFB758;
}

/* ==========================================================================
   Reader Reviews & Testimonials
   ========================================================================== */
.testimonials-section {
  position: relative;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-border);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-stars {
  color: #F59E0B;
}

.verified-buyer-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #10B981;
  font-weight: 700;
}

.review-body-text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 20px;
  flex: 1;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.reviewer-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.reviewer-location {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Pan-India Pincode Delivery Estimator Strip
   ========================================================================== */
.pincode-strip {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}

.pincode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.pincode-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pincode-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pincode-heading {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.pincode-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pincode-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 440px;
}

.pincode-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.pincode-input:focus {
  border-color: var(--gold-primary);
}

.pincode-result {
  width: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 8px;
  display: none;
}

.pincode-result.success {
  display: block;
  color: #10B981;
}

.pincode-result.error {
  display: block;
  color: var(--accent-ruby);
}

/* ==========================================================================
   Newsletter & Master Literary Circle Club
   ========================================================================== */
.newsletter-section {
  padding: 80px 0;
  position: relative;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--bg-dark-section) 0%, #172132 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(223, 183, 88, 0.3);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.newsletter-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(223, 183, 88, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F141C;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(223, 183, 88, 0.4);
}

.newsletter-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-sub {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #FFFFFF;
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(8px);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  border-color: #DFB758;
  background: rgba(255, 255, 255, 0.16);
}

.newsletter-feedback {
  font-size: 0.88rem;
  margin-top: 14px;
  font-weight: 600;
  color: #DFB758;
  display: none;
}

.newsletter-feedback.active {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark-section);
  color: #E2E8F0;
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-col {
  padding-right: 24px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gold-gradient);
  color: #0F141C;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #DFB758;
  padding-left: 4px;
}

.footer-payment-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.payment-label {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 600;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: 0.05em;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: #DFB758;
}

/* ==========================================================================
   Modals & Slide-Over Drawers
   ========================================================================== */

/* Cart Slide-Over Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.cart-free-shipping-bar {
  padding: 12px 24px;
  background: var(--gold-light);
  border-bottom: 1px solid var(--gold-border);
}

.free-shipping-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-hover);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(197, 151, 56, 0.25);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.empty-cart-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-cart-state svg {
  width: 60px;
  height: 60px;
  stroke: var(--text-muted);
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 65px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.cart-item-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-primary);
}

.qty-btn:hover {
  background: var(--border-light);
}

.qty-val {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.remove-item-btn {
  font-size: 0.78rem;
  color: var(--accent-ruby);
  text-decoration: underline;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.cart-promo-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.promo-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-summary-line.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  color: #0F141C;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(197, 151, 56, 0.3);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 151, 56, 0.45);
}

/* Quick View Book Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(8px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--gold-light);
  color: var(--gold-hover);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 36px;
}

.modal-book-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-book-thumb {
  width: 220px;
  height: 310px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-book-hover);
  object-fit: cover;
  margin-bottom: 20px;
}

.modal-book-info {
  display: flex;
  flex-direction: column;
}

.modal-badge {
  align-self: flex-start;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.modal-author {
  font-size: 1rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-synopsis {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.85rem;
}

/* Sample Reader Tab Inside Modal */
.modal-sample-box {
  border-top: 1px dashed var(--border-light);
  padding-top: 18px;
  margin-top: 12px;
}

.sample-toggle-btn {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sample-excerpt-text {
  display: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.sample-excerpt-text.open {
  display: block;
}

/* Global Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(8px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

.search-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.15rem;
  background: transparent;
  color: var(--text-primary);
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-elevated);
}

.search-result-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.search-item-info {
  flex: 1;
}

.search-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-item-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-dark-section);
  color: #FFFFFF;
  border: 1px solid rgba(223, 183, 88, 0.4);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards, toastOut 0.3s 3.2s forwards;
}

@keyframes toastIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateY(20px); opacity: 0; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .spotlight-cover-container {
    margin-bottom: 20px;
  }

  .spotlight-critique-quote {
    border-left: none;
    border-top: 2px solid #DFB758;
    padding-left: 0;
    padding-top: 14px;
  }

  .spotlight-meta-specs,
  .spotlight-action-row {
    justify-content: center;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 14px;
  }

  .section-padding {
    padding: 56px 0;
  }

  /* Announcement Bar Mobile */
  .announcement-bar {
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .announcement-content {
    justify-content: center;
    text-align: center;
  }

  .announcement-text {
    justify-content: center;
    text-align: center;
    font-size: 0.74rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  .promo-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .announcement-links {
    display: none;
  }

  /* Header Container Mobile */
  .header-container {
    height: var(--header-height);
    gap: 8px;
    padding: 0;
  }

  .brand-logo {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .logo-crest {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .logo-crest svg {
    width: 18px;
    height: 18px;
  }

  .logo-name {
    font-size: 0.98rem;
    white-space: nowrap;
    line-height: 1.1;
  }

  .logo-sub {
    display: none;
  }

  .desktop-nav,
  .header-search-wrap {
    display: none;
  }

  /* Header Action Controls Mobile (Strictly bounded, no overflow) */
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }

  .icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .badge-count {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: -3px;
    right: -3px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 20px 0 36px;
    overflow: hidden;
  }

  .hero-backdrop-glow {
    width: 100%;
    max-width: 100vw;
  }

  .hero-badge-pill {
    font-size: 0.75rem;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.92rem;
  }

  .hero-stats-row {
    gap: 10px;
    justify-content: space-between;
    padding-top: 16px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-divider {
    height: 28px;
  }

  .hero-main-frame {
    aspect-ratio: 16 / 11;
  }

  .floating-book-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
    transform: none !important;
    animation: none;
    padding: 12px 14px;
    gap: 10px;
  }

  /* Features Strip Mobile */
  .features-strip {
    padding: 24px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-box {
    gap: 12px;
  }

  .feature-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .feature-title {
    font-size: 0.9rem;
  }

  .feature-caption {
    font-size: 0.76rem;
  }

  /* Catalog & Category Bar Mobile */
  .catalog-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  .category-filter-bar {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .book-card-visual {
    padding: 20px 16px 8px;
  }

  .book-cover-3d {
    width: 150px;
    height: 215px;
  }

  /* Spotlight Book of Month Mobile */
  .spotlight-section {
    padding: 50px 0;
  }

  .spotlight-cover-container {
    position: relative;
    margin-bottom: 20px;
  }

  .spotlight-cover-3d {
    width: 185px;
    height: 260px;
    transform: none;
  }

  .spotlight-limited-seal {
    width: 60px;
    height: 60px;
    font-size: 0.55rem;
    right: 8%;
    bottom: -10px;
  }

  .spotlight-title {
    font-size: 1.85rem;
  }

  .spotlight-author-credit {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .spotlight-synopsis {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .spotlight-critique-quote {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .spotlight-meta-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    margin-bottom: 22px;
  }

  .spotlight-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .spotlight-action-row .btn-primary,
  .spotlight-action-row .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Matchmaker Quiz Mobile */
  .quiz-card-container {
    padding: 20px 14px;
  }

  .quiz-step-title {
    font-size: 1.2rem;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .quiz-choice-btn {
    padding: 12px 14px;
  }

  .quiz-recommendation-box.active {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }

  .rec-details-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Heritage Strip Mobile */
  .heritage-strip {
    padding: 40px 0;
  }

  .heritage-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .heritage-heading {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .heritage-desc {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .language-pills-row {
    gap: 6px;
  }

  .lang-pill {
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  .heritage-container .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* Reviews Grid Mobile */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    padding: 20px 16px;
  }

  .review-body-text {
    font-size: 0.95rem;
  }

  /* Pincode Estimator Mobile */
  .pincode-card {
    padding: 18px 14px;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .pincode-info {
    gap: 12px;
  }

  .pincode-icon {
    width: 42px;
    height: 42px;
  }

  .pincode-heading {
    font-size: 0.98rem;
  }

  .pincode-form {
    max-width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .pincode-input,
  .pincode-form .btn-primary {
    width: 100%;
  }

  /* Newsletter Mobile */
  .newsletter-section {
    padding: 48px 0;
  }

  .newsletter-card {
    padding: 34px 16px;
  }

  .newsletter-heading {
    font-size: 1.6rem;
  }

  .newsletter-sub {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-input,
  .newsletter-form button {
    width: 100%;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 50px 0 24px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 36px;
  }

  .footer-brand-col {
    padding-right: 0;
  }

  .footer-payment-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Modal & Drawer Mobile */
  .cart-drawer {
    max-width: 100vw;
    width: 100%;
  }

  .modal-box {
    max-width: calc(100vw - 20px);
    margin: 10px;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }

  .modal-book-thumb {
    width: 140px;
    height: 200px;
  }

  .modal-title {
    font-size: 1.45rem;
  }

  .modal-specs-table {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Micro Mobile (iPhone SE, 320px - 390px) */
@media (max-width: 390px) {
  .container {
    padding: 0 10px;
  }

  .header-actions {
    gap: 4px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .icon-btn svg {
    width: 14px;
    height: 14px;
  }

  .logo-crest {
    width: 30px;
    height: 30px;
  }

  .logo-name {
    font-size: 0.88rem;
  }
}
