:root {
    --bg-dark: #050505;
    --surface-dark: #121212;
    --surface-light: #1c1c1e;
    --accent-blue: #007aff;
    --accent-neon: #00d2ff;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, var(--accent-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.nav-links a i {
    display: none;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Search Bar Overlay */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-dark);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 5%;
    display: none;
    z-index: 998;
    animation: slideDown 0.3s ease;
}

.search-bar.active {
    display: block;
}

.search-bar form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #006ae6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

/* Product Card */
.product-card {
    position: relative; /* Fix for absolute badges */
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #1a1a1a;
    border-radius: 15px;
    margin-bottom: 1rem;
}

/* Mobile Menu Toggle (Hidden by default) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -340px;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.9) !important;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 2.5rem 2rem !important;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999 !important;
        gap: 0.5rem !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        right: 0 !important;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links li a {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0.9rem 1.2rem;
        border-radius: 12px;
        color: var(--text-secondary) !important;
        font-size: 1.05rem !important;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    .nav-links li a i {
        display: inline-block !important;
        font-size: 1.15rem;
    }
    .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff !important;
        padding-left: 1.5rem;
    }
    .mobile-menu-header {
        display: flex !important;
    }
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content div {
        justify-content: center;
    }
    
    /* Global Section Spacing */
    section {
        padding: 4rem 5% !important;
    }

    /* Page Container Padding (for fixed nav) */
    [style*="padding: 10rem"], [style*="padding: 5rem"] {
        padding-top: 120px !important;
        padding-bottom: 4rem !important;
    }

    /* Grid Adjustments */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Product Grid - 2 Columns on Mobile */
    [style*="display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr))"],
    [style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Product Page Sidebar Filter Fix */
    #filterToggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .product-page-layout aside {
        display: none;
    }

    .product-page-layout aside.active {
        display: block;
        margin-bottom: 2rem;
    }

    /* Product Card adjustments for 2-column view */
    .product-card {
        padding: 0.8rem;
    }
    .product-card h3 {
        font-size: 0.9rem !important;
    }
    .product-card span {
        font-size: 1rem !important;
    }

    /* Header adjustments */
    [style*="justify-content: space-between; align-items: flex-end"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    /* Product Detail Adjustments */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
    }

    /* Repair Page Form */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Cart Page Grid Fix */
    [style*="grid-template-columns: 1fr 350px"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    [style*="padding: 2rem; display: flex; flex-direction: column; gap: 2rem"] {
        padding: 1rem !important;
    }

    [style*="display: flex; gap: 2rem; align-items: center"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    [style*="font-weight: 800; font-size: 1.2rem; min-width: 100px; text-align: right"] {
        text-align: left !important;
    }

    .hero-content div.hero-btns {
        justify-content: center;
    }

    /* Admin Mobile Responsiveness */
    aside {
        position: fixed !important;
        left: -100% !important;
        width: 280px !important;
        transition: 0.3s ease;
        z-index: 2000;
    }
    aside.active {
        left: 0 !important;
    }
    .admin-content {
        padding: 1.5rem !important;
    }
    #adminMenuToggle {
        display: block !important;
    }
    
    /* Table Responsive for Admin */
    .glass {
        overflow-x: auto !important;
    }
    table {
        min-width: 600px;
    }
    
    /* Grid overrides for admin forms */
    [style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Blog Styles */
.blog-card {
    transition: var(--transition-smooth);
    border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.blog-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-blue);
    box-shadow: 0 30px 60px rgba(0, 122, 255, 0.15);
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-card:hover h3 {
    color: var(--accent-blue);
}

.blog-post-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-post-content p {
    margin-bottom: 2rem;
}

.blog-post-content ul {
    margin-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.blog-post-content li {
    margin-bottom: 1rem;
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
}

.blog-post-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-5px);
}

.tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease backwards;
}

