/* ========================================
   Digital E-Commerce Store - CSS Design System
   Author: Santhosh Sharuk
   ======================================== */

/* ========== IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary Colors */
  --primary: #FF8C42;
  --primary-light: #FFA366;
  --primary-dark: #E67330;
  
  /* Background Colors */
  --bg-cream: #FFF8F0;
  --bg-white: #FFFFFF;
  --bg-light: #F5F0E8;
  --bg-card: #FFFFFF;
  
  /* Text Colors */
  --text-dark: #1A1A2E;
  --text-medium: #4A4A5A;
  --text-light: #7A7A8A;
  --text-muted: #9A9AAA;
  
  /* Accent Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Container */
  --container-max: 1280px;
  --header-height: 70px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  min-height: 100vh;
}

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

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

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

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

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

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 480px;
  margin: 0 var(--space-xl);
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-left: 44px;
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-full);
  background: var(--bg-light);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 18px;
  height: 18px;
}

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

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text-medium);
  transition: all var(--transition-fast);
  position: relative;
}

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

.header-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
  color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 140, 66, 0.1);
  border: 1px solid rgba(255, 140, 66, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
}

.hero-badge span {
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-dark), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-medium);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
}

.btn-secondary {
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-white);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-light);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Mockups */
.hero-visual {
  position: relative;
  height: 500px;
}

.hero-mockup {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.hero-mockup:hover {
  transform: translateY(-10px);
}

.hero-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-1 {
  width: 280px;
  height: 200px;
  top: 50px;
  left: 20px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.mockup-2 {
  width: 240px;
  height: 180px;
  top: 180px;
  right: 40px;
  z-index: 2;
  animation: float 6s ease-in-out infinite 1s;
}

.mockup-3 {
  width: 200px;
  height: 150px;
  bottom: 50px;
  left: 80px;
  z-index: 1;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ========== CATEGORIES SECTION ========== */
.categories {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.category-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-md);
  transition: transform var(--transition-base);
}

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

.category-name {
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.category-count {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* ========== PRODUCTS SECTION ========== */
.products {
  background: var(--bg-cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--primary);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.product-wishlist {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.product-wishlist:hover {
  background: var(--primary);
  color: white;
}

.product-wishlist svg {
  width: 18px;
  height: 18px;
}

.product-info {
  padding: var(--space-lg);
}

.product-category {
  font-size: var(--font-size-xs);
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
  font-family: 'JetBrains Mono', monospace;
}

.product-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.product-description {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

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

.product-original-price {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-discount {
  font-size: var(--font-size-xs);
  color: var(--success);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.product-actions {
  display: flex;
  gap: var(--space-sm);
}

.product-actions .btn-primary {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
}

.product-actions .btn-outline {
  padding: var(--space-sm);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-medium);
  transition: all var(--transition-fast);
}

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

/* ========== CTA SECTION ========== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-white {
  padding: var(--space-md) var(--space-xl);
  background: white;
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.cta .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.footer-column h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: var(--font-size-sm);
}

.payment-methods {
  display: flex;
  gap: var(--space-sm);
}

.payment-methods img {
  height: 24px;
  opacity: 0.7;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--text-light);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* Product Gallery */
.product-gallery {
  display: flex;
  gap: var(--space-md);
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

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

.gallery-main {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
}

.gallery-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Product Info */
.product-detail-info {
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
}

.product-detail-category {
  font-size: var(--font-size-sm);
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.product-detail-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.product-detail-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.detail-price {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-dark);
}

.detail-original-price {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-discount {
  font-size: var(--font-size-sm);
  color: var(--success);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tax-info {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

.product-detail-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-secondary {
  flex: 1;
  padding: var(--space-md);
  font-size: var(--font-size-base);
}

.delivery-info {
  background: var(--bg-cream);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.delivery-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.delivery-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.delivery-info-item span {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

/* Product Sections */
.product-section {
  margin-bottom: var(--space-xl);
}

.product-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-section ul {
  display: grid;
  gap: var(--space-sm);
}

.product-section ul li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

.product-section ul li svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tech-badge {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-cream);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-medium);
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

.trust-badge svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* ========== CART PAGE ========== */
.cart-page {
  padding-top: calc(var(--header-height) + var(--space-xl));
  min-height: 100vh;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.cart-items {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--bg-light);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.cart-item-category {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.cart-item-price {
  font-weight: 700;
  color: var(--text-dark);
}

.cart-item-remove {
  color: var(--error);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

/* Cart Summary */
.cart-summary {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.cart-summary h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--bg-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

.summary-row.total {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-dark);
  padding-top: var(--space-md);
  border-top: 1px solid var(--bg-light);
  margin-top: var(--space-md);
}

.cart-summary .btn-primary {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-size-base);
  margin-top: var(--space-lg);
}

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

.cart-empty svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.cart-empty h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

/* ========== WHATSAPP BUTTON ========== */
.whatsapp-btn {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: 999;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }
  
  .search-bar {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-actions .btn-primary {
    display: none;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .product-gallery {
    flex-direction: column-reverse;
  }
  
  .gallery-thumbs {
    flex-direction: row;
    justify-content: center;
  }
  
  .gallery-main img {
    height: 300px;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    flex-direction: column;
  }
  
  .cart-item-image {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    right: var(--space-md);
    bottom: var(--space-md);
  }
  
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ========== LOADING STATES ========== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-cream) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  padding: var(--space-md) var(--space-xl);
  background: var(--text-dark);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
