/* =====================================================
   ZOONOVA - Child-Friendly Design System
   ===================================================== */

/* ----------------------
   CSS Variables
   ---------------------- */
:root {
  /* Primary Colors - Solid, no gradients */
  --color-primary: #3d7a3a;
  --color-primary-dark: #2d5a27;
  --color-primary-light: #5a9a57;

  /* Accent Colors */
  --color-yellow: #ffd966;
  --color-yellow-light: #ffeb99;
  --color-blue: #7ec8e3;
  --color-blue-light: #b5e0f0;
  --color-coral: #ff8a65;
  --color-coral-light: #ffb399;

  /* Neutrals */
  --color-cream: #fffef5;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-muted: #a0aec0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-bounce: 0 6px 0 rgba(0, 0, 0, 0.1);
  --shadow-paper: 4px 4px 0 rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-cream);
  background-image: radial-gradient(
    var(--color-yellow-light) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bubblegum Sans", cursive;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* ----------------------
   Typography - Enhanced Visual Hierarchy
   ---------------------- */
.text-hero {
  font-size: clamp(3.5rem, 12vw, 6rem);
  color: var(--color-white);
  text-shadow: 3px 6px 12px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 217, 102, 0.3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.text-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 rgba(61, 122, 58, 0.1);
  position: relative;
}

.text-subtitle {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: var(--color-text);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.text-body {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
  font-weight: 500;
}

.text-lead {
  font-size: 1.35rem;
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 600;
}

.text-highlight {
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
}

.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--color-yellow);
  opacity: 0.4;
  z-index: -1;
  transform: skewX(-5deg);
}

/* Make headers pop */
h1,
h2,
h3,
h4 {
  margin-bottom: var(--space-sm);
}

.text-accent {
  color: var(--color-yellow);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15), 0 0 30px rgba(255, 217, 102, 0.5);
}

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

/* Mobile Buttons */
@media (max-width: 640px) {
  .btn {
    padding: 0.6rem 1.2rem !important; /* Force smaller padding */
    font-size: 0.95rem !important;
  }

  .btn-lg {
    font-size: 1rem !important;
    padding: 0.7rem 1.4rem !important;
  }
}

/* ----------------------
   Layout
   ---------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .about-grid,
  .featured-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
  }
}

.flex {
  display: flex;
}

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

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

/* ----------------------
   Buttons
   ---------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  position: relative;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-bounce);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Other button styles stay same but simplified here for updating main style file */
.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--color-text);
  box-shadow: var(--shadow-bounce);
}

.btn-yellow:hover {
  background-color: var(--color-yellow-light);
  transform: translateY(-2px);
}

.btn-blue {
  background-color: var(--color-blue);
  color: var(--color-text);
  box-shadow: var(--shadow-bounce);
}

.btn-blue:hover {
  background-color: var(--color-blue-light);
  transform: translateY(-2px);
}

.btn-coral {
  background-color: var(--color-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-bounce);
}

.btn-coral:hover {
  background-color: var(--color-coral-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ----------------------
   Navigation
   ---------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  transition: all var(--transition-normal);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.nav.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) var(--space-lg);
}

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

.nav-logo {
  height: 50px;
  transition: transform var(--transition-normal);
  opacity: 0; /* Hidden initially for GSAP animation */
  visibility: hidden;
}

.nav-logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.nav.scrolled .nav-logo {
  height: 40px;
}

/* Navigation Buttons Styles */
.nav-menu-btn,
.nav-cart,
.nav-social {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
  opacity: 0; /* Hidden initially for GSAP animation */
  visibility: hidden;
  position: relative;
}

.nav.scrolled .nav-menu-btn,
.nav.scrolled .nav-cart,
.nav.scrolled .nav-social {
  background-color: var(--color-cream);
  color: var(--color-primary);
}

.nav-menu-btn:hover,
.nav-cart:hover,
.nav-social:hover {
  background-color: var(--color-yellow);
  color: var(--color-text);
  transform: scale(1.1);
}

.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background-color: var(--color-coral);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.mobile-menu-close:hover {
  background-color: var(--color-yellow);
  color: var(--color-text);
  transform: rotate(90deg);
}

.mobile-menu-link {
  font-family: "Bubblegum Sans", cursive;
  font-size: 2rem;
  color: var(--color-white);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link:hover {
  background-color: var(--color-yellow);
  color: var(--color-text);
  transform: scale(1.1);
}

/* ----------------------
   Hero Section
   ---------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: var(--space-lg);
  max-width: 900px;
}

.hero-title {
  margin: var(--space-lg);
}

.hero-title span {
  display: block;
}

.hero-cta {
  margin-top: var(--space-xl);
  position: relative;
  z-index: 25;
}

/* Hero Decorations */
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* ----------------------
   Book Cards - Zigzag Redesign
   ---------------------- */
.books-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl); /* Large spacing between rows */
  max-width: 1000px;
  margin: 0 auto;
}

.book-item {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

/* Zigzag Pattern: Even items reverse direction */
.book-item:nth-child(even) {
  flex-direction: row-reverse;
}

.book-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.book-visual-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  background-color: var(--color-yellow);
  border-radius: var(--radius-lg);
  z-index: 0;
  top: -10%;
  left: -10%;
  transform: rotate(-3deg);
  transition: transform var(--transition-normal);
}

.book-item:nth-child(even) .book-visual-bg {
  transform: rotate(3deg);
  left: auto;
  right: -10%;
}

.book-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4; /* Restored to book ratio */
  overflow: visible; /* Allows mascot to pop out */
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.book-media-inner {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Clips the video */
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-video {
  width: 100%;
  height: 135%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.book-media:hover {
  transform: scale(1.02);
}

.book-media:hover + .book-visual-bg,
.book-media:hover ~ .book-visual-bg {
  transform: rotate(0deg) scale(1.05);
}

.mascot-container {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid var(--color-yellow);
}

.book-item:nth-child(even) .mascot-container {
  right: auto;
  left: -20px;
}

.book-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  max-width: 500px;
}

/* Align text based on zigzag? Optional, but left align is usually best for reading. */
.book-item:nth-child(even) .book-content {
  align-items: flex-start; /* Keep left aligned for readability */
}

.book-label {
  font-family: "Quicksand", sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b5e3c; /* Brownish gold from reference */
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.book-title-large {
  font-family: "Times New Roman", serif; /* Or a serif font closer to design */
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-weight: 400; /* Regular weight for elegance */
}

.book-title-large span {
  display: block;
}

.book-description {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.add-to-cart-btn-large {
  background-color: var(--color-yellow);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: none; /* Flat style initially */
  transition: all var(--transition-normal);
}

.add-to-cart-btn-large:hover {
  transform: translateY(-2px);
  background-color: #f0c040; /* Slightly darker yellow */
  box-shadow: var(--shadow-sm);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .books-grid {
    gap: var(--space-2xl);
  }

  .book-item,
  .book-item:nth-child(even) {
    flex-direction: column; /* Stack vertically on tablet/mobile */
    gap: var(--space-lg);
    text-align: center;
  }

  .book-content,
  .book-item:nth-child(even) .book-content {
    align-items: center;
    text-align: center;
  }

  .book-visual,
  .book-content {
    width: 100%;
  }

  /* Simplify on mobile: hide label and description */
  .book-label,
  .book-description {
    display: none;
  }

  /* Remove yellow box on mobile */
  .book-visual-bg,
  .book-item:nth-child(even) .book-visual-bg {
    display: none !important;
  }

  .book-title-large {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
  }
}

/* Ensure section header is visible and centered */
.section-header {
  position: relative;
  z-index: 10;
  margin-bottom: var(--space-3xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------------
   About Section - Pop-up Book Style
   ---------------------- */
.about {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  margin: 0 var(--space-md);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: visible; /* Allowing decorations to pop out */
  margin-bottom: var(--space-3xl); /* Extra space for pop effect */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0.3;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image-wrapper {
  position: relative;
  background: none; /* Removed flat bg */
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.about-image-wrapper::after {
  /* Organic blob background */
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--color-blue-light);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  animation: blob-float 10s ease-in-out infinite alternate;
}

@keyframes blob-float {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(0deg);
  }
  100% {
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    transform: rotate(20deg);
  }
}

.about-image {
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-paper);
  transform: rotate(-3deg);
  transition: transform var(--transition-normal);
  border: 8px solid var(--color-white);
}

.about-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-decoration {
  position: absolute;
  font-size: 6rem;
  color: var(--color-yellow);
  bottom: var(--space-md);
  right: var(--space-md);
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.1));
}

.about-content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-yellow-light);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  width: fit-content;
}

/* ----------------------
   Custom Cursor
   ---------------------- */
html,
body,
* {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  /* Properly encoded SVG data URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd966'%3E%3Cpath d='M12 2l2.4 7.2h7.6l-6 4.8 2.4 7.2-6-4.8-6 4.8 2.4-7.2-6-4.8h7.6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 5px rgba(255, 217, 102, 0.8));
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.8;
}
/* ----------------------
   Featured Section
   ---------------------- */
.featured {
  padding: var(--space-3xl) 0;
  background-color: var(--color-white);
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* ... (Keep existing Featured styles or adapt) ... */

/* ----------------------
   Footer
   ---------------------- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: var(--space-3xl);
  position: relative;
}

.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--color-yellow);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ... (Keep rest of footer styles) ... */
.footer-brand h3 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}
.footer-brand p {
  opacity: 0.8;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-social-link {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}
.footer-social-link:hover {
  background-color: var(--color-yellow);
  color: var(--color-text);
  transform: scale(1.1) rotate(-5deg);
}
.footer-column h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.footer-column h4 i {
  color: var(--color-yellow);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-link {
  opacity: 0.8;
  font-size: 0.9375rem;
  transition: all var(--transition-normal);
}
.footer-link:hover {
  opacity: 1;
  color: var(--color-yellow);
  transform: translateX(4px);
}

/* ----------------------
   Cart Dropdown
   ---------------------- */
/* ----------------------
   Cart Dropdown - Child Friendly Redesign
   ---------------------- */
.cart-dropdown {
  position: absolute;
  top: calc(100% + var(--space-md));
  right: 0;
  width: 360px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 0 var(--color-primary-dark);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all var(--transition-normal);
  z-index: 100;
  border: 4px solid var(--color-primary);
  overflow: hidden; /* Clips the scrollbar specific corners if needed */
}

/* Little triangle pointer */
.cart-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 24px;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  transform: rotate(45deg);
  z-index: -1;
}

.cart-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cart-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background-color: var(--color-primary-light);
  color: var(--color-white);
  cursor: move; /* Indicates draggable */
  user-select: none;
}

/* ... existing styles ... */

/* ----------------------
   Scroll to Top Button
   ---------------------- */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background-color: var(--color-yellow);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  border: 3px solid var(--color-white);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cart-dropdown-title {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.cart-dropdown-close {
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cart-dropdown-close:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: rotate(90deg);
}

.cart-items {
  max-height: 350px; /* Fixed scrollable height */
  overflow-y: auto;
  padding: var(--space-md);
  background-color: var(--color-cream);
  /* Custom Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-yellow) transparent;
}

.cart-items::-webkit-scrollbar {
  width: 8px;
}

.cart-items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
  background-color: var(--color-yellow);
  border-radius: 20px;
  border: 2px solid var(--color-cream); /* Padding effect */
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast);
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item:hover {
  transform: translateX(4px);
}

.cart-item-title {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.cart-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-text-muted);
}

.cart-empty i {
  font-size: 3rem;
  color: var(--color-yellow);
  margin-bottom: var(--space-sm);
  animation: pulse-soft 2s infinite;
}

.cart-empty p {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.25rem;
}

.cart-dropdown-footer {
  padding: var(--space-md);
  background-color: var(--color-white);
  border-top: 2px dashed var(--color-primary-light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.cart-checkout-btn {
  width: 100%;
  background-color: var(--color-yellow);
  color: var(--color-text);
  font-size: 1.1rem;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 700;
  box-shadow: 0 4px 0 #e6c250;
  transition: all 0.2s;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #e6c250;
  background-color: #ffe082;
}

.cart-checkout-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #e6c250;
}

/* ----------------------
   Video Modal
   ---------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(61, 122, 58, 0.9); /* Primary color overlay */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(5px);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  border: 8px solid var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ----------------------
   Cart Item Placeholder
   ---------------------- */
.cart-item-image-placeholder {
  width: 50px;
  height: 65px;
  border-radius: var(--radius-sm);
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ----------------------
   Floating Decorations & Animations
   ---------------------- */
.floating-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-svg {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .floating-svg {
    opacity: 0.4 !important;
  }
  .floating-svg:nth-child(n + 8) {
    display: none;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typewriter-cursor {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.8s infinite;
  text-shadow: 0 0 10px var(--color-primary);
}

/* ----------------------
   Butterfly Guide (Desktop)
   ---------------------- */
#butterfly-guide {
  transition: filter 0.3s ease;
}

#butterfly-guide:hover {
  filter: drop-shadow(0 0 25px rgba(255, 217, 102, 0.9)) !important;
}

#butterfly-guide .butterfly-svg {
  width: 100%;
  height: 100%;
}

#butterfly-guide .wing {
  transform-box: fill-box;
}

/* Star Trail Particles */
.trail-star {
  transition: none;
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  #butterfly-guide {
    display: none !important;
  }
}

/* ----------------------
   Enhanced About Section Animations
   ---------------------- */
.about-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  position: relative;
  display: inline-block;
}

.about-highlight {
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.about-extra {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.about-extra.visible {
  height: auto;
  opacity: 1;
}

/* Animated blob background */
.about-image-wrapper::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: linear-gradient(
    135deg,
    var(--color-blue-light) 0%,
    var(--color-yellow-light) 100%
  );
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  animation: blob-float 10s ease-in-out infinite alternate;
}

/* ----------------------
   Enhanced Featured Section
   ---------------------- */
.featured-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.featured-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: linear-gradient(
    135deg,
    var(--color-coral) 0%,
    var(--color-coral-light) 100%
  );
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
}

.featured-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-image-bg {
  position: absolute;
  width: 90%;
  height: 90%;
  background: linear-gradient(
    135deg,
    var(--color-yellow-light) 0%,
    var(--color-blue-light) 100%
  );
  border-radius: var(--radius-lg);
  transform: rotate(-5deg);
  z-index: 0;
}

.featured-image-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  transition: transform 0.4s ease;
}

.featured-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.featured-image-card img {
  display: block;
  width: 100%;
  max-width: 350px;
}

.featured-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ----------------------
   Responsive Improvements
   ---------------------- */
@media (max-width: 768px) {
  .about-grid,
  .featured-grid {
    gap: var(--space-xl);
  }

  .about-image-wrapper {
    min-height: 300px;
  }

  .about-image {
    max-width: 220px;
  }

  .featured-image-card img {
    max-width: 280px;
  }

  .featured-actions {
    justify-content: center;
  }

  .about-title,
  .featured-title {
    text-align: center;
  }

  .about-content,
  .featured-content {
    text-align: center;
    align-items: center;
    padding: 0 var(--space-xl);
  }

  .about-badge,
  .featured-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .about-highlight {
    font-size: 1.15rem;
  }

  .about-text,
  .featured-text {
    font-size: 1rem;
  }

  .featured-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
