/* ===== VARIABLES & TEMAS ===== */
:root {
  /* 🌌 TEMA 1: NEON CYBER (Default) */
  --bg-main: #0a0a1a;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(108,92,231,0.08);
  --bg-nav: rgba(10,10,26,0.95);
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.5);
  --text-heading: #ffffff;
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --danger: #ff4757;
  --success: #2ed573;
  --warning: #ffa502;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(108,92,231,0.3);
  --shadow: rgba(0,0,0,0.3);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f0f23 100%);
  --glass-blur: blur(20px);
}

[data-theme="clean-white"] {
  /* ☁️ TEMA 2: CLEAN WHITE */
  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-nav: rgba(255,255,255,0.95);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f43f5e;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --border: #e2e8f0;
  --border-hover: #2563eb;
  --shadow: rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  --glass-blur: blur(10px);
}

[data-theme="sunset-orange"] {
  /* 🌅 TEMA 3: SUNSET ORANGE */
  --bg-main: #1a0f0a;
  --bg-card: rgba(255,140,66,0.06);
  --bg-card-hover: rgba(255,107,53,0.12);
  --bg-nav: rgba(26,15,10,0.95);
  --text-main: #fff3e6;
  --text-muted: rgba(255,243,230,0.6);
  --text-heading: #fff3e6;
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #f7931e;
  --accent: #ff9e00;
  --danger: #ff3366;
  --success: #00d2a0;
  --warning: #ffcc00;
  --border: rgba(255,107,53,0.15);
  --border-hover: rgba(255,107,53,0.5);
  --shadow: rgba(0,0,0,0.4);
  --shadow-hover: 0 15px 35px rgba(0,0,0,0.5);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
  --gradient-hero: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #3d2218 100%);
  --glass-blur: blur(15px);
}

/* ===== BASE & RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===== LOADER ===== */
#page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-main); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s; }
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner { width: 50px; height: 50px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 15px; }
.loader-content { text-align: center; }
.loader-content p { color: var(--text-muted); font-size: 14px; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 15px 0; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: var(--bg-nav); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--text-heading); }
.nav-menu { display: flex; gap: 8px; }
.nav-link { color: var(--text-muted); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--text-heading); background: var(--bg-card); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions button, .nav-actions a { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 16px; }
.nav-actions button:hover, .nav-actions a:hover { border-color: var(--primary); color: var(--primary); }
.nav-cart-btn { position: relative; }
.cart-count { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; background: var(--danger); color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none !important; border: none !important; width: auto !important; height: auto !important; padding: 8px !important; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-main); transition: var(--transition); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,10,26,0.95); backdrop-filter: blur(20px); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding-top: 100px; }
.search-overlay.active { display: flex; }
.search-container { width: 100%; max-width: 600px; padding: 0 20px; }
.search-container input { width: 100%; padding: 18px 24px; font-size: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-main); font-family: inherit; outline: none; }
.search-container input:focus { border-color: var(--primary); }
.search-close { position: absolute; top: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.search-close:hover { border-color: var(--danger); color: var(--danger); }
.search-results { margin-top: 20px; }
.search-result-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.search-result-item:hover { background: var(--bg-card); }
.search-result-item img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; }
.search-result-item .info h4 { color: var(--text-heading); font-size: 15px; }
.search-result-item .info span { color: var(--primary); font-weight: 600; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; }
.cart-overlay.active { display: block; }
.cart-sidebar { position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border); z-index: 1501; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.cart-sidebar.active { right: 0; }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 18px; color: var(--text-heading); }
.cart-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty i { font-size: 48px; margin-bottom: 15px; display: block; }
.cart-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-main); border-radius: var(--radius-sm); margin-bottom: 10px; animation: slideIn 0.3s ease; }
.cart-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; color: var(--text-heading); }
.cart-item-info .price { color: var(--primary); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.cart-item-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; color: var(--text-heading); }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14px; padding: 4px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 15px; color: var(--text-heading); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,92,231,0.3); }
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; width: 100%; justify-content: center; margin-top: 10px; }
.btn-whatsapp:hover { background: #128c7e; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; background: var(--gradient-hero); }
.hero-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; opacity: 0.3; animation: float 6s ease-in-out infinite; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.3); border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: var(--text-heading); }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: var(--text-heading); }
.stat-label { font-size: 13px; color: var(--text-muted); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-phone { width: 280px; height: 560px; background: linear-gradient(145deg, #2a2a4a, #1a1a2e); border-radius: 40px; border: 3px solid var(--border); position: relative; overflow: hidden; animation: phoneFloat 4s ease-in-out infinite; }
.phone-screen { width: 260px; height: 520px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 32px; margin: 8px; display: flex; align-items: center; justify-content: center; }
.phone-content { text-align: center; }
.phone-content span { font-size: 60px; }
.phone-content p { color: #fff; font-weight: 700; margin-top: 10px; }
.phone-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%); animation: glowPulse 3s ease-in-out infinite; }
.floating-card { position: absolute; padding: 12px 20px; background: var(--bg-card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text-heading); animation: floatCard 5s ease-in-out infinite; }
.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 30%; left: -30px; animation-delay: 1.5s; }
.card-3 { bottom: 10%; right: -10px; animation-delay: 3s; }
.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; }
.hero-wave svg { display: block; width: 100%; height: 120px; }

/* ===== CATEGORIES ===== */
.categories-section { padding: 80px 0; }
.section-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 10px; color: var(--text-heading); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }
.section-badge { display: inline-block; padding: 6px 16px; background: rgba(108,92,231,0.15); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 15px; }
.section-header { text-align: center; margin-bottom: 40px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); cursor: pointer; }
.category-card:hover { transform: translateY(-5px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.category-icon { font-size: 36px; }
.category-name { font-size: 14px; font-weight: 600; color: var(--text-heading); }

/* ===== PRODUCTS ===== */
.products-section { padding: 80px 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; transition: var(--transition); }
.product-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.product-badges { position: absolute; top: 12px; left: 12px; z-index: 10; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; backdrop-filter: blur(10px); color: #fff; }
.badge-featured { background: rgba(108,92,231,0.8); }
.badge-hot { background: rgba(255,71,87,0.8); }
.badge-bestseller { background: rgba(255,165,2,0.8); }
.badge-offer { background: rgba(46,213,115,0.8); }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg-main); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.product-card:hover .product-overlay { opacity: 1; }
.btn-quick-view { padding: 10px 24px; background: #fff; color: #000; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition); }
.btn-quick-view:hover { background: var(--primary); color: #fff; }
.product-info { padding: 20px; }
.product-category { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.product-name { font-size: 16px; font-weight: 700; margin: 8px 0; color: var(--text-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 14px; }
.price-current { font-size: 22px; font-weight: 800; color: var(--text-heading); }
.product-actions { margin-top: 12px; }
.btn-add-cart { width: 100%; padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.02); }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.filter-btn { padding: 8px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 30px; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== COUNTDOWN ===== */
.countdown { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.countdown-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; text-align: center; min-width: 70px; }
.countdown-item span { display: block; font-size: 24px; font-weight: 800; color: var(--danger); }
.countdown-item small { font-size: 11px; color: var(--text-muted); }

/* ===== PRODUCT DETAIL ===== */
.product-detail-section { padding: 120px 0 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery {}
.gallery-main { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--bg-main); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.gallery-thumb { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: var(--transition); opacity: 0.6; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.product-detail-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; color: var(--text-heading); }
.detail-category { color: var(--primary); font-size: 14px; font-weight: 600; }
.detail-price { display: flex; align-items: center; gap: 15px; margin: 20px 0; flex-wrap: wrap; }
.detail-price .price-old { font-size: 20px; color: var(--text-muted); }
.detail-price .price-current { font-size: 36px; color: var(--text-heading); }
.discount-tag { background: rgba(255,71,87,0.15); color: var(--danger); padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; }
.detail-stock { margin-bottom: 15px; }
.in-stock { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }
.detail-stats { display: flex; gap: 20px; margin-bottom: 20px; color: var(--text-muted); font-size: 14px; }
.detail-description { margin-bottom: 25px; }
.detail-description h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-heading); }
.detail-description p { color: var(--text-muted); line-height: 1.8; }
.detail-actions { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.quantity-selector button { width: 40px; height: 44px; border: none; background: var(--bg-card); color: var(--text-main); font-size: 18px; cursor: pointer; transition: var(--transition); }
.quantity-selector button:hover { background: var(--primary); color: #fff; }
.quantity-selector input { width: 50px; height: 44px; border: none; background: transparent; color: var(--text-main); text-align: center; font-size: 16px; font-weight: 700; font-family: inherit; }
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-add-detail { flex: 1; min-width: 200px; }
.related-section { margin-top: 60px; }
.related-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--text-heading); }

/* ===== CART PAGE ===== */
.cart-page { padding: 120px 0 80px; }
.cart-page h1 { font-size: 28px; margin-bottom: 30px; color: var(--text-heading); }
.cart-page-content { display: grid; grid-template-columns: 1fr 350px; gap: 30px; }
.cart-page-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.cart-page-summary h3 { margin-bottom: 20px; color: var(--text-heading); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-muted); }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 15px; margin-top: 10px; color: var(--text-heading); font-weight: 700; font-size: 18px; }
.cart-page-item { display: flex; gap: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.cart-page-item img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-page-item-info { flex: 1; }
.cart-page-item-info h4 { margin-bottom: 6px; color: var(--text-heading); }
.cart-page-item-info .price { color: var(--primary); font-weight: 700; }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 120px 0 80px; }
.checkout-section h1 { font-size: 28px; margin-bottom: 30px; color: var(--text-heading); }
.checkout-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; }
.checkout-info { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.checkout-info h3 { margin-bottom: 20px; color: var(--text-heading); }
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: fit-content; }
.checkout-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.alert { padding: 20px; border-radius: var(--radius); margin-bottom: 20px; text-align: center; }
.alert-success { background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.3); }
.alert-success h3 { color: var(--success); margin-bottom: 10px; }
.alert-success p { color: var(--text-muted); }
.alert-error { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.3); color: var(--danger); }

/* ===== PRODUCT MODAL ===== */
.product-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; }
.product-modal.active { display: block; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); animation: modalIn 0.3s ease; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-main); color: var(--text-main); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { border-color: var(--danger); color: var(--danger); }
.modal-body { padding: 30px; }
.modal-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.modal-gallery { border-radius: var(--radius); overflow: hidden; background: var(--bg-main); }
.modal-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.modal-thumbs img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: var(--transition); }
.modal-thumbs img:hover, .modal-thumbs img.active { border-color: var(--primary); opacity: 1; }
.modal-info h2 { font-size: 24px; margin-bottom: 10px; color: var(--text-heading); }
.modal-info .category { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.modal-info .price-section { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.modal-info .price-section .current { font-size: 28px; font-weight: 800; color: var(--text-heading); }
.modal-info .price-section .old { color: var(--text-muted); text-decoration: line-through; font-size: 18px; }
.modal-info .description { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; font-size: 14px; }
.modal-info .stock-info { margin-bottom: 20px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; z-index: 999; text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); animation: pulse 2s ease-in-out infinite; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== FOOTER ===== */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 20px; margin-bottom: 15px; color: var(--text-heading); }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; color: var(--text-heading); }
.footer-col p { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-col a { display: block; color: var(--text-muted); padding: 4px 0; font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--bg-main); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(2deg); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 40px rgba(37,211,102,0.6); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-page-content { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .modal-product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}