/* ========================================
   StoryWell — Main Stylesheet
   Indian-inspired, playful, warm
   ======================================== */

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

:root {
  /* Warm Indian palette */
  --sw-cream: #F0EAda;
  --sw-white: #FFFFFF;
  --sw-dark: #1A1A2E;
  --sw-text: #2D2D3F;
  --sw-muted: #6E6E82;
  --sw-saffron: #E8731A;
  --sw-saffron-dark: #C95F10;
  --sw-turmeric: #F5B041;
  --sw-terracotta: #C0553A;
  --sw-teal: #1A7A6D;
  --sw-teal-light: #2AB09F;
  --sw-marigold: #F39C12;
  --sw-ruby: #C0392B;
  --sw-indigo: #34495E;
  --sw-lotus-pink: #E48F8F;
  --sw-light-saffron: #FFF0DB;
  --sw-light-teal: #E8F6F3;
  --sw-border: #E8DDD0;
  --sw-font-display: 'Rozha One', Georgia, serif;
  --sw-font-heading: 'Rozha One', Georgia, serif;
  --sw-font-body: 'Mukta', 'Hind', sans-serif;
  --sw-font-accent: 'Baloo 2', cursive;
  --sw-font-handwritten: 'Kalam', cursive;
  --sw-max-width: 1200px;
  --sw-radius: 12px;
  --sw-radius-lg: 20px;
  --sw-shadow: 0 4px 16px rgba(26,26,46,0.08);
  --sw-shadow-hover: 0 8px 32px rgba(26,26,46,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sw-font-body);
  color: var(--sw-text);
  background: var(--sw-cream);
  line-height: 1.8;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sw-saffron); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sw-terracotta); }

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

h1, h2, h3, h4 {
  font-family: var(--sw-font-display);
  color: var(--sw-dark);
  line-height: 1.3;
}

h1 { font-family: var(--sw-font-heading); }

.container { max-width: var(--sw-max-width); margin: 0 auto; padding: 0 24px; }

/* --- Decorative Dividers --- */
.sw-divider {
  text-align: center;
  margin: 48px auto 0;
  line-height: 1;
}

.sw-divider svg { display: inline-block; }

.sw-divider-sm {
  text-align: center;
  margin: 20px auto;
}

/* --- Header / Nav --- */
.sw-header {
  background: var(--sw-dark);
  position: sticky;
  top: 28px;
  z-index: 100;
}

.sw-header-overlay {
  background: rgba(240, 234, 218, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sw-topbar {
  position: sticky;
  top: 0;
  z-index: 101;
}

.sw-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-top: 14px;
  padding-bottom: 14px;
}

.sw-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sw-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: invert(1);
}

/* tagline removed — logo is just image + "StoryWell Books" text */

.sw-nav { display: flex; align-items: center; gap: 6px; }

.sw-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.sw-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.sw-nav a.active {
  color: var(--sw-turmeric);
  background: rgba(245,176,65,0.12);
}

.sw-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  padding: 4px;
}

/* --- Hero --- */
.sw-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B0E 50%, #3D1E08 75%, #E8731A 100%);
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(232,115,26,0.2) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(255,140,9,0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,43,9,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.sw-hero .container { position: relative; z-index: 1; }

.sw-hero h1 {
  font-size: 3.4rem;
  margin-bottom: 16px;
  color: #fff;
}

.sw-hero h1 em {
  font-style: normal;
  color: var(--sw-turmeric);
  display: block;
  font-family: var(--sw-font-handwritten);
  font-size: 0.65em;
  margin-top: 4px;
}

.sw-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 36px;
  font-family: var(--sw-font-body);
}

.sw-hero-devanagari {
  font-family: var(--sw-font-handwritten);
  font-size: 1.5rem;
  color: rgba(245,176,65,0.3);
  margin-bottom: 20px;
  letter-spacing: 4px;
}

/* Hero decorative border */
.sw-hero-border {
  display: block;
  margin: 0 auto;
  max-width: 600px;
}

/* --- Page Header (non-home) --- */
.sw-page-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B0E 60%, #E8731A 100%);
  padding: 40px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sw-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255,140,9,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.sw-page-header .container { position: relative; z-index: 1; }
.sw-page-header h1 { color: #fff; font-size: 2.6rem; margin-bottom: 8px; }
.sw-page-header p { color: rgba(255,255,255,0.6); font-size: 1.1rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--sw-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sw-saffron), var(--sw-terracotta));
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,115,26,0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,115,26,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--sw-turmeric);
  border: 2px solid var(--sw-turmeric);
}

.btn-outline:hover {
  background: var(--sw-turmeric);
  color: var(--sw-dark);
}

.btn-upi {
  background: linear-gradient(135deg, #5F259F, #3D1566);
  color: #fff;
  box-shadow: 0 4px 14px rgba(95,37,159,0.3);
}

.btn-upi:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(95,37,159,0.4);
}

.btn-teal {
  background: linear-gradient(135deg, var(--sw-teal), var(--sw-teal-light));
  color: #fff;
}

.btn-teal:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* --- Section Styles --- */
.sw-section {
  padding: 72px 0;
  position: relative;
}

.sw-section-alt {
  background: var(--sw-white);
}

.sw-section-teal {
  background: var(--sw-light-teal);
}

.sw-section-saffron {
  background: var(--sw-light-saffron);
}

.sw-section h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.sw-section .section-subtitle {
  color: var(--sw-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header .section-label {
  font-family: var(--sw-font-accent);
  color: var(--sw-saffron);
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

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

.book-card {
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  box-shadow: var(--sw-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--sw-border);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sw-shadow-hover);
}

.book-card-image {
  height: 320px;
  background: linear-gradient(135deg, var(--sw-light-saffron) 0%, var(--sw-light-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.book-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-image .placeholder-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.book-card-image .placeholder-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative corner on book cards */
.book-card-image::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--sw-white);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.book-card-body {
  padding: 20px 24px 24px;
}

.book-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.book-card-body .book-author {
  color: var(--sw-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: var(--sw-font-handwritten);
}

.book-card-body .book-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sw-teal);
  margin-bottom: 14px;
  font-family: var(--sw-font-display);
}

.book-card-body .book-isbn {
  font-size: 0.78rem;
  color: var(--sw-muted);
  margin-bottom: 8px;
  font-family: var(--sw-font-body);
  letter-spacing: 0.02em;
}

.book-card-body .book-mrp {
  text-decoration: line-through;
  color: var(--sw-muted);
  font-size: 0.85em;
  font-weight: 400;
}

.book-card-body .book-discount {
  color: var(--sw-teal);
  font-size: 0.8em;
  font-weight: 600;
}

.book-card-body .book-specs {
  font-size: 0.78rem;
  color: var(--sw-muted);
  margin-bottom: 8px;
  font-family: var(--sw-font-body);
}

.book-card-body .book-lang-badge, .detail-info .book-lang-badge {
  display: inline-block;
  background: var(--sw-light-teal);
  color: var(--sw-teal);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--sw-font-body);
}

.book-stock {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
}
.book-stock.preorder { background: var(--sw-light-saffron); color: var(--sw-saffron); }
.book-stock.low { background: #FFF3CD; color: #856404; }
.book-stock.instock { background: var(--sw-light-teal); color: var(--sw-teal); }

/* --- Star Ratings --- */
.book-rating { margin-bottom: 6px; font-size: 0.85rem; }
.book-stars { color: var(--sw-marigold); letter-spacing: 1px; }
.book-stars-empty { color: var(--sw-border); }
.book-rating-count { color: var(--sw-muted); font-size: 0.78rem; margin-left: 4px; }

/* --- Card description truncation --- */
.book-desc {
  font-size: 0.85rem;
  color: var(--sw-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  font-family: var(--sw-font-body);
}
.read-more-link {
  color: var(--sw-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}
.read-more-link:hover { text-decoration: underline; }

/* --- Card meta row --- */
.book-card-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.book-card-price { margin-bottom: 6px; }
.book-card-title {
  cursor: pointer;
  transition: color 0.15s;
}
.book-card-title:hover { color: var(--sw-teal); }

/* --- Card image badge overlay --- */
.book-card-image { position: relative; cursor: pointer; }
.book-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}
.book-card-badge-top {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}
.book-badge-bestseller {
  display: inline-block;
  background: linear-gradient(135deg, #F5B041, #E8731A);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 10px;
  font-family: var(--sw-font-body);
  box-shadow: 0 2px 6px rgba(232,115,26,0.3);
}

/* --- Split action buttons --- */
.book-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-buy-quick {
  background: var(--sw-saffron);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sw-font-body);
  transition: background 0.15s;
}
.btn-buy-quick:hover { background: var(--sw-saffron-dark); }
.btn-details {
  background: transparent;
  color: var(--sw-teal);
  border: 1.5px solid var(--sw-teal);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sw-font-body);
  transition: all 0.15s;
}
.btn-details:hover { background: var(--sw-teal); color: white; }

/* --- Product Detail Modal --- */
.product-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  overflow-y: auto;
  padding: 40px 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.product-detail-overlay.active { display: flex; justify-content: center; align-items: flex-start; }
.product-detail-modal {
  background: var(--sw-white);
  border-radius: 16px;
  max-width: 860px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.25s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-detail-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--sw-muted);
  cursor: pointer;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.detail-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.detail-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--sw-cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--sw-border);
}
.detail-info h2 {
  font-family: var(--sw-font-display);
  font-size: 1.6rem;
  color: var(--sw-dark);
  margin: 6px 0 4px;
  line-height: 1.3;
}
.detail-author {
  color: var(--sw-muted);
  font-family: var(--sw-font-handwritten);
  font-size: 1rem;
  margin-bottom: 8px;
}
.detail-rating {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--sw-muted);
}
.detail-rating .book-stars { font-size: 1.1rem; }
.detail-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-price-row .book-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sw-teal);
  font-family: var(--sw-font-display);
}
.detail-desc {
  font-size: 0.95rem;
  color: var(--sw-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: var(--sw-font-body);
}
.detail-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.detail-specs td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--sw-border);
  color: var(--sw-text);
}
.detail-specs td:first-child {
  font-weight: 600;
  color: var(--sw-muted);
  white-space: nowrap;
  width: 90px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-buy-now {
  background: var(--sw-saffron);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sw-font-body);
  transition: background 0.15s;
}
.btn-buy-now:hover { background: var(--sw-saffron-dark); }
.detail-actions .btn-write-review {
  background: transparent;
  color: var(--sw-teal);
  border: 1.5px solid var(--sw-teal);
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.detail-actions .btn-write-review:hover { background: var(--sw-teal); color: white; }
.detail-reviews { margin-top: 16px; border-top: 1px solid var(--sw-border); padding-top: 16px; }
.detail-reviews h4 { font-family: var(--sw-font-heading); margin-bottom: 12px; }

/* Variants */
.detail-variants {
  margin-bottom: 16px;
}
.detail-variants label:first-child {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--sw-dark);
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--sw-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s;
}
.variant-option:has(input:checked) {
  border-color: var(--sw-teal);
  background: var(--sw-light-teal);
  color: var(--sw-teal);
}
.variant-option input { accent-color: var(--sw-teal); }
.variant-option span { white-space: nowrap; }

/* Bulk order link */
.detail-bulk {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--sw-light-saffron);
  border-radius: 8px;
  font-size: 0.88rem;
}
.detail-bulk a {
  color: var(--sw-saffron);
  font-weight: 600;
  text-decoration: none;
}
.detail-bulk a:hover { text-decoration: underline; }

/* --- Share buttons --- */
.detail-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sw-border);
}
.detail-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sw-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sw-border);
  background: var(--sw-white);
  color: var(--sw-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-size: 0.75rem;
}
.share-btn:hover { border-color: var(--sw-teal); color: var(--sw-teal); }
.share-wa:hover { color: #25D366; border-color: #25D366; }
.share-tw:hover { color: #1DA1F2; border-color: #1DA1F2; }

/* --- Related books --- */
.detail-related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sw-border);
}
.detail-related h4 {
  font-family: var(--sw-font-heading);
  margin-bottom: 16px;
}
.related-grid, .recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.related-card {
  cursor: pointer;
  transition: transform 0.15s;
}
.related-card:hover { transform: translateY(-3px); }
.related-cover img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.related-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sw-dark);
  margin-top: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-price {
  font-size: 0.75rem;
  color: var(--sw-teal);
  font-weight: 700;
}

/* --- Search bar --- */
.store-toolbar {
  margin-bottom: 16px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sw-white);
  border: 1.5px solid var(--sw-border);
  border-radius: 10px;
  padding: 10px 16px;
  max-width: 480px;
  transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--sw-teal); }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--sw-font-body);
  background: transparent;
  color: var(--sw-text);
}
.search-box input::placeholder { color: var(--sw-border); }

/* --- Responsive detail modal --- */
@media (max-width: 700px) {
  .detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .detail-image img { max-width: 200px; margin: 0 auto; display: block; }
  .product-detail-modal { padding: 24px 16px; }
}

.promo-code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.promo-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--sw-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--sw-font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.promo-input:focus {
  outline: none;
  border-color: var(--sw-teal);
}
.btn-promo {
  padding: 8px 16px;
  background: var(--sw-teal);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sw-font-body);
}
.btn-promo:hover { background: var(--sw-teal-light); }

.book-card-body .book-category {
  display: inline-block;
  background: var(--sw-light-saffron);
  color: var(--sw-saffron);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* --- Category Filter --- */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.category-filter button {
  background: var(--sw-white);
  border: 2px solid var(--sw-border);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--sw-font-display);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--sw-text);
  transition: all 0.2s;
}

.category-filter button:hover,
.category-filter button.active {
  background: var(--sw-saffron);
  color: #fff;
  border-color: var(--sw-saffron);
}

/* --- Book Sections (Grouped Catalog) --- */
.book-sections { }

.book-section {
  margin-bottom: 56px;
}

.book-section-title {
  font-family: var(--sw-font-display);
  font-size: 1.8rem;
  color: var(--sw-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--sw-saffron);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.book-section-count {
  font-family: var(--sw-font-body);
  font-size: 1rem;
  color: var(--sw-muted);
  font-weight: 400;
}

/* --- Book Card Actions --- */
.book-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

/* --- Reading List Button --- */
.rl-btn {
  background: none;
  border: 1.5px solid var(--sw-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--sw-muted);
  transition: all 0.2s;
  font-family: var(--sw-font-body);
}

.rl-btn:hover {
  border-color: var(--sw-teal);
  color: var(--sw-teal);
}

.rl-btn.rl-active {
  background: var(--sw-light-teal);
  border-color: var(--sw-teal);
  color: var(--sw-teal);
  font-weight: 600;
}

.rl-badge {
  background: var(--sw-saffron);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

.sw-nav-rl {
  font-size: 0.9rem;
}

/* --- Reviews --- */
.btn-review-toggle {
  background: none;
  border: none;
  color: var(--sw-saffron);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--sw-font-body);
  text-decoration: underline;
}

.btn-review-toggle:hover {
  color: var(--sw-saffron-dark);
}

.review-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sw-border);
}

.review-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.review-item:last-child {
  border-bottom: none;
}

.review-stars {
  color: var(--sw-turmeric);
  font-size: 1rem;
  margin-bottom: 4px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--sw-text);
  margin-bottom: 4px;
  line-height: 1.5;
}

.review-author {
  font-size: 0.8rem;
  color: var(--sw-muted);
  font-style: italic;
}

.no-reviews {
  font-size: 0.85rem;
  color: var(--sw-muted);
  font-style: italic;
  margin-bottom: 8px;
}

.btn-write-review {
  background: var(--sw-light-saffron);
  border: 1px solid var(--sw-saffron);
  color: var(--sw-saffron);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--sw-font-body);
  transition: all 0.2s;
}

.btn-write-review:hover {
  background: var(--sw-saffron);
  color: #fff;
}

.review-star-input {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.review-star-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--sw-border);
  transition: color 0.15s;
  padding: 2px;
}

.review-star-btn:hover,
.review-star-btn.selected {
  color: var(--sw-turmeric);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  padding: 36px;
  box-shadow: var(--sw-shadow);
  border-top: 4px solid var(--sw-saffron);
  position: relative;
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-card:nth-child(2) { border-top-color: var(--sw-teal); }
.service-card:nth-child(3) { border-top-color: var(--sw-turmeric); }
.service-card:nth-child(4) { border-top-color: var(--sw-terracotta); }
.service-card:nth-child(5) { border-top-color: var(--sw-lotus-pink); }
.service-card:nth-child(6) { border-top-color: var(--sw-indigo); }

.service-card .service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.service-card p {
  color: var(--sw-muted);
  line-height: 1.8;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  box-shadow: var(--sw-shadow);
  transition: transform 0.2s;
  border: 1px solid var(--sw-border);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--sw-light-teal), var(--sw-light-saffron));
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body .blog-date {
  color: var(--sw-saffron);
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-family: var(--sw-font-handwritten);
}

.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-card-body p {
  color: var(--sw-muted);
  font-size: 0.95rem;
}

/* --- Blog Full Post --- */
.blog-post-full {
  max-width: 720px;
  margin: 0 auto;
}

.blog-back-btn {
  background: none;
  border: none;
  color: var(--sw-saffron);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 24px;
  display: inline-block;
}

.blog-back-btn:hover {
  color: var(--sw-terracotta);
}

.blog-article h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--sw-text);
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content strong {
  color: var(--sw-dark);
}

/* --- Forms --- */
.sw-form {
  max-width: 560px;
  margin: 0 auto;
}

.sw-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-family: var(--sw-font-display);
}

.sw-form input,
.sw-form textarea,
.sw-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--sw-border);
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-body);
  font-size: 1rem;
  margin-bottom: 20px;
  background: var(--sw-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sw-form input:focus,
.sw-form textarea:focus,
.sw-form select:focus {
  outline: none;
  border-color: var(--sw-saffron);
  box-shadow: 0 0 0 3px rgba(232,115,26,0.12);
}

.sw-form textarea { min-height: 120px; resize: vertical; }

/* --- Info Blocks --- */
.info-block {
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  padding: 40px;
  box-shadow: var(--sw-shadow);
  margin-bottom: 28px;
  border: 1px solid var(--sw-border);
}

.info-block h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.info-block ul {
  list-style: none;
  padding: 0;
}

.info-block ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--sw-muted);
}

.info-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--sw-light-saffron);
  border: 2px solid var(--sw-saffron);
  border-radius: 50%;
}

.info-block ul li:nth-child(even)::before {
  border-color: var(--sw-teal);
  background: var(--sw-light-teal);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.two-col-text h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.two-col-text p {
  color: var(--sw-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* --- Rangoli-style decorative pattern (CSS only) --- */
.rangoli-pattern {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  opacity: 0.7;
}

.rangoli-pattern::before,
.rangoli-pattern::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 3px solid var(--sw-saffron);
  border-radius: 50%;
}

.rangoli-pattern::after {
  inset: 50px;
  border-color: var(--sw-teal);
  transform: rotate(45deg);
  border-radius: 50% 0;
}

/* --- Quote Block --- */
.sw-quote {
  font-family: var(--sw-font-handwritten);
  font-size: 1.5rem;
  color: var(--sw-terracotta);
  text-align: center;
  padding: 40px;
  position: relative;
  line-height: 1.6;
}

.sw-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--sw-turmeric);
  opacity: 0.4;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

/* --- Footer --- */
.sw-footer {
  background: var(--sw-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
  position: relative;
}

.sw-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sw-saffron), var(--sw-turmeric), var(--sw-teal), var(--sw-terracotta), var(--sw-saffron));
}

.sw-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.sw-footer h4 {
  color: var(--sw-turmeric);
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-family: var(--sw-font-display);
}

.sw-footer p { font-size: 0.9rem; line-height: 1.7; }

.sw-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.sw-footer a:hover { color: var(--sw-turmeric); }

.sw-footer ul { list-style: none; }
.sw-footer ul li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom .footer-accent {
  font-family: var(--sw-font-display);
  color: var(--sw-turmeric);
  opacity: 0.5;
  font-size: 0.9rem;
  margin-top: 8px;
  letter-spacing: 3px;
  text-transform: lowercase;
}

.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.social-links a:hover { background: var(--sw-saffron); }
.social-links a svg { fill: #fff; width: 18px; height: 18px; }

/* --- UPI Modal --- */
.upi-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.upi-modal-overlay.active { display: flex; }

.upi-modal {
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  border-top: 4px solid #5F259F;
}

.upi-modal h3 { margin-bottom: 8px; }

.upi-modal .upi-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sw-teal);
  margin: 16px 0;
  font-family: var(--sw-font-display);
}

.upi-modal .upi-id {
  background: var(--sw-light-saffron);
  padding: 12px;
  border-radius: var(--sw-radius);
  font-family: monospace;
  font-size: 1rem;
  margin-bottom: 16px;
  word-break: break-all;
  border: 1px dashed var(--sw-saffron);
}

.upi-modal .upi-qr {
  margin: 20px auto;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--sw-border);
  border-radius: var(--sw-radius);
  display: inline-block;
}

.upi-modal .upi-qr canvas { display: block; }

.upi-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--sw-muted);
}

.upi-modal .upi-note {
  font-size: 0.85rem;
  color: var(--sw-muted);
  margin-top: 16px;
  font-family: var(--sw-font-handwritten);
}

/* --- Hero Greeting --- */
.sw-hero-greeting {
  font-family: var(--sw-font-handwritten);
  font-size: 2.2rem;
  color: var(--sw-turmeric);
  margin-bottom: 12px;
  opacity: 0.9;
}

/* --- Hero Image --- */
.sw-hero-image {
  max-width: 500px;
  margin: 32px auto 0;
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.sw-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Policy / Legal Content --- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content .info-block {
  margin-bottom: 24px;
}

.policy-content .info-block h3 {
  color: var(--sw-saffron);
  border-bottom: 2px solid var(--sw-border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.policy-content .policy-meta {
  text-align: center;
  color: var(--sw-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  font-family: var(--sw-font-body);
}

/* --- Wall of Love / Testimonials --- */

/* Stats bar */
.wol-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sw-border);
}
.wol-stat {
  text-align: center;
}
.wol-stat strong {
  display: block;
  font-size: 2rem;
  font-family: var(--sw-font-display);
  color: var(--sw-saffron);
}
.wol-stat span {
  font-size: 0.85rem;
  color: var(--sw-muted);
}

/* Filter buttons */
.wol-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.wol-filter button {
  padding: 8px 20px;
  border: 1.5px solid var(--sw-border);
  border-radius: 24px;
  background: transparent;
  color: var(--sw-text);
  font-family: var(--sw-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.wol-filter button:hover { border-color: var(--sw-teal); color: var(--sw-teal); }
.wol-filter button.active {
  background: var(--sw-teal);
  color: white;
  border-color: var(--sw-teal);
}

/* Masonry grid */
.wol-grid {
  columns: 3 300px;
  column-gap: 20px;
}

/* Card */
.wol-card {
  break-inside: avoid;
  background: var(--sw-white);
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.wol-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.wol-stars { margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 2px; }
.wol-star { color: var(--sw-border); }
.wol-star.filled { color: var(--sw-marigold); }

.wol-quote {
  font-family: var(--sw-font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sw-text);
  margin: 0 0 16px;
  font-style: italic;
}

.wol-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wol-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.wol-avatar-initials {
  background: var(--sw-light-saffron);
  color: var(--sw-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--sw-font-body);
}
.wol-name {
  display: block;
  font-size: 0.9rem;
  color: var(--sw-dark);
  font-family: var(--sw-font-body);
}
.wol-role {
  display: block;
  font-size: 0.78rem;
  color: var(--sw-muted);
  font-family: var(--sw-font-body);
}

/* Card top row (stars + category badge) */
.wol-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Category badges */
.wol-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: var(--sw-font-body);
}
.wol-cat-authors { background: var(--sw-light-saffron); color: var(--sw-saffron); }
.wol-cat-young-writers { background: var(--sw-light-teal); color: var(--sw-teal); }
.wol-cat-readers { background: #EDE7F6; color: #5E35B1; }
.wol-cat-general { background: #FFF3E0; color: #E65100; }

/* Carousel (homepage/store) — CSS animation for smooth infinite scroll */
.wol-carousel {
  overflow: hidden;
  position: relative;
  margin: 24px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
.wol-carousel-track {
  display: flex;
  gap: 20px;
  animation: carouselScroll linear infinite;
  width: max-content;
}
.wol-carousel-track:hover {
  animation-play-state: paused;
}
@keyframes carouselScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wol-carousel .wol-card {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .wol-grid { columns: 1; }
  .wol-stats { gap: 24px; }
  .wol-stats strong { font-size: 1.5rem; }
  .wol-carousel .wol-card { min-width: 280px; max-width: 280px; }
}

/* --- Membership Benefits Grid --- */
.member-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member-benefit-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.member-benefit-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-light-saffron);
  border-radius: 14px;
  color: var(--sw-saffron);
}
.member-benefit-card h3 {
  font-family: var(--sw-font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--sw-dark);
}
.member-benefit-card p {
  font-size: 0.9rem;
  color: var(--sw-muted);
  line-height: 1.5;
}
.btn-lg { padding: 14px 40px; font-size: 1.1rem; }

/* --- Dashboard --- */
.dash-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dash-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  padding: 24px;
}
.dash-card h3 {
  font-family: var(--sw-font-heading);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--sw-dark);
}
.dash-card-discount {
  background: var(--sw-light-teal);
  border-color: var(--sw-teal);
}
.dash-code {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sw-teal);
  letter-spacing: 3px;
  margin: 8px 0;
  padding: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  text-align: center;
  user-select: all;
}
.dash-section-title {
  text-align: center;
  font-family: var(--sw-font-display);
  margin-bottom: 8px;
}

/* Audiobook grid */
.audiobook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.audiobook-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.audiobook-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.audiobook-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.audiobook-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--sw-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--sw-border);
}
.audiobook-info {
  padding: 16px;
}
.audiobook-info h4 {
  font-family: var(--sw-font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
}
.audiobook-meta {
  font-size: 0.82rem;
  color: var(--sw-muted);
  margin-bottom: 8px;
}
.audiobook-player iframe { width: 100%; border: none; border-radius: 6px; }

/* Events */
.events-list { max-width: 700px; margin: 0 auto; }
.event-card {
  display: flex;
  gap: 20px;
  background: var(--sw-white);
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.event-date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--sw-saffron);
  color: white;
  border-radius: 10px;
  padding: 8px 0;
}
.event-day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.event-month { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sw-teal);
  background: var(--sw-light-teal);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.event-info h4 { font-family: var(--sw-font-heading); margin-bottom: 4px; }
.event-info p { font-size: 0.88rem; color: var(--sw-muted); line-height: 1.5; }
.event-time { font-size: 0.8rem; color: var(--sw-teal); font-weight: 600; margin-top: 6px; }

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.resource-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.resource-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.resource-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-light-teal);
  border-radius: 12px;
  color: var(--sw-teal);
}
.resource-card h4 { font-family: var(--sw-font-heading); margin-bottom: 6px; }
.resource-card p { font-size: 0.88rem; color: var(--sw-muted); line-height: 1.5; }
.resource-coming-soon {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sw-muted);
  background: var(--sw-cream);
  padding: 6px 14px;
  border-radius: 16px;
}

@media (max-width: 700px) {
  .member-benefits-grid { grid-template-columns: 1fr; }
  .dash-quick-cards { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
}

/* --- Shopping Cart --- */
.sw-nav-cart {
  position: relative;
}
.cart-count {
  background: var(--sw-saffron);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.cart-bounce { animation: cartPop 0.4s ease; }
@keyframes cartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-items { margin-bottom: 24px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sw-border);
}
.cart-item-info { flex: 1; }
.cart-item-info h4 {
  font-family: var(--sw-font-heading);
  font-size: 1rem;
  margin-bottom: 2px;
}
.cart-item-price { font-size: 0.85rem; color: var(--sw-muted); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--sw-border);
  border-radius: 6px;
  background: var(--sw-white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--sw-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { border-color: var(--sw-teal); color: var(--sw-teal); }
.qty-val { font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-subtotal {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sw-teal);
  min-width: 70px;
  text-align: right;
}
.cart-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--sw-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.cart-remove:hover { color: var(--sw-ruby); }

.cart-summary {
  background: var(--sw-cream);
  border-radius: 12px;
  padding: 24px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.cart-total strong {
  font-size: 1.5rem;
  color: var(--sw-teal);
  font-family: var(--sw-font-display);
}
.cart-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--sw-saffron);
  border: 1.5px solid var(--sw-saffron);
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sw-font-body);
  transition: all 0.15s;
}
.btn-add-cart:hover { background: var(--sw-saffron); color: white; }

@media (max-width: 600px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item-subtotal { min-width: auto; }
}

/* --- Order Tracking Pipeline --- */
.order-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.pipeline-step {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  text-align: center;
  padding: 8px;
}
.pipeline-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-light-saffron);
  border-radius: 50%;
  color: var(--sw-saffron);
}
.pipeline-label {
  font-family: var(--sw-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sw-dark);
  margin-bottom: 4px;
}
.pipeline-step p {
  font-size: 0.78rem;
  color: var(--sw-muted);
  line-height: 1.4;
}
.pipeline-arrow {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: var(--sw-teal);
  padding-top: 16px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .order-pipeline { flex-direction: column; align-items: center; }
  .pipeline-arrow { transform: rotate(90deg); padding: 4px 0; }
  .pipeline-step { max-width: 100%; }
}

/* --- Email Capture Popup --- */
.sw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sw-popup {
  background: var(--sw-white);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s ease-out;
}
.sw-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--sw-muted);
  cursor: pointer;
}
.sw-popup-icon { font-size: 3rem; margin-bottom: 12px; }
.sw-popup h3 {
  font-family: var(--sw-font-display);
  font-size: 1.4rem;
  color: var(--sw-dark);
  margin-bottom: 8px;
}
.sw-popup p {
  color: var(--sw-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.sw-popup-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sw-popup-input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--sw-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sw-font-body);
}
.sw-popup-input:focus { outline: none; border-color: var(--sw-teal); }
.sw-popup-btn { white-space: nowrap; }
.sw-popup-note {
  font-size: 0.75rem;
  color: var(--sw-muted);
  margin: 0;
}

/* Newsletter signup */
.newsletter-box {
  background: var(--sw-light-saffron);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.newsletter-box h3 {
  font-family: var(--sw-font-heading);
  margin-bottom: 8px;
}
.newsletter-box p {
  color: var(--sw-muted);
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--sw-border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--sw-teal); }

/* Reading list email */
.rl-email-box {
  background: var(--sw-light-teal);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.rl-email-box label {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.rl-email-box input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1.5px solid var(--sw-border);
  border-radius: 8px;
  font-size: 0.9rem;
}

@media (max-width: 500px) {
  .sw-popup-form { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
}

/* --- Feedback Widget --- */
.sw-feedback-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--sw-saffron), var(--sw-terracotta));
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 200;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: -2px 2px 12px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.sw-feedback-tab svg {
  transform: rotate(90deg);
}

.sw-feedback-tab:hover {
  padding-right: 18px;
  box-shadow: -4px 2px 20px rgba(0,0,0,0.2);
}

.sw-feedback-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--sw-white);
  z-index: 99999;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sw-feedback-panel.open {
  right: 0;
}

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

.sw-feedback-header h4 {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  margin: 0;
}

.sw-feedback-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--sw-muted);
  padding: 8px 12px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-feedback-close:hover {
  color: var(--sw-dark);
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
}

.sw-feedback-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.sw-feedback-form label {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--sw-text);
}

.sw-feedback-form input,
.sw-feedback-form textarea,
.sw-feedback-form select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--sw-border);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  background: var(--sw-cream);
  transition: border-color 0.2s;
}

.sw-feedback-form input:focus,
.sw-feedback-form textarea:focus,
.sw-feedback-form select:focus {
  outline: none;
  border-color: var(--sw-saffron);
}

.sw-feedback-form textarea {
  min-height: 80px;
  resize: vertical;
}

.sw-feedback-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.sw-feedback-stars button {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--sw-border);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}

.sw-feedback-stars button:hover,
.sw-feedback-stars button.active {
  color: #F5B041;
}

.sw-feedback-thanks {
  padding: 60px 24px;
  text-align: center;
}

.sw-feedback-thanks h4 {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.sw-feedback-thanks p {
  color: var(--sw-muted);
}

/* Overlay when feedback panel is open */
.sw-feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sw-feedback-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Dark mode */
[data-theme="dark"] .sw-feedback-panel {
  background: #1c1c30;
}

[data-theme="dark"] .sw-feedback-form input,
[data-theme="dark"] .sw-feedback-form textarea,
[data-theme="dark"] .sw-feedback-form select {
  background: #141420;
  border-color: #2a2a40;
  color: #c8c0b0;
}

/* --- CTA Banner --- */
.sw-cta-banner {
  text-align: center;
  padding: 56px 0;
}

/* --- WhatsApp Button --- */
/* Prevent horizontal scroll on mobile */
html { overflow-x: hidden; max-width: 100%; }
body { overflow-x: hidden; max-width: 100%; position: relative; }
/* Prevent any images or iframes from overflowing */
img, iframe, video, svg { max-width: 100%; height: auto; }
/* On mobile, clip any absolutely positioned wide decorations */
@media (max-width: 768px) {
  * { max-width: 100%; }
  .sw-deco, .sw-deco-plane1, .sw-deco-plane2, .sw-deco-plane3,
  .sw-deco-trail1, .sw-deco-trail2, .sw-deco-trail3,
  .sw-deco-star1, .sw-deco-star2, .sw-deco-star3 { display: none !important; }
}

/* --- Accessibility widget --- */
.sw-a11y-btn {
  position: fixed;
  right: 0;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--sw-teal);
  color: white;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
  transition: background 0.15s;
}
.sw-a11y-btn:hover { background: var(--sw-teal-light); }
.sw-a11y-btn svg { width: 22px; height: 22px; }

.sw-a11y-panel {
  position: fixed;
  right: -320px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  max-width: calc(100vw - 20px);
  background: var(--sw-white);
  border-radius: 12px 0 0 12px;
  padding: 20px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 211;
  transition: right 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.sw-a11y-panel.open { right: 0; }
.sw-a11y-panel h3 {
  font-family: var(--sw-font-heading);
  margin: 0 0 12px;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sw-a11y-panel h3 button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--sw-muted);
  padding: 0 4px;
}
.sw-a11y-options { display: flex; flex-direction: column; gap: 10px; }
.sw-a11y-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--sw-cream);
  border-radius: 8px;
  font-size: 0.9rem;
}
.sw-a11y-option label { font-weight: 600; }
.sw-a11y-controls { display: flex; gap: 6px; }
.sw-a11y-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--sw-border);
  background: var(--sw-white);
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--sw-text);
}
.sw-a11y-controls button:hover { border-color: var(--sw-teal); color: var(--sw-teal); }
.sw-a11y-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--sw-border);
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.sw-a11y-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
}
.sw-a11y-toggle.active { background: var(--sw-teal); }
.sw-a11y-toggle.active::after { left: 20px; }
.sw-a11y-reset {
  background: none;
  border: 1px solid var(--sw-border);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--sw-muted);
  margin-top: 8px;
  width: 100%;
}

/* Accessibility mode styles */
html.a11y-large-text { font-size: 115%; }
html.a11y-larger-text { font-size: 130%; }
html.a11y-high-contrast * {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}
html.a11y-high-contrast a { color: #0000EE !important; text-decoration: underline !important; }
html.a11y-dyslexia * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive !important;
  letter-spacing: 0.05em !important;
  line-height: 1.7 !important;
}
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html.a11y-underline-links a {
  text-decoration: underline !important;
}

.sw-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 190;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.sw-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.sw-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* --- Cookie Consent --- */
.sw-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sw-dark);
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sw-cookie-bar.show {
  display: flex;
  flex-wrap: wrap;
}

.sw-cookie-bar a {
  color: var(--sw-turmeric);
}

.sw-cookie-bar button {
  background: var(--sw-saffron);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}

.sw-cookie-bar button:hover {
  background: var(--sw-terracotta);
}

.sw-cta-banner h2 {
  margin-bottom: 12px;
}

.sw-cta-banner p {
  color: var(--sw-muted);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* --- Topbar: Language + Theme --- */
.sw-topbar {
  background: var(--sw-dark);
  padding: 6px 0;
  font-size: 0.8rem;
}

/* Language selector */
.sw-lang-select select {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
}

.sw-lang-select select option {
  background: #1a1a2e;
  color: #fff;
}

.sw-theme-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2px;
}

.sw-theme-toggle button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.sw-theme-toggle button.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.sw-theme-toggle button:hover {
  color: #fff;
}

/* --- Bear + Quote Layout --- */
.sw-bear-section {
  background-image: url('../images/bear-cropped.webp');
  background-size: 60% auto;
  background-position: 100% 10px;
  background-repeat: no-repeat;
  min-height: 110vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  background-color: var(--sw-cream);
  margin-top: -60px;
  padding-top: 90px;
}

/* Floating decorative SVGs */
.sw-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Trails behind planes (left of plane) */
.sw-deco-trail1 { top: 10%; left: 18%; transform: rotate(-12deg); }
/* Plane 1: top of gap */
.sw-deco-plane1 { top: 6%; left: 38%; transform: rotate(-15deg); animation: sw-fly 10s ease-in-out infinite; }
/* Trail 2 */
.sw-deco-trail2 { top: 37%; left: 22%; transform: rotate(-5deg); }
/* Plane 2: middle */
.sw-deco-plane2 { top: 34%; left: 42%; transform: rotate(-8deg); animation: sw-fly 13s ease-in-out infinite 3s; }
/* Trail 3 */
.sw-deco-trail3 { top: 62%; left: 20%; transform: rotate(3deg); }
/* Plane 3: bottom */
.sw-deco-plane3 { top: 60%; left: 35%; transform: rotate(-3deg); animation: sw-fly 16s ease-in-out infinite 6s; }
/* Stars: scattered */
.sw-deco-star1 { top: 20%; left: 28%; animation: sw-twinkle 4s ease-in-out infinite; }
.sw-deco-star2 { top: 50%; left: 44%; animation: sw-twinkle 5s ease-in-out infinite 1.5s; }
.sw-deco-star3 { top: 75%; left: 32%; animation: sw-twinkle 6s ease-in-out infinite 3s; }

@keyframes sw-fly {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, -15deg)); }
  50% { transform: translate(15px, -8px) rotate(var(--r, -15deg)); }
}

@keyframes sw-trail {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.08; }
}

@keyframes sw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sw-twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 768px) {
  .sw-deco { display: none; }
}

.sw-bear-text {
  max-width: 38%;
  padding: 30px 40px;
  position: relative;
  z-index: 1;
}

.sw-bear-text p {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--sw-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}

.sw-books-tagline {
  font-family: 'Kalam', cursive;
  font-size: 1.4rem;
  color: #5a2d0c;
  line-height: 1.2;
  margin-top: 16px;
}

.sw-books-tagline span {
  font-family: 'Abril Fatface', cursive;
  font-size: 2rem;
  color: #6b2a0a;
  letter-spacing: 2px;
}

.sw-bear-text p:last-child {
  margin-bottom: 0;
}

/* Keep quote card styles for other pages */
.sw-quote-card {
  background: var(--sw-white);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(232,115,26,0.1);
  border-left: 5px solid #FF2B09;
}

.sw-quote-card p {
  font-family: 'Lato', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--sw-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.sw-quote-card p:last-child {
  margin-bottom: 0;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --sw-cream: #141420;
  --sw-white: #1c1c30;
  --sw-dark: #e8e0d0;
  --sw-text: #c8c0b0;
  --sw-muted: #908878;
  --sw-border: #2a2a40;
  --sw-light-saffron: #1e1a14;
  --sw-light-teal: #141e1c;
  --sw-saffron: #f0913a;
  --sw-turmeric: #e8b850;
  --sw-terracotta: #d07050;
}

[data-theme="dark"] body {
  color: var(--sw-text);
}

[data-theme="dark"] .sw-header {
  background: #111118 !important;
  border-bottom: 1px solid #2a2a3a;
}

[data-theme="dark"] .sw-topbar {
  background: #0a0a12 !important;
}

[data-theme="dark"] .sw-page-header {
  background: linear-gradient(135deg, #0a0a12 0%, #1a1018 60%, #3a1e10 100%) !important;
}

[data-theme="dark"] .sw-quote-card {
  background: #1c1c30;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border-left-color: #f0913a;
}

[data-theme="dark"] .sw-quote-card p {
  color: #c8c0b0;
}

[data-theme="dark"] .sw-footer {
  background: #0a0a12;
}

[data-theme="dark"] .sw-footer::before {
  opacity: 0.6;
}

[data-theme="dark"] img {
  opacity: 0.95;
}

[data-theme="dark"] .book-card-image img,
[data-theme="dark"] .blog-card-image img {
  opacity: 1;
}

[data-theme="dark"] .sw-logo img {
  filter: invert(0.85) !important;
  opacity: 1;
}

[data-theme="dark"] .sw-nav a,
[data-theme="dark"] .sw-logo {
  color: #e8e0d0 !important;
}

[data-theme="dark"] .sw-nav a:hover {
  color: #f0913a !important;
  background: rgba(240,145,58,0.1);
}

[data-theme="dark"] .sw-menu-toggle {
  color: #e8e0d0 !important;
}

[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 {
  color: #e8e0d0;
}

[data-theme="dark"] a {
  color: #f0913a;
}

[data-theme="dark"] a:hover {
  color: #e8b850;
}

[data-theme="dark"] .service-card {
  background: #1c1c30;
  border: 1px solid #2a2a40;
}

[data-theme="dark"] .info-block {
  background: #1c1c30;
  border-color: #2a2a40;
}

[data-theme="dark"] .book-card {
  background: #1c1c30;
  border-color: #2a2a40;
}

[data-theme="dark"] .blog-card {
  background: #1c1c30;
  border-color: #2a2a40;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #e8731a, #c0553a);
}

[data-theme="dark"] .btn-outline {
  border-color: #e8b850;
  color: #e8b850;
}

[data-theme="dark"] .btn-outline:hover {
  background: #e8b850;
  color: #141420;
}

[data-theme="dark"] .sw-form input,
[data-theme="dark"] .sw-form textarea,
[data-theme="dark"] .sw-form select {
  background: #1c1c30;
  border-color: #2a2a40;
  color: #c8c0b0;
}

[data-theme="dark"] .sw-lang-select select {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .category-filter button {
  background: #1c1c30;
  border-color: #2a2a40;
  color: #c8c0b0;
}

[data-theme="dark"] .category-filter button:hover,
[data-theme="dark"] .category-filter button.active {
  background: var(--sw-saffron);
  color: #141420;
}

[data-theme="dark"] .sw-bear-section {
  background-color: #F0EAda;
  filter: none;
}

[data-theme="dark"] .sw-bear-text {
  /* Keep text readable in light bear section */
}

[data-theme="dark"] .sw-bear-text p,
[data-theme="dark"] .sw-bear-text h3 {
  color: #1a1a2e !important;
}

[data-theme="dark"] .sw-bear-text .btn-primary {
  filter: none;
}

[data-theme="dark"] .sw-deco {
  opacity: 0.4;
}

[data-theme="dark"] .sw-header-overlay {
  background: rgba(20, 20, 32, 0.85) !important;
}

/* Dark mode: book card text */
[data-theme="dark"] .book-card-body .book-price {
  color: #e8b850;
}

[data-theme="dark"] .book-card-body .book-author {
  color: #908878;
}

[data-theme="dark"] .book-card-body .book-category {
  background: #2a2a40;
  color: #f0913a;
}

[data-theme="dark"] .book-section-title {
  color: #e0e0e0;
  border-bottom-color: #f0913a;
}

[data-theme="dark"] .rl-btn {
  border-color: #444;
  color: #999;
}

[data-theme="dark"] .rl-btn.rl-active {
  background: #1a3a35;
  border-color: #2ab09f;
  color: #2ab09f;
}

[data-theme="dark"] .review-panel {
  border-top-color: #333;
}

[data-theme="dark"] .review-item {
  border-bottom-color: #333;
}

[data-theme="dark"] .btn-write-review {
  background: #2a2a40;
  border-color: #f0913a;
  color: #f0913a;
}

[data-theme="dark"] .review-star-btn {
  color: #444;
}

[data-theme="dark"] .review-star-btn.selected {
  color: var(--sw-turmeric);
}

[data-theme="dark"] .book-card-image {
  background: linear-gradient(135deg, #1e1a14 0%, #141e1c 100%);
}

/* Dark mode: UPI modal */
[data-theme="dark"] .upi-modal {
  background: #1c1c30;
  border-top-color: #7040a0;
}

[data-theme="dark"] .upi-modal .upi-id {
  background: #141420;
  border-color: #f0913a;
  color: #c8c0b0;
}

[data-theme="dark"] .upi-modal .upi-qr {
  background: #fff;
}

/* Dark mode: announcement bar */
[data-theme="dark"] .sw-announcement {
  background: linear-gradient(135deg, #8b1a00, #a04010);
}

/* Dark mode: inline text on homepage */
[data-theme="dark"] [style*="color: #236fa1"] {
  color: #6aaad0 !important;
}

[data-theme="dark"] [style*="color: #000"] {
  color: #c8c0b0 !important;
}

/* Dark mode: cookie bar */
[data-theme="dark"] .sw-cookie-bar {
  background: #0a0a12;
}

/* Dark mode: blog article */
[data-theme="dark"] .blog-content {
  color: #c8c0b0;
}

[data-theme="dark"] .blog-content strong {
  color: #e8e0d0;
}

/* Dark mode: back to top */
[data-theme="dark"] .sw-back-to-top {
  background: #f0913a;
}

/* Dark mode: mobile nav */
[data-theme="dark"] .sw-nav {
  background: #111118 !important;
}

[data-theme="dark"] .sw-nav a {
  color: #c8c0b0 !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sw-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sw-cream);
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.1);
    gap: 4px;
  }

  .sw-nav.open { display: flex; }
  .sw-menu-toggle { display: block; }

  .sw-hero h1 { font-size: 2.2rem; }
  .sw-hero { padding: 48px 0 56px; }
  .sw-page-header h1 { font-size: 2rem; }

  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .sw-bear-row { grid-template-columns: 1fr; }

  .sw-bear-section {
    background-size: 100% auto;
    background-position: top center;
    min-height: auto;
    padding-top: 70px;
  }

  .sw-bear-text {
    max-width: 100%;
    padding: 20px;
    background: rgba(240,234,218,0.9);
    margin-top: 60vw;
  }

  [data-theme="dark"] .sw-bear-text {
    background: rgba(20,20,32,0.9);
  }

  .sw-cookie-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px;
  }

  .sw-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .book-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sw-hero h1 { font-size: 1.7rem; }
  .book-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* --- Back to Top --- */
.sw-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 80px;
  z-index: 190;
  width: 44px;
  height: 44px;
  background: var(--sw-saffron);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s, transform 0.2s;
  font-size: 1.2rem;
}

.sw-back-to-top.show {
  display: flex;
}

.sw-back-to-top:hover {
  transform: translateY(-3px);
  background: var(--sw-terracotta);
}

/* --- Announcement Bar --- */
.sw-announcement {
  background: linear-gradient(135deg, #FF2B09, #E8731A);
  color: #fff;
  padding: 10px 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  text-align: center;
}
