:root {
    --primary: #1a1a1a;
    --primary-hover: #333;
    --secondary: #6c757d;
    --accent: #c9a96e;
    --light: #f8f9fa;
    --border: #e5e5e5;
    --text: #1a1a1a;
    --text-muted: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.logo-text { font-weight: 800; font-size: 1.5rem; letter-spacing: 3px; color: var(--primary); }
.footer-tagline { margin-top: .5rem; font-size: .85rem; letter-spacing: .5px; color: rgba(255,255,255,0.7); font-style: italic; }
.footer-copyright { font-size: .8rem; color: rgba(255,255,255,0.55); letter-spacing: .5px; }
.newsletter-msg { margin-top: .6rem; margin-bottom: 0; font-size: .85rem; color: var(--success); }

/* Announcement Bar */
.announcement-bar { background: var(--primary); color: #fff; font-size: 0.85rem; overflow: hidden; }
.announcement-track { display: flex; width: 100%; animation: announcementMarquee 10s linear infinite; }
.announcement-track:hover { animation-play-state: paused; }
.announcement-item { flex: 1 1 0; padding: 8px 0; white-space: nowrap; text-align: center; }
@keyframes announcementMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .announcement-track { animation: none; }
}

/* Header */
.main-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header-icon { color: var(--text); border: none; padding: 8px; font-size: 1.1rem; }
.header-icon:hover { color: var(--primary-hover); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.badge { position: absolute; top: -2px; right: -4px; font-size: 0.65rem; padding: 2px 5px; border-radius: 50%; background: var(--primary); color: #fff; }

/* Desktop Nav */
.desktop-nav { display: flex; gap: 4px; }
.desktop-nav .nav-link { padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius); background: transparent; transition: var(--transition); white-space: nowrap; }
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Search Overlay */
.search-overlay { background: #fff; border-bottom: 1px solid var(--border); padding: 16px 0; box-shadow: var(--shadow); }
.search-results-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); max-height: 400px; overflow-y: auto; z-index: 1000; box-shadow: var(--shadow-lg); }
.search-results-dropdown a { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--light); }
.search-results-dropdown a:hover { background: var(--light); }
.search-results-dropdown img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 12px; }

/* Mobile Menu */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1050; }
.mobile-menu { position: fixed; top: 0; left: 0; width: 300px; height: 100%; background: #fff; z-index: 1060; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.mobile-nav { padding: 8px 0; }
.mobile-nav-link { display: block; padding: 12px 20px; font-weight: 500; border-bottom: 1px solid var(--light); }

/* Hero Section */
.hero-section { margin-bottom: 0; }
.hero-slide { height: 380px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-subtitle { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; opacity: 0.9; }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-default { background: linear-gradient(135deg, #1a1a1a 0%, #444 100%) !important; }

/* Benefits */
.benefits-bar { padding: 32px 0; border-bottom: 1px solid var(--border); }
.benefit-item i { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.benefit-item h6 { font-weight: 600; margin-bottom: 4px; }
.benefit-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Sections */
.section { padding: 48px 0; }
.section.bg-light { background-color: var(--light) !important; }
.section-header { margin-bottom: 32px; }
.section-title { font-weight: 700; font-size: 1.8rem; margin-bottom: 4px; }
.section-subtitle { color: var(--text-muted); }

/* Product Cards */
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1; background: #f5f5f5; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image { transform: scale(1.05); }
.product-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.badge { padding: 4px 8px; font-size: 0.7rem; font-weight: 600; border-radius: 4px; }
.badge-new { background: var(--success); color: #fff; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-bestseller { background: var(--primary); color: #fff; }
.product-actions { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateX(10px); transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.btn-product-action { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 0.9rem; transition: var(--transition); cursor: pointer; }
.btn-product-action:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-info { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 600; font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.product-price { margin-top: auto; }
.current-price { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.compare-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; margin-left: 8px; }

/* Category Cards */
.category-card { display: block; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 1; background: var(--light); }
.category-card .category-image { width: 100%; height: 100%; }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--secondary); }
.category-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.category-info h5 { margin: 0; font-weight: 600; }
.category-info span { font-size: 0.8rem; opacity: 0.9; }
.category-card-sm { display: block; padding: 20px; background: var(--light); border-radius: var(--radius); text-align: center; transition: var(--transition); }
.category-card-sm:hover { background: var(--primary); color: #fff; }

/* Promo Banner */
.promo-banner { display: block; border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 300px; background-size: cover; background-position: center; }
.promo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.promo-content { position: relative; z-index: 2; color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.promo-subtitle { text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 8px; }
.promo-title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }

/* Newsletter */
.newsletter-section { background: var(--primary); color: #fff; }
.newsletter-box { max-width: 600px; margin: 0 auto; }
.newsletter-title { font-weight: 700; margin-bottom: 8px; }
.newsletter-text { opacity: 0.8; margin-bottom: 24px; }

/* Page Header */
.page-header { background: var(--light); padding: 32px 0 16px; border-bottom: 1px solid var(--border); }
.page-title { font-weight: 700; margin-bottom: 0; }

/* Product Detail */
.product-gallery { position: sticky; top: 80px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 1; background: #f5f5f5; }
.gallery-main-image { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.badge-sale-lg { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; padding: 6px 12px; font-size: 0.9rem; font-weight: 700; border-radius: var(--radius); z-index: 2; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-name { font-weight: 700; font-size: 1.8rem; margin-bottom: 4px; }
.product-detail-sku { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.product-detail-price { margin-bottom: 16px; }
.product-detail-price .current-price { font-size: 1.8rem; }
.product-detail-desc { color: var(--text-muted); margin-bottom: 20px; }
.form-label { font-weight: 600; font-size: 0.9rem; }
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: var(--transition); }
.color-swatch.active, .color-swatch:hover { border-color: var(--primary); transform: scale(1.1); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { padding: 8px 16px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 500; transition: var(--transition); }
.size-btn.active, .size-btn:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.size-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: none; background: var(--light); cursor: pointer; font-size: 1.1rem; font-weight: 600; }
.qty-btn:hover { background: var(--border); }
.qty-input { width: 50px; height: 40px; border: none; text-align: center; font-size: 1rem; font-weight: 600; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Cart */
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex-grow: 1; }
.cart-item-name { font-weight: 600; display: block; margin-bottom: 2px; }
.cart-item-variant { color: var(--text-muted); font-size: 0.85rem; }
.cart-item-price { font-weight: 600; margin-top: 4px; }
.cart-item-total { font-weight: 700; min-width: 80px; text-align: right; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.cart-item-remove:hover { color: var(--danger); }
.cart-summary { background: var(--light); padding: 24px; border-radius: var(--radius-lg); position: sticky; top: 80px; }
.cart-summary h5 { font-weight: 700; margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.summary-line.total { font-weight: 700; font-size: 1.2rem; }
.cart-coupon h6 { margin-bottom: 8px; }

/* Checkout */
.checkout-steps { display: flex; gap: 4px; }
.checkout-step { flex: 1; padding: 12px 16px; background: var(--light); border-radius: var(--radius); text-align: center; font-weight: 500; font-size: 0.85rem; color: var(--text-muted); }
.checkout-step.active { background: var(--primary); color: #fff; }
.checkout-step span { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: var(--border); color: var(--text); margin-right: 8px; font-weight: 700; }
.checkout-step.active span { background: rgba(255,255,255,0.3); color: #fff; }
.checkout-panel { background: #fff; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.checkout-items { max-height: 300px; overflow-y: auto; }
.checkout-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--light); }
.checkout-item-img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.checkout-item-name { font-weight: 500; font-size: 0.9rem; display: block; }
.address-option { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.address-option.selected, .address-option:has(input:checked) { border-color: var(--primary); background: rgba(26,26,26,0.03); }
.shipping-option { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.shipping-option:has(input:checked) { border-color: var(--primary); background: rgba(26,26,26,0.03); }
.shipping-price { font-weight: 700; margin-left: auto; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.payment-option:has(input:checked), .payment-option.selected { border-color: var(--primary); }
.payment-info { display: flex; flex-direction: column; }
.payment-info i { font-size: 1.5rem; margin-bottom: 4px; }

/* Auth */
.auth-section { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 40px 0; background: var(--light); }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { font-weight: 700; margin-top: 12px; }
.auth-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Account */
.account-sidebar { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.account-user { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.account-avatar { font-size: 3rem; color: var(--primary); }
.account-nav a { display: flex; align-items: center; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 4px; color: var(--text); font-weight: 500; }
.account-nav a:hover, .account-nav a.active { background: var(--primary); color: #fff; }
.account-stat-card { background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.account-stat-card i { font-size: 2rem; color: var(--primary); }
.account-stat-card h4 { margin: 8px 0 0; font-weight: 700; }

/* Checkout Results */
.checkout-result-section { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 40px 0; }
.result-card { max-width: 500px; margin: 0 auto; }
.result-icon { font-size: 5rem; margin-bottom: 16px; }
.result-icon.success { color: var(--success); }
.result-icon.danger { color: var(--danger); }
.result-icon.warning { color: var(--warning); }

/* Mini Cart */
.mini-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1070; }
.mini-cart { position: fixed; top: 0; right: 0; width: 380px; max-width: 90vw; height: 100%; background: #fff; z-index: 1080; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.mini-cart.active { transform: translateX(0); }
.mini-cart-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.mini-cart-body { flex-grow: 1; overflow-y: auto; padding: 16px; }
.mini-cart-footer { padding: 16px; border-top: 1px solid var(--border); }

/* Footer */
.main-footer { background: #1a1a1a; color: #fff; padding: 48px 0 24px; }
.footer-brand .logo-text { color: #fff; font-size: 2rem; }
.footer-title { font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 8px; }
.footer-social { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--transition); }
.social-link:hover { background: #fff; color: #1a1a1a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }

/* WhatsApp Button */
.whatsapp-btn { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; z-index: 999; box-shadow: 0 4px 12px rgba(37,211,102,0.4); transition: var(--transition); }
.whatsapp-btn:hover { transform: scale(1.1); color: #fff; }

/* Alerts */
.flash-alert { border-radius: 0; margin: 0; position: relative; z-index: 1100; }

/* Filter Sidebar */
.filter-sidebar { background: #fff; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); position: sticky; top: 80px; }
.filter-group { margin-bottom: 20px; }
.filter-title { font-weight: 600; margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.filter-option { display: block; padding: 6px 0; cursor: pointer; font-size: 0.9rem; }

/* Pagination */
.pagination .page-link { border-radius: var(--radius); margin: 0 2px; border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Toast Notifications */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 1100; }
.toast { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s ease; max-width: 350px; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-slide { height: 280px; }
    .hero-title { font-size: 2rem; }
    .product-actions { opacity: 1; transform: translateX(0); }
    .desktop-nav { display: none !important; }
    .filter-sidebar { position: static; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-total { width: 100%; text-align: left; }
    .checkout-steps { flex-wrap: wrap; }
    .checkout-step { flex: 1 1 45%; }
}

@media (max-width: 575.98px) {
    .hero-slide { height: 220px; }
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.4rem; }
    .section { padding: 32px 0; }
    .product-detail-name { font-size: 1.3rem; }
    .gallery-main { aspect-ratio: 4/3; }
}
