/* ---- ./core/variables.css ---- */
/**
 * Design Tokens - Core Variables
 * Centralized design system for consistent styling
 */

:root {
  /* ========== COLORS ========== */
  
  /* Primary - Purple (Trust, Education) */
  --color-primary: #564593;
  --color-primary-light: #735885;
  --color-primary-dark: #3d2f63;
  
  /* Accent - Yellow (Joy, Energy) */
  --color-accent: #EFE754;
  --color-accent-light: #f3e24b;
  --color-accent-dark: #c5b13b;
  
  /* Success - Green (Growth, Learning) */
  --color-success: #9DC541;
  
  /* Info - Blue (Calm, Trust) */
  --color-info: #8EC2CD;
  
  /* Neutrals */
  --color-white: #ffffff;
  --color-off-white: #fefcf7;
  --color-gray-100: #f8fafc;
  --color-gray-200: #e9edf2;
  --color-gray-600: #5e6775;
  --color-gray-800: #2c3e4e;
  
  /* Legacy variable names (for backward compatibility) */
  --purple-soft: var(--color-primary-light);
  --purple-deep: var(--color-primary);
  --sun-yellow: var(--color-accent);
  --grass-green: var(--color-success);
  --sky-blue: var(--color-info);
  --white-pure: var(--color-white);
  --off-white: var(--color-off-white);
  --gray-100: var(--color-gray-100);
  --gray-200: var(--color-gray-200);
  --gray-600: var(--color-gray-600);
  --gray-800: var(--color-gray-800);
  
  /* ========== SPACING ========== */
  /* 8px base unit system */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 5rem;    /* 80px */
  
  /* ========== TYPOGRAPHY ========== */
  
  /* Font families */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Font sizes (fluid typography) */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 2rem;     /* 32px */
  --text-4xl: 2.5rem;   /* 40px */
  
  /* Line heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* ========== SHADOWS ========== */
  --shadow-sm: 0 6px 16px rgba(86, 69, 147, 0.06);
  --shadow-md: 0 12px 24px rgba(86, 69, 147, 0.10);
  --shadow-lg: 0 20px 30px rgba(86, 69, 147, 0.12);
  --shadow-hover: 0 20px 30px rgba(86, 69, 147, 0.12);
  
  /* ========== BORDER RADIUS ========== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Legacy names */
  --radius-card: var(--radius-xl);
  --radius-btn: var(--radius-full);
  --radius-element: var(--radius-lg);
  
  /* ========== TRANSITIONS ========== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1);
  
  /* ========== LAYOUT ========== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container-max: 1320px;
}


/* ---- ./core/reset.css ---- */
/**
 * Modern CSS Reset
 * Normalize browser defaults for consistent styling
 */

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

/* Remove default margins */
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

/* Remove list styles */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Remove link underlines */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---- ./core/typography.css ---- */
/**
 * Typography System
 * Consistent text styles across the site
 */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-sm);
}

/* Links */
a {
  color: var(--color-primary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

/* Strong and emphasis */
strong, b {
  font-weight: var(--font-bold);
}

em, i {
  font-style: italic;
}

/* Small text */
small {
  font-size: var(--text-sm);
}

/* Utility classes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

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


/* ---- ./layouts/grid.css ---- */
/**
 * Grid and Layout System
 * Responsive grid layouts and containers
 */

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

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

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

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

.section-lg {
  padding: 6rem 0;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

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

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

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

/* Auto-fit grid (responsive) */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Responsive Grid */
@media (max-width: 1100px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 650px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .section-title h2 {
    font-size: var(--text-2xl);
  }
  
  .section-title p {
    font-size: var(--text-base);
  }
}


/* ---- ./layouts/header.css ---- */
/**
 * Header Layout
 * Navigation, logo, and header actions
 */

header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.9rem;
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  text-decoration: none;
}

.logo i {
  font-size: 2.2rem;
  color: var(--color-success);
}

.logo span {
  background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Navigation */
.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-desktop a {
  font-weight: var(--font-bold);
  color: var(--color-gray-800);
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  border-bottom-color: var(--color-accent);
  color: var(--color-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Cart Icon */
.cart-icon {
  position: relative;
  font-size: 1.6rem;
  color: var(--color-primary);
  transition: transform 0.15s;
  cursor: pointer;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #ef4444;
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: var(--font-bold);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  padding: var(--space-xl) var(--space-md);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.8rem;
  color: var(--color-gray-600);
  cursor: pointer;
}

.nav-mobile ul {
  list-style: none;
  margin-top: var(--space-xl);
}

.nav-mobile li {
  margin-bottom: var(--space-sm);
}

.nav-mobile a {
  display: block;
  padding: var(--space-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-800);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--color-gray-100);
  color: var(--color-primary);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 650px) {
  .header-container {
    padding: var(--space-xs) 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo i {
    font-size: 1.8rem;
  }
}


/* ---- ./layouts/footer.css ---- */
/**
 * Footer Layout
 * Site footer with links and information
 */

footer {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col h3 {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Newsletter */
.footer-newsletter {
  margin-top: var(--space-md);
}

.footer-newsletter form {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--text-sm);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter button {
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: var(--transition-fast);
}

.footer-newsletter button:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-lg);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 650px) {
  footer {
    padding: var(--space-xl) 0 var(--space-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
}


/* ---- ./components/buttons.css ---- */
/**
 * Button Components
 * Reusable button styles with variants
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 34px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-align: center;
}

.btn i {
  font-size: 1.1em;
}

/* Primary button - Yellow with shadow */
.btn-primary {
  background: linear-gradient(145deg, var(--color-accent), var(--color-accent-light));
  color: var(--color-primary);
  font-weight: var(--font-extrabold);
  box-shadow: 0 8px 0 var(--color-accent-dark), var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 #b09a2e, var(--shadow-hover);
  background: linear-gradient(145deg, #f2e75a, var(--color-accent));
}

.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-accent-dark), var(--shadow-sm);
}

/* Secondary button - White with border */
.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary-light);
  border: 2px solid var(--color-primary-light);
  box-shadow: 0 4px 0 var(--color-primary);
}

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

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Success button */
.btn-success {
  background: var(--color-success);
  color: var(--color-white);
}

.btn-success:hover {
  background: #8ab537;
  transform: translateY(-2px);
}

/* Size variants */
.btn-sm {
  padding: 10px 24px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 18px 42px;
  font-size: var(--text-lg);
}

/* Full width */
.btn-block {
  width: 100%;
  display: flex;
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Icon-only button */
.btn-icon {
  padding: 12px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

/* Button group */
.btn-group {
  display: inline-flex;
  gap: var(--space-xs);
}

.btn-group .btn {
  border-radius: var(--radius-md);
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-btn);
  border-bottom-left-radius: var(--radius-btn);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-btn);
  border-bottom-right-radius: var(--radius-btn);
}


/* ---- ./components/cards.css ---- */
/**
 * Card Components
 * Product cards, info cards, and other card layouts
 */

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* Card image */
.card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-gray-100);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

/* Card badges */
.card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: #ef4444;
  color: var(--color-white);
}

.badge-new {
  background: var(--color-success);
  color: var(--color-white);
}

.badge-out-of-stock {
  background: var(--color-gray-600);
  color: var(--color-white);
}

/* Card actions (wishlist, quick view) */
.card-actions {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.card:hover .card-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.card-action-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.card-action-btn.active {
  background: #ef4444;
  color: var(--color-white);
}

/* Card content */
.card-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-tight);
}

.card-title a {
  color: inherit;
  transition: var(--transition-fast);
}

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

.card-description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-relaxed);
  flex: 1;
}

/* Card rating */
.card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.stars {
  color: #fbbf24;
  font-size: var(--text-sm);
}

.review-count {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
}

/* Card price */
.card-price {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.price-sale {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
}

.price-regular {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  text-decoration: line-through;
}

/* Stock indicator */
.stock-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.stock-high {
  background: #d1fae5;
  color: #065f46;
}

.stock-low {
  background: #fed7aa;
  color: #92400e;
}

.stock-out {
  background: #fee2e2;
  color: #991b1b;
}

/* Card footer */
.card-footer {
  padding: var(--space-md);
  padding-top: 0;
}


/* ---- ./components/forms.css ---- */
/**
 * Form Components
 * Input fields, textareas, selects, and form layouts
 */

/* Form groups */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: var(--font-semibold);
  color: var(--color-gray-800);
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.form-label.required::after {
  content: ' *';
  color: #ef4444;
}

/* Input fields */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  background: var(--color-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(86, 69, 147, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-600);
}

/* Textarea */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Select */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e6775' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.form-checkbox input,
.form-radio input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Error state */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* Success state */
.form-input.success,
.form-textarea.success,
.form-select.success {
  border-color: var(--color-success);
}

/* Disabled state */
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  background: var(--color-gray-100);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Search input */
.search-input {
  position: relative;
}

.search-input input {
  padding-right: 50px;
}

.search-input button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-input button:hover {
  background: var(--color-primary-light);
  transform: translateY(-50%) scale(1.05);
}


/* ---- ./components/modals.css ---- */
/**
 * Modal Components
 * Overlay modals, dialogs, and popups
 */

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: var(--space-md);
}

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

/* Modal container */
.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* Modal header */
.modal-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

/* Modal body */
.modal-body {
  padding: var(--space-md);
}

/* Modal footer */
.modal-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* Quick view modal (product) */
.quick-view-modal .modal {
  max-width: 900px;
}

.quick-view-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.quick-view-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-gray-100);
}

.quick-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-details h2 {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.quick-view-price {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.quick-view-description {
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

/* Responsive */
@media (max-width: 900px) {
  .quick-view-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .modal {
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-overlay {
    padding: 0;
  }
}


/* ---- ./components/navigation.css ---- */
/**
 * Navigation Components
 * Breadcrumbs, tabs, and other navigation elements
 */

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  flex-wrap: wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.breadcrumb a {
  color: var(--color-gray-600);
  transition: var(--transition-fast);
}

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

.breadcrumb i {
  flex-shrink: 0;
  font-size: 0.7em;
}

.breadcrumb span {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.breadcrumb-separator {
  color: var(--color-gray-600);
}

.breadcrumb-current {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
}

/* Mobile breadcrumb optimizations */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.75rem;
    gap: 4px;
    padding: 8px 0;
    line-height: 1.4;
  }

  .breadcrumb i {
    font-size: 0.65em;
    margin: 0 2px;
  }

  .breadcrumb a,
  .breadcrumb span {
    max-width: 100%;
    display: inline-block;
  }

  /* Make product name smaller and wrap properly */
  .breadcrumb span[style*="font-weight: 700"],
  .breadcrumb span[style*="font-weight:700"] {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    display: block;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 0.7rem;
  }

  .breadcrumb span[style*="font-weight: 700"],
  .breadcrumb span[style*="font-weight:700"] {
    font-size: 0.65rem !important;
  }
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--color-gray-200);
  margin-bottom: var(--space-md);
  overflow-x: auto;
}

.tab {
  padding: var(--space-sm) var(--space-md);
  font-weight: var(--font-semibold);
  color: var(--color-gray-600);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab:hover {
  color: var(--color-primary);
}

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid var(--color-gray-200);
}

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

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

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--color-gray-600);
  padding: 0 var(--space-xs);
}

/* Filter sidebar */
.filter-sidebar {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-gray-200);
}

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

.filter-title {
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  cursor: pointer;
}

.filter-option input {
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-gray-800);
}

.filter-count {
  margin-left: auto;
  color: var(--color-gray-600);
  font-size: var(--text-xs);
}


/* ---- ./components/search.css ---- */
/**
 * Search Component Styles
 * Autocomplete dropdown and search results
 */

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

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

/* Search Results Header */
.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.search-results-header .view-all {
  color: var(--purple-deep);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.search-results-header .view-all:hover {
  color: var(--purple-soft);
}

.search-results-header .clear-history {
  background: none;
  border: none;
  color: var(--purple-deep);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.search-results-header .clear-history:hover {
  background: var(--gray-100);
}

/* Search Results List */
.search-results-list {
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--gray-100);
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 4px;
  border: 1px solid var(--gray-200);
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-category {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.search-result-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-name mark {
  background: var(--sun-yellow);
  color: var(--gray-800);
  padding: 2px 4px;
  border-radius: 3px;
}

.search-result-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple-deep);
}

/* No Results */
.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-600);
}

.search-no-results i {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.search-no-results p {
  margin: 8px 0;
}

.search-no-results strong {
  color: var(--gray-800);
}

.search-suggestion {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Popular Searches */
.search-popular-list {
  padding: 8px;
}

.search-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  background: none;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.search-popular-item:hover {
  background: var(--gray-100);
}

.search-popular-item i {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Mobile Search */
@media (max-width: 768px) {
  .search-results-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    border-radius: 0;
  }

  .search-result-item img {
    width: 50px;
    height: 50px;
  }

  .search-result-name {
    font-size: 0.85rem;
  }

  .search-result-price {
    font-size: 0.9rem;
  }
}

/* Loading State */
.search-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-600);
}

.search-loading i {
  font-size: 2rem;
  color: var(--purple-soft);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.search-results-dropdown::-webkit-scrollbar {
  width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}


/* ---- ./mobile-optimizations.css ---- */
/**
 * Mobile Optimizations
 * Touch targets, gestures, and mobile-specific improvements
 * Ensures WCAG 2.1 AA compliance for touch targets (44x44px minimum)
 */

/* ========================================
   TOUCH TARGET IMPROVEMENTS
   ======================================== */

/* Ensure all interactive elements meet 44x44px minimum */
@media (max-width: 768px) {
  /* Buttons - already good but ensure minimum */
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
  }

  .btn-sm {
    min-height: 44px;
    padding: 12px 20px;
  }

  /* Icon buttons */
  .btn-icon,
  .card-action-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  /* Links in navigation */
  .nav-mobile a {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
  }

  /* Cart icon - increase touch area */
  .cart-icon {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  /* Mobile menu toggle */
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  /* Filter checkboxes and radio buttons */
  .filter-option {
    min-height: 44px;
    padding: 10px 0;
  }

  .filter-option input[type="checkbox"],
  .filter-option input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
  }

  /* Pagination buttons */
  .pagination-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  /* Tab buttons */
  .tab {
    min-height: 44px;
    padding: 12px 20px;
  }

  /* Form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Search input */
  .search-input {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Product card links - increase tap area */
  .card-title a {
    padding: 8px 0;
    display: inline-block;
  }
}

/* ========================================
   MOBILE NAVIGATION ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Sticky header optimization */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-container {
    padding: 12px 16px;
  }

  /* Mobile menu improvements */
  .nav-mobile {
    width: 85%;
    max-width: 320px;
  }

  .nav-mobile ul {
    margin-top: 60px;
  }

  .nav-mobile li {
    margin-bottom: 4px;
  }

  /* Add visual feedback for menu items */
  .nav-mobile a {
    position: relative;
    transition: all 0.2s ease;
  }

  .nav-mobile a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--color-accent);
    border-radius: 2px;
    transition: height 0.2s ease;
  }

  .nav-mobile a:active,
  .nav-mobile a.active {
    background: var(--color-gray-100);
    padding-left: 20px;
  }

  .nav-mobile a:active::before,
  .nav-mobile a.active::before {
    height: 24px;
  }

  /* Mobile overlay improvements */
  .mobile-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

/* ========================================
   RESPONSIVE GRID IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Product grid - 2 columns on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Single column for very small screens */
  @media (max-width: 480px) {
    .product-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }

  /* Card spacing optimization */
  .card-content {
    padding: 12px;
  }

  .card-footer {
    padding: 12px;
    padding-top: 0;
  }

  /* Reduce card title size on mobile */
  .card-title {
    font-size: var(--text-base);
  }

  /* Optimize price display */
  .card-price {
    flex-wrap: wrap;
  }

  .price-sale {
    font-size: var(--text-lg);
  }

  .price-regular {
    font-size: var(--text-sm);
  }
}

/* ========================================
   MOBILE FORM OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
  /* Stack form fields vertically */
  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    width: 100%;
  }

  /* Larger labels for better readability */
  label {
    font-size: var(--text-base);
    margin-bottom: 8px;
  }

  /* Error messages more prominent */
  .error-message {
    font-size: var(--text-sm);
    padding: 8px 12px;
  }

  /* Submit buttons full width */
  .form-submit {
    width: 100%;
  }
}

/* ========================================
   MOBILE SEARCH IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Search bar full width */
  .search-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  /* Search results dropdown */
  .search-results {
    max-height: 60vh;
    overflow-y: auto;
  }

  /* Search result items */
  .search-result-item {
    min-height: 44px;
    padding: 12px 16px;
  }
}

/* ========================================
   MOBILE CART IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Cart items stack better */
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cart-item-image {
    width: 100%;
    max-width: 120px;
  }

  .cart-item-details {
    width: 100%;
  }

  /* Quantity controls larger */
  .quantity-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
  }

  .quantity-input {
    min-height: 44px;
    min-width: 60px;
    font-size: var(--text-lg);
  }

  /* Remove button more prominent */
  .cart-item-remove {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ========================================
   MOBILE FILTER IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Filters as bottom sheet on mobile */
  .filter-sidebar {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .filter-sidebar.active {
    bottom: 0;
  }

  /* Filter toggle button */
  .filter-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 56px;
    min-height: 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 1.5rem;
  }

  /* Filter header */
  .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
  }

  .filter-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========================================
   MOBILE TYPOGRAPHY IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Ensure readable text sizes */
  body {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }

  /* Improve line height for readability */
  p {
    line-height: 1.6;
  }
}

/* ========================================
   MOBILE SPACING IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Reduce section padding */
  .section {
    padding: 40px 0;
  }

  /* Container padding */
  .container {
    padding: 0 16px;
  }

  /* Reduce gaps in layouts */
  .grid {
    gap: 16px;
  }

  /* Stack spacing */
  .stack > * + * {
    margin-top: 16px;
  }
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
  /* Reduce animation complexity on mobile */
  .card:hover {
    transform: translateY(-2px);
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .card:hover {
      transform: none;
    }

    .btn:hover {
      transform: none;
    }

    .card-actions {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ========================================
   MOBILE ACCESSIBILITY IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Focus indicators more visible */
  *:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
  }

  /* Skip to content link */
  .skip-to-content {
    position: fixed;
    top: -100px;
    left: 16px;
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    transition: top 0.3s;
  }

  .skip-to-content:focus {
    top: 16px;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
  /* Reduce header height in landscape */
  .header-container {
    padding: 8px 16px;
  }

  .logo {
    font-size: 1.25rem;
  }

  /* Adjust mobile menu */
  .nav-mobile {
    width: 50%;
    max-width: 400px;
  }
}

/* ========================================
   SAFE AREA INSETS (iPhone notch support)
   ======================================== */

@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    header {
      padding-top: max(0px, env(safe-area-inset-top));
    }

    .nav-mobile {
      padding-top: max(20px, env(safe-area-inset-top));
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .filter-toggle {
      bottom: max(20px, env(safe-area-inset-bottom));
      right: max(20px, env(safe-area-inset-right));
    }
  }
}

/* ========================================
   PULL-TO-REFRESH PREVENTION
   ======================================== */

@media (max-width: 768px) {
  body {
    overscroll-behavior-y: contain;
  }
}

/* ========================================
   MOBILE LOADING STATES
   ======================================== */

@media (max-width: 768px) {
  /* Skeleton screens optimized for mobile */
  .skeleton {
    animation-duration: 1.2s;
  }

  /* Loading spinner */
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
}


/* ---- css/main.css local rules ---- */
/**
 * Main CSS File
 * Imports all modular CSS files
 * 
 * This replaces inline styles and provides a clean,
 * maintainable CSS architecture
 */

/* Core - Foundation */
/* Layouts - Structure */
/* Components - Reusable UI */
/* Mobile Optimizations */
/* Base body styles */
body {
  background-color: var(--color-off-white);
  overflow-x: hidden;
}

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

/* Spacing utilities */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Responsive utilities */
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 901px) {
  .hide-desktop { display: none !important; }
}

/* ========== PRODUCT LOADING SKELETONS ========== */
.product-skeleton {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(86, 69, 147, 0.06);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 16px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.shorter {
    width: 40%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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


/* ---- css/hero-enhanced.css ---- */
/* ========================================
   CLEAN & MODERN HERO SECTION
   Professional, spacious, and beautiful
======================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 100px 0 120px;
  overflow: hidden;
}

/* Very subtle background decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 231, 84, 0.06), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* Hide all decorative shapes */
.hero-shape {
  display: none;
}

.hero-icon-float {
  display: none;
}

/* Container */
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  max-width: 580px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-content .highlight {
  display: block;
  background: linear-gradient(120deg, #FFE854 0%, #FFF176 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-btns .btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-btns .btn-primary {
  background: #FFE854;
  color: #564593;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-btns .btn-primary:hover {
  background: #FFF176;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-btns .btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.hero-btns .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Trust Badge */
.hero-trust-badge {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item i {
  font-size: 1.1rem;
  color: #FFE854;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Remove old effects */
.dust-wave,
.dust-overlay,
.magic-dust,
.sparkle {
  display: none;
}

/* Badge on image */
.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  min-width: 100px;
}

.hero-badge-icon {
  font-size: 1.6rem;
  color: #9DC541;
  display: block;
  margin-bottom: 4px;
}

.hero-badge-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #564593;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #5e6775;
  line-height: 1.2;
}

/* Stats Section - COMPLETELY SEPARATE from hero image */
.hero-stats {
  margin-top: 80px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 0 16px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFE854;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  white-space: nowrap;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media screen and (max-width: 1100px) {
  .hero-container {
    gap: 60px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 900px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-trust-badge {
    justify-content: center;
  }
  
  .hero-visual-inner {
    margin: 0 auto;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
  }
  
  .stat-item {
    border-right: none;
    padding: 16px;
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media screen and (max-width: 650px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero-container {
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-trust-badge {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .hero-badge {
    top: 15px;
    right: 15px;
    padding: 12px 16px;
  }
  
  .hero-badge-icon {
    font-size: 1.3rem;
  }
  
  .hero-badge-number {
    font-size: 1.2rem;
  }
  
  .hero-badge-text {
    font-size: 0.7rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    margin-top: 50px;
  }
  
  .stat-item {
    border-right: none !important;
    padding: 12px;
  }
  
  .stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
  }
  
  .stat-item:nth-child(3) {
    border-top: none;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

/* Remove animations for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .magic-dust,
  .sparkle {
    display: none !important;
  }
}
