/* ============================================================
   Wachenda Preschoolwear Malawi - Main Stylesheet
   Professional, Fun & Playful Preschool Theme
   ============================================================ */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

/* ----- CSS Variables ----- */
:root {
  --primary: #FF6B6B;
  --primary-dark: #E55A5A;
  --secondary: #4ECDC4;
  --secondary-dark: #3BBDB5;
  --accent: #FFE66D;
  --accent-dark: #F0D85E;
  --blue: #45B7D1;
  --blue-dark: #3A9FB8;
  --purple: #A66CFF;
  --orange: #FF9F43;
  --green: #2ECC71;
  --pink: #FD79A8;
  --dark: #2D3436;
  --gray: #636E72;
  --light-gray: #DFE6E9;
  --lighter: #F8F9FA;
  --white: #FFFFFF;
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--lighter);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--lighter);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-dark);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--accent);
  font-weight: 600;
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.logo-text h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--gray);
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

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

.nav a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
}

.nav a:hover,
.nav a.active {
  background: var(--accent);
  color: var(--dark);
}

.nav a.active {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 50%, var(--accent) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

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

.hero-content h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

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

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-illustration .emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.hero-illustration .emoji-item {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 25px 15px;
  text-align: center;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.hero-illustration .emoji-item:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-5px);
}

.emoji-item .emoji-big {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.emoji-item .emoji-label {
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.title-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories {
  background: var(--white);
}

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

.category-card {
  background: var(--lighter);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  transition: var(--transition);
}

.category-card:nth-child(1)::before { background: var(--blue); }
.category-card:nth-child(2)::before { background: var(--pink); }
.category-card:nth-child(3)::before { background: var(--purple); }

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.category-card .cat-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 15px;
}

.category-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.category-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.category-card .cat-count {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.product-image {
  height: 220px;
  background: linear-gradient(135deg, var(--lighter) 0%, #E8F0FE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.product-image .product-emoji {
  font-size: 5rem;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
  transition: var(--transition);
}

.product-card:hover .product-emoji {
  transform: scale(1.1) rotate(-5deg);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-badge.new {
  background: var(--green);
}

.product-badge.sale {
  background: var(--orange);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 5px;
}

.product-info .product-category {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 10px;
}

.product-colors {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.color-dot:hover {
  transform: scale(1.3);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product-price .price {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--primary);
}

.product-price .price-old {
  font-size: 1rem;
  color: var(--gray);
  text-decoration: line-through;
}

.product-card .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.product-card .btn:hover {
  background: var(--secondary-dark);
  transform: none;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  background: var(--white);
}

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

.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--lighter);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card .feat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--secondary) 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--blue);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--orange));
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '✦ ✦ ✦';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 20px;
}

.page-header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 15px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ============================================================
   FILTER / CATEGORY TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================================
   CONTACT / ABOUT SECTION
   ============================================================ */
.contact-section {
  background: var(--white);
}

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

.contact-info h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.contact-info p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: var(--dark);
}

.contact-item .ci-icon {
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  background: var(--lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  font-weight: 800;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
  color: var(--white);
}

.social-link.facebook { background: #1877F2; }
.social-link.instagram { background: #E4405F; }
.social-link.tiktok { background: #000000; }
.social-link.whatsapp { background: #25D366; }

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.order-form {
  background: var(--lighter);
  padding: 35px;
  border-radius: var(--radius);
}

.order-form h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--dark);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-about h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

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

.footer-bottom a {
  color: var(--accent);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.back-to-top.visible {
  display: flex;
}

/* ============================================================
   CART BADGE
   ============================================================ */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ============================================================
   CART NOTIFICATION TOAST
   ============================================================ */
.cart-notification {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-notification .btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.cart-notification .btn-sm:hover {
  background: var(--secondary-dark);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-main-image {
  position: relative;
  background: var(--lighter);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-main-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

.product-detail-info {
  padding: 0;
}

.product-detail-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-detail-sku {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.product-detail-price {
  margin-bottom: 20px;
}

.product-detail-price .price {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--primary);
}

.product-detail-price .old-price {
  font-size: 1.2rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 10px;
}

.product-detail-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 25px;
}

.product-options {
  margin-bottom: 25px;
}

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

.option-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.option-group label span {
  font-weight: 400;
  color: var(--primary);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px var(--accent);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option {
  padding: 8px 18px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}

.size-option:hover {
  border-color: var(--secondary);
}

.size-option.active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--lighter);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--light-gray);
  border-right: 2px solid var(--light-gray);
  font-weight: 700;
  font-size: 1rem;
  background: var(--white);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 180px;
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

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

.btn-whatsapp:hover {
  background: #1DA851;
  color: var(--white);
}

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

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

.product-detail-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
}

.pdf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

.pdf-item span:first-child {
  font-size: 1.2rem;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-items h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 15px;
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-hover);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.cart-item-details h3 a {
  color: var(--dark);
}

.cart-item-details h3 a:hover {
  color: var(--primary);
}

.cart-item-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gray);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item-quantity .qty-btn {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.cart-item-quantity input {
  width: 44px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--light-gray);
  border-right: 2px solid var(--light-gray);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-total {
  text-align: right;
  min-width: 100px;
}

.cart-item-subtotal {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.btn-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}

.btn-remove:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* Cart Summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray);
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.summary-total span:last-child {
  color: var(--primary);
  font-family: 'Fredoka One', cursive;
}

.summary-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 12px 0;
}

.cart-notes {
  margin-top: 15px;
  padding: 12px;
  background: #FFF8E1;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin: 20px 0 10px;
  color: var(--dark);
}

.empty-cart p {
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-cart-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Loading & Error States */
.loading-spinner {
  text-align: center;
  padding: 60px;
  font-size: 1.2rem;
  color: var(--gray);
}

.error-message {
  text-align: center;
  padding: 60px 20px;
}

.error-message h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin: 20px 0 10px;
  color: var(--dark);
}

.error-message p {
  color: var(--gray);
  margin-bottom: 25px;
}

/* ============================================================
   PRODUCT IMAGE OVERRIDE FOR CARD
   ============================================================ */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-image {
  height: 220px;
  background: var(--lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE - CART & PRODUCT DETAIL
   ============================================================ */
@media (max-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
  }
  .product-actions .btn {
    min-width: auto;
  }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }
  .cart-item-quantity {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .cart-item-total {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .product-detail-title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   CART BADGE
   ============================================================ */
.cart-link {
  position: relative !important;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ============================================================
   CART NOTIFICATION (Toast)
   ============================================================ */
.cart-notification {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-hover);
  border-left: 5px solid var(--green);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 380px;
}

.cart-notification.show {
  transform: translateX(0);
}

.cart-notification span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

.cart-notification .btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
  white-space: nowrap;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50px;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
  padding: 20px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-main-image {
  position: relative;
  background: var(--lighter);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--light-gray);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main-image .product-badge {
  font-size: 0.85rem;
  padding: 6px 16px;
  z-index: 2;
}

.product-detail-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-detail-sku {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.product-detail-price {
  margin-bottom: 20px;
}

.product-detail-price .price {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--primary);
}

.product-detail-price .old-price {
  font-size: 1.4rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 12px;
}

.product-detail-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 30px;
}

.product-options {
  margin-bottom: 25px;
}

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

.option-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.option-group label span {
  color: var(--primary);
  font-weight: 800;
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
  display: block;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px var(--accent);
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  padding: 8px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  background: var(--white);
}

.size-option:hover {
  border-color: var(--secondary);
  background: rgba(78, 205, 196, 0.05);
}

.size-option.active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 140px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-selector .qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--lighter);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector .qty-btn:hover {
  background: var(--light-gray);
}

.quantity-selector input {
  width: 56px;
  height: 42px;
  border: none;
  border-left: 2px solid var(--light-gray);
  border-right: 2px solid var(--light-gray);
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  background: var(--white);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 200px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-whatsapp {
  background: #25D366 !important;
  color: var(--white) !important;
}

.btn-whatsapp:hover {
  background: #1DA851 !important;
  transform: translateY(-2px) !important;
}

.product-detail-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
}

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

.pdf-item span:first-child {
  font-size: 1.3rem;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.cart-items h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 15px;
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-hover);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--lighter);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cart-item-details h3 a {
  color: var(--dark);
}

.cart-item-details h3 a:hover {
  color: var(--primary);
}

.cart-item-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gray);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-quantity .qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--lighter);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--dark);
}

.cart-item-quantity input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 2px solid var(--light-gray);
  border-right: 2px solid var(--light-gray);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-total {
  text-align: right;
  min-width: 120px;
}

.cart-item-subtotal {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}

.btn-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}

.btn-remove:hover {
  color: var(--primary);
  background: rgba(255, 107, 107, 0.1);
}

/* Cart Summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--dark);
}

.summary-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 12px 0;
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.summary-total span:last-child {
  color: var(--primary);
  font-family: 'Fredoka One', cursive;
}

.cart-summary .btn {
  margin-bottom: 0;
}

.cart-notes {
  margin-top: 15px;
  padding: 12px;
  background: #FFF8E1;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-dark);
}

.cart-notes p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin: 20px 0 10px;
  color: var(--dark);
}

.empty-cart p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-cart-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Loading & Error States */
.loading-spinner {
  text-align: center;
  padding: 60px;
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 700;
}

.error-message {
  text-align: center;
  padding: 60px 20px;
}

.error-message h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin: 15px 0 10px;
}

.error-message p {
  color: var(--gray);
  margin-bottom: 25px;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--light-gray) !important;
  color: var(--gray) !important;
}

.btn-outline:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* ============================================================
   PRODUCT IMAGE on cards with real images
   ============================================================ */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image.has-image {
  background: var(--white);
  padding: 0;
}

.product-image.has-image .product-emoji {
  display: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 5px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: 12px; }

  .hero { padding: 60px 0; }
  .hero-content h1 { font-size: 2rem; }
  .section-title h2 { font-size: 1.8rem; }

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

  .top-bar-info { display: none; }
  .top-bar .container { justify-content: center; }

  .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .section-title h2 { font-size: 1.5rem; }
  .logo-text h1 { font-size: 1.2rem; }
}
