/* Nano Tech - Ultra Premium Cinematic Responsive System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Almarai:wght@400;700;800&display=swap');

:root {
    --primary: #0084ff;
    --secondary: #00d2ff;
    --bg-main: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --hero-filter: brightness(0.25);
    --footer-bg: #010409;
    --nav-scrolled: rgba(2, 6, 23, 0.95);
}

[data-theme="light"] {
    --bg-main: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    --hero-filter: brightness(0.7) contrast(1.1);
    --footer-bg: #ffffff;
    --nav-scrolled: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .btn-outline {
    color: var(--text-main);
    border-color: var(--border);
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .f-links a:hover {
    color: var(--primary);
}

.home-page {
    --primary: #d76d0f;
    --secondary: #ff9d4d;
    --secondary-glow: rgba(215, 109, 15, 0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Montserrat', 'Almarai', sans-serif; background: var(--bg-main); color: var(--text-main); overflow-x: hidden; line-height: 1.6; transition: 0.5s; }
[lang="ar"] { direction: rtl; }

/* Navigation */
nav { position: fixed; top: 0; width: 100%; z-index: 2000; padding: 40px 0; transition: 0.5s; }
nav.scrolled { padding: 15px 0; background: var(--nav-scrolled); backdrop-filter: blur(30px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 60px; }

.logo-text { font-size: 2.2rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; text-transform: uppercase; letter-spacing: 2px; }

.nav-logo { height: 50px; width: auto; object-fit: contain; }
.logo-wrapper { display: flex; align-items: center; text-decoration: none; }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 700; opacity: 0.7; font-size: 1rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--primary); }

.nav-controls { display: flex; gap: 20px; align-items: center; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: #fff; }

/* Hero - THE "BIG" CINEMATIC FEEL */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 60px; text-align: center; color: #fff; }
.hero-bg-img { position: absolute; top:0; left:0; width:100%; height:100%; z-index:-2; background-size:cover; background-position:center; filter: var(--hero-filter); transform: scale(1.05); }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(2,6,23,0) 0%, rgba(2,6,23,0.7) 100%); z-index: -1; }

[data-theme="light"] .hero { color: var(--text-main); }
[data-theme="light"] .hero::after { background: radial-gradient(circle, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 100%); }

.hero-content { z-index: 10; width: 100%; max-width: 1200px; padding-top: 15vh; }

.hero-title { font-size: clamp(2.5rem, 10vw, 6.5rem); font-weight: 900; margin-bottom: 30px; line-height: 1.1; letter-spacing: -2px; text-shadow: 0 15px 45px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: clamp(1rem, 3vw, 1.8rem); font-weight: 600; opacity: 1; margin-bottom: 60px; text-shadow: 0 5px 20px rgba(0,0,0,0.5); }

/* CTAs - PREMIUM SIZE */
.cta-group { display: flex; gap: 25px; justify-content: center; }
.btn-premium { border-radius: 100px; text-decoration: none; font-weight: 900; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-solid { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 20px 50px rgba(0, 132, 255, 0.4); }
.btn-solid:hover { transform: translateY(-10px) scale(1.05); }
.btn-outline { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: white; backdrop-filter: blur(15px); }
.btn-outline:hover { background: #fff; color: #000; border-color: #fff; }

/* Sections */
section { padding: 180px 60px; max-width: 1500px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 100px; }
.section-title { font-size: clamp(2rem, 8vw, 4.5rem); font-weight: 900; line-height: 1.2; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.tagline { color: var(--primary); font-weight: 900; letter-spacing: 6px; font-size: 1.1rem; display: block; margin-bottom: 15px; text-transform: uppercase; }

/* LUX Grid & Fixed Card Positioning */
.item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 80px; }
.lux-card { border-radius: 50px; overflow: hidden; position: relative; background: var(--bg-main); transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1); cursor: pointer; }
.lux-card:hover { transform: translateY(-30px); }

.card-img-wrapper { height: 500px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 1s ease; }
.lux-card:hover .card-img { transform: scale(1.1) rotate(2deg); }

/* The "Fixed" Body Overlay Style */
.card-body.glass { 
    position: absolute; bottom: 30px; left: 30px; right: 30px; 
    padding: 50px; backdrop-filter: blur(35px); background: var(--glass); 
    border: 1px solid var(--border); border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.3); 
}
.card-title { font-size: 2rem; font-weight: 900; margin-bottom: 15px; }

/* FAB Cart */
.cart-fab { position: fixed; bottom: 40px; right: 40px; width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; box-shadow: 0 20px 60px rgba(0, 132, 255, 0.5); z-index: 3000; cursor: pointer; transition: 0.4s; }
.cart-count { position: absolute; top: -5px; right: -5px; background: #ffd700; color: #000; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* Footer */
footer { padding: 150px 60px; background: var(--footer-bg); border-top: 1px solid var(--border); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 100px; max-width: 1500px; margin: 0 auto; }
.f-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 30px; font-weight: 900; }
.f-links { list-style: none; }
.f-links li { margin-bottom: 15px; }
.f-links a { text-decoration: none; color: var(--text-muted); font-size: 1.1rem; transition: 0.3s; }
.f-links a:hover { color: #fff; transform: translateX(-10px); display: inline-block; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(60px); transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal-active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE STABILITY --- */
@media (max-width: 1024px) {
    .nav-container { padding: 0 30px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    nav { padding: 20px 0; }
    .nav-container { padding: 0 20px; }
    .logo-text { font-size: 1.6rem; }
    
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; 
        background: var(--bg-main); flex-direction: column; justify-content: center; 
        align-items: center; transition: 0.6s; z-index: 3000; gap: 40px; 
    }
    .nav-links.open { right: 0; }
    .menu-toggle { display: block; z-index: 3001; }
    .nav-controls { gap: 10px; }
    
    .hero { padding: 0 20px; }
    .cta-group { flex-direction: column; width: 100%; gap: 15px; }
    .btn-premium { width: 100%; padding: 20px; }
    
    section { padding: 100px 20px; }
    .section-title { font-size: 2.2rem; }
    .item-grid { grid-template-columns: 1fr; gap: 40px; }
    .card-img-wrapper { height: 350px; }
    
    /* Adapt card body for mobile */
    .card-body.glass { 
        position: relative; bottom: 0; left: 0; right: 0; 
        margin: -40px 10px 0; padding: 30px; 
    }
}

/* --- NEW SECTIONS STYLES --- */

/* Stats Section */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.stat-box { text-align: center; padding: 60px 20px; border-radius: 40px; background: var(--glass); border: 1px solid var(--border); transition: 0.4s; }
.stat-box:hover { transform: translateY(-10px); background: var(--secondary-glow); border-color: var(--primary); }
.stat-val { font-size: 4rem; font-weight: 900; color: var(--primary); display: block; margin-bottom: 15px; }
.stat-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

/* FAQ Accordion */
.faq-container { max-width: 900px; margin: 80px auto 0; display: flex; flex-direction: column; gap: 20px; }
.faq-item { background: var(--glass); border: 1px solid var(--border); border-radius: 25px; padding: 30px 40px; cursor: pointer; transition: 0.4s; overflow: hidden; }
.faq-item:hover { border-color: var(--primary); }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; font-weight: 800; }
.faq-q i { transition: 0.4s; color: var(--primary); }
.faq-a { max-height: 0; opacity: 0; transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); margin-top: 0; color: var(--text-muted); line-height: 1.8; font-size: 1.1rem; }
.faq-open .faq-a { max-height: 500px; opacity: 1; margin-top: 20px; }
.faq-open .faq-q i { transform: rotate(180deg); }

/* Brands */
.brands-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; opacity: 0.5; margin-top: 80px; filter: grayscale(1); transition: 0.5s; }
.brands-wrap:hover { opacity: 1; filter: grayscale(0); }
.brand-logo { height: 40px; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-val { font-size: 3rem; }
    .faq-q { font-size: 1.1rem; }
}


/* Side Cart Styling */
.side-cart {
    position: fixed; top: 0; right: -450px; width: 400px; height: 100vh;
    background: var(--glass); backdrop-filter: blur(50px); z-index: 4000;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex; flex-direction: column; border-left: 1px solid var(--border);
    padding: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.3);
}
.side-cart.open { right: 0; }
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 3999; display: none; backdrop-filter: blur(5px);
}
.cart-overlay.show { display: block; }

.cart-header { padding: 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 1.8rem; font-weight: 900; }
.close-cart { background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 20px 40px; }
.cart-item { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; }
.cart-item img { width: 80px; height: 80px; border-radius: 20px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.cart-item-info p { color: var(--primary); font-weight: 900; }

.cart-footer { padding: 40px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.4rem; font-weight: 900; margin-bottom: 30px; }

@media (max-width: 450px) {
    .side-cart { width: 100%; right: -100%; }
}

/* Featured Product Spoltight */
.product-spotlight { 
    background: rgba(255,255,255,0.02); border-radius: 80px; 
    padding: 100px; margin: 100px auto; max-width: 1400px;
    border: 1px solid var(--border);
}
.spotlight-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: center; }
.spotlight-img img { 
    width: 100%; border-radius: 60px; transform: rotate(-5deg); 
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1); 
    box-shadow: 0 60px 120px rgba(0,0,0,0.6); 
}
.product-spotlight:hover .spotlight-img img { transform: rotate(0) scale(1.05); }

@media (max-width: 1024px) {
    .product-spotlight { margin: 50px 20px; padding: 60px 40px; border-radius: 40px; }
    .spotlight-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .spotlight-content { text-align: center !important; }
    .price-wrap { justify-content: center; }
}

/* Checkout Styling */
.payment-methods { grid-column: span 2; display: flex; gap: 20px; }
.payment-option { flex: 1; cursor: pointer; }
.payment-option input { display: none; }
.payment-card { 
    background: var(--bg-main); border: 1px solid var(--border); 
    padding: 30px; border-radius: 30px; text-align: center; transition: 0.4s;
    display: flex; flex-direction: column; gap: 15px; align-items: center; justify-content: center;
}
.payment-option input:checked + .payment-card { border-color: var(--primary); background: rgba(0, 132, 255, 0.05); transform: translateY(-5px); }
.payment-card i { font-size: 2.5rem; color: var(--primary); }
.payment-card span { font-size: 1rem; font-weight: 800; line-height: 1.4; color: var(--text-main); }

@media (max-width: 1024px) {
    .checkout-container { grid-template-columns: 1fr; gap: 40px; }
}
