/* Brainy Boosty - Main Style Sheet */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* Design Tokens */
:root {
  --color-navy: #1d2a44;
  --color-navy-light: #34486d;
  --color-navy-pale: #e9ecf3;
  --color-teal: #2ec4b6;
  --color-teal-dark: #1fb0a3;
  --color-teal-light: #e6f9f7;
  --color-pink: #ff7d90;
  --color-pink-dark: #f0546c;
  --color-pink-light: #fff0f2;
  --color-yellow: #ffc83b;
  --color-yellow-dark: #e6b125;
  --color-yellow-light: #fffdf5;
  --color-lavender: #ece9fc;
  --color-lavender-light: #f7f5ff;
  
  --color-white: #ffffff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-600: #475569;
  --color-slate-800: #1e293b;
  
  --font-heading: 'Fredoka', 'Quicksand', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --shadow-sm: 0 2px 8px rgba(29, 42, 68, 0.04);
  --shadow-md: 0 10px 25px rgba(29, 42, 68, 0.07);
  --shadow-lg: 0 20px 40px rgba(29, 42, 68, 0.12);
  --shadow-hover: 0 25px 45px rgba(46, 196, 182, 0.15);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-slate-800);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Utility Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 48px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.4);
}

.btn-secondary {
  background-color: var(--color-pink-light);
  color: var(--color-pink-dark);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background-color: var(--color-pink);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Header Section */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-slate-100);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: block;
  width: 175px;
  height: 45px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-navy-light);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-teal);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--color-teal);
}

.nav-links li.active a::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Search bar in header */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-field {
  width: 200px;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--border-radius-pill);
  padding: 8px 16px 8px 36px;
  font-size: 14px;
  transition: all var(--transition-normal);
}

.search-input-field:focus {
  outline: none;
  width: 260px;
  border-color: var(--color-teal);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.search-form button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 2;
}

.search-form button:hover .search-icon-svg {
  color: var(--color-teal);
}

.search-icon-svg {
  color: var(--color-slate-600);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-form > .search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Cart Icon */
.cart-btn {
  position: relative;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.cart-btn:hover {
  background-color: var(--color-slate-50);
}

.cart-badge-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-normal);
}

.cart-badge-count.has-items {
  opacity: 1;
  transform: scale(1);
}

/* Hamburger mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Toast styling */
.bb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-teal);
  font-family: var(--font-heading);
  font-size: 14px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bb-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Main Layout Spacer */
main {
  margin-top: 80px; /* offset header height */
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-white);
  padding: 80px 0 100px 0;
  overflow: hidden;
}

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

.hero-content {
  z-index: 10;
}

.hero-title-container {
  margin-bottom: 20px;
}

.hero-title-line {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  display: block;
}

.hero-title-line.navy { color: var(--color-navy); }
.hero-title-line.teal { color: var(--color-teal); }
.hero-title-line.pink { color: var(--color-pink); }

.hero-accent-underline {
  margin-top: 8px;
}

.hero-desc {
  font-size: 18px;
  color: var(--color-slate-600);
  margin-bottom: 32px;
  max-width: 460px;
}

/* Hero Right Showcase (Worksheets + Mascot) */
.hero-showcase {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-container {
  width: 320px;
  height: 256px;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(29, 42, 68, 0.05));
  animation: floatMascot 6s ease-in-out infinite;
}

/* Floating Worksheets */
.floating-worksheet {
  position: absolute;
  width: 135px;
  height: 162px;
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(29, 42, 68, 0.08);
  border: 1.5px solid var(--color-slate-200);
  overflow: hidden;
  transition: all var(--transition-normal);
  z-index: 3;
}

.floating-worksheet:hover {
  transform: scale(1.1) rotate(0deg) !important;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.floating-worksheet svg {
  width: 100%;
  height: 100%;
}

.worksheet-dots {
  top: 100px;
  left: 20px;
  transform: rotate(-8deg);
  animation: floatWorksheet1 8s ease-in-out infinite;
}

.worksheet-color {
  top: 155px;
  left: 175px;
  width: 140px;
  height: 168px;
  transform: rotate(2deg);
  animation: floatWorksheet2 7s ease-in-out infinite;
  z-index: 4;
}

.worksheet-pattern {
  top: 110px;
  left: 310px;
  transform: rotate(8deg);
  animation: floatWorksheet3 9s ease-in-out infinite;
}

.pencil-cup-container {
  position: absolute;
  bottom: 40px;
  left: 115px;
  width: 55px;
  height: 80px;
  z-index: 5;
  filter: drop-shadow(0 6px 12px rgba(29, 42, 68, 0.1));
}

/* Hero bottom wavy transition */
.hero-wave-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave-bottom svg {
  width: 100%;
  height: 60px;
  fill: var(--color-slate-50);
}

/* Keyframe Animations */
@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatWorksheet1 {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes floatWorksheet2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes floatWorksheet3 {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-8px) rotate(11deg); }
}

/* Features Section ("Designed for Growing Minds") */
.features-section {
  background-color: var(--color-slate-50);
  padding: 80px 0;
}

.section-tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
}

.heart-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-pink);
  stroke-width: 2.5;
  display: inline-block;
  animation: heartPulse 2s infinite;
}

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

.section-subtitle {
  font-size: 16px;
  color: var(--color-slate-600);
  margin: 12px auto 48px auto;
  max-width: 600px;
}

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

.feature-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  border: 1px solid var(--color-slate-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-slate-200);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrapper.teal { background-color: var(--color-teal-light); color: var(--color-teal); }
.feature-icon-wrapper.yellow { background-color: var(--color-yellow-light); color: var(--color-yellow-dark); }
.feature-icon-wrapper.pink { background-color: var(--color-pink-light); color: var(--color-pink-dark); }
.feature-icon-wrapper.lavender { background-color: var(--color-lavender-light); color: var(--color-navy-light); }

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-slate-600);
}

/* Popular Printables Section */
.popular-section {
  padding: 100px 0;
}

.popular-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.popular-header-row .section-title {
  font-size: 32px;
}

.view-all-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-teal);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.view-all-link:hover {
  color: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.popular-grid,
.category-products-grid,
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

/* Product Card Design */
.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
}

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

.card-image-container {
  position: relative;
  background-color: var(--color-slate-50);
  border-bottom: 1.5px solid var(--color-slate-200);
  aspect-ratio: 5/6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.product-card:hover .card-svg {
  transform: scale(1.04);
}


.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-category-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-600);
}

.card-rating {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--color-teal);
}

.card-desc {
  font-size: 13px;
  color: var(--color-slate-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-slate-100);
  padding-top: 14px;
}

.card-price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-normal {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}

.price-sale {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-pink-dark);
}

.price-original {
  font-size: 12px;
  color: var(--color-slate-600);
  text-decoration: line-through;
}

.price-free {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-teal-dark);
  background-color: var(--color-teal-light);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
}

/* Top Categories Section */
.categories-section {
  background-color: var(--color-slate-50);
  padding: 80px 0;
}

.categories-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
}

.category-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.category-circle-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px dashed var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all var(--transition-normal);
}

.category-circle-card:hover .category-circle-icon {
  transform: translateY(-5px) rotate(4deg);
  border-style: solid;
  border-color: var(--color-teal);
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.15);
}

.category-circle-icon svg {
  width: 42px;
  height: 42px;
  transition: transform var(--transition-normal);
}

.category-circle-card:hover .category-circle-icon svg {
  transform: scale(1.1);
}

.category-circle-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
}

/* Featured Bundle Banner */
.featured-bundle-section {
  padding: 80px 0;
}

.featured-bundle-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-radius: var(--border-radius-lg);
  padding: 50px 70px;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.featured-bundle-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-teal);
  opacity: 0.1;
  pointer-events: none;
}

.featured-bundle-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-pink);
  opacity: 0.1;
  pointer-events: none;
}

.bundle-banner-content {
  max-width: 550px;
  position: relative;
  z-index: 10;
}

.bundle-tag {
  background-color: var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  display: inline-block;
  margin-bottom: 20px;
}

.bundle-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.bundle-desc {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.bundle-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bundle-banner-price {
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
}

.bundle-price-now {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-yellow);
}

.bundle-price-orig {
  font-size: 14px;
  text-decoration: line-through;
  opacity: 0.7;
}

.bundle-mockup-wrapper {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bundle-mockup-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-lavender-light);
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-slate-100);
}

.testimonial-stars {
  color: var(--color-yellow);
  font-size: 16px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--color-slate-800);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-lavender);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-navy);
}

.author-info span {
  font-size: 12px;
  color: var(--color-slate-600);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 750px;
  margin: 32px auto 0 auto;
}

.faq-item {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.open {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.faq-header:hover {
  background-color: var(--color-slate-50);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-slate-50);
  color: var(--color-navy);
  transition: all var(--transition-normal);
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  background-color: var(--color-teal-light);
  color: var(--color-teal-dark);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content {
  padding: 0 28px 24px 28px;
  color: var(--color-slate-600);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Footer Styling */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 80px 0 30px 0;
  border-top: 6px solid var(--color-teal);
}

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

.footer-brand-logo {
  display: block;
  width: 175px;
  height: 45px;
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-teal-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-teal);
  padding-left: 4px;
}

.footer-newsletter-desc {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-pill);
  padding: 4px;
  max-width: 320px;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  background: none;
  border: none;
  padding: 8px 16px;
  color: var(--color-white);
  font-size: 13.5px;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
}

.newsletter-form button {
  background-color: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--border-radius-pill);
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--color-teal-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.7;
}

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

/* Page Header Structure (for inner pages) */
.page-header-banner {
  background-color: var(--color-slate-50);
  padding: 60px 0 50px 0;
  border-bottom: 1.5px solid var(--color-slate-200);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--color-navy);
  line-height: 1.2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-slate-600);
  margin-top: 10px;
}

.breadcrumbs a {
  color: var(--color-teal-dark);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-slate-300);
}

/* Category Page Content */
.category-page-container {
  padding: 60px 0 100px 0;
}

.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--border-radius-md);
  padding: 24px;
  align-self: start;
}

.filter-group {
  margin-bottom: 28px;
}

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

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--color-slate-200);
  padding-bottom: 8px;
}

/* Filter Options (Radios/Checkboxes) */
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-slate-800);
  cursor: pointer;
  margin-bottom: 12px;
  user-select: none;
}

.filter-label input[type="radio"],
.filter-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-slate-300);
  border-radius: 4px;
  outline: none;
  background-color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.filter-label input[type="radio"] {
  border-radius: 50%;
}

.filter-label input[type="radio"]:checked,
.filter-label input[type="checkbox"]:checked {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
}

.filter-label input[type="radio"]:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-white);
}

.filter-label input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Category Content Main */
.category-products-wrapper {
  display: flex;
  flex-direction: column;
}

.category-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 14px;
  color: var(--color-slate-600);
}

.sorting-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sorting-wrapper label {
  font-size: 14px;
  color: var(--color-slate-600);
}

.sorting-wrapper select {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--border-radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.sorting-wrapper select:focus {
  border-color: var(--color-teal);
}

.active-filters-chips {
  margin-bottom: 24px;
}

.chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background-color: var(--color-slate-100);
  border: 1.5px solid var(--color-slate-200);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-remove-chip {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-600);
  line-height: 1;
}

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

.btn-clear-chips {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-pink-dark);
  margin-left: 8px;
}

.btn-clear-chips:hover {
  text-decoration: underline;
}

.no-results {
  text-center: center;
  padding: 60px 20px;
  background-color: var(--color-slate-50);
  border: 1.5px dashed var(--color-slate-200);
  border-radius: var(--border-radius-md);
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
}

.no-results h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 14px;
  color: var(--color-slate-600);
  margin-bottom: 20px;
}

/* Printable Detail Page */
.printable-detail-container {
  padding: 60px 0 100px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.detail-gallery {
  display: block;
}

.detail-image-preview {
  background-color: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--border-radius-lg);
  aspect-ratio: 5/6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.detail-image-preview img,
.detail-image-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image-preview svg {
  width: 90%;
  height: 90%;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.gallery-thumb-item {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--color-slate-200);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
  border-color: var(--color-teal);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-placeholder {
  color: var(--color-slate-600);
}

.gallery-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 42, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-video-overlay svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.detail-category {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-teal-dark);
  background-color: var(--color-teal-light);
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  display: inline-block;
  margin-bottom: 12px;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-rating-stars {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy-light);
  margin-bottom: 20px;
}

.detail-price-box {
  background-color: var(--color-slate-50);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--color-slate-100);
}

.detail-price-normal {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
}

.detail-price-sale {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-pink-dark);
}

.detail-price-original {
  font-size: 16px;
  color: var(--color-slate-600);
  text-decoration: line-through;
}

.detail-badge-sale {
  background-color: var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
}

.detail-price-free {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-teal-dark);
}

.detail-description {
  font-size: 15.5px;
  color: var(--color-slate-600);
  margin-bottom: 28px;
  line-height: 1.6;
}

.detail-purchase-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.btn-detail-add-cart {
  flex-grow: 1;
  padding: 16px 32px;
}

.detail-spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1.5px solid var(--color-slate-200);
  padding-top: 24px;
  margin-bottom: 28px;
}

.detail-spec-list li {
  font-size: 14.5px;
  color: var(--color-slate-800);
}

.detail-skills-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.detail-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  background-color: var(--color-lavender-light);
  border: 1px solid var(--color-lavender);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
}

/* Tabs Section (Description / Goals / Reviews) */
.detail-tabs-wrapper {
  margin-top: 60px;
  border-top: 1.5px solid var(--color-slate-200);
  padding-top: 40px;
}

.detail-tabs-headers {
  display: flex;
  gap: 32px;
  border-bottom: 1.5px solid var(--color-slate-200);
  margin-bottom: 24px;
}

.detail-tab-btn {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-slate-600);
  padding-bottom: 14px;
  position: relative;
}

.detail-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-teal);
  transition: width var(--transition-fast);
}

.detail-tab-btn.active {
  color: var(--color-teal);
}

.detail-tab-btn.active::after {
  width: 100%;
}

.detail-tab-pane-content {
  font-size: 15px;
  color: var(--color-slate-600);
  line-height: 1.75;
}

.learning-goals-list {
  padding-left: 20px;
  margin-top: 16px;
}

.learning-goals-list li {
  margin-bottom: 10px;
}

.reviews-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-100);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

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

.review-header strong {
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--color-navy);
}

.review-comment {
  font-style: italic;
  font-size: 14px;
}

/* Related products bottom */
.related-products-section {
  border-top: 1.5px solid var(--color-slate-200);
  padding-top: 60px;
  margin-top: 80px;
}

.related-products-section .section-title {
  font-size: 28px;
  margin-bottom: 36px;
}

/* About Page Styling */
.about-hero-section {
  padding: 80px 0;
  background-color: var(--color-slate-50);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.about-hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.about-features {
  padding: 80px 0;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.about-story-section {
  padding: 80px 0 100px 0;
  border-top: 1.5px solid var(--color-slate-100);
}

.about-story-max {
  max-width: 800px;
  margin: 0 auto;
}

.about-story-max p {
  font-size: 16.5px;
  color: var(--color-slate-600);
  margin-bottom: 24px;
  line-height: 1.75;
}

/* Contact Page Styling */
.contact-container {
  padding: 60px 0 100px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--border-radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
}

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

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 14.5px;
  color: var(--color-slate-600);
}

.contact-info-card a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.contact-form-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.contact-form-card p {
  font-size: 14px;
  color: var(--color-slate-600);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background-color: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  transition: all var(--transition-normal);
  color: var(--color-slate-800);
}

.form-control:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.12);
}

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

/* Legal Pages (Privacy & Terms) */
.legal-container {
  padding: 60px 0 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-navy);
  margin: 36px 0 16px 0;
}

.legal-content p {
  font-size: 15px;
  color: var(--color-slate-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--color-slate-600);
}

.legal-content li {
  margin-bottom: 8px;
}

/* Blog Listing Styling */
.blog-container {
  padding: 60px 0 100px 0;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal);
}

.blog-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--color-slate-600);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.blog-card-title:hover {
  color: var(--color-teal);
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--color-slate-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-link {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal);
  transition: color var(--transition-fast);
}

.btn-link:hover {
  color: var(--color-teal-dark);
}

/* Fullscreen Overlay Post Reader */
.blog-overlay-reader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 42, 68, 0.4);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.blog-overlay-reader.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-container-inner {
  width: 750px;
  max-width: 100%;
  height: 100%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(100px);
  transition: transform var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-overlay-reader.visible .overlay-container-inner {
  transform: translateX(0);
}

.btn-close-overlay {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-slate-100);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition: all var(--transition-fast);
  z-index: 10;
}

.btn-close-overlay:hover {
  background-color: var(--color-pink-light);
  color: var(--color-pink-dark);
  transform: scale(1.05);
}

.overlay-article-content {
  padding: 60px 48px;
}

.overlay-category-badge {
  background-color: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}

.overlay-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.overlay-meta {
  font-size: 13px;
  color: var(--color-slate-600);
  margin-bottom: 32px;
  border-bottom: 1.5px solid var(--color-slate-100);
  padding-bottom: 16px;
}

.overlay-hero-image {
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-md);
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.overlay-body-content {
  font-size: 16px;
  color: var(--color-slate-800);
  line-height: 1.8;
}

.overlay-body-content p {
  margin-bottom: 24px;
}

.overlay-body-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-navy);
  margin: 32px 0 16px 0;
}

.overlay-body-content em {
  color: var(--color-slate-600);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title-line {
    font-size: 44px;
  }
  .mascot-container {
    width: 260px;
    height: 208px;
  }
  .worksheet-dots { left: 0px; }
  .worksheet-color { left: 140px; }
  .worksheet-pattern { left: 260px; }
  .pencil-cup-container { left: 85px; }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .popular-grid,
  .category-products-grid,
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation toggle */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(29, 42, 68, 0.1);
    transition: right var(--transition-normal);
    z-index: 1005;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  .search-form {
    display: none; /* Hide header search on tablet/mobile to save space */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-showcase {
    order: -1; /* Mascot on top in mobile */
    height: 340px;
  }
  
  .worksheet-dots { left: 30px; }
  .worksheet-color { left: 160px; }
  .worksheet-pattern { left: 270px; }
  .pencil-cup-container { left: 110px; }

  .category-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    display: none; /* Filters sidebar can be dynamic in production, simplified for demo */
  }
  
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .popular-grid,
  .category-products-grid,
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .featured-bundle-banner {
    padding: 40px;
  }
  
  .bundle-mockup-wrapper {
    display: none; /* Hide complex mockup banner on mobile */
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title-line {
    font-size: 34px;
  }
  
  .hero-showcase {
    zoom: 0.8; /* scale down entire layout easily */
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid,
  .popular-grid,
  .category-products-grid,
  .related-products-grid,
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
  
  .overlay-article-content {
    padding: 40px 24px;
  }
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1999;
  animation: slideUpFloat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFloat {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(29, 42, 68, 0.15);
  color: var(--color-white);
  transition: all var(--transition-normal);
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(29, 42, 68, 0.25);
}

.float-btn.bmac {
  background-color: #ffc83b;
  color: var(--color-navy);
}

.float-btn.bmac:hover {
  background-color: #ffd56b;
}

.float-btn.whatsapp {
  background-color: #25d366;
  color: var(--color-white);
}

.float-btn.whatsapp:hover {
  background-color: #34e073;
}

.float-icon {
  width: 24px;
  height: 24px;
}

/* Adjust toast position to avoid overlaps */
@media (max-width: 480px) {
  .floating-actions {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .float-btn {
    width: 46px;
    height: 46px;
  }
  .float-icon {
    width: 20px;
    height: 20px;
  }
  .bb-toast {
    bottom: 130px;
  }
}

/* Recurring Promo Popup Styles */
.promo-popup-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(29, 42, 68, 0.15);
  padding: 24px;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.promo-popup-container.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.promo-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-slate-100);
  color: var(--color-navy);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.promo-popup-close:hover {
  background: var(--color-pink-light);
  color: var(--color-pink-dark);
  transform: rotate(90deg);
}

.promo-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 8px;
}

.promo-popup-icon-wrapper {
  background: var(--color-teal-light);
  color: var(--color-teal);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 196, 182, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0);
  }
}

.promo-popup-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.promo-popup-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-slate-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

.promo-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  background-color: #25d366; /* WhatsApp Green */
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  font-size: 15px;
  transition: all var(--transition-normal);
}

.promo-popup-btn:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.promo-popup-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile responsive styles */
@media (max-width: 576px) {
  .promo-popup-container {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 24px 20px;
    transform: translateY(100%);
  }

  .promo-popup-container.show {
    transform: translateY(0);
  }
}

