/**
 * GAMEWORLD — Design System
 * E-commerce Jeux Enfants
 * Techniques Bolt + Takali Digital
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand — Couleurs enfantines */
  --brand: #FF6B6B;
  --brand-light: #FF8E53;
  --brand-dark: #EE5A5A;
  --success: #4ECDC4;
  --warning: #FFD93D;
  --danger: #EF4444;
  --info: #6BCB77;
  
  /* Surfaces */
  --bg-primary: #0A0E1A;
  --bg-secondary: #0F1628;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-elevated: rgba(255, 255, 255, 0.05);
  
  /* Text */
  --text-primary: #F0F4FF;
  --text-secondary: #8892B0;
  --text-muted: #4A5568;
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 107, 107, 0.3);
  
  /* Spacing — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-hero: clamp(2.5rem, 5vw, 4rem);
  
  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(255, 107, 107, 0.15);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-light);
}

/* Selection */
::selection {
  background: rgba(255, 107, 107, 0.3);
  color: white;
}

/* Text wrap */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════════════════ */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  font-size: 4rem;
  animation: pulse 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--success));
  border-radius: 999px;
  animation: loadProgress 2s ease-in-out forwards;
}

.loader-text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

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

@keyframes loadProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.orb-1 {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.4), transparent 70%);
  top: -200px;
  right: -200px;
  animation: drift 20s ease-in-out infinite;
}

.orb-2 {
  background: radial-gradient(circle, rgba(78, 205, 196, 0.3), transparent 70%);
  bottom: -300px;
  left: -200px;
  animation: drift 25s ease-in-out infinite reverse;
}

.orb-3 {
  background: radial-gradient(circle, rgba(255, 217, 61, 0.3), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: drift 30s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -50px) scale(1.2); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════════════════ */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 100;
  transition: all var(--dur-base) var(--ease-out);
}

.landing-nav.scrolled {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--success));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cart {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-cart:hover {
  background: var(--bg-elevated);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  font-weight: 600;
  font-size: var(--fs-sm);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-lg {
  padding: 1rem 2rem;
  font-size: var(--fs-md);
}

.btn-ghost {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-sm);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.btn-ghost-lg {
  padding: 1rem 2rem;
  font-size: var(--fs-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--success), #44A08D);
  color: white;
  font-weight: 600;
  font-size: var(--fs-sm);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  z-index: 1;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pill-tag {
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--fs-hero);
  font-family: 'Fraunces', serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.accent-word {
  background: linear-gradient(135deg, var(--brand), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-card-3d {
  transform-style: preserve-3d;
  transition: transform var(--dur-base) var(--ease-out);
}

.game-card-premium {
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.game-card-premium .game-image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
}

.game-card-premium .game-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--warning), #D97706);
  color: white;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-card-premium .game-rating {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-card-premium .game-info {
  padding: 1.25rem;
}

.game-card-premium h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.game-card-premium p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.game-card-premium .game-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--brand);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORIES
   ═══════════════════════════════════════════════════════════════════════════ */

.categories-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}

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

.category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: var(--fs-3xl);
}

.category-card h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.category-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════════════════════════════════ */

.products-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}

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

.product-card .product-image {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}

.product-card .product-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card .product-badge.new {
  background: linear-gradient(135deg, var(--warning), #D97706);
}

.product-fav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 999px;
  color: white;
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  backdrop-filter: blur(8px);
}

.product-fav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.product-fav.active {
  color: var(--brand);
}

.product-content {
  padding: 1.25rem;
}

.product-rating {
  font-size: var(--fs-xs);
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.product-content h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.product-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--brand);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT / FEATURES
   ═══════════════════════════════════════════════════════════════════════════ */

.about-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  z-index: 1;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--dur-base) var(--ease-out);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.1));
  border-radius: 16px;
  font-size: var(--fs-2xl);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonials-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--dur-base) var(--ease-out);
}

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

.testimonial-stars {
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: var(--fs-md);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: white;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info span:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.author-info span:last-child {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 24px;
}

.contact-content h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-content > p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-md);
  color: var(--text-secondary);
}

.contact-item span {
  font-size: var(--fs-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: var(--fs-md);
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: inherit;
  caret-color: var(--brand);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  z-index: 1;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
}

.footer-brand span {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base) var(--ease-out);
}

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

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
  z-index: 1;
  transform: translateY(20px) scale(0.95);
  transition: all var(--dur-base) var(--ease-out);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Cart Modal Specific */
.cart-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item-qty {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 600;
  color: var(--brand);
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.cart-item-remove:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* Login Modal */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-role {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-role label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.role-btn span {
  font-size: var(--fs-2xl);
}

.role-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.role-btn.active {
  border-color: var(--brand);
  background: rgba(255, 107, 107, 0.1);
  color: var(--brand);
}

.login-hint {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.login-hint strong {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.notification {
  animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out),
              filter 0.9s var(--ease-out);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 5rem 1rem 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-container {
    padding: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
