/* --- 1. Global Reset & Fonts --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* --- 2. Navigation Bar --- */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span { color: #ffcc00; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links a:hover { color: #ffcc00; }

/* --- 3. Hero Section (Home Page) --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('boliviainteligente.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #ccc;
}

.btn-primary {
    background: #ffcc00;
    color: #000;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 18px;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- 4. Product Page Layout --- */
.product-page {
    padding: 120px 8% 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-container {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.product-image-box {
    flex: 1;
    min-width: 350px;
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.product-image-box img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.product-details-box {
    flex: 1;
    min-width: 350px;
}

.category-tag {
    color: #ffcc00;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-details-box h1 {
    font-size: 48px;
    margin: 15px 0;
}

.product-price {
    font-size: 24px;
    color: #888;
    margin-bottom: 25px;
}

.short-desc {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- 5. Specs Grid & Table --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.spec-item {
    background: #161616;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #222;
    text-align: center;
}

.spec-item strong {
    display: block;
    color: #ffcc00;
    font-size: 12px;
    margin-bottom: 5px;
}

.tech-specs {
    margin-top: 80px;
}

.tech-specs h2 {
    margin-bottom: 30px;
    border-left: 4px solid #ffcc00;
    padding-left: 15px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 20px;
    border-bottom: 1px solid #222;
}

.specs-table td:first-child {
    color: #ffcc00;
    font-weight: 600;
    width: 30%;
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar { padding: 20px 5%; }
    
    .nav-links { display: none; } /* Mobile menu simplified */

    .hero-content h1 { font-size: 36px; }
    
    .product-container {
        flex-direction: column;
        text-align: center;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .product-details-box h1 { font-size: 32px; }
}
/* Slider Customization */
.product-slider {
    width: 100%;
    max-width: 500px;
}

.product-slider img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Slick Dots Styling (TappAV Theme) */
.slick-dots li button:before {
    color: #ffcc00 !important;
    font-size: 12px;
}

.slick-next:before, .slick-prev:before {
    color: #ffcc00 !important; /* Arrows ka color yellow karne ke liye */
}
/* Products Grid Styling */
.products-section {
    padding: 80px 8%;
    background: #000;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    color: #fff;
}

.section-title span { color: #ffcc00; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #0a0a0a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #1a1a1a;
    transition: 0.4s;
}

.product-card:hover {
    border-color: #ffcc00;
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.product-card p {
    color: #888;
    margin-bottom: 25px;
    font-size: 14px;
}

.btn-small {
    padding: 10px 25px;
    border: 1px solid #ffcc00;
    color: #ffcc00;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-small:hover {
    background: #ffcc00;
    color: #000;
}
/* --- Shopify-esque Auth Pages Styling --- */
.auth-body {
    background: url('boliviainteligente.jpg') no-repeat center center fixed; /* Apni high-res dark image use karo */
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.background-overlay { /* Background ko thoda aur dark aur premium dikhane ke liye */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Thoda dark overlay */
    backdrop-filter: blur(5px); /* Soft blur effect */
    z-index: 1;
}

.auth-container {
    position: relative;
    z-index: 2; /* Overlay ke upar aayega */
    width: 100%;
    max-width: 420px; /* Thoda wider box */
    padding: 20px;
    animation: fadeIn 0.8s ease-out; /* Smooth entry animation */
}

.auth-box {
    background: rgba(17, 17, 17, 0.9); /* Thoda transparent dark background */
    padding: 45px 35px;
    border-radius: 12px;
    border: 1px solid rgba(51, 51, 51, 0.7);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(8px); /* Box ko bhi thoda blur effect */
}

.logo-auth {
    font-size: 32px;
    font-weight: 700; /* Thoda bold logo */
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 35px;
    border-bottom: 1px solid #444;
    position: relative;
}

.auth-tabs button {
    flex: 1;
    background: none;
    border: none;
    color: #999;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.auth-tabs button.active {
    color: #ffcc00;
}

.auth-tabs button.active::after { /* Active tab ke niche yellow line */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px; /* Border-bottom ke upar */
    height: 2px;
    background: #ffcc00;
    transition: all 0.3s ease;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form-content input {
    width: 100%;
    padding: 14px 18px;
    background: #2a2a2a;
    border: 1px solid #4a4a4a;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-form-content input:focus {
    border-color: #ffcc00;
    background: #3a3a3a;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
    outline: none;
}

.btn-primary.auth-btn { /* Login/Signup button */
    background: #ffcc00;
    color: #111;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary.auth-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.forgot-password-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}

.forgot-password-link a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #fff;
}

.auth-terms {
    text-align: center;
    margin-top: 35px;
    font-size: 12px;
    color: #666;
}

.auth-terms a {
    color: #ffcc00;
    text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
    }
    .logo-auth {
        font-size: 28px;
    }
    .auth-tabs button {
        font-size: 14px;
    }
    .auth-form-content input {
        padding: 12px 15px;
        font-size: 14px;
    }
    .btn-primary.auth-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}
/* --- Additional Mobile Fixes for TappAV --- */
@media (max-width: 768px) {
    /* Footer responsiveness fix */
    footer div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    footer div[style*="border-left"] {
        border-left: none !important;
        border-bottom: 2px solid #ffcc00;
        display: inline-block;
        padding-left: 0 !important;
        padding-bottom: 5px;
    }

    footer div[style*="display: flex"] {
        justify-content: center;
    }

    /* Product Page Spacing Fix */
    .product-page {
        padding: 80px 5% 30px;
    }

    .product-image-box {
        min-width: 100%;
        padding: 20px;
    }

    .product-details-box {
        min-width: 100%;
        margin-top: 20px;
    }

    /* Specs Table Horizontal Scroll Fix */
    .specs-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .specs-table td {
        padding: 12px;
        font-size: 13px;
    }

    /* Tech Specs Grid Fix */
    .tech-specs ul {
        grid-template-columns: 1fr !important;
    }

    /* Specs Grid (The 3 small boxes) */
    .specs-grid {
        grid-template-columns: 1fr !important; /* Stack boxes on top of each other */
    }
}
/* --- CRITICAL MOBILE RESPONSIVE UPDATES --- */
@media (max-width: 768px) {
    /* 1. Navbar Fix: Content ko wrap karega taaki screen se bahar na jaye */
    .navbar {
        padding: 15px 5%;
        flex-direction: column; /* Logo upar, links niche */
        gap: 15px;
        position: relative; /* Absolute se hataya taaki hero section overlap na kare */
        background: #000;
    }

    .nav-links {
        display: flex; /* Links ko wapas dikhaya */
        flex-wrap: wrap; /* Agar zyada links hain toh dusri line mein aa jayenge */
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 11px; /* Font chota kiya mobile ke liye */
    }

    .logo {
        font-size: 22px;
    }

    /* 2. Hero Section Fix: Text ko screen mein fit karega */
    .hero {
        height: auto;
        padding: 100px 20px;
    }

    .hero-content h1 {
        font-size: 30px; /* Text size chota kiya */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* 3. Products Grid: Ek row mein ek hi product dikhega */
    .products-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
    }

    .product-card {
        padding: 20px;
    }

    /* 4. Horizontal Scroll Rokne ke liye */
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    /* 5. Product Image Box Fix */
    .product-image-box {
        min-width: unset !important;
        width: 100%;
        padding: 15px;
    }

    /* 6. Specs Grid Fix */
    .specs-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    /* 7. Footer Grid Fix */
    footer .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* Extra small devices (iPhone SE etc) */
@media (max-width: 400px) {
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 10px;
    }
}