@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* Premium Dark Mode Colors */
    --bg-dark: #0f111a;
    --bg-panel: #1a1d29;
    --text-main: #f0f4f8;
    --text-muted: #8b949e;
    
    /* Neon Technology Accents */
    --neon-blue: #00f2fe;
    --neon-purple: #4facfe;
    --neon-gradient: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    --accent-glow: 0 0 15px rgba(0, 242, 254, 0.4);
    
    /* Structural */
    --glass-bg: rgba(26, 29, 41, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.15), transparent 25%);
    background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
a { color: var(--neon-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; text-shadow: var(--accent-glow); }

/* Custom Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--neon-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
    color: #fff;
}

/* --- PREMIUM HEADER STYLES --- */
header.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 20px 20px;
    background: rgba(15, 17, 26, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

/* Mobile Toggle & Left Actions (Hidden on Desktop) */
.mobile-left-actions {
    display: none;
    align-items: center;
    gap: 15px;
}
.mobile-menu-toggle, .mobile-tracking-icon {
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-toggle:hover, .mobile-tracking-icon:hover {
    color: var(--neon-blue);
    transform: scale(1.1);
}

.logo-area img {
    height: 60px; /* Made prominent */
    filter: drop-shadow(0 0 10px rgba(0,242,254,0.4));
    transition: var(--transition);
}
.logo-area {
    display: flex;
    align-items: center;
}
.logo-area img:hover {
    filter: drop-shadow(0 0 15px rgba(0,242,254,0.8));
}

/* Search Bar (Premium) */
.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    position: relative;
    align-items: center;
}
.search-bar input {
    width: 100%;
    padding: 14px 50px 14px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.search-bar input:focus {
    border-color: var(--neon-blue);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}
.search-btn {
    position: absolute;
    right: 5px;
    background: var(--neon-gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,242,254,0.3);
}
.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,242,254,0.6);
}

/* Navigation Links */
.header-nav nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}
.header-nav nav ul li a {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav nav ul li a i {
    color: var(--neon-blue);
}
.header-nav nav ul li a:hover {
    color: var(--neon-blue);
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}
.user-action, .cart-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    transition: var(--transition);
}
.user-action i, .cart-icon-wrapper i {
    font-size: 1.4rem;
}
.action-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}
.user-action:hover, .cart-action:hover {
    color: var(--neon-blue);
}
.user-action:hover .action-text, .cart-action:hover .action-text {
    color: #fff;
}
.cart-icon-wrapper {
    position: relative;
}
.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: linear-gradient(135deg, #ff3860 0%, #ff0844 100%);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255,56,96,0.5);
    border: 2px solid var(--bg-panel);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: -100%;
    width: 100vw; height: 100vh;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.mobile-nav-overlay.active {
    left: 0;
}
.mobile-nav-content {
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-panel);
    border-right: 1px solid var(--glass-border);
    padding: 20px;
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}
.close-menu {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.close-menu:hover { color: #ff3860; }
.mobile-nav-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-nav-content ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.mobile-nav-content ul li a i {
    color: var(--neon-blue);
    width: 25px;
    text-align: center;
}
.badge-success {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,230,118,0.3);
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.product-card {
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(0, 242, 254, 0.3); }
.product-image { height: 200px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.product-image img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-title { font-size: 1.1rem; color: #fff; margin-bottom: 10px; height: 50px; overflow: hidden; }
.product-price { font-size: 1.4rem; font-weight: 900; color: var(--neon-blue); margin-bottom: 15px; }

/* Forms & Tables (Cart/Checkout) */
.table-wrapper { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.table-wrapper th, .table-wrapper td { padding: 15px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); color: #fff; }

/* Footer */
footer {
    margin-top: 80px;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 17, 26, 0.9);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-column h3 { font-size: 1.2rem; margin-bottom: 20px; position:relative; display:inline-block; }
.footer-column h3::after { content:''; position:absolute; left:0; bottom:-5px; width:40px; height:2px; background:var(--neon-gradient); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: var(--text-muted); }
.footer-column ul li a:hover { color: var(--neon-blue); }
.payment-logos img { height: 30px; margin-right: 10px; opacity: 0.7; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }
.simo-signature { font-weight: bold; background: var(--neon-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Animations */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   MOBILE RESPONSIVE - TABLET (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    /* Exact Header Mobile Grid */
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 15px 10px;
        padding: 12px 15px;
        align-items: center;
    }
    .mobile-left-actions {
        display: flex; /* Show left actions */
        grid-column: 1;
        grid-row: 1;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-tracking-icon {
        display: block;
    }
    .logo-area {
        grid-column: 2;
        grid-row: 1;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    .logo-area img {
        height: 48px; /* Prominent size for mobile */
    }
    .action-icons {
        grid-column: 3;
        grid-row: 1;
        gap: 15px;
        justify-content: flex-end;
    }
    .search-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    .search-bar input {
        padding: 12px 45px 12px 20px;
    }
    .search-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .header-nav {
        display: none;
    }
    .action-text {
        display: none; /* Hide text on mobile for clean look */
    }
    .user-action i, .cart-icon-wrapper i {
        font-size: 1.3rem;
    }

    /* Container */
    .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    /* Banner Slider */
    .banner-slider-container {
        height: 180px !important;
        margin-bottom: 20px !important;
    }
    .banner-slide {
        padding: 0 20px !important;
    }
    .banner-slide h2 {
        font-size: 1.3rem !important;
    }
    .banner-slide p {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }
    .banner-slide img {
        max-height: 120px !important;
    }

    /* Hero Section */
    .glass-panel[style*="display: flex"][style*="align-items: center"] {
        flex-direction: column !important;
        padding: 25px 20px !important;
        text-align: center;
    }
    .glass-panel[style*="display: flex"][style*="align-items: center"] h1 {
        font-size: 1.8rem !important;
    }
    .glass-panel[style*="display: flex"][style*="align-items: center"] p {
        font-size: 1rem !important;
    }
    .glass-panel[style*="display: flex"][style*="align-items: center"] > div:last-child {
        text-align: center !important;
        margin-top: 15px;
    }
    .glass-panel[style*="display: flex"][style*="align-items: center"] > div:last-child img {
        max-width: 200px !important;
    }

    /* Categories */
    div[style*="display: flex"][style*="gap: 20px"][style*="overflow-x: auto"] {
        gap: 12px !important;
    }
    div[style*="display: flex"][style*="gap: 20px"][style*="overflow-x: auto"] > a {
        min-width: 100px !important;
    }
    div[style*="display: flex"][style*="gap: 20px"][style*="overflow-x: auto"] > a div[style*="width: 90px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
    div[style*="display: flex"][style*="gap: 20px"][style*="overflow-x: auto"] > a strong {
        font-size: 0.85rem !important;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .product-card {
        padding: 12px;
    }
    .product-image {
        height: 140px;
    }
    .product-title {
        font-size: 0.9rem;
        height: 40px;
    }
    .product-price {
        font-size: 1.1rem;
    }
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Tables */
    .table-wrapper, .table-wrapper thead, .table-wrapper tbody, .table-wrapper tr {
        display: block;
        width: 100%;
    }
    .table-wrapper {
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Checkout & General Layouts */
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    .payment-methods {
        flex-direction: column !important;
    }

    /* Best Sellers / Section Headings */
    h2[style*="font-size: 1.8rem"] {
        font-size: 1.3rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    footer {
        margin-top: 40px;
        padding: 30px 15px 15px;
    }
    .footer-column h3 {
        font-size: 1rem;
    }
}

/* =============================================
   MOBILE RESPONSIVE - PHONE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    .header-container {
        padding: 10px;
    }
    .logo-area img {
        height: 28px;
    }
    .search-bar input {
        padding: 10px 40px 10px 15px;
        font-size: 0.85rem;
    }
    .search-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Banner */
    .banner-slider-container {
        height: 150px !important;
        border-radius: 10px !important;
    }
    .banner-slide h2 {
        font-size: 1rem !important;
    }
    .banner-slide p {
        font-size: 0.75rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .banner-slide img {
        max-height: 90px !important;
    }
    .banner-slide button {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }

    /* Hero */
    .glass-panel[style*="display: flex"][style*="align-items: center"] {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
    }
    .glass-panel[style*="display: flex"][style*="align-items: center"] h1 {
        font-size: 1.4rem !important;
    }

    /* Product Grid - 2 columns tight */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .product-card {
        padding: 8px;
        border-radius: 10px;
    }
    .product-image {
        height: 110px;
        margin-bottom: 10px;
    }
    .product-title {
        font-size: 0.8rem;
        height: 35px;
    }
    .product-price {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .btn-primary {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Badges on product cards */
    .product-card span[style*="position: absolute"] {
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .copyright {
        font-size: 0.75rem;
    }

    /* Marquee ticker */
    marquee {
        font-size: 0.75rem !important;
    }
}
