:root {
    --primary: #0B1220;
    --secondary: #1E293B;
    --accent: #E53E3E;
    --accent-hover: #C53030;
    --green: #38A169;
    --orange: #DD6B20;
    --blue: #3182CE;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gray: #EDF2F7;
    --text-main: #1A202C;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-main); background: var(--bg-white); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Preloader */
#preloader { position: fixed; inset: 0; z-index: 99999; background: var(--primary); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s; }
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader { text-align: center; }
.loader-logo { width: 80px; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.loader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: var(--accent); border-radius: 10px; animation: loadBar 1.5s ease forwards; }
@keyframes loadBar { to { width: 100%; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Top Bar */
.top-bar { background: var(--primary); color: rgba(255,255,255,0.7); font-size: 0.8rem; padding: 8px 0; }
.top-bar i { margin-right: 4px; color: var(--accent); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; padding: 12px 0; transition: var(--transition); }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.header-search { flex: 1; max-width: 500px; }
.search-form { display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.search-form input { flex: 1; border: none; padding: 10px 16px; font-family: var(--font); font-size: 0.9rem; outline: none; }
.search-form input:focus { border-color: var(--accent); }
.search-form button { background: var(--accent); color: #fff; border: none; padding: 10px 18px; cursor: pointer; transition: var(--transition); }
.search-form button:hover { background: var(--accent-hover); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; color: var(--text-main); position: relative; }
.header-action-btn:hover { background: var(--bg-gray); color: var(--accent); }
.cart-count { position: absolute; top: 0; right: 0; background: var(--accent); color: #fff; font-size: 0.65rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Language Switcher */
.lang-switch-top { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 600; white-space: nowrap; transition: var(--transition); }
.lang-switch-top i { color: var(--accent); }
.lang-switch-top:hover { color: #fff; }
.lang-switch-wrap { position: relative; }
.lang-switch-btn { background: none; border: none; cursor: pointer; }
.lang-switch-menu { min-width: 170px; padding: 6px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lang-switch-head { padding: 6px 12px 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); }
.lang-switch-menu .dropdown-item { display: flex; align-items: center; gap: 8px; border-radius: 6px; font-size: 0.9rem; padding: 8px 12px; }
.lang-switch-menu .dropdown-item:hover { background: var(--bg-gray); }
.lang-switch-menu .dropdown-item.active { background: rgba(229,62,62,0.08); color: var(--accent); font-weight: 700; }
.lang-active-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Category Nav */
.cat-nav { background: var(--secondary); position: sticky; top: 68px; z-index: 999; }
.cat-nav-toggle { background: none; border: none; color: #fff; padding: 12px 0; font-weight: 600; font-size: 0.9rem; width: 100%; text-align: left; }
.cat-menu { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.cat-menu > li > a { display: block; padding: 14px 16px; color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.85rem; white-space: nowrap; transition: var(--transition); }
.cat-menu > li > a:hover, .cat-menu > li > a.active { color: #fff; background: rgba(255,255,255,0.1); }
.cat-menu > li { position: relative; }
.mega-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 280px; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); z-index: 1000; padding: 16px; }
.cat-menu > li:hover .mega-menu { display: block; }
.mega-menu-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mega-item { display: block; padding: 10px 14px; color: var(--text-main); font-size: 0.85rem; font-weight: 500; border-radius: var(--radius); }
.mega-item:hover { background: var(--bg-gray); color: var(--accent); }

/* Hero Slider */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { position: relative; height: 450px; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,18,32,0.8) 0%, rgba(11,18,32,0.4) 100%); }
.hero-slide-content { position: relative; z-index: 2; max-width: 600px; }
.hero-slide-content h2 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.hero-slide-content p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 24px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; transition: var(--transition); }
.hero-dot.active { background: var(--accent); width: 32px; border-radius: 6px; }

/* Trust Badges */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.trust-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(229,62,62,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.trust-text strong { display: block; font-size: 0.85rem; color: var(--text-main); }
.trust-text span { font-size: 0.75rem; color: var(--text-muted); }

/* Section Commons */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 1.8rem; font-weight: 800; color: var(--text-main); }
.section-subtitle { color: var(--text-muted); margin-top: 8px; }

/* Category Grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; transition: var(--transition); cursor: pointer; }
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(229,62,62,0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--accent); font-size: 1.6rem; }
.cat-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.cat-card span { font-size: 0.75rem; color: var(--text-muted); }

/* Product Card */
.product-card { background: #fff; border: 1px solid var(--border); 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(-4px); }
.product-img { position: relative; height: 220px; overflow: hidden; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.product-badge { padding: 3px 10px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.badge-new { background: var(--blue); color: #fff; }
.badge-hot { background: var(--accent); color: #fff; }
.badge-sale { background: var(--orange); color: #fff; }
.product-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(10px); transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); color: var(--text-main); }
.product-action-btn:hover { background: var(--accent); color: #fff; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; letter-spacing: 0.5px; }
.product-info h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-info h3 a:hover { color: var(--accent); }
.product-price { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.price-old { font-size: 0.8rem; color: var(--text-light); text-decoration: line-through; }
.price-on-request { font-size: 0.9rem; font-weight: 600; color: var(--text-light); font-style: italic; }
.product-add-btn { width: 100%; padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: var(--transition); margin-top: 10px; }
.product-add-btn:hover { background: var(--accent); }

/* Product Tabs */
.product-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 30px; justify-content: center; }
.product-tab { padding: 12px 24px; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.product-tab:hover { color: var(--text-main); }
.product-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Brand Grid */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.brand-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; transition: var(--transition); min-height: 80px; }
.brand-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.brand-card span { font-weight: 700; font-size: 0.9rem; color: var(--text-muted); }

/* Product Detail */
.product-detail { padding: 40px 0; }
.product-detail-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; min-height: 400px; }
.product-detail-img img { max-height: 400px; object-fit: contain; }
.product-detail-info h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.product-detail-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.qty-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.qty-btn { width: 40px; height: 40px; background: var(--bg-gray); border: none; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--accent); color: #fff; }
.qty-input { width: 60px; height: 40px; border: none; text-align: center; font-weight: 700; font-size: 1rem; font-family: var(--font); }
.detail-features li { padding: 6px 0; color: var(--text-muted); font-size: 0.9rem; }
.detail-features li i { color: var(--green); margin-right: 8px; }

/* Cart */
.cart-section { padding: 40px 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 12px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--radius); background: var(--bg-gray); padding: 4px; }
.cart-product h4 { font-size: 0.85rem; font-weight: 600; }
.cart-remove { color: var(--text-light); cursor: pointer; transition: var(--transition); }
.cart-remove:hover { color: var(--accent); }
.cart-summary { background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.cart-summary-total { border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; font-size: 1.2rem; font-weight: 800; }

/* Newsletter */
.newsletter-section { background: var(--primary); padding: 40px 0; color: #fff; }
.newsletter-section h3 { font-weight: 800; margin-bottom: 4px; }
.newsletter-section p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.newsletter-form { display: flex; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font); font-size: 0.9rem; }
.newsletter-form button { padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: var(--accent-hover); }

/* Footer */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding-top: 50px; }
.footer-brand .footer-logo { height: 48px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-contact i { color: var(--accent); margin-right: 8px; }
.footer-delivery-info { margin-top: 16px; background: rgba(255,255,255,0.05); padding: 12px; border-radius: var(--radius); }
.footer-delivery-info h5 { font-size: 0.85rem; color: #fff; margin-bottom: 6px; }
.footer-delivery-info p { font-size: 0.8rem; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; margin-top: 40px; text-align: center; font-size: 0.8rem; }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.back-to-top { position: fixed; bottom: 24px; right: 90px; z-index: 999; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: #fff; }
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; background: var(--primary); padding: 14px 0; transform: translateY(100%); transition: transform 0.4s; }
.cookie-consent.visible { transform: translateY(0); }
.cookie-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-content p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.cookie-content a { color: var(--accent); }
.btn-cookie { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: var(--radius); border: none; font-weight: 600; cursor: pointer; }

/* Page Banner */
.page-banner { background: var(--primary); padding: 80px 0 40px; }
.page-banner h1 { color: #fff; font-size: 2rem; font-weight: 800; }
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.5); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: rgba(255,255,255,0.3); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Shop Filters */
.shop-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.shop-filter-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.filter-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.filter-item:hover, .filter-item.active { color: var(--accent); }
.filter-item input[type="checkbox"] { accent-color: var(--accent); }

/* Responsive */
@media (min-width: 992px) {
    .cat-nav .collapse:not(.show) {
        display: block !important;
    }
}
@media (max-width: 991px) {
    .cat-menu { flex-direction: column; }
    .cat-menu > li > a { padding: 12px 16px; }
    .mega-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.1); }
    .header-search { display: none; }
    .hero-slide { height: 300px; }
    .hero-slide-content h2 { font-size: 1.8rem; }
}
@media (max-width: 767px) {
    .top-bar { display: none; }
    .brand-text { display: none; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.4rem; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-card { padding: 16px 10px; }
    .cat-card-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .product-img { height: 160px; }
    .cart-table { font-size: 0.8rem; }
    .cart-product img { width: 40px; height: 40px; }
}
