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

/* Variables */
:root {
  --primary-blue: #000148;
  --secondary-blue: #000030;
  --primary-red: #dc1616;
  --secondary-red: #b01010;
  --accent-gold: #FFD700;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #2D3436;
  --text-muted: #636E72;
  --border-color: #DFE4EA;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 15px rgba(220, 22, 22, 0.4);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Basics */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--primary-blue); font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.75rem; margin-bottom: 1.5rem; text-align: left; border-left: 4px solid var(--primary-red); padding-left: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); text-align: center; }
.btn-primary { background-color: var(--primary-red); color: var(--bg-white); border-color: var(--primary-red); }
.btn-primary:hover { background-color: var(--secondary-red); border-color: var(--secondary-red); color: var(--bg-white); box-shadow: var(--shadow-glow); }
.btn-outline { background-color: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--bg-white); }

/* Header */
.top-bar { background-color: var(--primary-blue); color: var(--bg-white); padding: 8px 0; font-size: 0.875rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-links a { margin-left: 15px; opacity: 0.8; }
.top-bar-links a:hover { opacity: 1; }

.main-header { background-color: var(--bg-white); padding: 20px 0; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.75rem; font-weight: 800; color: var(--primary-blue); display: flex; align-items: center; }
.logo span { color: var(--primary-red); }

.search-bar { display: flex; flex: 1; max-width: 600px; margin: 0 40px; }
.search-bar input { width: 100%; padding: 10px 20px; border: 2px solid var(--border-color); border-right: none; border-radius: 20px 0 0 20px; outline: none; font-size: 0.9rem; transition: var(--transition); }
.search-bar input:focus { border-color: var(--primary-red); }
.search-bar button { padding: 0 20px; background-color: var(--primary-red); color: white; border: 2px solid var(--primary-red); border-radius: 0 20px 20px 0; cursor: pointer; transition: var(--transition); }
.search-bar button:hover { background-color: var(--secondary-red); }

.header-icons { display: flex; align-items: center; gap: 25px; }
.icon-btn { display: flex; flex-direction: column; align-items: center; color: var(--text-dark); font-size: 0.85rem; cursor: pointer; }
.icon-wrap { position: relative; display: inline-block; margin-bottom: 4px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.icon-btn:hover .icon-wrap { transform: translateY(-4px); }
.icon-wrap i { font-size: 1.3rem; }
.cart-badge { position: absolute; top: -8px; right: -10px; background-color: var(--primary-red); color: white; font-size: 0.70rem; padding: 2px 6px; border-radius: 50%; font-weight: bold; line-height: 1.2; box-shadow: var(--shadow-glow); }
.icon-btn:hover { color: var(--primary-red); }

/* Navigation */
.navbar { background-color: var(--bg-white); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.navbar ul { display: flex; justify-content: center; }
.navbar li a { display: block; padding: 12px 20px; font-size: 0.95rem; font-weight: 500; color: var(--primary-blue); position: relative; text-transform: uppercase; letter-spacing: 0.5px;}
.navbar li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background-color: var(--primary-red); transition: var(--transition); }
.navbar li a:hover::after { width: 100%; }
.navbar li a:hover { color: var(--primary-red); }

/* Heroes & Slider */
.hero { position: relative; width: 100%; padding: 30px 20px; background-color: var(--bg-light); }
.slider-container { position: relative; max-width: 1300px; margin: 0 auto; height: 400px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; z-index: 0; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,1,72,0.8) 0%, rgba(0,0,0,0) 80%); display: flex; align-items: center; padding-left: 50px; z-index: 1;}
.slide-content { max-width: 500px; color: white; transform: translateY(20px); opacity: 0; transition: all 0.8s ease; }
.slide.active .slide-content { transform: translateY(0); opacity: 1; transition-delay: 0.3s; }
.slide-content h2 { color: white; font-size: 3rem; border: none; padding: 0; margin-bottom: 10px; line-height: 1.1; }
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; opacity: 0.9; }

/* Glassmorphism Badge */
.glass-badge { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 20px; border-radius: 30px; color: white; font-weight: bold; display: flex; align-items: center; gap: 8px; z-index: 2; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

.slider-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 2; pointer-events: none; }
.slider-btn { pointer-events: auto; background-color: rgba(255,255,255,0.9); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--primary-blue); box-shadow: var(--shadow-md); transition: var(--transition); }
.slider-btn:hover { background-color: var(--primary-red); color: white; }
.slider-dots { position: absolute; bottom: 20px; width: 100%; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.dot.active { background-color: var(--primary-red); transform: scale(1.3); }

/* Features Section */
.features { padding: 10px 0 40px 0; background-color: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-box { display: flex; align-items: center; gap: 15px; padding: 25px 20px; background-color: var(--bg-white); border-radius: 12px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); z-index: 1; }
.feature-box::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: var(--primary-red); transition: var(--transition); z-index: -1; }
.feature-box:hover::before { width: 100%; opacity: 0.05; }
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-box i { font-size: 2.2rem; color: var(--primary-blue); transition: var(--transition); }
.feature-box:hover i { color: var(--primary-red); transform: scale(1.1); }
.feature-box h4 { font-size: 1.05rem; margin-bottom: 5px; }
.feature-box p { font-size: 0.85rem; color: var(--text-muted); }

/* Brands Marquee (NEW UNIQUE FEATURE) */
.brand-marquee-section { padding: 30px 0; background-color: white; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; }
.marquee-wrapper { position: relative; width: 100%; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.marquee-track { display: inline-flex; animation: scrollTrack 25s linear infinite; gap: 60px; padding-left: 60px; }
.marquee-track:hover { animation-play-state: paused; }
.brand-item { font-size: 1.5rem; font-weight: 800; color: #a0a5aa; text-transform: uppercase; letter-spacing: 2px; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; }
.brand-item:hover { color: var(--primary-blue); transform: scale(1.05); }
@keyframes scrollTrack { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Flash Sale Timer Section (NEW UNIQUE FEATURE) */
.flash-sale-wrapper { margin: 40px auto; background: linear-gradient(135deg, var(--primary-blue) 0%, #1a1a5c 100%); border-radius: 16px; padding: 30px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 15px 30px rgba(0,1,72,0.2); color: white; position: relative; overflow: hidden; }
.flash-sale-wrapper::after { content: ''; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(220,22,22,0.3) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; pointer-events: none; }
.flash-details h3 { color: var(--accent-gold); font-size: 2rem; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; border: none; padding: 0;}
.flash-details p { font-size: 1.1rem; opacity: 0.9; }
.timer-container { display: flex; gap: 15px; }
.time-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); padding: 15px; border-radius: 12px; text-align: center; min-width: 80px; }
.time-box span { display: block; font-size: 2.2rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.time-box small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-gold); font-weight: 600; }

/* Products */
.products-section { padding: 40px 0; }
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.product-card { background-color: var(--bg-white); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(220, 22, 22, 0.3); transform: translateY(-5px); }
.product-badge { position: absolute; top: 12px; left: 12px; background-color: var(--primary-red); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.70rem; font-weight: 700; text-transform: uppercase; z-index: 2; box-shadow: var(--shadow-sm); }
.product-img-wrapper { padding: 30px; background-color: #fff; display: flex; justify-content: center; align-items: center; height: 180px; }
.product-img-wrapper img { max-height: 100%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); mix-blend-mode: multiply; }
.product-card:hover .product-img-wrapper img { transform: scale(1.15) rotate(-2deg); }
.product-info { padding: 15px 20px 20px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--bg-light); background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,249,250,0.5) 100%); }
.product-category { font-size: 0.70rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; font-weight: 600; }
.product-title { font-size: 0.95rem; color: var(--primary-blue); margin-bottom: 15px; flex: 1; font-weight: 600; line-height: 1.4; transition: var(--transition); }
.product-card:hover .product-title { color: var(--primary-red); }

.product-price-box { display: flex; flex-direction: column; margin-bottom: 15px; border-top: 1px dashed var(--border-color); padding-top: 12px; }
.price-installment { color: var(--primary-red); font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 6px; }
.price-full { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; margin-top: 3px; font-weight: 500; }
.product-actions { display: flex; flex-direction: column; gap: 8px; }
.product-actions .btn { width: 100%; padding: 10px 0; font-size: 0.85rem; border-radius: 6px; }

/* Banners */
.banner { margin: 20px 0 50px 0; }
.banner a { display: block; width: 100%; overflow: hidden; border-radius: 16px; }
.banner img { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-md); transition: transform 0.7s ease; display: block; }
.banner a:hover img { transform: scale(1.03); }

.banner-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px auto 50px auto; }
.banner-row-2 a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; }
.banner-row-2 img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-md); transition: transform 0.7s ease; display: block; }
.banner-row-2 a:hover img { transform: scale(1.03); }

/* Cart Sidebar */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,10,0.6); backdrop-filter: blur(3px); z-index: 1050; display: none; }
.cart-overlay.active { display: block; animation: fadeIn 0.3s ease; }
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 380px; height: 100%; background-color: white; z-index: 1100; box-shadow: -10px 0 30px rgba(0,0,0,0.15); transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; }
.cart-sidebar.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 20px; border-bottom: 1px solid var(--border-color); background-color: var(--bg-light); }
.close-cart { cursor: pointer; font-size: 1.5rem; color: var(--text-dark); transition: var(--transition); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: white; box-shadow: var(--shadow-sm); }
.close-cart:hover { color: white; background: var(--primary-red); transform: rotate(90deg); }
.cart-body { padding: 20px; flex: 1; overflow-y: auto; }
.cart-footer { padding: 25px 20px; border-top: 1px solid var(--border-color); background-color: var(--bg-light); }

/* Floating Action Button (Theme Red & Position Right) */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-red); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 15px rgba(220,22,22,0.4); z-index: 999; animation: pulse 2s infinite; transition: var(--transition); }
.whatsapp-float:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 25px rgba(220,22,22,0.6); color: white; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,22,22,0.7); } 70% { box-shadow: 0 0 0 15px rgba(220,22,22,0); } 100% { box-shadow: 0 0 0 0 rgba(220,22,22,0); } }

/* Footer */
.footer { background-color: var(--primary-blue); color: white; padding: 70px 0 20px; margin-top: 60px; border-top: 5px solid var(--primary-red); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; position: relative; padding-bottom: 12px; border: none; font-size: 1.2rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background-color: var(--primary-red); border-radius: 2px; }
.footer-logo { font-size: 2.2rem; font-weight: 900; margin-bottom: 15px; letter-spacing: -1px; }
.footer-logo span { color: var(--primary-red); }
.footer-desc { color: #d0d2d6; margin-bottom: 25px; font-size: 0.95rem; line-height: 1.7; }
.social-links { display: flex; gap: 12px; }
.social-links a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.08); border-radius: 50%; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.social-links a:hover { background-color: var(--primary-red); border-color: var(--primary-red); transform: translateY(-5px); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #d0d2d6; font-size: 0.95rem; position: relative; padding-left: 0; transition: var(--transition); }
.footer-links a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: -15px; opacity: 0; color: var(--primary-red); transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 15px; }
.footer-links a:hover::before { left: 0; opacity: 1; }
.newsletter-form { display: flex; margin-top: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); border-radius: 30px; overflow: hidden; background: white; }
.newsletter-form input { flex: 1; padding: 12px 20px; border: none; outline: none; color: var(--text-dark); background: transparent; }
.newsletter-form button { padding: 12px 25px; background-color: var(--primary-red); color: white; border: none; cursor: pointer; font-weight: bold; transition: var(--transition); }
.newsletter-form button:hover { background-color: var(--secondary-red); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); color: #8a8e94; font-size: 0.9rem; }

/* Product Details (Single Page) */
.product-single-container { padding: 50px 0; }
.product-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

/* Product Gallery */
.product-gallery { position: sticky; top: 100px; }
.main-img-wrap { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 0; box-shadow: var(--shadow-sm); display: flex; justify-content: center; align-items: center; height: 500px; margin-bottom: 15px; position: relative; overflow: hidden; }
.main-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; border-radius: 12px;}
.main-img-wrap:hover img { transform: scale(1.05); }
.thumbnail-strip { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.thumb-item { width: 90px; height: 90px; background: white; border: 2px solid var(--border-color); border-radius: 8px; overflow: hidden; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; opacity: 0.6; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active, .thumb-item:hover { border-color: var(--primary-red); opacity: 1; }

/* Product Info */
.product-info-wrap .product-badge { position: static; display: inline-block; margin-bottom: 20px; padding: 6px 15px; font-size: 0.8rem; }
.product-main-title { font-size: 2.2rem; color: var(--primary-blue); font-weight: 800; margin-bottom: 10px; line-height: 1.2; border-left: none; padding-left: 0; }
.product-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; font-size: 0.95rem; color: var(--text-muted); padding-bottom: 20px; border-bottom: 1px dashed var(--border-color); }
.product-meta .stars { color: var(--accent-gold); letter-spacing: 2px; }

/* Pricing Card */
.pricing-card { background: linear-gradient(180deg, var(--bg-light) 0%, white 100%); border: 2px solid var(--primary-red); border-radius: 12px; padding: 30px; margin-bottom: 30px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.pricing-card::before { content: 'INSTALLMENT PLAN'; background: var(--primary-red); color: white; position: absolute; top: 0; right: 0; font-size: 0.70rem; font-weight: 700; padding: 5px 15px; border-radius: 0 0 0 12px; letter-spacing: 1px;}
.advance-price { font-size: 3rem; font-weight: 900; color: var(--primary-red); line-height: 1; margin-bottom: 5px; font-family: 'Inter', sans-serif;}
.advance-label { font-size: 1.1rem; color: var(--text-dark); font-weight: 600; margin-bottom: 25px; display: block; }

.installment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.installment-opt { background: white; border: 2px solid var(--border-color); padding: 15px; border-radius: 8px; text-align: center; cursor: pointer; transition: var(--transition); }
.installment-opt:hover, .installment-opt.active { border-color: var(--primary-blue); background: rgba(0,1,72,0.03); box-shadow: var(--shadow-sm); transform: translateY(-3px);}
.installment-opt h4 { color: var(--primary-blue); font-size: 1.15rem; margin-bottom: 5px; font-weight: 800;}
.installment-opt p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.cash-price-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: white; padding: 15px 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.cash-price-wrap span { color: var(--text-dark); font-weight: 600; font-size: 1.1rem;}
.cash-price-wrap h4 { color: var(--primary-blue); font-size: 1.4rem; font-weight: 800;}

.qty-cart-wrap { display: flex; gap: 15px; margin-bottom: 30px; }
.qty-selector { display: flex; align-items: center; border: 2px solid var(--border-color); border-radius: 8px; overflow: hidden; background: white; }
.qty-btn { width: 45px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-dark); transition: var(--transition); }
.qty-btn:hover { background: var(--border-color); }
.qty-input { width: 60px; height: 50px; border: none; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); text-align: center; font-weight: bold; font-size: 1.1rem; outline: none; }
.qty-cart-wrap .add-to-cart-btn { flex: 1; padding: 0; height: 54px; font-size: 1.2rem; }

.product-features-list { margin-bottom: 30px; }
.product-features-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-size: 1rem; }
.product-features-list i { color: #2ecc71; font-size: 1.1rem;}

/* Product Tabs */
.product-tabs-section { padding: 60px 0; background: white; border-top: 1px solid var(--border-color); }
.tab-headers { display: flex; gap: 40px; border-bottom: 2px solid var(--border-color); margin-bottom: 40px; overflow-x: auto;}
.tab-btn { background: none; border: none; padding: 15px 0; font-size: 1.2rem; font-weight: 600; color: var(--text-muted); cursor: pointer; position: relative; white-space: nowrap;}
.tab-btn.active { color: var(--primary-blue); }
.tab-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 3px; background: var(--primary-red); transition: var(--transition); }
.tab-btn.active::after { width: 100%; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }
.tab-content h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-blue); border-left: 4px solid var(--primary-red); padding-left: 10px;}
.tab-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 15px; font-size: 1.05rem;}
.specs-table { width: 100%; border-collapse: collapse; margin-top:20px;}
.specs-table td { padding: 15px 20px; border: 1px solid var(--border-color); }
.specs-table tr:nth-child(odd) { background-color: var(--bg-light); }
.specs-table td:first-child { font-weight: 600; width: 30%; color: var(--text-dark);}

/* Auth Pages & Forms */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-light) 0%, #e0e5ec 100%); padding: 40px 20px; }
.auth-container { background: white; padding: 40px; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 500px; display: flex; flex-direction: column; }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header .logo { display: inline-flex; justify-content: center; margin-bottom: 10px; font-size: 2.2rem; }
.auth-header h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 5px; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: var(--text-dark); outline: none; transition: var(--transition); background: var(--bg-light); }
.form-group input:focus { border-color: var(--primary-red); background: white; box-shadow: 0 0 0 3px rgba(220,22,22,0.1); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 45px; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); padding: 5px; }
.toggle-password:hover { color: var(--primary-blue); }

.auth-btn { width: 100%; padding: 14px; font-size: 1.1rem; justify-content: center; }
.auth-footer { text-align: center; margin-top: 25px; font-size: 0.95rem; }
.auth-footer a { color: var(--primary-red); font-weight: 600; }
.auth-footer a:hover { color: var(--secondary-red); text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.9rem; }
.auth-links a { color: var(--primary-blue); font-weight: 500;}
.auth-links a:hover { color: var(--primary-red); text-decoration: underline;}

/* Automatic Required Asterisk */
.form-group:has(input[required]) label::after {
    content: '*';
    color: var(--primary-red);
    margin-left: 4px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Navigation Submenu & Mobile Bottom Nav */
.navbar li.has-submenu { position: relative; }
.navbar li.has-submenu > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.submenu { display: none; background: white; min-width: 220px; box-shadow: var(--shadow-md); z-index: 100; border-radius: 8px; overflow: hidden; }
@media (min-width: 769px) {
    .submenu { position: absolute; top: 100%; left: 0; }
    .navbar li.has-submenu:hover .submenu { display: block; animation: fadeIn 0.3s ease; }
    .submenu li a { border-bottom: 1px solid var(--border-color); padding: 12px 20px; }
    .submenu li:last-child a { border-bottom: none; }
}
.mobile-bottom-nav { display: none; }

/* Responsive Updates */
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .products-grid { grid-template-columns: repeat(3, 1fr); } .footer-grid { grid-template-columns: repeat(2, 1fr); } .slider-container { height: 350px; border-radius: 0; max-width: 100%; } .hero { padding: 0; } .features-grid { grid-template-columns: repeat(2, 1fr); } .flash-sale-wrapper { flex-direction: column; text-align: center; gap: 20px; } .product-grid-layout { grid-template-columns: 1fr; } .product-gallery { position: static; margin-bottom: 30px; } }
@media (max-width: 768px) {
    .main-header { position: relative; }
    .main-header .container { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; }
    .mobile-menu-btn { order: 0; margin-right: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }
    .logo { justify-content: center; width: 100%; text-align: center; order: 1; }
    .header-icons { display: none !important; }
    .search-bar { grid-column: 1 / -1; margin: 10px 0 0 0; order: 3; max-width: 100%; }
    .search-bar input { border-radius: 6px 0 0 6px; } .search-bar button { border-radius: 0 6px 6px 0; }
    
    .navbar { border: none; top: 100%; position: absolute; width: 100%; z-index: 999; left: 0; background: transparent; }
    .navbar ul { flex-direction: column; display: none; background: white; box-shadow: var(--shadow-md); width: 100%; }
    .navbar.active ul { display: flex; position: relative; top: 0; box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
    .navbar li a { border-bottom: 1px solid var(--border-color); padding: 15px 20px; }
    .has-submenu.open .submenu { display: block; padding-left: 20px; background: var(--bg-light); box-shadow: none; border-radius: 0; }
    .submenu li a { padding: 12px 20px; border-bottom: 1px dashed var(--border-color); }
    
    .top-bar { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-container { height: 280px; }
    .banner-row-2 { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.9rem; }
    .slide-overlay { padding-left: 20px; padding-right: 20px; background: linear-gradient(90deg, rgba(0,1,72,0.85) 0%, rgba(0,0,0,0.4) 100%); align-items: center; justify-content: center; text-align: center;}
    .glass-badge { top: 10px; right: 10px; font-size: 0.70rem; padding: 5px 8px; }
    .marquee-track { gap: 30px; }
    .main-img-wrap { height: 350px; }
    .qty-cart-wrap { flex-direction: column; }
    .qty-selector { justify-content: center; width: 100%; }

    .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); padding: 10px 5px; z-index: 1100; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 0.75rem; gap: 5px; position: relative; }
    .mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--primary-red); }
    .mobile-bottom-nav a i { font-size: 1.3rem; }
    .cart-badge-mobile { position: absolute; top: -5px; left: 50%; transform: translateX(4px); background: var(--primary-red); color: white; border-radius: 50%; font-size: 0.65rem; padding: 2px 5px; font-weight: bold; }
    body { padding-bottom: 75px; }
    .whatsapp-float { bottom: 90px; }
}
@media (min-width: 769px) { .mobile-menu-btn { display: none; } }
@media (max-width: 480px) { 
    .footer-grid { grid-template-columns: 1fr; } 
    .features-grid { grid-template-columns: 1fr; } 
    .timer-container { gap: 10px; } 
    .time-box { min-width: 60px; padding: 10px; } 
    .time-box span { font-size: 1.5rem; } 
    /* Keep products grid at 2 columns for mobile, but adjust font sizes to fit cleanly */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-img-wrapper { height: 160px; }
    .product-info { padding: 12px; }
    .product-title { font-size: 0.9rem; margin-bottom: 5px;}
    .price-installment { font-size: 1.05rem; }
    .price-installment span { font-size: 0.7rem; }
    .price-full { font-size: 0.75rem; }
    .product-actions .btn { font-size: 0.85rem; padding: 8px; }
}

/* Global Fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
}
