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

:root {
    /* Color Palette */
    --bg-dark: #050a15;
    --bg-panel: rgba(11, 20, 38, 0.7);
    --bg-card: rgba(17, 34, 64, 0.6);
    --primary-blue: #007bff;
    --primary-blue-hover: #0056b3;
    --neon-green: #39ff14;
    --neon-green-glow: rgba(57, 255, 20, 0.4);
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --glass-blur: blur(10px);
    --shadow-neon: 0 0 10px var(--neon-green-glow);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 123, 255, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(57, 255, 20, 0.05), transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-green { color: var(--neon-green); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-blue), #00d2ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-outline-green {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    box-shadow: var(--shadow-neon);
}

.btn-outline-green:hover {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 5%;
    background: rgba(5, 10, 21, 0.9);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--neon-green);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-green);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--neon-green);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--neon-green);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 123, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features Bar */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 30px 5%;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--neon-green);
}

.feature-item div h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-item div p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Product Grid */
.products-section {
    padding: 0 5% 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card - Glassmorphism */
.product-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(57, 255, 20, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-category {
    font-size: 0.8rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-cart {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-cart:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Footer */
footer {
    background: rgba(5, 10, 21, 0.95);
    padding: 60px 5% 20px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--neon-green);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.flex-row { display: flex; align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-end { align-items: flex-end; }
.w-full { width: 100%; }
.max-w-300 { max-width: 300px; }
.mb-0 { margin-bottom: 0; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.p-0-5-60 { padding: 0 5% 60px; }
.flex-1 { flex: 1; min-width: 300px; }
.link-bold-green { color: var(--neon-green); text-decoration: none; font-weight: bold; }

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(11, 20, 38, 0.9), rgba(0, 123, 255, 0.2));
    border: 1px solid var(--neon-green);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: var(--shadow-neon);
}
.promo-title { font-size: 2.5rem; margin-bottom: 15px; }
.promo-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; }
.promo-input {
    padding: 12px 20px; border-radius: 8px; border: 1px solid var(--border-light); 
    background: rgba(0,0,0,0.5); color: #fff; width: 100%; max-width: 300px; outline: none;
}
.promo-icon { font-size: 6rem; filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.5)); }

/* Hide mobile search bar on desktop */
.mobile-search-item {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image img {
        max-width: 90%;
        margin-left: 0 !important;
        margin-bottom: 20px;
    }

    .features-bar {
        flex-direction: column;
        gap: 20px;
        padding: 25px 5%;
        margin-bottom: 40px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 17, 32, 0.98);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 10px 0 25px;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .mobile-search-item {
        display: block;
        margin-bottom: 15px;
    }

    .desktop-search-form {
        display: none !important;
    }
    
    .navbar {
        padding: 10px 5%;
    }
    
    .navbar .logo img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    /* Responsive Shop Layout */
    .shop-layout {
        flex-direction: column;
        padding: 20px 3% !important;
    }
    
    /* Bottom Sheet Filters */
    .filter-sidebar {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        z-index: 2000;
        background: #050a15;
        border-radius: 24px 24px 0 0;
        transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 0;
        overflow: hidden;
    }
    
    .filter-sidebar.active {
        bottom: 0;
    }
    
    .filter-sidebar-container {
        position: relative !important;
        top: 0 !important;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0 !important;
        border: 1px solid var(--border-light) !important;
        border-bottom: none !important;
        padding: 25px 20px 40px !important;
        background: #0a1120 !important;
    }
    
    .mobile-filter-header {
        display: flex !important;
    }
    
    .mobile-filter-trigger {
        display: flex !important;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1999;
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    /* Responsive Cart Table-to-Card */
    .cart-table, .cart-table thead, .cart-table tbody, .cart-table th, .cart-table td, .cart-table tr {
        display: block;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: 16px;
        padding: 15px;
        margin-bottom: 20px;
        position: relative;
        box-shadow: var(--shadow-card);
    }
    
    .cart-table td {
        border: none !important;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .cart-table td.cart-product-cell {
        display: block;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .cart-table td.cart-product-cell .product-info {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .cart-table td.cart-label-cell::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--text-muted);
        font-size: 0.9rem;
    }
    
    .cart-table td.cart-action-cell {
        border-bottom: none !important;
        padding-top: 15px;
        justify-content: center;
    }
    
    .cart-table td.cart-action-cell button {
        width: 100%;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    /* General Container Adjustments */
    div[style*="padding: 40px 5%"] {
        padding: 20px 4% !important;
    }
    
    .promo-banner {
        padding: 25px;
        text-align: center;
        justify-content: center;
    }
    
    .promo-title {
        font-size: 1.8rem;
    }
    
    .promo-icon {
        font-size: 4rem;
        margin-top: 10px;
    }
    
    .promo-input {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .product-image {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .product-title {
        font-size: 0.95rem;
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .btn-cart {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
}
