html { scroll-behavior: auto !important; }
/* ============================================================
   CONTENT LINKS — Green for clickable text inside content areas only
   Header/footer/buttons unaffected (scoped to content classes)
   ============================================================ */
.post-content a:not(.btn),
.blog-content a:not(.btn),
.page-content a:not(.btn),
.entry-content a:not(.btn),
.content-body a:not(.btn),
.rich-content a:not(.btn),
.book-description a:not(.btn),
.poetry-content a:not(.btn),
.bio-content a:not(.btn),
.long-bio a:not(.btn),
.cms-content a:not(.btn),
.kkl-content a:not(.btn) {
  color: #16a34a !important;
  text-decoration: underline;
  text-decoration-color: rgba(22, 163, 74, 0.4);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.post-content a:not(.btn):hover, .blog-content a:not(.btn):hover, .page-content a:not(.btn):hover, .entry-content a:not(.btn):hover, .content-body a:not(.btn):hover, .rich-content a:not(.btn):hover, .book-description a:not(.btn):hover, .poetry-content a:not(.btn):hover, .bio-content a:not(.btn):hover, .long-bio a:not(.btn):hover, .cms-content a:not(.btn):hover, .kkl-content a:not(.btn):hover {
  color: #15803d !important;
  text-decoration-color: rgba(21, 128, 61, 1);
}
/* ============================================================
   Khudkikalam - Main Stylesheet
   Theme: Orangered + White | Mobile-First | Performance-Optimized
   ============================================================ */

/* ---- CSS Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, picture, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ---- CSS Variables ---- */
:root {
  --primary: #FF4500;
  --primary-dark: #d83d00;
  --primary-light: #fff1ec;
  --secondary: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-light: #fafafa;
  --bg-gray: #f4f4f6;
  --border: #e5e5e7;
  --border-light: #f0f0f2;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --max-width: 1280px;
  --header-height: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Mukti", system-ui, sans-serif;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { color: var(--text); }
.section-title p { color: var(--text-light); margin-top: 8px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.logo-img { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  color: var(--text);
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg-gray); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-btn .badge.cart-badge { animation: badge-pop 0.4s ease; }
@keyframes badge-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Lang dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown .icon-btn { font-size: 13px; font-weight: 600; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 140px;
  padding: 6px;
  display: none;
  z-index: 50;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.lang-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  padding: 32px 0 28px;
}
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f4f4f6;
  aspect-ratio: 16 / 6;
}
.hero-slides { display: flex; transition: transform 0.6s ease; height: 100%; }
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-light);
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
  max-width: 600px;
}
.hero-content h1 { color: #fff; margin-bottom: 10px; }
.hero-content p { font-size: 1.05rem; margin-bottom: 18px; opacity: 0.95; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.slider-dot.active { background: #fff; width: 26px; border-radius: 5px; }
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.hero-slider:hover .slider-nav { display: flex; }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-secondary { background: var(--text); color: #fff; }
.btn-light { background: #fff; color: var(--text); border-color: var(--border); }
.btn-light:hover { background: var(--bg-gray); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ============================================================
   STATS & SEARCH BAR (Section 2)
   ============================================================ */
.stats-search-section { padding: 26px 0; background: #fff; }
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat-books {
  background: #eff5ff;
  padding: 10px 18px;
  border-radius: var(--radius);
}
.stat-books .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
}
.stat-books .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.social-stats { display: flex; gap: 16px; align-items: center; }
.social-stat { text-align: center; }
.social-stat .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  color: #fff;
}
.social-stat .ig { background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-stat .tw { background: #1DA1F2; }
.social-stat .fb { background: #1877f2; }
.social-stat .yt { background: #ff0000; }
.social-stat .num-small { font-size: 13px; font-weight: 600; color: var(--text); }

.search-bar-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 4px 4px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.search-bar-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 6px;
  font-size: 15px;
}
.search-bar-wrap button {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
}

.category-pills {
  margin-top: 16px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.category-pill.active, .category-pill:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ============================================================
   PRODUCT GRID (Books)
   ============================================================ */
.products-section { padding: 36px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h2 { font-size: 1.4rem; }
.section-head .view-all-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.product-card .product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-gray);
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.product-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.product-wishlist.active { color: var(--primary); }

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
  margin-bottom: 4px;
}
.product-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.product-mrp {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-discount {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.product-card .btn-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
}
.product-card .btn-cart:hover { background: var(--primary-dark); }

/* ============================================================
   AUTHOR / WRITER CARDS
   ============================================================ */
.authors-section { padding: 36px 0; background: var(--bg-light); }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 768px) {
  .authors-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.author-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: all 0.2s;
}
.author-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--primary-light);
  overflow: hidden;
  border: 3px solid var(--primary-light);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.author-card .bio {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-stats { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.author-stats strong { color: var(--text); }

/* ============================================================
   PUBLICATION SERVICES SECTION
   ============================================================ */
.publication-section {
  padding: 44px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #ff6a33 100%);
  color: #fff;
}
.publication-section h2 { color: #fff; }
.publication-section .section-title p { color: rgba(255,255,255,0.92); }
.publication-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
@media (max-width: 768px) { .publication-grid { grid-template-columns: repeat(2, 1fr); } }
.publication-step {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 22px 16px;
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(8px);
}
.publication-step .step-num {
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 10px;
}
.publication-step h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.publication-step p { font-size: 13px; opacity: 0.92; }
.publication-cta { text-align: center; margin-top: 14px; }

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-section { padding: 44px 0; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .packages-grid { grid-template-columns: 1fr; } }
.package-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.package-card.featured {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.package-card .package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.package-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.package-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 14px 0;
}
.package-card .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.package-card ul { text-align: left; margin: 18px 0; }
.package-card ul li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: start;
  gap: 8px;
}
.package-card ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section { padding: 44px 0; background: var(--bg-light); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.review-stars { color: #ffc107; margin-bottom: 10px; }
.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-author .ra-name { font-weight: 600; font-size: 14px; }
.review-author .ra-role { font-size: 12px; color: var(--text-muted); }

/* Video reviews */
.video-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 768px) { .video-reviews { grid-template-columns: 1fr; } }
.video-review {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-review iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-grid h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-grid ul li { padding: 5px 0; }
.footer-grid a { color: #999; font-size: 14px; transition: color 0.15s; }
.footer-grid a:hover { color: var(--primary); }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--primary); }
.newsletter-input {
  display: flex;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.newsletter-input input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  background: #333;
  color: #fff;
  font-size: 14px;
}
.newsletter-input button {
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,69,0,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--header-height) - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background: var(--bg-light);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card h2 { text-align: center; margin-bottom: 24px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 28px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
.pagination a:hover { background: var(--bg-gray); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { margin: 0 8px; }

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 4px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.open { right: 0; }
  .main-nav a { width: 100%; padding: 12px 14px; font-size: 15px; border-radius: var(--radius-sm); }
  .menu-toggle { display: inline-flex; }
}

/* ============================================================
   AD BLOCKS
   ============================================================ */
.ad-block { margin: 20px 0; text-align: center; min-height: 90px; }
.ad-header, .ad-footer { padding: 10px; background: #fafafa; }
.ad-sidebar { position: sticky; top: 80px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.py-4 { padding: 16px 0; }
.hidden { display: none; }
@media (min-width: 901px) { .mobile-only { display: none; } }
@media (max-width: 900px) { .desktop-only { display: none; } }

/* ============================================================
   PHASE 3 - DESIGN FIXES
   ============================================================ */

/* Fix #9: Disable horizontal scroll site-wide */
/* removed: overflow-x:hidden was breaking sticky */

/* Fix #1: Hero banner gap with header + full width */
.hero, .hero-banner, .banner-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.hero img, .hero-banner img, .banner-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fix #2: Mobile banner zoom out */
@media (max-width: 768px) {
  .hero, .hero-banner, .banner-section {
    aspect-ratio: 16/9;
    overflow: hidden;
  }
  .hero img, .hero-banner img, .banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Fix #3: Banner CTA buttons size + alignment */
.banner-cta-wrap {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  flex-wrap: wrap;
  justify-content: center;
}
.banner-cta-wrap .btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 24px;
}
@media (max-width: 600px) {
  .banner-cta-wrap {
    bottom: 10px;
    width: 90%;
  }
  .banner-cta-wrap .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Logo + Site Name in header */
.site-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-wrap img {
  height: 40px;
  width: auto;
}
.site-logo-wrap .site-name {
  display: flex;
  flex-direction: column;
}
.site-logo-wrap .site-name strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}
.site-logo-wrap .site-name small {
  color: var(--text-light);
  font-size: 11px;
}

/* Mobile: smaller logo and visible name */
@media (max-width: 768px) {
  .site-logo-wrap img { height: 32px; }
  .site-logo-wrap .site-name strong { font-size: 15px; }
  .site-logo-wrap .site-name small { display: none; }
}

/* Stats Section (Star Search) - functional values */
.stats-section {
  background: var(--primary-light);
  padding: 40px 20px;
}
.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.stats-section .stat-item .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stats-section .stat-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
@media (max-width: 480px) {
  .stats-section .stat-item .number { font-size: 1.4rem; }
  .stats-section .stat-item .label { font-size: 11px; }
}

/* Cart icon with count */
.cart-icon-wrap { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile menu enhancements */
@media (max-width: 768px) {
  .mobile-menu-extras {
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 14px;
  }
  .mobile-menu-extras .icons-row {
    display: flex;
    justify-content: space-around;
    margin-top: 14px;
  }
  .mobile-menu-extras .icons-row a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text);
    gap: 4px;
  }
  .mobile-menu-extras .icons-row a span:first-child {
    font-size: 22px;
  }
}

/* Category cards - filter mode (no redirect) */
.category-filter-active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Product card responsive */
@media (max-width: 600px) {
  .product-card, .book-card {
    font-size: 13px;
  }
  .product-card h3, .book-card h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .product-card .price, .book-card .price {
    font-size: 14px;
  }
  .product-card .btn, .book-card .btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* In-cart indicator on product cards */
.product-card.in-cart::after,
.book-card.in-cart::after {
  content: '✓ In Cart';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success, #16a34a);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.product-card, .book-card { position: relative; }




/* ============================================================
   PHASE 3F - FINAL OVERRIDES (Single Source of Truth)
   ============================================================ */

/* No auto-scroll */
html { scroll-behavior: auto !important; }
/* removed: overflow-x:hidden was breaking sticky */

/* Container - normal width */
.container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   STICKY HEADER (Both devices) + LOGO STYLING
   ============================================================ */
header.site-header,
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  width: 100% !important;
}

.site-logo,
.logo {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-logo img,
.logo img {
  height: 32px !important;
  width: auto !important;
}
.site-logo .site-name,
.site-logo .logo-text,
.logo-text {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #FF4500 !important;
  line-height: 1.1 !important;
}
.site-logo .site-tagline,
.site-logo small {
  font-size: 10px !important;
  color: #6b7280 !important;
  display: block;
  font-weight: 400 !important;
}

@media (max-width: 600px) {
  .site-logo img, .logo img { height: 28px !important; }
  .site-logo .site-name, .site-logo .logo-text { font-size: 0.9rem !important; }
  .site-logo .site-tagline, .site-logo small { display: none !important; }
}

/* ============================================================
   HERO BANNER - Multiple slides + Auto-scroll
   ============================================================ */
.hero {
  padding: 8px 0 20px 0;  /* Issue 15: small gap from header */
}
.hero .hero-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}
.hero .hero-slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}
.hero .hero-slide {
  min-width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center center;  /* Issue 6: Banner center fix */
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  padding: 30px 20px 60px;
  position: relative;
  width: 100%;
  z-index: 2;
}
.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.hero-content .hero-ctas {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-content .hero-ctas .btn {
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 4px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.slider-dot.active { background: #fff; }

@media (max-width: 768px) {
  .hero { padding: 6px 0 16px 0; }

  /* CRITICAL: Remove overflow-hidden so CTAs visible below slide height */
  .hero .hero-slider {
    overflow: visible !important;
  }

  /* Mobile hero-slide - just height */
  .hero .hero-slide {
    background-image: var(--bg-mobile, var(--bg-desktop)) !important;
    background-size: cover;
    background-position: center;
    height: 320px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* hero-content - SIMPLE, no flex. Let slide handle centering */
  .hero-content {
    text-align: center;
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    color: #fff;
  }

  .hero-content h1 {
    font-size: 1.5rem !important;
    line-height: 1.25;
    margin: 0 0 4px 0 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9) !important;
    font-weight: 700 !important;
    display: block !important;
    visibility: visible !important;
  }

  .hero-content p {
    font-size: 0.75rem !important;
    line-height: 1.1;
    margin: 0 0 6px 0 !important;
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
    display: block !important;
  }

  /* CTAs - OVERRIDE desktop absolute positioning */
  .hero-content .hero-ctas {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-content .hero-ctas .btn {
    padding: 6px 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    display: inline-block !important;
  }

  /* Hide slider dots */
  .slider-dots {
    display: none !important;
  }

  .slider-nav {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  /* Gradient overlay */
  .hero .hero-slide::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%) !important;
  }
}

@media (max-width: 480px) {
  .hero .hero-slide {
    height: 280px !important;
  }

  .hero-content h1 {
    font-size: 1.35rem !important;
  }

  .hero-content p {
    font-size: 0.7rem !important;
    margin: 0 0 5px 0 !important;
  }

  .hero-content .hero-ctas .btn {
    padding: 5px 8px !important;
    font-size: 9px !important;
  }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section { padding: 30px 0; background: #fff; }
.stats-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-item {
  text-align: center;
  padding: 14px 8px;
  background: #fff5f0;
  border-radius: 8px;
}
.stat-num { font-size: 1.5rem; font-weight: 800; color: #FF4500; line-height: 1; }
.stat-label { font-size: 12px; color: #6b7280; margin-top: 4px; }

.social-followers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #f4f4f6;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.social-card svg { margin-bottom: 4px; }
.social-card.insta { color: #E1306C; }
.social-card.fb { color: #1877F2; }
.social-card.yt { color: #FF0000; }
.social-card.tw { color: #000; }
.social-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.social-card strong { font-size: 13px; color: #1a1a1a; }
.social-card small { font-size: 10px; color: #6b7280; }

@media (max-width: 768px) {
  .stats-grid-home { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-num { font-size: 1.2rem; }
}

/* ============================================================
   SECTIONS - Common
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF4500;
}
.section-title h2 {
  font-size: 1.3rem;
  margin: 0;
  color: #1a1a1a;
}
.section-title .view-all {
  color: #FF4500;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.section-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ============================================================
   HORIZONTAL SCROLL WRAPPER (Issue 6 - right to left scrollable)
   ============================================================ */
.horizontal-scroll-wrapper {
  margin: 0 -16px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}
.horizontal-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb { background: #FF4500; border-radius: 2px; }

.horizontal-scroll-track {
  display: flex;
  gap: 14px;
  padding-bottom: 10px;
}

/* Category scroll bar */
.category-scroll-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.category-scroll-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #f4f4f6;
  border-radius: 20px;
  text-decoration: none;
  color: #4b5563;
  font-size: 13px;
  white-space: nowrap;
}
.cat-pill.active, .cat-pill:hover {
  background: #FF4500;
  color: #fff;
}

/* ============================================================
   BOOK CARD - With Add to Cart, Wishlist, Offers
   ============================================================ */
.products-section { padding: 30px 0; }
.book-card-new {
  flex-shrink: 0;
  width: 220px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.book-card-new .book-img-link {
  position: relative;
  display: block;
}
.book-card-new img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.book-card-new .book-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f6;
  font-size: 3rem;
}
.book-card-new .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}
.book-card-new .badge.bestseller { background: #f59e0b; }
.book-card-new .badge.discount { background: #16a34a; top: 8px; right: 8px; left: auto; }
.book-card-new .wishlist-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.95);
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card-new .wishlist-icon:hover, .book-card-new .wishlist-icon.active { color: #dc2626; }
.book-card-new .book-info { padding: 10px; flex: 1; display: flex; flex-direction: column; }
.book-card-new h3 {
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a1a1a;
  min-height: 32px;
}
.book-card-new .author { color: #6b7280; font-size: 11px; display: block; }
.book-card-new .rating-row { display: flex; align-items: center; gap: 4px; margin: 6px 0; font-size: 11px; }
.book-card-new .stars { color: #f59e0b; }
.book-card-new .rating-row small { color: #6b7280; }
.book-card-new .price-row { margin-bottom: 8px; }
.book-card-new .price { font-weight: 700; color: #FF4500; font-size: 14px; }
.book-card-new .mrp { text-decoration: line-through; color: #9ca3af; font-size: 11px; margin-left: 4px; }
.book-card-new .add-to-cart-btn {
  width: 100%;
  padding: 8px;
  background: #FF4500;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
}
.book-card-new .add-to-cart-btn:hover { background: #d83d00; }
.book-card-new .add-to-cart-btn.in-cart { background: #16a34a; }

@media (max-width: 600px) {
  .book-card-new { width: 160px; }
  .book-card-new h3 { font-size: 12px; }
}

/* ============================================================
   PERSON CARDS (Authors/Writers)
   ============================================================ */
.authors-section, .writers-section { padding: 30px 0; }
.writers-section { background: #fff5f0; }

.person-card-new {
  flex-shrink: 0;
  width: 200px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.person-card-new img,
.person-card-new .person-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-card-new .person-placeholder {
  background: #FF4500;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.person-card-new h3 { font-size: 0.95rem; margin-bottom: 4px; }
.person-card-new p {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  min-height: 32px;
}
.person-card-new .person-stats {
  display: flex;
  justify-content: space-around;
  font-size: 10px;
  color: #6b7280;
  padding: 6px 0;
  border-top: 1px solid #f4f4f6;
  margin-bottom: 8px;
}
.person-card-new .follow-btn {
  display: inline-block;
  padding: 4px 12px;
  background: #fff5f0;
  color: #FF4500;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .person-card-new { width: 160px; padding: 12px; }
  .person-card-new img, .person-card-new .person-placeholder { width: 60px; height: 60px; }
}

/* ============================================================
   POETRY SECTION
   ============================================================ */
.poetry-section { padding: 30px 0; }
.poetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.poetry-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid #FF4500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.poetry-card:hover { box-shadow: 0 4px 12px rgba(255,69,0,0.15); }
.poetry-card h3 { font-size: 1rem; margin-bottom: 8px; }
.poetry-card p { font-style: italic; color: #6b7280; font-size: 13px; line-height: 1.6; }
.poetry-card small { display: block; margin-top: 10px; color: #FF4500; }

@media (max-width: 768px) {
  .poetry-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PUBLISHING PROCESS
   ============================================================ */
.publishing-process-section {
  padding: 40px 0;
  background: #fff5f0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  background: #fff;
  padding: 24px 16px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.process-step .step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: #FF4500;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.process-step .step-icon { font-size: 2.5rem; margin: 14px 0 10px; }
.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 12px; color: #6b7280; line-height: 1.5; }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-step .step-icon { font-size: 2rem; }
}

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-section { padding: 40px 0; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.package-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid #f4f4f6;
  position: relative;
  text-align: center;
}
.package-card.popular {
  border-color: #FF4500;
  transform: scale(1.05);
}
.package-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF4500;
  color: #fff;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.package-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.package-card .package-price {
  font-size: 2rem;
  font-weight: 800;
  color: #FF4500;
  margin: 12px 0;
}
.package-card .package-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}
.package-card .package-features li {
  padding: 6px 0;
  font-size: 13px;
  color: #4b5563;
}

@media (max-width: 768px) {
  .packages-grid { grid-template-columns: 1fr; }
  .package-card.popular { transform: none; }
}

/* ============================================================
   POSTS GRID (Horizontal scroll)
   ============================================================ */
.latest-posts-section { padding: 30px 0; }
.post-card-new {
  flex-shrink: 0;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.post-card-new img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-card-new .post-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #FF4500, #d83d00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}
.post-card-new .post-info { padding: 14px; }
.post-card-new h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.3; }
.post-card-new p { font-size: 12px; color: #6b7280; line-height: 1.5; margin-bottom: 8px; }
.post-card-new small { color: #9ca3af; font-size: 11px; }

/* ============================================================
   EVENTS
   ============================================================ */
.events-section { padding: 30px 0; background: #fff5f0; }
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.event-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.event-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.event-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, #FF4500, #d83d00); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; }
.event-info { padding: 12px; }
.event-type { background: #fff5f0; color: #FF4500; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.event-info h3 { font-size: 0.95rem; margin: 8px 0 4px; line-height: 1.3; }
.event-info small { display: block; color: #6b7280; font-size: 12px; }

@media (max-width: 768px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { padding: 30px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 8px; }
.testimonial-card p { font-style: italic; color: #374151; line-height: 1.6; margin-bottom: 14px; font-size: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: #FF4500; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { padding: 40px 0; }
.newsletter-box {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
}
.newsletter-box h2 { color: #fff; margin-bottom: 8px; }
.newsletter-box p { color: #d1d5db; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border-radius: 6px; border: 0; font-size: 14px; }
.newsletter-form .btn { padding: 12px 24px; }

@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
}

/* ============================================================
   FOOTER - Clean Layout (Issue 1)
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #d1d5db;
  padding: 40px 0 80px;  /* Bottom padding for mobile nav */
  margin-top: 40px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer .footer-about p { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul li a { color: #d1d5db; text-decoration: none; font-size: 13px; }
.site-footer ul li a:hover { color: #FF4500; }
.site-footer .footer-social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.site-footer .footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.site-footer .footer-social a:hover { background: #FF4500; transform: translateY(-2px); }
.site-footer .footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer .newsletter-input { display: flex; gap: 6px; margin-top: 10px; }
.site-footer .newsletter-input input { flex: 1; padding: 8px 12px; border: 1px solid #444; background: #2a2a2a; color: #fff; border-radius: 4px; font-size: 13px; }
.site-footer .newsletter-input button { padding: 8px 14px; background: #FF4500; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.site-footer .footer-bottom { text-align: center; padding-top: 20px; margin-top: 30px; border-top: 1px solid #333; font-size: 12px; color: #9ca3af; }

@media (max-width: 768px) {
  .site-footer { padding: 30px 0 80px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .site-footer .footer-social { justify-content: center; }
  .site-footer .newsletter-input { max-width: 320px; margin: 10px auto 0; }
}

/* ============================================================
   MOBILE BOTTOM STICKY NAVIGATION (Issue 2)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 99;
    padding: 6px 0;
    justify-content: space-around;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 10px;
    padding: 4px 0;
    position: relative;
  }
  .mobile-bottom-nav a.active { color: #FF4500; }
  .mobile-bottom-nav a .icon { font-size: 22px; line-height: 1; }
  .mobile-bottom-nav a .label { margin-top: 2px; }
  .mobile-bottom-nav a .badge {
    position: absolute;
    top: 0;
    right: 26%;
    background: #FF4500;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.3;
  }
  body { padding-bottom: 60px; }
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  /* Section title smaller on mobile */
  .section-title h2 { font-size: 1.05rem; }
  
  /* All sections padding reduced */
  section { padding: 20px 0; }
  
  /* Horizontal scroll cards smaller on mobile */
  .book-card-new { width: 150px; }
  .person-card-new { width: 150px; }
  .post-card-new { width: 240px; }
}

/* ============================================================
   COMPREHENSIVE FIX - 3 Remaining Issues
   ============================================================ */

/* ============================================================
   ISSUE 1: STICKY HEADER - Maximum specificity + iOS support
   ============================================================ */

/* CRITICAL: html/body must allow sticky to work
   - overflow-x: clip works WITH sticky (unlike hidden which breaks it)
   - clip is the modern replacement for hidden that doesn't create new scroll context */
html, body {
  overflow-x: clip !important;       /* Prevents horizontal scroll WITHOUT breaking sticky */
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100% !important;
  position: static !important;
  transform: none !important;
  filter: none !important;
}

/* Fallback for browsers that don't support overflow-x: clip yet (very old) */
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden !important; }
  /* In this rare case, sticky will degrade gracefully */
}

/* Horizontal overflow handling - applied to specific elements instead */
.container, section, main, footer, header {
  max-width: 100% !important;
}

/* Header must be sticky with highest specificity */
body > header.site-header,
body header.site-header,
header.site-header,
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  width: 100% !important;
  margin: 0 !important;
  /* Prevent transform/filter which break sticky */
  transform: none !important;
  filter: none !important;
}

/* Main wrapper must NOT have overflow:hidden (breaks sticky) */
body > main,
main,
.main-content {
  overflow: visible !important;
}

/* ============================================================
   ISSUE 2: Logo + Site Name + Icons SAME SIZE (40x40 to match icon-btn)
   Using 40px to match the original icon-btn size, fits header better
   ============================================================ */

/* Header inner must be flex with proper alignment */
.site-header .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 60px !important;
  padding: 8px 0 !important;
}

/* Site logo wrapper - flex aligned */
.site-header .site-logo,
.site-header .logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  height: 40px !important;
}

/* Logo image - 40px to match icons */
.site-header .site-logo img,
.site-header .logo img,
.site-header .logo-img {
  height: 40px !important;
  width: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Site name - matches 40px line height */
.site-header .site-logo .site-name,
.site-header .site-logo .logo-text,
.site-header .logo .site-name,
.site-header .logo .logo-text,
.site-header .logo-text {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  line-height: 40px !important;
  letter-spacing: -0.2px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Hide tagline - keeps logo block compact */
.site-header .site-tagline,
.site-header .site-logo small,
.site-header .logo small {
  display: none !important;
}

/* Icons - exactly 40x40 matching logo */
.site-header .icon-btn,
.site-header .header-actions .icon-btn,
.site-header a.icon-btn,
.site-header button.icon-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 0 !important;
  position: relative !important;
}
.site-header .icon-btn:hover {
  background: var(--bg-gray) !important;
}
.site-header .icon-btn svg {
  width: 22px !important;
  height: 22px !important;
}

/* Header actions container */
.site-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 40px !important;
}

/* MOBILE: same proportions, slightly smaller (36px) */
@media (max-width: 768px) {
  .site-header .header-inner {
    min-height: 52px !important;
    padding: 6px 0 !important;
    gap: 8px !important;
  }
  .site-header .site-logo,
  .site-header .logo {
    height: 36px !important;
    gap: 8px !important;
  }
  .site-header .site-logo img,
  .site-header .logo img,
  .site-header .logo-img {
    height: 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }
  .site-header .site-logo .site-name,
  .site-header .site-logo .logo-text,
  .site-header .logo-text {
    font-size: 15px !important;
    line-height: 36px !important;
  }
  .site-header .icon-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
  .site-header .icon-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .site-header .header-actions {
    height: 36px !important;
    gap: 2px !important;
  }
}

/* ============================================================
   ISSUE 3: MOBILE FOOTER - Properly aligned, balanced 2-column layout
   ============================================================ */

/* Desktop footer stays same */
@media (min-width: 769px) {
  .site-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* MOBILE: clean 2-column layout with proper alignment */
@media (max-width: 768px) {
  .site-footer {
    padding: 28px 0 75px !important;
  }
  .site-footer .container {
    padding: 0 16px !important;
  }
  
  /* Main grid - 2 columns */
  .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
    text-align: left !important;
    margin-bottom: 0 !important;
  }
  
  /* About section - full width, centered */
  .site-footer .footer-grid > .footer-about {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding-bottom: 16px !important;
    margin-bottom: 4px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  .site-footer .footer-about h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    color: #fff !important;
  }
  .site-footer .footer-about p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .site-footer .footer-about .footer-social {
    justify-content: center !important;
    margin-top: 0 !important;
  }
  
  /* Inner column headings - clean alignment */
  .site-footer .footer-grid > div:not(.footer-about) {
    text-align: left !important;
  }
  .site-footer .footer-grid > div:not(.footer-about) h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }
  
  /* Link lists */
  .site-footer .footer-grid > div:not(.footer-about) ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .site-footer .footer-grid > div:not(.footer-about) ul li {
    padding: 3px 0 !important;
    text-align: left !important;
  }
  .site-footer .footer-grid > div:not(.footer-about) ul li a {
    font-size: 12px !important;
    color: #d1d5db !important;
    text-decoration: none !important;
    display: inline-block !important;
  }
  .site-footer .footer-grid > div:not(.footer-about) ul li a:hover {
    color: var(--primary) !important;
  }
  
  /* Newsletter section - full width below grid */
  .site-footer .footer-grid > div:last-child {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding-top: 16px !important;
    margin-top: 4px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: none !important;
  }
  .site-footer .footer-grid > div:last-child h3 {
    font-size: 13px !important;
    text-align: center !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 6px !important;
  }
  .site-footer .footer-grid > div:last-child p {
    font-size: 12px !important;
    color: #d1d5db !important;
    margin-bottom: 10px !important;
  }
  .site-footer .newsletter-input {
    max-width: 300px !important;
    margin: 0 auto !important;
    display: flex !important;
    gap: 6px !important;
  }
  .site-footer .newsletter-input input {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  .site-footer .newsletter-input button {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  
  /* Payment icons aligned */
  .site-footer .payment-icons {
    text-align: center !important;
    margin-top: 12px !important;
  }
  .site-footer .payment-icons small {
    font-size: 10px !important;
    margin-bottom: 6px !important;
    display: block !important;
  }
  .pay-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
  
  /* Footer bottom bar - compact */
  .footer-bottom-bar {
    margin-top: 16px !important;
    padding-top: 14px !important;
    text-align: center !important;
  }
  .footer-legal-links {
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
  }
  .footer-legal-links a {
    font-size: 11px !important;
  }
  .footer-legal-links span {
    font-size: 11px !important;
  }
  .footer-copyright {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  .footer-developer {
    font-size: 11px !important;
  }
}

/* ============================================================
   CATEGORY FILTER (Issue 3 from before - keep this)
   ============================================================ */
.category-scroll-bar button.cat-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #f4f4f6;
  border: 2px solid transparent;
  border-radius: 20px;
  color: #4b5563;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.category-scroll-bar button.cat-pill:hover {
  background: #fff5f0;
  color: var(--primary);
}
.category-scroll-bar button.cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.book-card-new.filtered-out {
  display: none !important;
}

/* ============================================================
   FOOTER BOTTOM BAR STYLING
   ============================================================ */
.footer-bottom-bar {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-legal-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-legal-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 12px;
  padding: 2px 4px;
}
.footer-legal-links a:hover {
  color: var(--primary);
}
.footer-legal-links span {
  color: #555;
  font-size: 12px;
}
.footer-copyright {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.footer-developer {
  font-size: 11px;
  color: #9ca3af;
}
.footer-developer a {
  color: var(--primary);
  text-decoration: none;
}
.footer-developer strong {
  color: var(--primary);
}


/* ============================================================
   STICKY HEADER ENFORCEMENT v3.1 - 2025-05-18
   This is at end of file = highest CSS priority
   ============================================================ */

/* Reset any conflicting overflow on body/html */
html { overflow-x: clip !important; overflow-y: auto !important; }
body { overflow-x: clip !important; overflow-y: visible !important; }

/* Force header sticky with maximum specificity */
html body header.site-header,
html body > header.site-header,
header.site-header.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  background-color: #ffffff !important;
  width: 100% !important;
  transform: translateZ(0) !important;  /* Force GPU layer */
  will-change: transform !important;
}

/* Container must NOT have transform/filter that breaks sticky */
.site-header .container {
  transform: none !important;
  filter: none !important;
  overflow: visible !important;
}


/* ============================================================
   CHECKOUT MULTI-STEP FLOW
   ============================================================ */

.checkout-page {
  background: #f9fafb;
  min-height: 100vh;
  padding: 20px 0;
}

/* Step Indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  max-width: 600px;
  padding: 0 16px;
}
.checkout-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
}
.checkout-steps .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.checkout-steps .step-label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.checkout-steps .step.active .step-num {
  background: var(--primary);
  color: #fff;
}
.checkout-steps .step.active .step-label {
  color: var(--primary);
}
.checkout-steps .step.completed .step-num {
  background: #16a34a;
  color: #fff;
}
.checkout-steps .step.completed .step-num::after {
  content: '✓';
}
.checkout-steps .step.completed .step-num span {
  display: none;
}
.checkout-steps .step-divider {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  margin-bottom: 24px;
  transition: background 0.2s;
}
.checkout-steps .step-divider.completed {
  background: #16a34a;
}

/* Checkout Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.checkout-main { min-width: 0; }
.checkout-sidebar { align-self: start; position: sticky; top: 80px; }

.checkout-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f2;
}
.checkout-card h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #1a1a1a;
}
.step-hint {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  margin-top: -8px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f2;
}
.step-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 0;
}

/* Payment Methods (no default selection) */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-method {
  display: block;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  transition: all 0.2s;
  position: relative;
}
.payment-method:hover {
  border-color: #fed7aa;
  background: #fffbf7;
}
.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-method:has(input[type="radio"]:checked),
.payment-method.selected {
  border-color: var(--primary);
  background: #fff5f0;
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}
.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pm-header > div:first-child {
  flex: 1;
}
.pm-header strong {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.pm-header small {
  font-size: 12px;
  color: #6b7280;
  display: block;
}
.pm-radio-circle {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.payment-method:has(input[type="radio"]:checked) .pm-radio-circle,
.payment-method.selected .pm-radio-circle {
  border-color: var(--primary);
}
.payment-method:has(input[type="radio"]:checked) .pm-radio-circle::after,
.payment-method.selected .pm-radio-circle::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--primary);
  border-radius: 50%;
}

/* Payment details (shown only when selected) */
.payment-details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f2;
}
.payment-method:has(input[type="radio"]:checked) .payment-details,
.payment-method.selected .payment-details {
  display: block;
}

.upi-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.upi-id-box small {
  display: block;
  color: #6b7280;
  font-size: 11px;
  margin-bottom: 2px;
}
.upi-id-box code {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.btn-copy {
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

/* UPI Apps Grid */
.upi-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.upi-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.upi-app-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.upi-app-btn .upi-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #4285f4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Pay chips for Razorpay */
.pay-chip {
  display: inline-block;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
}

.bank-details {
  background: #f9fafb;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.bank-details table td {
  padding: 4px 0;
  vertical-align: top;
}
.bank-details code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
}

/* Order Summary Sidebar */
.summary-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}
.cart-items-summary {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.summary-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f4f4f6;
}
.summary-item:last-child { border-bottom: 0; }
.summary-item-img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.summary-item-info {
  flex: 1;
  min-width: 0;
}
.summary-item-info strong {
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
  color: #1a1a1a;
}
.summary-item-info small {
  font-size: 11px;
  color: #6b7280;
}
.summary-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}
.summary-card hr {
  border: 0;
  border-top: 1px solid #f0f0f2;
  margin: 12px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #4b5563;
}
.summary-row.summary-total {
  font-size: 18px;
  padding: 8px 0;
}
.free-shipping-hint {
  display: block;
  font-size: 11px;
  color: #16a34a;
  background: #f0fdf4;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 6px;
}
.secure-badge {
  text-align: center;
  font-size: 11px;
  color: #6b7280;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f2;
}

/* Review Section */
.review-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.review-block {
  background: #f9fafb;
  padding: 14px 16px;
  border-radius: 8px;
  position: relative;
}
.review-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.review-block > div {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}
.btn-link {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  color: var(--primary);
  border: 0;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.btn-link:hover { text-decoration: underline; }

.btn-place-order {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  padding: 14px 32px;
  min-width: 200px;
}
.btn-place-order:hover { background: var(--primary-dark); }
.btn-place-order:disabled { opacity: 0.6; cursor: not-allowed; }

/* MOBILE */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-sidebar {
    position: static;
    order: -1;
  }
  .cart-items-summary {
    max-height: 160px;
  }
}
@media (max-width: 600px) {
  .checkout-steps {
    margin-bottom: 20px;
  }
  .checkout-steps .step-num {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .checkout-steps .step-label {
    font-size: 11px;
  }
  .checkout-card {
    padding: 16px;
  }
  .upi-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-actions {
    flex-direction: column-reverse;
  }
  .step-actions .btn {
    width: 100%;
  }
}


/* ============================================================
   MODERN MOBILE TOGGLE MENU (Scoped — only mobile, only when .main-nav.open)
   This block ONLY enhances mobile menu visuals. Does NOT touch
   desktop nav, header, footer, or any other component.
   ============================================================ */
@media (max-width: 900px) {
  /* Smooth backdrop overlay (added by JS) */
  .kkl-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .kkl-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Override mobile nav with modern look */
  .main-nav {
    top: 0 !important;
    right: -100% !important;
    width: 86% !important;
    max-width: 360px !important;
    height: 100vh !important;
    background: #ffffff !important;
    padding: 0 !important;
    gap: 0 !important;
    box-shadow: -16px 0 50px rgba(0,0,0,0.18) !important;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    z-index: 9999 !important;
    overflow-x: hidden !important;
  }
  .main-nav.open {
    right: 0 !important;
  }

  /* Modern hero header inside mobile menu */
  .kkl-menu-hero {
    background: linear-gradient(135deg, #FF4500 0%, #ff6d3d 100%);
    color: #fff;
    padding: 26px 22px 22px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .kkl-menu-hero .kkl-menu-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
  }
  .kkl-menu-hero .kkl-menu-close:hover,
  .kkl-menu-hero .kkl-menu-close:active {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
  }
  .kkl-menu-hero .kkl-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .kkl-menu-hero .kkl-brand-emoji {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
  }
  .kkl-menu-hero .kkl-brand-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.2;
  }
  .kkl-menu-hero .kkl-brand-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.92);
    margin: 0;
  }

  /* Quick action grid */
  .kkl-menu-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px;
    background: #fafafa;
    border-bottom: 1px solid #ececec;
  }
  .kkl-menu-quick a {
    width: 100% !important;
    padding: 10px 6px !important;
    border: 1px solid #ececec !important;
    border-radius: 10px !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
  }
  .kkl-menu-quick a:hover,
  .kkl-menu-quick a:active {
    background: #fff4ed !important;
    border-color: #FF4500 !important;
    color: #FF4500 !important;
    transform: translateY(-1px);
  }
  .kkl-menu-quick .kkl-q-icon {
    font-size: 20px;
    line-height: 1;
  }
  .kkl-menu-quick .kkl-q-label {
    font-size: 11px;
    line-height: 1.2;
  }

  /* Nav links section — clean modern list */
  .kkl-menu-section {
    padding: 8px 0;
  }
  .kkl-menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 22px 6px;
  }
  .main-nav.open .main-nav-links a {
    width: 100% !important;
    padding: 14px 22px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f3f3f3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    position: relative;
  }
  .main-nav.open .main-nav-links a::before {
    content: attr(data-icon);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff4ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .main-nav.open .main-nav-links a::after {
    content: '›';
    margin-left: auto;
    color: #ccc;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    transition: all 0.2s ease;
  }
  .main-nav.open .main-nav-links a:hover,
  .main-nav.open .main-nav-links a:active,
  .main-nav.open .main-nav-links a.active {
    background: linear-gradient(90deg, #fff4ed, transparent) !important;
    color: #FF4500 !important;
  }
  .main-nav.open .main-nav-links a:hover::before,
  .main-nav.open .main-nav-links a:active::before,
  .main-nav.open .main-nav-links a.active::before {
    background: #FF4500;
    color: #fff;
    transform: scale(1.05);
  }
  .main-nav.open .main-nav-links a:hover::after,
  .main-nav.open .main-nav-links a:active::after,
  .main-nav.open .main-nav-links a.active::after {
    color: #FF4500;
    transform: translateX(3px);
  }

  /* Footer area: language toggle + social icons */
  .kkl-menu-footer {
    padding: 18px 22px 24px;
    background: #fafafa;
    border-top: 1px solid #ececec;
    margin-top: auto;
  }
  .kkl-menu-lang {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
  }
  .kkl-menu-lang a {
    flex: 1;
    padding: 9px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }
  .kkl-menu-lang a:hover,
  .kkl-menu-lang a.active {
    background: #FF4500 !important;
    color: #fff !important;
    border-color: #FF4500 !important;
  }
  .kkl-menu-social {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  .kkl-menu-social a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
  }
  .kkl-menu-social a:hover {
    background: #FF4500 !important;
    color: #fff !important;
    border-color: #FF4500 !important;
    transform: translateY(-2px);
  }
  .kkl-menu-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  /* Lock body scroll when menu open */
  body.kkl-menu-open {
    overflow: hidden;
  }
}

/* ============================================================
   MOBILE — Prevent horizontal scroll (left-right) on any page
   SAFE VERSION: does NOT touch body position or apply max-width to all elements
   (those break position:sticky descendants like sticky header)
   ============================================================ */
html {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  max-width: 100vw;
  overflow-x: hidden;
  /* NOTE: NO position rule here — would break sticky header */
}

@media (max-width: 768px) {
  /* Media never overflow */
  img, video, iframe, svg, picture, embed, object {
    max-width: 100%;
    height: auto;
  }
  /* Long URLs / words break gracefully so they don't push width */
  p, h1, h2, h3, h4, h5, h6, li, td, th, dd, dt, blockquote {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  /* Tables scroll internally, not at page level */
  .table-wrap,
  .table-responsive,
  .category-pills,
  .horizontal-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
    white-space: pre-wrap;
  }
  table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}