/* Core Variables & Reset */
:root { --bg-color: #050505; --text-color: #ffffff; --accent-red: #cc0000; --dark-grey: #111111; --border-color: #2a2a2a; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; scroll-behavior: smooth; }

/* Custom Luxury Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* Preloader */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-color); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.5s ease-out; }
.loader-line { width: 100px; height: 2px; background: #333; margin-top: 20px; overflow: hidden; position: relative; }
.loader-line::after { content: ''; position: absolute; left: -50px; width: 50px; height: 100%; background: var(--accent-red); animation: load 1.5s infinite ease-in-out; }
@keyframes load { 0% { left: -50px; } 100% { left: 100px; } }

/* Scroll Progress Bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent-red); width: 0%; z-index: 10000; transition: width 0.1s; }

/* Marquee Bar */
.marquee-bar { background: var(--accent-red); color: #fff; padding: 8px 0; overflow: hidden; position: relative; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.marquee-content { display: flex; white-space: nowrap; animation: marquee 15s linear infinite; }
.marquee-content span { padding: 0 50px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Navbar Elements */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: rgba(5,5,5,0.9); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); backdrop-filter: blur(15px); }
.menu-icon { font-size: 24px; cursor: pointer; display: none; }
.logo img { height: 35px; object-fit: contain; }
.nav-right { display: flex; align-items: center; gap: 20px; }
#lang-switch { background: transparent; color: #fff; border: 1px solid var(--border-color); padding: 5px; font-weight: 600; cursor: pointer; font-size: 12px; }
#lang-switch option { background: var(--dark-grey); }
.desktop-nav a { margin: 0 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; transition: 0.3s; }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--accent-red); }
.cart-icon { cursor: pointer; font-size: 18px; position: relative; }
#cart-count { background: var(--accent-red); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 50%; position: absolute; top: -10px; right: -10px; font-weight: bold; }

/* Side Menu Drawer */
.side-menu { position: fixed; left: -300px; top: 0; width: 300px; height: 100vh; background: var(--dark-grey); z-index: 3000; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); display: flex; flex-direction: column; border-right: 1px solid var(--border-color); }
.side-menu.open { left: 0; }
.menu-header { display: flex; justify-content: space-between; padding: 25px; border-bottom: 1px solid var(--border-color); }
.menu-header button { background: transparent; color: #fff; border: none; font-size: 24px; cursor: pointer; }
.menu-links { display: flex; flex-direction: column; padding: 20px; }
.menu-links a { padding: 15px 0; border-bottom: 1px solid #222; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.menu-social { padding: 20px; display: flex; gap: 20px; font-size: 20px; }

/* Buttons & Luxury Cards */
.btn { padding: 15px 30px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: 0.3s; border: none; letter-spacing: 1px; }
.btn-primary { background: var(--text-color); color: var(--bg-color); }
.btn-primary:hover { background: var(--accent-red); color: var(--text-color); transform: scale(1.02); }
.btn-outline { border: 1px solid var(--text-color); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--text-color); color: var(--bg-color); }

/* Hero */
.hero { position: relative; height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: -2; object-fit: cover; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); z-index: -1; }
.hero-content h1 { font-size: 4.5rem; letter-spacing: 3px; font-weight: 800; margin-bottom: 15px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; letter-spacing: 2px; }

/* Features & Grids */
.trust-badges { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 40px 5%; background: var(--dark-grey); border-bottom: 1px solid var(--border-color); }
.badge { text-align: center; flex: 1 1 200px; padding: 20px; }
.badge i { font-size: 2rem; margin-bottom: 15px; transition: 0.3s; }
.badge:hover i { color: var(--accent-red); transform: translateY(-5px); }
.badge span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #aaa; }
.section-title { text-align: center; font-size: 2rem; margin: 80px 0 40px; font-weight: 800; letter-spacing: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 0 5%; perspective: 1000px; }
.center-btn { text-align: center; margin: 50px 0; }

/* 3D Tilt Product Card & Hover Image Swap */
.product-card { background: var(--dark-grey); text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; transform-style: preserve-3d; }
.product-card:hover { border-color: var(--text-color); }
.img-container { position: relative; width: 100%; height: 350px; overflow: hidden; background: #000; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; position: absolute; top: 0; left: 0; }
.product-img.hover-img { opacity: 0; }
.product-card:hover .product-img.main-img { opacity: 0; }
.product-card:hover .product-img.hover-img { opacity: 1; }
.product-info { padding: 20px; }
.product-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.product-price { font-weight: 600; color: #aaa; margin-bottom: 20px; }

/* Quick View Elements */
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.qv-main-img { width: 100%; border: 1px solid var(--border-color); }
.sizes { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.size-btn { padding: 10px 20px; border: 1px solid var(--border-color); background: var(--dark-grey); color: #aaa; cursor: pointer; font-weight: 600; transition: 0.3s; }
.size-btn.selected, .size-btn:hover { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }
.stock-progress { width: 100%; height: 6px; background: #333; margin-top: 10px; border-radius: 3px; overflow: hidden; }
.stock-bar { height: 100%; background: var(--accent-red); width: 20%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

/* Shop Page Filters */
.shop-header { margin-top: 20px; text-align: center; }
.filters { margin: 30px 0; }
.filter-btn { background: transparent; border: 1px solid var(--border-color); color: #aaa; padding: 10px 25px; margin: 5px; cursor: pointer; font-weight: 600; }
.filter-btn.active, .filter-btn:hover { background: var(--text-color); color: var(--bg-color); }

/* Live Visitor & Fake Sales */
.live-visitors { text-align: center; font-size: 12px; color: #f39c12; margin-top: 20px; font-weight: bold; }
.sales-popup { position: fixed; bottom: -100px; left: 20px; background: var(--text-color); color: var(--bg-color); display: flex; align-items: center; padding: 10px; z-index: 5000; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.sales-popup.show { bottom: 30px; }
.sales-popup img { width: 50px; height: 50px; object-fit: cover; margin-right: 15px; }
.sp-details p { font-size: 10px; margin: 0; color: #555; }
.sp-details h4 { font-size: 12px; margin: 2px 0; font-weight: 800; }

/* Modals & Cart (retained structure, refined styles) */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content { background: var(--bg-color); border: 1px solid var(--border-color); padding: 40px; width: 90%; max-width: 500px; position: relative; animation: slideUp 0.4s ease; }
.product-modal { max-width: 900px; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close { position: absolute; right: 20px; top: 15px; font-size: 30px; cursor: pointer; color: #aaa; }
.close:hover { color: var(--accent-red); }

.cart-sidebar { position: fixed; right: -400px; top: 0; width: 400px; max-width: 100%; height: 100vh; background: var(--dark-grey); z-index: 3000; transition: 0.4s; display: flex; flex-direction: column; border-left: 1px solid var(--border-color); }
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; padding: 25px; border-bottom: 1px solid var(--border-color); }
.cart-header button { background: transparent; color: #fff; border: none; font-size: 24px; cursor: pointer; }
#cart-items { flex-grow: 1; overflow-y: auto; padding: 25px; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.cart-footer { padding: 25px; background: var(--bg-color); }
.promo-box { display: flex; margin-bottom: 20px; }
.promo-box input { flex-grow: 1; padding: 12px; background: var(--dark-grey); border: 1px solid var(--border-color); color: #fff; text-transform: uppercase; }
.promo-box button { padding: 12px 20px; background: var(--text-color); color: var(--bg-color); border: none; cursor: pointer; font-weight: bold; }
.bank-details { background: #0a0a0a; padding: 20px; border: 1px solid #333; margin-bottom: 25px; font-size: 13px; line-height: 1.6; }
#checkout-form input, #checkout-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; background: var(--dark-grey); border: 1px solid var(--border-color); color: #fff; }

#toast { visibility: hidden; background: var(--text-color); color: var(--bg-color); font-weight: 600; padding: 16px; position: fixed; z-index: 4000; left: 50%; bottom: 30px; transform: translateX(-50%); }
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
#overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); z-index: 2500; }
.float-wa { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; border-radius: 50px; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; font-size: 30px; z-index: 1000; transition: 0.3s; }
.float-wa:hover { transform: scale(1.1); }

footer { background: var(--dark-grey); padding: 60px 5% 20px; border-top: 1px solid var(--border-color); margin-top: 80px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.footer-col { margin-bottom: 30px; max-width: 300px; }
.footer-col h3 { margin-bottom: 20px; font-weight: 800; }
.footer-col p { color: #888; font-size: 12px; line-height: 1.6; }
.footer-col a { display: block; color: #888; font-size: 13px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }

.community { padding: 60px 5%; text-align: center; background: #080808; border-top: 1px solid var(--border-color); }
.social-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-card { padding: 20px 40px; border: 1px solid var(--border-color); font-weight: bold; transition: 0.3s; }
.social-card:hover { background: var(--text-color); color: var(--bg-color); }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-icon { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .qv-grid { grid-template-columns: 1fr; }
    .sales-popup { display: none; } /* Hide on small screens for better UX */
}