/* ==========================================================================
   THUMATHI - HOMEPAGE STYLESHEET
   Design System & Responsive Stylesheet
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Quicksand:wght@500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --bg-white: #FFFFFF;
  --bg-yellow-soft: #FFF8E1;
  --accent-yellow: #FFE57F;
  --accent-yellow-dark: #FFC107;
  --accent-yellow-border: #FFE082;

  --text-primary: #4A4A4A;
  --text-dark: #2D3748;
  --text-muted: #718096;
  --text-light: #A0AEC0;

  --accent-purple: #7B1FA2;
  --accent-purple-light: #EDE7F6;
  --accent-purple-hover: #6A1B9A;
  --accent-purple-border: #0b090b;

  --accent-pink: #23191c;
  --accent-pink-dark: #181818;
  --accent-pink-light: #FCE4EC;
  --accent-pink-hover: #3e3e3e;

  --star-gold: #FFB300;
  --footer-dark: #3E2723;
  --footer-dark-text: #D7CCC8;

  /* Typography */
  --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(123, 31, 162, 0.08);
  --shadow-lg: 0 14px 32px rgba(123, 31, 162, 0.12);
  --shadow-hover: 0 18px 38px rgba(123, 31, 162, 0.18);
  --shadow-pink: 0 8px 20px rgba(240, 98, 146, 0.3);
  --shadow-purple: 0 8px 20px rgba(123, 31, 162, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

/* Accessibility: Skip to Content link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-purple);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.d-none {
  display: none !important;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ==========================================================================
   Section 1: Header (Desktop & Mobile)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-bottom: none;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-main-bar {
  position: relative;
  width: 100%;
  border: none;
  border-bottom: none;
}

/* Small Animals and Flower Band (Over Bottom of Main Header Section - 2x Size) */
.header-animals-band {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  background-image: url('../images/header-animals-band.svg');
  background-repeat: repeat-x;
  background-size: auto 36px;
  background-position: left bottom;
  pointer-events: none;
  z-index: 1020;
}

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

/* 3-Column Balanced Header Layout (Left Nav, Center Logo, Right Actions) */
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: transform var(--transition-bounce);
}

.site-logo:hover .logo-img {
  transform: scale(1.04) rotate(-2deg);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-pink-dark);
  background-color: var(--bg-yellow-soft);
  transform: translateY(-1px);
}

/* Active Nav State */
.nav-link.active {
  background-color: var(--accent-pink);
  color: #FFFFFF;
  box-shadow: var(--shadow-pink);
}

.nav-link.active:hover {
  background-color: var(--accent-pink-dark);
  color: #FFFFFF;
}

/* Full-Width Category Navigation Section (Bottom Bar of site-header) */
.header-category-bar {
  width: 100%;
  background: #FFFDF5;
  border: none;
  border-top: none;
  border-bottom: none;
  padding: 6px 0;
  box-shadow: none;
}

.header-category-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-category-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  margin-top: 15px;
  padding: 0;
  text-align: center;
}

.header-category-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #4A5568;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.header-category-link:hover {
  color: var(--accent-purple);
  background-color: var(--bg-yellow-soft);
  transform: translateY(-1px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FAFAFA;

  color: var(--text-dark);
  transition: all var(--transition-bounce);
  position: relative;
}

.action-btn:hover {
  background-color: var(--bg-yellow-soft);
  color: var(--accent-purple);
  border-color: var(--accent-purple-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Cart Counter Bubble */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #E53935;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* Hamburger Toggle Button (Hidden on Desktop) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-yellow-soft);

  padding: 8px;
  z-index: 1100;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--accent-purple);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Hamburger Active State (Transform into X) */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Slide-Out Drawer & Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #0B1120;
  z-index: 99999;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-drawer.is-open {
  right: 0;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-content-scroll {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 10px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0B1120;
}

.mobile-nav-close-btn {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.mobile-nav-close-btn:hover {
  color: #FFFFFF;
}

.mobile-nav-search-wrap {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  margin: 0;
  list-style: none;
}

.mobile-nav-group-title {
  padding: 8px 10px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: #E2E8F0 !important;
  padding: 7px 10px;
  border-radius: 6px;
  display: block;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background-color: rgba(245, 158, 11, 0.12);
  color: #F59E0B !important;
  transform: none;
}

.mobile-nav-link.active {
  background-color: rgba(245, 158, 11, 0.18);
  color: #F59E0B !important;
  font-weight: 700;
}

.mobile-nav-sublink {
  padding-left: 18px;
  font-size: 0.82rem;
  color: #CBD5E1 !important;
}

.mobile-drawer-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #EEE;
  text-align: center;
}

.mobile-drawer-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 2: Hero Section (Desktop & Mobile)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-white);
  padding: 0px 0 0px 0;
  overflow: hidden;
}

/* Pastel Yellow Accented Organic Shapes */
.hero-bg-accent-1 {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--accent-yellow) 0%, var(--bg-yellow-soft) 70%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  opacity: 0.65;
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.hero-bg-accent-2 {
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--accent-pink-light) 0%, var(--bg-yellow-soft) 60%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

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

/* Hero Heading (H1) */
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.0rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight-pink {
  color: var(--accent-pink);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-pink::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(240, 98, 146, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtext {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 34px;
  line-height: 1.65;
  font-weight: 500;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-pink);
  color: #FFFFFF;
  box-shadow: var(--shadow-pink);
  border: 2px solid var(--accent-pink);
}

.btn-primary:hover {
  background-color: var(--accent-pink-dark);
  border-color: var(--accent-pink-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px rgba(240, 98, 146, 0.4);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--accent-pink-dark);
  border: 2px solid var(--accent-pink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #FFF3E0, var(--accent-pink-light));
  color: var(--accent-pink-dark);
  border-color: var(--accent-pink-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(240, 98, 146, 0.25);
}

.btn-arrow {
  margin-left: 8px;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Image & Mascot Container */
.hero-image-block {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-illustration {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 14px 28px rgba(123, 31, 162, 0.12));
  animation: floatMascot 4.5s ease-in-out infinite;
}

@keyframes floatMascot {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   Section 3: Browse by Category (Desktop & Mobile) - Adult Publication Theme
   ========================================================================== */
.categories-section {

  background-color: #FFFFFF;
  position: relative;
  border-bottom: 1px solid #F1F5F9;
}

/* Section Title */
.section-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  letter-spacing: -0.02em;
}

.section-title-deco {
  display: none !important;
  /* Emojis removed from Category section */
}

/* Single Line Scrollable Track: Centered, Expands from Center to Either Side */
.categories-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  justify-content: safe center;
  padding: 10px 16px 22px 16px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.categories-scroll-wrapper:active {
  cursor: grabbing;
}

.categories-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.categories-scroll-wrapper::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 999px;
}

.categories-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.categories-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #94A3B8;
}

/* Category Grid: Single line row, centered and growing outward */
.category-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
  margin-right: auto;
  min-width: max-content;
}

/* Category Card: Borderless and Shadowless Clean Item */
.category-card {
  background-color: transparent;
  border-radius: 16px;
  padding: 18px 16px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-width: 145px;
  flex-shrink: 0;
  box-shadow: none !important;
  border: 1.5px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  position: relative;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Hover: Border highlight color without any box shadow */
.category-card:hover {
  transform: translateY(-3px);
  border-color: #F59E0B;
  box-shadow: none !important;
  background-color: rgba(245, 158, 11, 0.03);
}

.category-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background-color: #F8FAFC;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  box-shadow: none !important;
}

.category-card:hover .category-icon-box {
  background-color: #FFFBEB;
  border-color: #F59E0B;
}

/* User requirement: "remove icon animation when hover" */
.category-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: none !important;
  transform: none !important;
  filter: none !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.category-card:hover .category-icon {
  transform: none !important;
  filter: none !important;
}

.category-name {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.35;
  margin: 0;
  transition: color 0.25s ease;
}

.category-card:hover .category-name {
  color: #B45309;
}

/* ==========================================================================
   Section 4: Popular With Little Readers (Desktop & Mobile)
   ========================================================================== */
.popular-readers-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #B45309;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background-color: #FEF3C7;
  border: 1px solid #FDE68A;
  transition: all var(--transition-bounce);
  text-decoration: none !important;
}

.view-all-link:hover {
  background-color: #F59E0B;
  color: #0F172A;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* 5 Products Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.product-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid #F0F4F8;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
}

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

.product-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-yellow-soft);
  aspect-ratio: 240 / 310;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-bounce);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Quick Action Overlay on Hover */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(123, 31, 162, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
  visibility: visible;
}

.btn-quick-view {
  background-color: #FFFFFF;
  color: var(--accent-purple);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(10px);
  transition: all var(--transition-bounce);
}

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

.btn-quick-view:hover {
  background-color: var(--accent-pink);
  color: #FFFFFF;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.product-card:hover .product-title {
  color: var(--accent-purple);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
}

.btn-add-cart-mini {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid #BFDBFE;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-add-cart-mini:hover {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-add-cart-mini.added {
  background-color: #16A34A !important;
  color: #FFFFFF !important;
  border-color: #16A34A !important;
}

/* Dedicated Free Download Mini Button */
.btn-download-mini,
a.btn-add-cart-mini {
  background-color: #16A34A !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

.btn-download-mini:hover,
a.btn-add-cart-mini:hover {
  background-color: #1B5E20 !important;
  border: none !important;
  color: #FFFFFF !important;
  transform: scale(1.15);
  box-shadow: 0 6px 14px rgba(46, 125, 50, 0.35);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.rating-stars {
  color: var(--star-gold);
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.rating-count {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   Section 5: Step Into a World of Wonder! (Desktop & Mobile)
   ========================================================================== */
.world-of-wonder-section {
  background-color: var(--accent-purple-light);
  padding: 85px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background accents */
.wonder-deco-star-1 {
  position: absolute;
  top: 40px;
  left: 60px;
  font-size: 1.8rem;
  color: var(--star-gold);
  opacity: 0.7;
}

.wonder-deco-star-2 {
  position: absolute;
  bottom: 40px;
  right: 80px;
  font-size: 2.2rem;
  color: var(--star-gold);
  opacity: 0.6;
}

.wonder-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.wonder-image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wonder-image {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 12px 24px rgba(123, 31, 162, 0.15));
  border-radius: var(--radius-lg);
  transition: transform var(--transition-bounce);
}

.wonder-image:hover {
  transform: scale(1.02) rotate(-1deg);
}

.wonder-content-block {
  max-width: 520px;
}

.wonder-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.wonder-text {
  font-size: 1.22rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 32px;
  font-weight: 500;
}

.wonder-cta-button {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #9C27B0 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-purple);
  border: none;
}

.wonder-cta-button:hover {
  background: linear-gradient(135deg, var(--accent-purple-hover) 0%, var(--accent-purple) 100%);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(123, 31, 162, 0.4);
}

/* ==========================================================================
   Section 6: Key Features & Trust Builders (Desktop & Mobile)
   ========================================================================== */
.features-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  border-bottom: 1px solid #F0F0F0;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.feature-item:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Section 7: Footer (Desktop & Mobile)
   ========================================================================== */
.site-footer {
  background-color: #0B1120;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 64px;
  position: relative;
  color: #94A3B8;
  font-family: var(--font-body);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}

/* Logo Column */
.footer-logo-block {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
}

.footer-mission {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Social Media Links */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  background-color: #172338;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background-color: #F59E0B;
  color: #0B1120;
  border-color: #F59E0B;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* Footer Links Columns (Explore, Help & Support, About Thumathi) */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-column-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-toggle-icon {
  display: none;
  /* hidden on desktop */
  font-size: 1.2rem;
  font-weight: 700;
  color: #F59E0B;
  transition: transform var(--transition-fast);
}

.footer-column-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column-list a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #94A3B8;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-column-list a:hover {
  color: #F59E0B;
  transform: translateX(4px);
}

/* Newsletter Subscription Block */
.newsletter-block {
  display: flex;
  flex-direction: column;
  position: relative;
}

.newsletter-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.newsletter-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 18px;
}

.newsletter-form-wrapper {
  position: relative;
}

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

.newsletter-input-group {
  position: relative;
}

.newsletter-input {
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: #172338;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #FFFFFF;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
  color: #64748B;
}

.newsletter-input:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.newsletter-btn {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* Footer Bottom Copyright Bar */
.footer-copyright-bar {
  background-color: #070C18;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-copyright-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-copyright-text {
  margin: 0;
  text-align: left;
}

.footer-designer-text {
  margin: 0;
  text-align: right;
}

.footer-designer-text a {
  color: #F59E0B;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-designer-text a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .footer-copyright-container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-copyright-text,
  .footer-designer-text {
    text-align: center;
  }
}

/* ==========================================================================
   Modals & Interactive Overlays
   ========================================================================== */
/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

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

.search-modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform var(--transition-bounce);
}

.search-modal-backdrop.is-open .search-modal-card {
  transform: translateY(0);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--accent-yellow-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.search-input-wrap input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-yellow-soft);
  color: var(--text-dark);
  font-weight: 600;
}

.search-tag:hover {
  background-color: var(--accent-pink-light);
  color: var(--accent-pink-dark);
}

/* Quick View Book Modal (Modern Adult Bookstore Redesign) */
.book-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.book-modal-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  /* Reduced from 32px kids pill shape */
  border: 1px solid #E2E8F0;
  max-width: 680px;
  width: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-modal-backdrop.is-open .book-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  /* Crisp reduced radius */
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #64748B;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
  z-index: 5;
}

.modal-close-btn:hover {
  background-color: #E2E8F0;
  color: #0F172A;
  /* Clean neutral hover, no fancy colors */
}

/* Modal Media - Zero padding around image */
.modal-book-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 330px;
  aspect-ratio: 1 / 1.42;
  border-radius: 6px;
  overflow: hidden;
  background-color: #F8FAFC;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  /* Zero padding around product image */
  margin: 0;
}

.modal-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Modal Content Area */
.modal-book-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.modal-tag-badge {
  display: inline-block;
  background-color: #F59E0B;
  color: #0F172A;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  /* Crisp reduced radius */
  width: fit-content;
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal-book-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.modal-book-rating {
  color: #F59E0B;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-book-desc {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 18px;
  max-height: 90px;
  overflow-y: auto;
}

.modal-book-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.modal-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.modal-price-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
}

.modal-book-price {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
}

.modal-format-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 4px 9px;
  border-radius: 4px;
}

.modal-format-badge svg {
  color: #2563EB;
}

.modal-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-add-cart {
  width: 100%;
  background-color: #2563EB;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 6px;
  /* Crisp reduced radius */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-modal-add-cart:hover {
  background-color: #1D4ED8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-modal-add-cart:active {
  transform: translateY(0);
}

.modal-details-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563EB;
  text-align: center;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-details-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--accent-purple);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.4s var(--transition-bounce), fadeOutToast 0.4s 3.6s forwards;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOutToast {
  to {
    transform: translateX(50%);
    opacity: 0;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Tablet & Medium Screens (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .category-grid {
    gap: 16px;
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-block {
    grid-column: 1 / -1;
  }
}

/* --- Mobile Screens (max-width: 768px) --- */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  /* Header Mobile */
  .site-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    z-index: 1000;
  }

  .header-animals-band {
    bottom: -24px;
    height: 30px;
    background-size: auto 30px;
    display: block !important;
  }

  .header-main-bar {
    width: 100%;
  }

  .header-left,
  .main-nav {
    display: none;
    /* Hide desktop main nav links on mobile */
  }

  .header-center {
    justify-content: flex-start;
  }

  .hamburger-btn {
    display: flex;
    /* Show hamburger button */
  }

  .logo-img {
    height: 42px;
  }

  /* Hide header category bar in mobile view */
  .header-category-bar {
    display: none !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 40px 0 5px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .hero-subtext {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hero-cta-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-buttons .btn {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 0.95rem;
    padding: 12px 14px;
    white-space: nowrap;
    text-align: center;
  }

  .hero-main-illustration {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.4rem;
  }

  /* Categories Mobile: Single line scrollable with compact cards */
  .category-grid {
    gap: 14px;
  }

  .category-card {
    width: 130px;
    min-width: 125px;
    padding: 14px 10px 12px 10px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    box-shadow: none !important;
    background-color: transparent;
  }

  .category-icon-box {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
  }

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

  /* Popular Readers Mobile: 2 columns */
  .popular-readers-section {
    padding: 60px 0;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* World of Wonder Mobile */
  .world-of-wonder-section {
    padding: 60px 0;
  }

  .wonder-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .wonder-title {
    font-size: 2.1rem;
  }

  .wonder-text {
    font-size: 1.05rem;
  }

  .wonder-cta-button {
    width: 100%;
  }

  .wonder-image {
    max-width: 360px;
  }

  /* Features Mobile: 2x2 grid + 1 bottom item */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .feature-item:last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    padding: 16px 10px;
    background-color: #FAFAFA;
    border-radius: var(--radius-md);
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo-block {
    align-items: center;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }

  /* Accordions for mobile footer columns */
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-link-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }

  .footer-column-title {
    cursor: pointer;
    margin-bottom: 0;
    padding: 8px 0;
    user-select: none;
  }

  .accordion-toggle-icon {
    display: inline-block;
  }

  .footer-column-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding-top: 0;
  }

  .footer-link-column.is-open .footer-column-list {
    max-height: 300px;
    padding-top: 12px;
  }

  .footer-link-column.is-open .accordion-toggle-icon {
    transform: rotate(45deg);
  }

  .newsletter-block {
    text-align: center;
  }

  .book-modal-card {
    grid-template-columns: 1fr;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* --- Extra Small Screens (max-width: 480px) --- */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta-buttons {
    gap: 8px;
  }

  .hero-cta-buttons .btn {
    font-size: 0.84rem;
    padding: 10px 8px;
    letter-spacing: -0.2px;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .books-grid .product-card {
    padding: 8px 8px 10px 8px;
    border-radius: var(--radius-md);
    min-width: 0;
  }

  .books-grid .product-image-wrapper {
    margin-bottom: 6px;
  }

  .books-grid .product-title {
    font-size: 0.86rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .books-grid .product-price {
    font-size: 0.92rem;
  }

  .books-grid .btn-add-cart-mini,
  .books-grid .btn-download-free {
    width: 30px;
    height: 30px;
  }


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

  .feature-item:last-child {
    grid-column: auto;
  }
}

/* ==========================================================================
   Section 8: Product Detail Page & Similar Products
   ========================================================================== */
.product-page-main {
  background-color: #FFFDF7;
  padding-bottom: 80px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 24px 0 16px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--accent-purple);
}

.breadcrumb-separator {
  color: #CBD5E0;
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 700;
}

/* Product Detail Grid Showcase */
.product-detail-showcase {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #E2E8F0;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

/* Product Gallery Col */
.product-gallery-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-cover-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.42;
  background-color: #F8FAFC;
  border-radius: 8px;
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-cover-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.product-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-cover-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-cover-badge.badge-free {
  background: #16A34A;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

/* Specs Strip below image */
.product-specs-card {
  width: 100%;
  max-width: 380px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.spec-icon {
  font-size: 1.1rem;
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: block;
}

.spec-val {
  font-weight: 700;
}

/* Product Info Col */
.product-info-col {
  display: flex;
  flex-direction: column;
}

.product-single-title {
  font-family: var(--font-body);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-single-stars {
  color: var(--star-gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.product-rating-text {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.product-reviews-verified {
  color: #16A34A;
  background: #DCFCE7;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 4px;
}

/* Pricing Box */
.product-price-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.single-price-main {
  font-family: var(--font-body);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
}

.single-price-free {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 800;
  color: #16A34A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.instant-delivery-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #E2E8F0;
  padding: 6px 14px;
  border-radius: 6px;
}

/* Product Description Paragraph */
.product-single-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Highlights List */
.product-highlights {
  margin-bottom: 28px;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.highlight-icon {
  width: 22px;
  height: 22px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Action CTA Area */
.product-cta-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-free-download-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #16A34A;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-free-download-large:hover {
  background: #15803D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
  color: #FFFFFF;
}

.btn-buy-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-buy-large:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  color: #FFFFFF;
}

/* Trust Strip */
.product-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #F8FAFC;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px dashed #CBD5E0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Product Tabs Section */
.product-details-tabs-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #E2E8F0;
  margin-bottom: 50px;
}

.product-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #F0F4F8;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.tab-nav-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-nav-btn:hover {
  color: #D97706;
}

.tab-nav-btn.active {
  background-color: #FEF3C7;
  color: #B45309;
}

.tab-pane-content {
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Similar Products Section */
.similar-products-section {
  padding: 40px 0 60px 0;
}

/* Product Page Responsive */
@media screen and (max-width: 992px) {
  .product-detail-showcase {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }

  .product-cover-frame {
    max-width: 320px;
  }

  .product-single-title {
    font-size: 1.9rem;
  }
}

@media screen and (max-width: 600px) {
  .product-detail-showcase {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .product-single-title {
    font-size: 1.6rem;
  }

  .highlight-list {
    grid-template-columns: 1fr;
  }

  .product-trust-strip {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .product-tab-nav {
    flex-wrap: wrap;
  }

  .tab-nav-btn {
    font-size: 0.95rem;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   Section 9: Product Thumbnails Strip & Lightbox Modal
   ========================================================================== */
.zoom-pill-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.zoom-pill-badge:hover,
.product-cover-frame:hover .zoom-pill-badge {
  background: #F59E0B;
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Thumbnail Navigation Strip below Cover (Max 6 images) */
.product-thumbs-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.thumb-strip-btn {
  width: 54px;
  height: 68px;
  border-radius: 10px;
  border: 2px solid #E2E8F0;
  background: #FFF9C4;
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-bounce);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-strip-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.thumb-strip-btn:hover {
  border-color: var(--accent-yellow-dark);
  transform: translateY(-3px);
}

.thumb-strip-btn.active {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-light);
  transform: scale(1.06);
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox-wrapper {
  position: relative;
  z-index: 10001;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--accent-pink);
  transform: scale(1.1);
}

.lightbox-image-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-image-box img {
  max-width: 85vw;
  max-height: 78vh;
  min-width: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: #FFFFFF;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFE082;
  letter-spacing: 0.5px;
}

.lightbox-hint {
  font-size: 0.8rem;
  color: #CBD5E0;
  margin-top: 4px;
}

/* ==========================================================================
   Section 10: Product Showcase Page Styles
   ========================================================================== */
.showcase-main-content {
  padding-bottom: 60px;
}

/* Banner Section */
.showcase-banner-section {
  padding: 10px 0 0 0;
}

.breadcrumb-nav {
  margin-bottom: 2px;
}

.showcase-header-wrap {
  padding: 2px 0 0 0;
}

.showcase-page-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.2;
}

/* 2-Column Catalog Layout */
.showcase-catalog-section {
  padding: 10px 0 40px 0;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
}

/* Left Filter Sidebar */
.showcase-sidebar {
  position: sticky;
  top: 125px;
  z-index: 40;
}

.sidebar-sticky-wrap {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1.5px solid #F0E8F5;
  padding: 16px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  max-height: calc(100vh - 145px);
  overflow-y: auto;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #F0F4F8;
  margin-bottom: 12px;
}

.filter-header-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-header-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.filter-header-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.filter-active-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-purple);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--accent-pink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.btn-reset-filters:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F4F6F9;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group-header {
  margin-bottom: 8px;
}

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Custom Checkbox & Radio Controls */
.custom-filter-checkbox,
.custom-filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #4A5568;
  font-weight: 600;
  user-select: none;
  transition: color var(--transition-fast);
}

.custom-filter-checkbox:hover,
.custom-filter-radio:hover {
  color: var(--accent-purple);
}

.custom-filter-checkbox input,
.custom-filter-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.8px solid #CBD5E0;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.custom-filter-checkbox input:checked~.checkbox-custom {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.custom-filter-checkbox input:checked~.checkbox-custom::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.radio-custom {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.8px solid #CBD5E0;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.custom-filter-radio input:checked~.radio-custom {
  border-color: var(--accent-purple);
}

.custom-filter-radio input:checked~.radio-custom::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.checkbox-label-text,
.radio-label-text {
  flex-grow: 1;
}

/* Right Main Toolbar */
.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;



  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 8px;
}

.showcase-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 440px;
}

.search-box-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #A0AEC0;
  pointer-events: none;
}

.showcase-search-input {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1.5px solid #E2E8F0;
  padding: 8px 36px 8px 38px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #F8FAFC;
  transition: all var(--transition-fast);
}

.showcase-search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--accent-purple-light);
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: #E2E8F0;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A5568;
  cursor: pointer;
}

.showcase-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #718096;
  white-space: nowrap;
}

.showcase-sort-select {
  border-radius: var(--radius-pill);
  border: 1.5px solid #E2E8F0;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #F8FAFC;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.showcase-sort-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-light);
}

/* Mobile Filter Trigger Button */
.btn-mobile-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
}

.mobile-filter-badge {
  background: var(--accent-purple);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* Active Filters Chips Bar */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F3EDF7;
  color: var(--accent-purple);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #E1D2E9;
  animation: chipFadeIn 0.2s ease-out;
}

@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-remove-chip {
  background: none;
  border: none;
  color: var(--accent-purple);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.btn-remove-chip:hover {
  color: var(--accent-pink);
}

.btn-clear-all-chips {
  background: none;
  border: none;
  color: var(--accent-pink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}

/* ==========================================================================
   Glowing Skeleton Loaders (Shimmer Animations)
   ========================================================================== */
.skeleton-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1.5px solid #F0F4F8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.skeleton-img-box {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
}

.skeleton-title-line {
  width: 80%;
  height: 18px;
}

.skeleton-desc-line {
  width: 55%;
}

.skeleton-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.skeleton-pill {
  width: 60px;
  height: 22px;
  border-radius: 6px;
}

.skeleton-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Shimmer Keyframe Animation */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-glow {
  background: linear-gradient(90deg, #F0F4F8 25%, #E2E8F0 50%, #F0F4F8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
}

/* Empty State */
.showcase-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px dashed #E2E8F0;
  margin: 20px 0;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state-text {
  color: #718096;
  max-width: 480px;
  margin: 0 auto 24px auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Filter Drawer Modal */
.mobile-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-filter-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-filter-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  background: #FFFFFF;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
}

.mobile-filter-drawer.is-open {
  transform: translateX(0);
}

.mobile-filter-drawer-header {
  padding: 18px 20px;
  border-bottom: 1.5px solid #F0F4F8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #718096;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mobile-filter-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.mobile-filter-drawer-footer {
  padding: 16px 20px;
  border-top: 1.5px solid #F0F4F8;
  display: flex;
  gap: 12px;
}

/* Responsive Breakpoints */
@media screen and (max-width: 992px) {
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .showcase-sidebar {
    display: none;
  }

  .showcase-page-title {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 600px) {
  .showcase-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
  }

  .showcase-search-box {
    max-width: 100%;
    width: 100%;
  }

  .showcase-tools-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .btn-mobile-filter-toggle {
    flex: 0 0 auto;
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  .showcase-sort-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .sort-label {
    display: none;
  }

  .showcase-sort-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 6px 10px;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .showcase-page-title {
    font-size: 1.25rem;
  }
}

/* Showcase Grid: Strictly 3 Cards per Row on Desktop with Compact Spacing */
.showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

@media screen and (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .showcase-grid .product-card {
    padding: 8px 8px 10px 8px !important;
    border-radius: var(--radius-md) !important;
    min-width: 0 !important;
  }

  .showcase-grid .product-image-wrapper {
    margin-bottom: 6px !important;
  }

  .showcase-grid .product-title {
    font-size: 0.86rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .showcase-grid .product-price {
    font-size: 0.92rem !important;
  }

  .showcase-grid .btn-add-cart-mini,
  .showcase-grid .btn-download-free {
    width: 30px !important;
    height: 30px !important;
  }
}

@media screen and (max-width: 330px) {
  .showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

.showcase-grid .product-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.showcase-grid .product-image-wrapper {
  width: 100%;
  aspect-ratio: 240 / 310;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.showcase-grid .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-grid .skeleton-card {
  width: 100%;
  height: 100%;
  padding: 12px;
}

.showcase-grid .skeleton-img-box {
  width: 100%;
  aspect-ratio: 240 / 310;
  height: auto;
}

.showcase-grid .product-badge,
.showcase-grid .product-badge.badge-free-mini {
  display: none !important;
}

/* Pagination Styling */
.showcase-pagination-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-pagination-nav {
  display: flex;
  justify-content: center;
}

.showcase-pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  padding: 4px 8px;
  margin: 0;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  border: 1.5px solid #F0E8F5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.showcase-pagination-list .page-item {
  display: inline-block;
}

.showcase-pagination-list .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: #4A5568;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.showcase-pagination-list .page-link:hover:not(.page-link-ellipsis) {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
}

.showcase-pagination-list .page-item.active .page-link {
  background: var(--accent-purple);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(123, 31, 162, 0.25);
  cursor: default;
}

.showcase-pagination-list .page-item.disabled .page-link {
  color: #CBD5E0;
  cursor: not-allowed;
  background: transparent;
}

.showcase-pagination-list .page-link-arrow {
  font-size: 0.82rem;
  padding: 0 12px;
}

/* ==========================================================================
   Section 11: About Us Page Layout & Components
   ========================================================================== */
.about-hero-section {
  background: linear-gradient(180deg, #FFFDEE 0%, #FFFFFF 100%);
  padding: 30px 0 20px 0;
  position: relative;
  overflow: hidden;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
  margin-top: 16px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-yellow-soft);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent-yellow-border);
  margin-bottom: 12px;
}

.about-page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.about-tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 14px;
}

.about-lead-text {
  font-size: 1.05rem;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-goal-card {
  background: #FFFDF0;
  border: 2px dashed #F6E05E;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 18px;
}

.about-goal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #D69E2E;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-goal-text {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  font-style: italic;
  margin: 0;
}

.about-illustration-wrap {
  text-align: center;
}

.about-illustration-wrap img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.06));
}

/* What We Create Section */
.about-section {
  padding: 38px 0;
}

.about-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 28px auto;
}

.about-section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.about-section-desc {
  font-size: 1rem;
  color: #718096;
}

.about-create-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-create-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid #F0F4F8;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-create-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.about-create-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.about-create-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.about-create-desc {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.4;
  margin: 0;
}

/* YouTube Channel Showcase Card */
.about-youtube-banner {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border: 2px solid #FED7D7;
  border-radius: var(--radius-xl);
  padding: 30px;
  margin: 10px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.06);
}

.about-yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF0000;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.about-yt-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #2D3748;
  margin-bottom: 8px;
}

.about-yt-desc {
  font-size: 0.98rem;
  color: #4A5568;
  line-height: 1.6;
  margin-bottom: 0;
}

.btn-yt-subscribe {
  background: #FF0000;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-yt-subscribe:hover {
  background: #CC0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

/* Two-Column Split: Mission & Parents */
.about-columns-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 16px 0;
}

.about-pillar-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px solid #F0F4F8;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-pillar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.about-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #FFFDF0;
  border: 1.5px solid #FEEBC8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-pillar-icon img {
  width: 32px;
  height: 32px;
}

.about-pillar-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.about-pillar-body {
  font-size: 0.98rem;
  color: #4A5568;
  line-height: 1.65;
}

.about-quote-box {
  background: #FAF5FF;
  border-left: 4px solid var(--accent-purple);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  color: var(--accent-purple);
  font-size: 0.95rem;
}

/* Community & Journey Closing Banner */
.about-community-banner {
  background: linear-gradient(135deg, #FAF5FF 0%, #FFFDF0 100%);
  border: 2px dashed #E9D8FD;
  border-radius: var(--radius-xl);
  padding: 34px;
  text-align: center;
  margin: 20px 0 34px 0;
}

.about-community-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.about-community-text {
  font-size: 1.02rem;
  color: #4A5568;
  max-width: 680px;
  margin: 0 auto 18px auto;
  line-height: 1.65;
}

.about-community-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Responsive Styles for About Page */
@media screen and (max-width: 992px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

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

  .about-youtube-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-columns-split {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .about-page-title {
    font-size: 2rem;
  }

  .about-create-grid {
    grid-template-columns: 1fr;
  }

  .about-pillar-card {
    padding: 20px;
  }
}

/* ==========================================================================
   Section 12: Privacy Policy & Legal Document Styles
   ========================================================================== */
.legal-page-main {
  background-color: #FAFCFF;
  padding-bottom: 70px;
}

.legal-hero-section {
  padding: 10px 0 20px 0;
}

.legal-hero-header {
  text-align: center;
  padding: 10px 0 20px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-badge {
  display: inline-block;
  background-color: #EDE7F6;
  color: var(--accent-purple);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.legal-page-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.legal-last-updated {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid #EEF2F6;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.legal-intro-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF5 100%);
  border-color: #FFE082;
}

.lead-text {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed #F0E8F5;
}

.legal-sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-sec-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.legal-bullet-list {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #4A5568;
}

.legal-highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #FFF8E1;
  border: 1.5px solid var(--accent-yellow-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.94rem;
  color: #5D4037;
}

.highlight-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.legal-special-card {
  border-color: #F8BBD0;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F8 100%);
}

.legal-special-card .legal-sec-num {
  background: var(--accent-pink-dark);
}

.legal-channel-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFF5F5;
  border: 1.5px solid #FFCDD2;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 12px;
}

.yt-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.yt-link-wrap {
  margin-top: 4px;
}

.yt-official-link {
  color: #D32F2F;
  font-weight: 700;
  text-decoration: underline;
}

.yt-official-link:hover {
  color: #B71C1C;
}

.legal-contact-details {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1.5px solid #E2E8F0;
}

.legal-link {
  color: var(--accent-purple);
  font-weight: 700;
  text-decoration: underline;
}

.legal-link:hover {
  color: var(--accent-pink-dark);
}

.legal-disclaimer-note {
  font-size: 0.88rem;
  color: #718096;
  background: #F7FAFC;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-yellow-dark);
}

/* ==========================================================================
   Section 13: Contact Us Page Styles
   ========================================================================== */
.contact-page-main {
  background-color: #FFFDF7;
  padding-bottom: 80px;
}

.contact-hero-section {
  padding: 10px 0 24px 0;
}

.contact-hero-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 10px 0;
}

.contact-badge {
  display: inline-block;
  background-color: #FFF3E0;
  color: #E65100;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.contact-page-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-hero-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Left Column Cards */
.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid #F0F4F8;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.contact-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: #E1F5FE;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-card-desc {
  font-size: 0.92rem;
  color: #4A5568;
  line-height: 1.5;
  margin: 0;
}

.contact-action-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed #F0F4F8;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #F8FAFC;
  color: var(--accent-purple);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #E2E8F0;
  transition: all var(--transition-fast);
}

.contact-email-btn:hover {
  background-color: var(--accent-purple);
  color: #FFFFFF;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* YouTube Showcase Banner on Contact Page */
.contact-youtube-banner {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
  border: 1.5px solid #FFCDD2;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yt-banner-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.yt-badge-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.yt-banner-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #C62828;
  margin-bottom: 4px;
}

.yt-banner-sub {
  font-size: 0.9rem;
  color: #5D4037;
  line-height: 1.5;
  margin: 0;
}

.btn-yt-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #E53935;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.btn-yt-subscribe:hover {
  background-color: #C62828;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.4);
}

/* Children's Privacy Callout on Contact Page */
.contact-privacy-callout {
  background-color: #FFFDE7;
  border: 1.5px solid #FFE082;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  font-size: 0.92rem;
  color: #4E342E;
  line-height: 1.6;
}

.privacy-callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.shield-icon {
  font-size: 1.2rem;
}

.privacy-callout-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #E65100;
  margin: 0;
}

/* Right Column: Contact Form */
.contact-form-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px solid #F0E8F5;
  padding: 32px 30px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.form-header-wrap {
  margin-bottom: 22px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.site-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.required-star {
  color: #E53935;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-light);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #E53935;
  background-color: #FFF5F5;
}

.btn-submit-contact {
  width: 100%;
  font-size: 1.05rem;
  padding: 12px 20px;
  margin-top: 4px;
}

.contact-form-toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 10px;
}

.toast-success {
  background-color: #E8F5E9;
  color: #1B5E20;
  border: 1.5px solid #A5D6A7;
}

.form-footer-brand {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F0F4F8;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

.form-footer-brand a {
  color: var(--accent-purple);
  font-weight: 700;
}

/* Responsive Styles for Contact & Legal Pages */
@media screen and (max-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    position: static;
  }
}

@media screen and (max-width: 600px) {
  .legal-card {
    padding: 20px 18px;
  }

  .legal-page-title,
  .contact-page-title {
    font-size: 1.7rem;
  }

  .contact-form-card {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   Section 14: Global Information Modal Styles (FAQs, Guide, Returns, Terms)
   ========================================================================== */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.info-modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 2px solid #F0E8F5;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-bounce);
}

.info-modal-backdrop.is-open .info-modal-card {
  transform: translateY(0) scale(1);
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1.5px solid #F0F4F8;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF5 100%);
}

.info-modal-badge {
  display: inline-block;
  background-color: #EDE7F6;
  color: var(--accent-purple);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.info-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.info-modal-close-btn {
  background: #F0F4F8;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A5568;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.info-modal-close-btn:hover {
  background-color: var(--accent-pink);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.info-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.info-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1.5px solid #F0F4F8;
  background-color: #FAFAFA;
}

.btn-close-info-modal {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-contact-info-modal {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* FAQ Modal Styling */
.modal-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-faq-item {
  background-color: #F8FAFC;
  border: 1.5px solid #EDF2F7;
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.modal-faq-q {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-faq-a {
  font-size: 0.92rem;
  color: #4A5568;
  margin: 0;
  line-height: 1.55;
}

/* Step Cards Grid for How to Download */
.modal-step-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-step-card {
  background: #FAFCFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  position: relative;
}

.modal-step-badge {
  display: inline-block;
  background-color: var(--accent-purple);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.modal-step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.modal-step-desc {
  font-size: 0.88rem;
  color: #4A5568;
  line-height: 1.45;
  margin: 0;
}

/* Guide Sections & Boxes */
.modal-guide-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-guide-box {
  border-radius: var(--radius-md);
  border: 1.5px solid #E2E8F0;
  padding: 14px 18px;
}

.modal-guide-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.modal-returns-content,
.modal-terms-content {
  font-size: 0.92rem;
  color: #4A5568;
}

@media screen and (max-width: 600px) {
  .info-modal-card {
    max-height: 90vh;
  }

  .info-modal-header {
    padding: 14px 16px;
  }

  .info-modal-title {
    font-size: 1.15rem;
  }

  .info-modal-body {
    padding: 16px;
  }

  .modal-step-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section: Redesigned Dark Header & Menu Bar (Screenshot 1 Match)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: #0B1120 !important;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.header-dark-top {
  background-color: #0B1120 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.header-full-container {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 520px) 1fr;
  align-items: center;
  padding: 0 36px;
  gap: 20px;
  width: 100%;
}

.header-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

/* Brand Logo (Left Aligned) */
.site-logo-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}

.header-logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer-logo {
  height: 36px;
  max-width: 160px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-logo-brand:hover .header-logo-img,
.site-logo-brand:hover .footer-logo-img {
  transform: scale(1.02);
  opacity: 0.95;
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 38px;
    max-width: 155px;
  }

  .mobile-drawer-logo {
    height: 32px;
    max-width: 135px;
  }

  .footer-logo-img {
    height: 40px;
    max-width: 175px;
  }
}

.brand-book-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-book-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #FFFFFF !important;
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #CBD5E1 !important;
  line-height: 1.1;
  margin-top: 2px;
}

/* Center Search Bar */
.header-center-search {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.header-search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 18px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.header-search-input {
  width: 100%;
  height: 40px;
  background: #172338;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50rem;
  padding: 0 20px 0 46px;
  font-size: 0.9rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  outline: none;
}

.header-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.86rem;
}

.header-search-input:focus {
  background: #1C2B44;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* Right Actions */
.header-right-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ========================================================================
   Google Translate Top Banner Suppression & Language Selector
   ======================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate:not(#google_translate_element),
body > iframe[src*="translate.google"],
.VIpgJd-ZVi9od-ORHb-Oxf5Fd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-SmfZ-Oxf5Fd,
.VIpgJd-ZVi9od-vH1Gmf,
.VIpgJd-ZVi9od-xl07Ob-Oxf5Fd,
.goog-te-balloon-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
  z-index: -99999 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

html,
body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

.goog-text-highlight {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Language Selector */
.header-lang-dropdown {
  position: relative;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.lang-switch-btn:hover {
  color: #F59E0B;
  background: rgba(255, 255, 255, 0.05);
}

.lang-globe-icon {
  color: #F59E0B;
  flex-shrink: 0;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #131D30;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 165px;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.header-lang-dropdown:hover .lang-menu,
.header-lang-dropdown:focus-within .lang-menu,
.lang-menu.show {
  display: block !important;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: #CBD5E1;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-menu a:hover,
.lang-menu a.active {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  font-weight: 700;
}

.lang-check {
  color: #F59E0B;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Wishlist Button */
.header-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color var(--transition-fast);
}

.header-wishlist-btn:hover {
  color: #F59E0B;
}

/* Cart Button */
.header-cart-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #E2E8F0;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.header-cart-btn:hover {
  color: #F59E0B;
}

.header-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #0B1120;
}

/* Login/Register Pill Button */
.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F59E0B;
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  padding: 8px 18px;
  border-radius: 50rem;
  border: none;
  text-decoration: none !important;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.header-login-btn:hover {
  background: #D97706;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* Menu Bar Section (Bottom Row of Header) */
.header-nav-menubar {
  background-color: #080D1A;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #E2E8F0 !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu-link:hover {
  color: #F59E0B !important;
  background: rgba(255, 255, 255, 0.04);
}

.nav-menu-link.active {
  color: #F59E0B !important;
  font-weight: 700;
}

.nav-caret {
  font-size: 0.72rem;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.nav-dropdown-item:hover .nav-caret {
  transform: rotate(180deg);
}

/* Categories Sub Dropdown */
.nav-sub-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #10192C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 210px;
  list-style: none;
  display: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 1060;
}

.nav-dropdown-item:hover .nav-sub-dropdown,
.nav-sub-dropdown.show {
  display: block;
}

.sub-dropdown-link {
  display: block;
  padding: 9px 18px;
  color: #CBD5E1 !important;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  text-align: left;
}

.sub-dropdown-link:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B !important;
  padding-left: 22px;
}

/* ==========================================================================
   Section: Redesigned Dark Hero Section (Screenshot 2 Match)
   ========================================================================== */
.hero-dark-section {
  position: relative;
  background-color: #070B14;
  background-image: linear-gradient(135deg, rgba(7, 11, 20, 0.88) 0%, rgba(11, 17, 32, 0.92) 100%), url('../images/hero-library-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 60px 0 0px 0;
  overflow: visible;
  color: #FFFFFF;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 40px;
}

/* Left Column */
.hero-tagline-wrap {
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #F59E0B;
  letter-spacing: 0.5px;
}

.hero-bold-title {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-sinhala-tagline {
  font-family: 'Noto Sans Sinhala', 'Iskoola Pota', var(--font-body);
  font-size: 1.45rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.hero-english-subtitle {
  font-size: 1.05rem;
  color: #94A3B8;
  margin-bottom: 30px;
  font-weight: 500;
}

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

.hero-btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F59E0B;
  color: #0F172A !important;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: var(--font-body);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.hero-btn-explore:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.hero-btn-how {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-body);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-btn-how:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.play-circle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
}

/* Right Column: 3D Book Fan Showcase */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-3d-book-stage {
  position: relative;
  width: 480px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-book-card {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
}

.hero-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Book 1 (Left Tilted - The Golden Birch) */
.book-tilted-left {
  width: 180px;
  height: 260px;
  left: 10px;
  z-index: 1;
  transform: rotate(-10deg) translateY(10px) scale(0.92);
  filter: brightness(0.85);
}

/* Book 2 (Back Tilted - Coffee Slow Mornings) */
.book-tilted-back {
  width: 190px;
  height: 275px;
  left: 90px;
  z-index: 2;
  transform: rotate(-4deg) translateY(4px) scale(0.95);
  filter: brightness(0.9);
}

/* Book 3 (Center Front - Streets of New York Bestseller) */
.book-prominent-center {
  width: 210px;
  height: 305px;
  z-index: 4;
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 0 2px #F59E0B;
}

.book-prominent-center:hover {
  transform: rotate(0deg) scale(1.08) translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 0 3px #F59E0B;
}

.bestseller-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  background: #F59E0B;
  color: #000000;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.6rem;
  line-height: 1.1;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: pulseBadge 3s infinite;
}

/* Book 4 (Right Tilted - Mediterranean Coastline) */
.book-tilted-right {
  width: 190px;
  height: 275px;
  right: 20px;
  z-index: 2;
  transform: rotate(8deg) translateY(12px) scale(0.94);
  filter: brightness(0.85);
}

/* Bottom Floating Trust Ribbon */
.hero-trust-ribbon {
  margin-top: 45px;
  position: relative;
  z-index: 20;
  transform: translateY(35px);
  background: #111A2C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px 26px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.trust-ribbon-slider {
  width: 100%;
}

.trust-ribbon-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.trust-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.trust-desc {
  font-size: 0.74rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.25;
}

.trust-ribbon-dots {
  display: none;
}

.categories-section {
  padding-top: 75px !important;
}

/* Responsive Styles for Header & Hero */
@media screen and (max-width: 1100px) {
  .trust-ribbon-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media screen and (max-width: 900px) {
  .header-full-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    gap: 10px !important;
  }

  .header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0;
  }

  .header-logo-img {
    height: 38px !important;
    max-width: 165px !important;
    width: auto !important;
  }

  .header-center-search {
    display: none !important;
  }

  /* Language selector moved to sidebar drawer on mobile */
  .header-lang-dropdown {
    display: none !important;
  }

  /* Wishlist icon hidden on mobile */
  #headerWishlistBtn,
  .header-wishlist-btn {
    display: none !important;
  }

  .header-right-actions {
    gap: 6px !important;
    margin-right: -2px !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-login-btn span {
    display: none !important;
  }

  /* User profile and burger menu same size, outline, no filled, no bgcolor, no borders */
  .header-login-btn,
  .hamburger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #E2E8F0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
  }

  .header-login-btn:hover,
  .hamburger-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #F59E0B !important;
  }

  .header-user-icon,
  .header-burger-icon {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
  }

  .header-nav-menubar {
    display: none;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-bold-title {
    font-size: 2.8rem;
  }

  .hero-3d-book-stage {
    width: 340px;
    height: 280px;
  }

  .book-tilted-left {
    width: 130px;
    height: 190px;
    left: 0;
  }

  .book-tilted-back {
    display: none;
  }

  .book-prominent-center {
    width: 160px;
    height: 230px;
  }

  .book-tilted-right {
    width: 130px;
    height: 190px;
    right: 0;
  }

  .hero-trust-ribbon {
    margin-top: 30px;
    transform: translateY(20px);
    padding: 14px 16px;
    overflow: hidden;
  }

  .trust-ribbon-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y;
  }

  .trust-ribbon-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
  }

  .trust-feature-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2px 4px;
    text-align: left;
  }

  .trust-feature-item .trust-title {
    font-size: 0.92rem;
  }

  .trust-feature-item .trust-desc {
    font-size: 0.76rem;
  }

  .trust-ribbon-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 2px;
  }

  .trust-ribbon-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .trust-ribbon-dot:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .trust-ribbon-dot.active {
    width: 20px;
    background: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  }
}

/* ==========================================================================
   Adult Bookstore Redesign: Featured Books, Split Releases & Categories,
   Special Offers, and Readers Testimonials (Matches Exact Layout)
   ========================================================================== */

/* Common Section Headers */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-main-heading {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-link-more {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link-more:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Section 4: Featured Books Grid
   -------------------------------------------------------------------------- */
.featured-books-section {
  padding: 48px 0 56px 0;
  background-color: #FFFFFF;
}

.featured-books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Reusable Modern Book Card */
.book-showcase-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
  min-width: 0;
  width: 100%;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

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

.book-showcase-card:hover .book-meta-title {
  color: #2563EB;
}

.book-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.45;
  border-radius: 8px;
  overflow: hidden;
  background-color: #F1F5F9;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease;
  flex-shrink: 0;
}

.book-showcase-card:hover .book-cover-container {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.book-cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.book-showcase-card:hover .book-cover-image {
  transform: scale(1.03);
}

/* Badges */
.book-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
}

.book-tag-bestseller {
  background-color: #F59E0B;
  color: #1E1B4B;
}

.book-tag-new {
  background-color: #EF4444;
  color: #FFFFFF;
}

/* Quick Preview Overlay Button on Book Card */
.book-quick-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.book-showcase-card:hover .book-quick-overlay {
  opacity: 1;
  pointer-events: auto;
}

.book-quick-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.book-quick-btn:hover {
  background: #FFFFFF;
  transform: scale(1.05);
}

/* Book Details */
.book-meta-block {
  padding-top: 10px;
  min-width: 0;
  width: 100%;
}

.book-meta-title {
  font-family: 'Noto Sans Sinhala', var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  width: 100%;
  display: block;
}

.book-meta-title a,
.book-meta-title span {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.book-meta-title a:hover,
.book-meta-title span:hover {
  color: #2563EB;
}

.book-meta-author {
  font-family: 'Noto Sans Sinhala', var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748B;
  margin-top: 3px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  width: 100%;
  display: block;
}

.book-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-meta-price {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  color: #0F172A;
}

.book-meta-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-card-cart-btn {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.book-card-cart-btn:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.book-card-cart-btn.added {
  background: #16A34A !important;
  border-color: #16A34A !important;
  color: #FFFFFF !important;
}

.book-card-wishlist-btn {
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.book-card-wishlist-btn:hover {
  color: #EF4444;
  transform: scale(1.18);
}

.book-card-wishlist-btn.active {
  color: #EF4444;
}

.book-card-wishlist-btn.active svg {
  fill: #EF4444;
  stroke: #EF4444;
}

/* --------------------------------------------------------------------------
   Section 5: Split Section (New Releases & Popular Categories)
   -------------------------------------------------------------------------- */
.split-releases-categories-section {
  padding: 40px 0 60px 0;
  background-color: #FFFFFF;
}

.split-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

/* Left Column: New Releases */
.split-releases-col {
  min-width: 0;
}

.new-releases-books-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.new-releases-books-row .book-showcase-card {
  min-width: 0;
}

.new-releases-books-row .book-meta-title {
  font-size: 0.84rem;
}

.new-releases-books-row .book-meta-author {
  font-size: 0.75rem;
}

.new-releases-books-row .book-meta-price {
  font-size: 0.82rem;
}

.new-releases-books-row .book-card-wishlist-btn svg {
  width: 15px;
  height: 15px;
}

.new-releases-books-row .book-tag-badge {
  font-size: 0.6rem;
  padding: 2px 5px;
}

.carousel-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #CBD5E1;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: #F59E0B;
}

/* Right Column: Popular Categories */
.split-categories-col {
  min-width: 0;
}

.popular-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.popular-category-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-category-tile:hover {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.popular-cat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.popular-cat-info {
  min-width: 0;
}

.popular-cat-title {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-cat-count {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Section 6: Special Offers (Dark Navy Cards)
   -------------------------------------------------------------------------- */
.special-offers-section {
  padding: 24px 0 54px 0;
  background-color: #FFFFFF;
}

.special-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.special-offer-card {
  background-color: #0F172A;
  border-radius: 14px;
  padding: 24px 22px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.special-offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.offer-icon-badge {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

.offer-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.offer-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #94A3B8;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.offer-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-bottom: 18px;
}

.coupon-code-badge {
  border: 1px dashed #F59E0B;
  color: #F59E0B;
  background-color: rgba(245, 158, 11, 0.08);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: all;
}

.coupon-code-badge:hover {
  background-color: rgba(245, 158, 11, 0.2);
}

.offer-card-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.offer-card-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #0F172A;
}

/* --------------------------------------------------------------------------
   Section 7: What Our Readers Say (Bottom Section)
   -------------------------------------------------------------------------- */
.readers-say-section {
  padding: 20px 0 70px 0;
  background-color: #FFFFFF;
}

.readers-section-layout {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 24px;
  align-items: stretch;
}

/* Left Promo Banner in Section 7 */
.readers-promo-banner {
  background-color: #0F172A;
  border-radius: 14px;
  padding: 24px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 20px;
}

.readers-promo-icon {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.readers-promo-details {
  flex: 1;
}

.readers-promo-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
}

.readers-promo-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #94A3B8;
  margin: 0 0 10px 0;
}

.readers-promo-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.readers-promo-btn {
  display: inline-block;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.readers-promo-btn:hover {
  filter: brightness(1.08);
  color: #0F172A;
}

/* Right Testimonials in Section 7 */
.readers-reviews-block {
  display: flex;
  flex-direction: column;
}

.readers-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
}

.reader-review-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.reader-review-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.review-stars-gold {
  color: #F59E0B;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-quote-sinhala {
  font-family: 'Noto Sans Sinhala', var(--font-body);
  font-size: 0.84rem;
  line-height: 1.5;
  color: #334155;
  font-style: italic;
  margin: 0 0 12px 0;
  flex: 1;
}

.review-reviewer-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  margin: 0;
}

/* Interactive Toast notification */
.thumathi-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.thumathi-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints for New Sections
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .featured-books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .new-releases-books-row {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .readers-section-layout {
    grid-template-columns: 1fr;
  }

  .readers-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .featured-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .new-releases-books-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .popular-categories-grid {
    grid-template-columns: 1fr;
  }

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

  .readers-reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .readers-promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .readers-promo-code {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .section-main-heading {
    font-size: 1.35rem;
  }

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

  .new-releases-books-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   Full Width Browse by Category Carousel & Corner Navigation Icons
   ========================================================================== */
.categories-section-full {
  width: 100%;
  padding: 48px 0 54px 0 !important;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.categories-carousel-full {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.cat-corner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #0F172A;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
  outline: none;
}

.cat-corner-nav-prev {
  left: 24px;
}

.cat-corner-nav-next {
  right: 24px;
}

.cat-corner-nav-btn:hover {
  background-color: #F59E0B;
  color: #0F172A;
  border-color: #F59E0B;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
}

.cat-corner-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.categories-scroll-full {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 90px 24px 90px;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll-full::-webkit-scrollbar {
  display: none;
}

.categories-scroll-full:active {
  cursor: grabbing;
}

.category-grid-large {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 24px;
  min-width: max-content;
}

.category-card-large {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 270px;
  min-width: 270px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  background-color: #0F172A;
  border: none;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.category-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover: ONLY normal mouse hover image zoom animation. No other hover effects */
.category-card-large:hover .category-card-image {
  transform: scale(1.08);
}

.category-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.25) 50%, rgba(11, 19, 41, 0.85) 100%);
  pointer-events: none;
}

.category-card-title-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 20px;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.category-card-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 768px) {
  .cat-corner-nav-btn {
    width: 40px;
    height: 40px;
  }

  .cat-corner-nav-prev {
    left: 10px;
  }

  .cat-corner-nav-next {
    right: 10px;
  }

  .categories-scroll-full {
    padding: 12px 55px 20px 55px;
  }
}

/* ==========================================================================
   New Releases Section (8 Cards Across Grid & Next/Prev Carousel)
   ========================================================================== */
.new-releases-section {
  padding: 48px 0 56px 0;
  background-color: #FFFFFF;
  border-top: 1px solid #F1F5F9;
}

.releases-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.releases-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.releases-nav-btn:hover {
  background-color: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.releases-page-indicator {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748B;
  padding: 0 6px;
  user-select: none;
}

.new-releases-carousel-wrapper {
  position: relative;
  width: 100%;
}

.new-releases-slide {
  width: 100%;
}

.new-releases-grid-8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.new-releases-grid-8 .book-showcase-card {
  min-width: 0;
}

.new-releases-grid-8 .book-cover-container {
  aspect-ratio: 1 / 1.45;
}

.new-releases-grid-8 .book-meta-title {
  font-size: 0.82rem;
}

.new-releases-grid-8 .book-meta-author {
  font-size: 0.72rem;
}

.new-releases-grid-8 .book-meta-price {
  font-size: 0.82rem;
}

.new-releases-grid-8 .book-card-wishlist-btn svg {
  width: 15px;
  height: 15px;
}

.carousel-dot-releases {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot-releases.active {
  background-color: #F59E0B;
  width: 20px;
  border-radius: 50rem;
}

/* ==========================================================================
   What Our Readers Say (Full Width Standalone Section)
   ========================================================================== */
.readers-reviews-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* ==========================================================================
   Auth Modal & Global Bootstrap Modal Component Styles
   ========================================================================== */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1055 !important;
  display: none;
  width: 100vw !important;
  height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0;
  box-sizing: border-box;
  padding: 16px;
}

.modal:not(.show) {
  display: none !important;
}

.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1050 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(11, 17, 32, 0.75) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  transition: opacity 0.2s linear !important;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

.modal-dialog {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: auto !important;
  pointer-events: auto !important;
  z-index: 1056 !important;
}

.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100% - 2rem) !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out !important;
  transform: translateY(-20px) scale(0.96) !important;
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

.modal-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  pointer-events: auto !important;
  background-color: #FFFFFF !important;
  background-clip: padding-box !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  outline: 0 !important;
  padding: 24px 28px !important;
  font-family: var(--font-body) !important;
  box-sizing: border-box !important;
}

.modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 12px !important;
  border-bottom: none !important;
}

.modal-header .btn-close {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  color: #64748B !important;
  font-size: 1.6rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.modal-header .btn-close::before {
  content: "×" !important;
  font-size: 1.8rem !important;
  font-weight: 300 !important;
}

.modal-header .btn-close:hover {
  color: #0F172A !important;
  background-color: #F1F5F9 !important;
}

.modal-title {
  font-family: var(--font-body) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.modal-body {
  position: relative !important;
  flex: 1 1 auto !important;
  padding: 10px 0 4px 0 !important;
  color: #334155 !important;
  font-family: var(--font-body) !important;
}

#authModal .form-label {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

#authModal .form-control {
  display: block !important;
  width: 100% !important;
  padding: 11px 14px !important;
  font-size: 0.95rem !important;
  font-family: var(--font-body) !important;
  color: #0F172A !important;
  background-color: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}

#authModal .form-control:focus {
  background-color: #FFFFFF !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

#authModal .form-text {
  font-size: 0.78rem !important;
  color: #64748B !important;
  margin-top: 4px !important;
}

#authModal .mb-3 {
  margin-bottom: 1rem !important;
}

#authModal .mb-2 {
  margin-bottom: 0.5rem !important;
}

#authModal .mb-1 {
  margin-bottom: 0.25rem !important;
}

#authModal .mb-0 {
  margin-bottom: 0 !important;
}

#authModal .mt-3 {
  margin-top: 1rem !important;
}

#authModal .text-muted {
  color: #64748B !important;
}

#authModal .small {
  font-size: 0.85rem !important;
}

#authModal .fw-bold {
  font-weight: 700 !important;
}

#authModal .fw-semibold {
  font-weight: 600 !important;
}

#authModal .text-decoration-none {
  text-decoration: none !important;
  color: #2563EB !important;
}

#authModal .text-decoration-none:hover {
  text-decoration: underline !important;
  color: #1D4ED8 !important;
}

#authModal .text-end {
  text-align: right !important;
}

#authModal .text-center {
  text-align: center !important;
}

#authModal .d-grid {
  display: grid !important;
}

#authModal .gap-2 {
  gap: 0.65rem !important;
}

#authModal .w-100 {
  width: 100% !important;
}

#authModal .rounded-pill {
  border-radius: 50rem !important;
}

#authModal .btn-orange {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%) !important;
  color: #0F172A !important;
  border: none !important;
  padding: 11px 20px !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

#authModal .btn-orange:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
  color: #0F172A !important;
}

#authModal .btn-light {
  background-color: #F8FAFC !important;
  color: #64748B !important;
  border: 1px solid #E2E8F0 !important;
  padding: 10px 20px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: not-allowed !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#authModal .btn-link {
  background: none !important;
  border: none !important;
  color: #64748B !important;
  cursor: pointer !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

#authModal .btn-link:hover {
  color: #0F172A !important;
}

#authModal .badge {
  display: inline-block !important;
  padding: 0.25em 0.6em !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  border-radius: 50rem !important;
}

#authModal .bg-secondary {
  background-color: #64748B !important;
  color: #FFFFFF !important;
}

#authModal .alert {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  margin-bottom: 14px !important;
}

#authModal .alert-danger {
  background-color: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1px solid #F87171 !important;
}

#authModal .alert-success {
  background-color: #F0FDF4 !important;
  color: #166534 !important;
  border: 1px solid #86EFAC !important;
}

#authModal .spinner-border:not(.d-none) {
  display: inline-block !important;
  width: 1rem !important;
  height: 1rem !important;
  vertical-align: -0.125em !important;
  border: 0.15em solid currentColor !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  animation: spinner-border 0.75s linear infinite !important;
}

#authModal .d-none,
.d-none {
  display: none !important;
}

#authModal .bi {
  margin-right: 8px !important;
  font-size: 1.05rem !important;
  vertical-align: -1px !important;
}

@media screen and (max-width: 1200px) {
  .new-releases-grid-8 {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media screen and (max-width: 1024px) {
  .readers-reviews-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .category-card-large {
    width: 220px;
    min-width: 220px;
    height: 300px;
  }

  .new-releases-grid-8 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .readers-reviews-grid-full {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media screen and (max-width: 480px) {
  .category-card-large {
    width: 180px;
    min-width: 180px;
    height: 250px;
  }

  .new-releases-grid-8 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   Floating 'View Cart' Button (Bottom Right)
   ========================================================================== */
.floating-view-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42), 0 2px 6px rgba(15, 23, 42, 0.12);
  transform: translateY(30px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    background 0.2s ease;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
}

.floating-view-cart-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-view-cart-btn:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55), 0 4px 10px rgba(15, 23, 42, 0.18);
  color: #FFFFFF !important;
}

.floating-view-cart-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.floating-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2563EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.floating-cart-label {
  letter-spacing: 0.2px;
}

.floating-cart-arrow {
  transition: transform 0.2s ease;
}

.floating-view-cart-btn:hover .floating-cart-arrow {
  transform: translateX(3px);
}

.floating-view-cart-btn.d-none {
  display: none !important;
}

@media (max-width: 600px) {
  .floating-view-cart-btn {
    bottom: 20px;
    right: 20px;
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}

/* Hide floating cart button on cart and checkout pages in mobile view */
@media (max-width: 991px) {
  body.cart-page #floatingViewCartBtn,
  body.checkout-page #floatingViewCartBtn,
  body.page-cart #floatingViewCartBtn,
  body.page-checkout #floatingViewCartBtn,
  .cart-page-wrap ~ #floatingViewCartBtn,
  .checkout-page-wrap ~ #floatingViewCartBtn,
  .floating-view-cart-btn.hide-on-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Authors Section (Homepage - 75% Scale of Categories)
   ========================================================================== */
.authors-section {
  padding: 48px 0 54px;
  background-color: #F8FAFC;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.authors-carousel-full {
  position: relative;
  width: 100%;
  margin-top: 24px;
}

.authors-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 24px 20px;
  cursor: grab;
}

.authors-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.authors-scroll-wrapper.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.author-grid-large {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 18px;
  min-width: max-content;
}

/* Author card: EXACT 75% of Category card (270px x 360px -> 202.5px x 270px) */
.author-card-large {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 202.5px;
  min-width: 202.5px;
  height: 270px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(245, 158, 11, 0.4);
}

.author-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.author-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.author-card-large:hover .author-card-image {
  transform: scale(1.08);
}

.author-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.4) 45%, rgba(11, 19, 41, 0.92) 100%);
  pointer-events: none;
}

.author-card-title-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px;
  z-index: 2;
}

.author-card-name {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.author-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #CBD5E1;
}

.author-card-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Tablet (max-width: 768px) - 75% of Category 220px x 300px -> 165px x 225px */
@media screen and (max-width: 768px) {
  .author-card-large {
    width: 165px;
    min-width: 165px;
    height: 225px;
    border-radius: 12px;
  }

  .author-card-name {
    font-size: 0.95rem;
  }
}

/* Mobile (max-width: 480px) - 75% of Category 180px x 250px -> 135px x 187.5px */
@media screen and (max-width: 480px) {
  .author-card-large {
    width: 135px;
    min-width: 135px;
    height: 187.5px;
    border-radius: 10px;
  }

  .author-card-title-box {
    padding: 12px 10px;
  }

  .author-card-name {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .author-card-meta {
    font-size: 0.68rem;
  }
}

/* Offset for smooth scrolling with fixed top navbar */
#heroSection,
#categories,
#authorsSection,
#featuredBooksSection,
#newReleasesSection,
#bestsellersSection,
#offersSection,
#reviewsSection,
#articlesSection {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   Showcase Accordion Sidebar
   ========================================================================== */
.showcase-accordion-group {
  border-bottom: 1px solid #E2E8F0;
  padding: 0;
}

.accordion-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E293B;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-trigger-btn:hover {
  background-color: #F8FAFC;
}

.accordion-chevron-icon,
.accordion-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  color: #64748B;
  transform: rotate(0deg);
}

.accordion-trigger-btn[aria-expanded="true"] .accordion-chevron-icon,
.accordion-trigger-btn[aria-expanded="true"] .accordion-arrow-icon {
  transform: rotate(180deg);
  color: #F59E0B;
}

.accordion-trigger-btn[aria-expanded="false"] .accordion-chevron-icon,
.accordion-trigger-btn[aria-expanded="false"] .accordion-arrow-icon {
  transform: rotate(0deg);
  color: #64748B;
}

.accordion-content-panel {
  padding: 4px 18px 16px;
  max-height: 240px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.25s ease;
}

.sidebar-sticky-wrap {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.25s ease;
}

.sidebar-sticky-wrap:hover,
.accordion-content-panel:hover,
.mobile-filter-drawer-body:hover {
  scrollbar-color: #E2E8F0 transparent;
}

.sidebar-sticky-wrap::-webkit-scrollbar,
.accordion-content-panel::-webkit-scrollbar,
.mobile-filter-drawer-body::-webkit-scrollbar {
  width: 4px;
}

.sidebar-sticky-wrap::-webkit-scrollbar-track,
.accordion-content-panel::-webkit-scrollbar-track,
.mobile-filter-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-sticky-wrap::-webkit-scrollbar-thumb,
.accordion-content-panel::-webkit-scrollbar-thumb,
.mobile-filter-drawer-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}

.sidebar-sticky-wrap:hover::-webkit-scrollbar-thumb,
.accordion-content-panel:hover::-webkit-scrollbar-thumb,
.mobile-filter-drawer-body:hover::-webkit-scrollbar-thumb {
  background: #E2E8F0;
}

.sidebar-sticky-wrap:hover::-webkit-scrollbar-thumb:hover,
.accordion-content-panel:hover::-webkit-scrollbar-thumb:hover,
.mobile-filter-drawer-body:hover::-webkit-scrollbar-thumb:hover {
  background: #CBD5E1;
}

/* ==========================================================================
   Wishlist Homepage Section Styles
   ========================================================================== */
.wishlist-home-section {
  padding: 48px 0 54px;
  background-color: #FAFAFA;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  scroll-margin-top: 110px;
}

.wishlist-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid #FDE68A;
}

.wishlist-empty-box {
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 16px;
  padding: 44px 24px;
  text-align: center;
  max-width: 520px;
  margin: 20px auto 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.wishlist-empty-icon {
  margin-bottom: 12px;
}

.wishlist-empty-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.wishlist-empty-subtitle {
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.wishlist-dynamic-grid {
  margin-top: 24px;
}

.wishlist-sync-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-sync-card:hover {
  background: #F8FAFC;
}

.sync-trash-btn {
  cursor: pointer;
  border-radius: 6px;
}

.sync-trash-btn:hover {
  color: #DC2626 !important;
  background-color: #FEE2E2 !important;
}

/* ==========================================================================
   Mobile 2-Card Product Slider (Featured, New Releases, Bestsellers, Offers)
   ========================================================================== */
.product-slider-relative-wrap {
  position: relative;
  width: 100%;
}

.prod-side-nav-btn {
  display: none;
}

@media screen and (min-width: 769px) {
  .prod-side-nav-btn {
    display: none !important;
  }
  .mobile-2card-slider.d-md-none {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  /* Hide desktop releases page indicators and carousel controls on mobile */
  .releases-header-controls .releases-nav-btn,
  .releases-header-controls .releases-page-indicator,
  .new-releases-carousel-wrapper,
  .carousel-dots-wrap {
    display: none !important;
  }

  .product-slider-relative-wrap {
    position: relative;
    width: 100%;
    padding: 0 4px;
  }

  .prod-side-nav-btn {
    display: flex !important;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
  }

  .prod-side-nav-btn:hover {
    background: #FFFFFF;
    color: #2563EB;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  }

  .prod-side-nav-prev {
    left: -8px;
  }

  .prod-side-nav-next {
    right: -8px;
  }

  /* 2-Card Continuous Mobile Slider Track */
  .mobile-2card-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 6px 4px 14px 4px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .mobile-2card-slider::-webkit-scrollbar {
    display: none !important;
  }

  /* Each product card occupies exactly half the width minus half the gap */
  .mobile-2card-slider > .book-showcase-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Product Detail Page (product.php) Mobile UI/UX Enhancements
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Breadcrumbs: single line horizontally sliding */
  .breadcrumb-nav {
    overflow: hidden;
    padding: 14px 0 10px 0;
  }

  .breadcrumb-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    gap: 6px;
    align-items: center;
    padding-bottom: 2px;
  }

  .breadcrumb-list::-webkit-scrollbar {
    display: none !important;
  }

  .breadcrumb-item,
  .breadcrumb-separator {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.85rem;
  }

  /* Product Details Showcase: Reordered Mobile Layout
     1. Title
     1.1 Author
     2. Product image
     3. Hide the price box
     4. Add to cart button (only keep add to cart button, other contents remove/hide)
     5. Description (tabs removed/hidden)
  */
  .product-detail-showcase {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 16px 14px 20px 14px !important;
  }

  .product-gallery-col,
  .product-info-col {
    display: contents !important;
  }

  /* 1. Title */
  .product-single-title {
    order: 1 !important;
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  /* 1.1 Author */
  .product-single-author {
    order: 2 !important;
    font-size: 0.92rem !important;
    margin-bottom: 14px !important;
  }

  /* Hide customer rating row on mobile for clean hierarchy */
  .product-rating-row {
    display: none !important;
  }

  /* 2. Product Image */
  .product-cover-frame {
    order: 3 !important;
    max-width: 260px !important;
    width: 100% !important;
    margin: 0 auto 12px auto !important;
  }

  .product-thumbs-strip {
    order: 4 !important;
    margin-bottom: 14px !important;
    justify-content: center;
  }

  /* Hide specs card on mobile */
  .product-specs-card {
    display: none !important;
  }

  /* 3. Hide the price box */
  .product-price-box {
    display: none !important;
  }

  /* 4. Add to cart button (only keep add to cart button, other contents remove/hide) */
  .product-cta-area {
    order: 5 !important;
    margin-bottom: 16px !important;
  }

  .product-cta-area .btn-buy-large,
  .product-cta-area .btn-free-download-large {
    width: 100% !important;
    padding: 13px 18px !important;
    font-size: 0.96rem !important;
    margin-bottom: 0 !important;
  }

  .product-cta-area .book-card-wishlist-btn,
  .product-cta-area > div:last-child {
    display: none !important;
  }

  /* 5. Description */
  .product-single-desc {
    order: 6 !important;
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #475569 !important;
  }

  /* Tabs section: remove/hide tabs in mobile view */
  .product-details-tabs-card {
    display: none !important;
  }
}

/* ==========================================================================
   Shopping Cart (cart.php) Mobile UI/UX Enhancements
   ========================================================================== */
@media screen and (max-width: 768px) {
  .cart-page-wrap {
    padding: 20px 0 40px !important;
  }

  .cart-table-card {
    padding: 14px 12px !important;
  }

  .cart-table thead {
    display: none !important;
  }

  .cart-table tbody {
    display: block !important;
  }

  /* Transform table row into a 2-row card on mobile:
     Row 1: Title (Full width 100%) + Delete icon
     Row 2: Qty controller, Price without currency symbol, Total without currency symbol
  */
  .cart-table tr {
    display: grid !important;
    grid-template-columns: auto 1fr 1fr 36px !important;
    grid-template-rows: auto auto !important;
    row-gap: 10px !important;
    column-gap: 8px !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }

  /* Row 1: Product Title */
  .cart-table tr td:nth-child(1) {
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
  }

  .cart-product-cell {
    gap: 10px !important;
  }

  .cart-thumb-img {
    width: 46px !important;
    height: 64px !important;
  }

  .cart-product-name {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  .cart-product-cat {
    font-size: 0.74rem !important;
  }

  /* Row 1 right: Delete Icon */
  .cart-table tr td:nth-child(5) {
    grid-column: 4 / 5 !important;
    grid-row: 1 !important;
    padding: 0 !important;
    border: none !important;
    text-align: right !important;
  }

  /* Row 2: Qty controller */
  .cart-table tr td:nth-child(2) {
    grid-column: 1 / 2 !important;
    grid-row: 2 !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
  }

  .cart-qty-ctrl {
    height: 28px !important;
  }

  .cart-qty-btn {
    width: 26px !important;
    height: 28px !important;
    font-size: 0.9rem !important;
  }

  .cart-qty-input {
    width: 34px !important;
    height: 28px !important;
    font-size: 0.82rem !important;
  }

  /* Price without currency symbol (smaller font) */
  .cart-table tr td:nth-child(3) {
    grid-column: 2 / 3 !important;
    grid-row: 2 !important;
    padding: 0 !important;
    border: none !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    color: #475569 !important;
  }

  /* Total without currency symbol (smaller font) */
  .cart-table tr td:nth-child(4) {
    grid-column: 3 / 5 !important;
    grid-row: 2 !important;
    padding: 0 !important;
    border: none !important;
    text-align: right !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
  }

  /* Hide currency symbols on mobile in cart table */
  .cart-table .currency-symbol {
    display: none !important;
  }

  /* Continue Shopping and Empty Cart horizontally aligned in one line */
  .cart-actions-bottom {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
  }

  .btn-continue-shopping,
  .btn-empty-cart {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 9px 6px !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   Checkout Page (checkout.php) Mobile UI/UX Enhancements
   ========================================================================== */
@media screen and (max-width: 768px) {
  .checkout-page-wrap {
    padding: 16px 0 32px !important;
  }

  .checkout-card {
    padding: 14px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
  }

  /* Customer Contact Information heading in single line */
  .checkout-card-title {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .checkout-card-title span.step-num {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }

  .form-row-2col {
    margin-bottom: 8px !important;
    gap: 8px !important;
  }

  .form-group-field {
    margin-bottom: 8px !important;
  }

  .form-label-clean {
    font-size: 0.78rem !important;
    margin-bottom: 3px !important;
  }

  .form-input-clean {
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 0.88rem !important;
  }

  .payment-option-card {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   Order Tracking (order-tracking.php) Mobile UI/UX Enhancements
   ========================================================================== */
@media screen and (max-width: 640px) {
  .tracking-page-wrap {
    padding: 16px 0 32px !important;
  }

  .tracking-main-card {
    padding: 16px 12px !important;
    border-radius: 10px !important;
  }

  /* Merge Order Placed and Thank You Message */
  .order-completed-banner {
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
    gap: 10px !important;
  }

  .completed-icon-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.25rem !important;
  }

  .completed-badge-title {
    font-size: 0.98rem !important;
  }

  .completed-badge-sub {
    font-size: 0.82rem !important;
  }

  .thank-you-wrap {
    display: none !important;
  }

  /* Order No and Price on the same horizontal line */
  .order-id-amount-strip {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
  }

  .strip-label {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
  }

  .strip-val-order-no,
  .strip-val-amount {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
  }

  .order-amount-col {
    text-align: right !important;
  }

  /* Information sentence compact */
  .bank-instruction-notice {
    padding: 10px 12px !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .notice-icon {
    font-size: 1.15rem !important;
  }

  .notice-text {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* Bank account details compact in first view */
  .bank-accounts-section {
    margin-bottom: 18px !important;
  }

  .bank-accounts-header {
    margin-bottom: 8px !important;
  }

  .bank-accounts-title {
    font-size: 0.98rem !important;
  }

  .bank-accounts-subtitle {
    display: none !important;
  }

  .bank-card {
    padding: 12px !important;
  }

  .bank-card-header {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
  }

  .bank-card-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.92rem !important;
  }

  .bank-card-name {
    font-size: 0.92rem !important;
  }

  .bank-card-row {
    margin-bottom: 4px !important;
    font-size: 0.82rem !important;
  }

  .account-num-box {
    padding: 6px 10px !important;
    margin-top: 8px !important;
  }

  .account-num-val {
    font-size: 0.95rem !important;
  }

  .btn-copy-acc {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
  }

  .go-to-account-wrap {
    padding-top: 14px !important;
  }

  .btn-go-to-account {
    padding: 11px 20px !important;
    font-size: 0.92rem !important;
    width: 100% !important;
  }
}