:root {
    /* Brand Colors (Updated to Deep Slates/Blacks) */
    --bg-base: #06080a; 
    --bg-surface: #0e1218; 
    --bg-surface-hover: #141a23;
    --border-color: #1a222c;
    
    /* Accents (Updated to Neon Teal/Mint) */
    --accent-cyan: #5ce1e6;
    --accent-magenta: #5ce1e6; /* Unified theme */
    --silver: #94a3b8;
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #64748b;
    
    /* Metrics */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

/* STRICT VIEWPORT BOUNDS TO PREVENT WOBBLE */
html, body {
    max-width: 100vw !important;
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- UI Components --- */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}
/* Updated to INTENSE Hollow Glow Buttons based on mockup theme */
.btn-primary, .btn-accent {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(92, 225, 230, 0.4), inset 0 0 10px rgba(92, 225, 230, 0.2);
    text-shadow: 0 0 8px rgba(92, 225, 230, 0.5);
}
.btn-primary:hover, .btn-accent:hover {
    background: rgba(92, 225, 230, 0.1);
    box-shadow: 0 0 25px rgba(92, 225, 230, 0.6), inset 0 0 15px rgba(92, 225, 230, 0.4);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--silver);
}
.btn-secondary:hover { background: rgba(148, 163, 184, 0.2); }

/* --- Header & Nav (Two-Tier Mega Menu Style) --- */
.main-header {
    background-color: #06080a;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    gap: 30px;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img { max-height: 55px; width: auto; object-fit: contain; }

/* Enhanced Search Bar to match mockup */
.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: #0e1218;
    border: 1px solid var(--accent-cyan);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(92, 225, 230, 0.15), inset 0 0 5px rgba(92, 225, 230, 0.05);
}
.search-bar:focus-within {
    box-shadow: 0 0 20px rgba(92, 225, 230, 0.3), inset 0 0 10px rgba(92, 225, 230, 0.1);
}
/* IMPORTANT: Override the global input fixes so the search bar doesn't have an inner box */
.search-bar input, .search-bar input[type="text"] {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: white !important;
    font-family: inherit;
    outline: none !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}
.search-bar button {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--silver);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}
.search-bar button:hover { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }

.header-actions {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
}

.header-bottom {
    background-color: #0e1218;
    padding: 0 2%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}
.header-bottom ul.main-nav-ul {
    list-style: none;
    display: flex;
    gap: 15px 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.header-bottom ul.main-nav-ul > li {
    position: static;
}
.header-bottom ul.main-nav-ul > li > a {
    display: block;
    padding: 15px 0;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.3s;
    text-transform: capitalize;
    border-bottom: 3px solid transparent;
}
.header-bottom ul.main-nav-ul > li:hover > a { 
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(92, 225, 230, 0.5);
}

.dropdown { position: static; }
.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #0e1218;
    border-top: 1px solid var(--border-color);
    padding: 30px 5%;
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}
.header-bottom ul.main-nav-ul > li:hover .mega-menu { display: block; }

.mega-menu-grid {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.mega-menu-column {
    min-width: 200px;
}
.mega-menu-heading {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(92, 225, 230, 0.3);
}
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-menu-list li {
    margin-bottom: 12px;
}
.mega-menu-list a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
}
.mega-menu-list a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px rgba(92, 225, 230, 0.4); }

/* --- Component Globals --- */
.preview-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
    background: rgba(6, 8, 10, 0.8);
    backdrop-filter: blur(5px);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(92, 225, 230, 0.4), inset 0 0 10px rgba(92, 225, 230, 0.2);
    text-shadow: 0 0 8px rgba(92, 225, 230, 0.5);
    transition: var(--transition);
}
.preview-toggle:hover {
    background: rgba(92, 225, 230, 0.1);
    box-shadow: 0 0 25px rgba(92, 225, 230, 0.6), inset 0 0 15px rgba(92, 225, 230, 0.4);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    padding: 40px 5%;
    text-align: center;
    /* Completely removed the full overlay so the artwork is 100% untouched */
    background: url('img/hero-pokemon.png') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align content to the bottom */
    min-height: 550px;     /* Ensure enough vertical space */
}
/* New bottom fade to make text readable without blocking characters */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%; /* Only darkens the bottom 60% of the image */
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(6, 8, 10, 0.8) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content { 
    position: relative; 
    z-index: 3; 
    /* Completely removed glassmorphism box so background shines fully */
    background: transparent; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 20px 0;
    border: none;
    box-shadow: none;
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px; /* Space from the bottom edge */
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    /* Added strong, thick dark drop shadows behind the text so it pops out */
    text-shadow: 0 4px 10px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8), 0 0 10px rgba(92, 225, 230, 0.4);
}
.hero p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #f8fafc; 
    max-width: 650px;
    margin: 0 auto 30px auto;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

.container { padding: 40px 5%; flex: 1; }
.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 15px;
    text-shadow: 0 0 10px rgba(92, 225, 230, 0.2);
}
.category-desc-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Categories - Desktop Default Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #080b0f; /* Updated Studio Backdrop */
    display: block;
    text-decoration: none;
    transition: var(--transition);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 20px;       
    transition: transform 0.5s ease;
}
.category-card:hover { border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(92, 225, 230, 0.2); }
.category-card:hover img { transform: scale(1.05); }
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.category-card h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Products Grid & Wishlist */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(92, 225, 230, 0.3);
    transform: translateY(-5px);
}

/* WISHLIST BUTTON STYLES */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(6, 8, 10, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 1;
}
.wishlist-btn:hover {
    background: rgba(92, 225, 230, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: scale(1.1);
}
.wishlist-btn.active, .wishlist-btn-large.active {
    color: #ff4444 !important;
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: contain; 
    padding: 20px; 
    background-color: #080b0f; 
    border-bottom: 1px solid var(--border-color);
}
/* Product Card Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.badge-sold-out { background-color: #ef4444; color: white; }
.badge-low-stock { background-color: #f59e0b; color: #111; }

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-decoration: none;
    display: inline-block;
}
.product-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    text-decoration: none;
}
.product-title:hover { text-decoration: underline; color: var(--accent-cyan); text-shadow: 0 0 10px rgba(92, 225, 230, 0.5); }
.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    margin-top: auto;
    text-shadow: 0 0 8px rgba(92, 225, 230, 0.3);
}

/* Product Detail Page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 40px;
}
.product-detail-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    padding: 40px;
    background-color: #080b0f;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.product-detail-info h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(92, 225, 230, 0.2);
}
.product-detail-price {
    font-size: 2rem;
    color: var(--accent-cyan);
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(92, 225, 230, 0.4);
}
.product-detail-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    white-space: pre-line;
}

/* Blog & News Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(92, 225, 230, 0.2); }
/* Updated Blog Image */
.blog-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: contain; 
    padding: 20px; 
    background-color: #080b0f; 
    border-bottom: 1px solid var(--border-color); 
}
.blog-card-content { padding: 20px; }
.blog-date { font-size: 0.8rem; color: var(--accent-cyan); margin-bottom: 10px; }
.blog-title { font-size: 1.3rem; color: white; margin-bottom: 10px; }
.blog-excerpt { color: var(--text-muted); font-size: 0.95rem; }

.blog-post-layout {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.blog-post-layout img { width: 100%; border-radius: var(--border-radius); margin-bottom: 30px; }
.blog-post-layout h1 { color: white; font-size: 2.5rem; margin-bottom: 10px; }
.blog-post-layout .date { color: var(--accent-cyan); margin-bottom: 30px; font-weight: bold; }
.blog-post-layout .content { color: var(--text-main); line-height: 1.8; font-size: 1.1rem; white-space: pre-line; }

/* --- Cart Slide-out Panel --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 10, 0.8);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-base);
    border-left: 1px solid var(--accent-cyan);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(92, 225, 230, 0.15);
}
.cart-sidebar.open { right: 0; }
.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
}
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border-color); background: var(--bg-surface); }
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.02);
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
/* Updated Cart Thumbnail Image */
.cart-item img { 
    width: 70px; 
    height: 70px; 
    object-fit: contain; 
    padding: 5px; 
    background-color: #080b0f; 
    border-radius: 4px; 
}
.cart-item-details { flex: 1; }
.cart-item-title { font-weight: bold; color: white; margin-bottom: 5px; font-size: 0.95rem; }
.cart-item-price { color: var(--accent-cyan); font-weight: bold; text-shadow: 0 0 5px rgba(92, 225, 230, 0.3); }

/* General AI Panel */
.ai-panel {
    background: linear-gradient(135deg, var(--bg-surface) 0%, #0e1218 100%);
    border: 1px solid var(--accent-cyan);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(92, 225, 230, 0.05);
}

.msg-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-surface);
    border-left: 4px solid var(--accent-cyan);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(92, 225, 230, 0.2);
    z-index: 9999;
    display: none;
    font-weight: bold;
    color: var(--accent-cyan);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 40px 5% 20px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 { color: var(--accent-cyan); margin-bottom: 15px; font-size: 1.1rem; text-shadow: 0 0 5px rgba(92, 225, 230, 0.3); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px rgba(92, 225, 230, 0.4); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================================
   FORM INPUT FIXES (Prevents iOS Zoom & Visual Glitches)
   ======================================================== */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], 
textarea, select, .form-control, .seo-input {
    width: 100% !important;
    padding: 12px 15px !important;
    background: #0e1218 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 16px !important; /* STRICT 16px prevents iPhone auto-zoom */
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none !important; /* Removes iOS default weird styling */
    margin-bottom: 15px;
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 10px rgba(92, 225, 230, 0.2) !important;
}
/* Fix file upload inputs specifically */
input[type="file"] {
    padding: 8px !important;
    background: #080b0f !important;
    color: var(--text-muted) !important;
    font-size: 14px !important;
}

/* ========================================================
   MOBILE RESPONSIVE STYLES (ALL STOREFRONT FIXES)
   ======================================================== */
.mobile-menu-btn { display: none; }

@media (max-width: 900px) {
    /* Main Header Resets */
    .mobile-menu-btn { 
        display: block; 
        background: transparent; 
        border: none; 
        color: white; 
        font-size: 2rem; 
        cursor: pointer; 
        padding-right: 15px; 
    }
    
    /* Ensure the Login button ALWAYS shows up by overriding hide-mobile just for buttons */
    .hide-mobile:not(.btn) { display: none !important; }
    .header-actions .btn.hide-mobile { display: inline-block !important; }
    
    /* Fixed Mobile Logo Size - Ignores Admin Settings */
    .main-header .logo-img {
        height: 40px !important;       /* Hard fixed mobile height */
        min-height: 40px !important;   /* Prevents collapsing */
        max-height: 40px !important;   
        max-width: 40vw !important;    /* Prevents overlapping buttons */
        width: auto !important;
        object-fit: contain !important;
    }
    
    /* Header Grid Restructuring */
    .main-header .header-top {
        padding: 10px 15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    /* Keep hamburger and logo together */
    .main-header .mobile-logo-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Search bar jumps to full width bottom row */
    .main-header .search-bar {
        order: 3;
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-top: 5px !important;
    }
    
    /* Ensure actions stay on right and fit perfectly */
    .main-header .header-actions {
        margin-left: auto;
        gap: 5px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .main-header .header-actions .btn {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }
    
    /* Navigation Menu Dropdown overrides */
    .header-bottom { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: #06080a; 
        z-index: 1000; 
        padding: 0; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
        max-height: 75vh; 
        overflow-y: auto; 
        border-top: 1px solid var(--border-color);
        border-bottom: 2px solid var(--accent-cyan);
    }
    .header-bottom.open { display: block; }
    
    .main-nav-ul { flex-direction: column; gap: 0; align-items: stretch; }
    .main-nav-ul > li { width: 100%; border-bottom: 1px solid var(--border-color); position: relative; }
    .main-nav-ul > li > a { 
        padding: 15px 5%; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        font-size: 1rem;
        border-bottom: none;
    }
    .main-nav-ul > li.dropdown > a::after { content: '▾'; font-size: 1rem; color: var(--accent-cyan); }
    
    .header-bottom ul.main-nav-ul > li:hover .mega-menu { display: none; }
    
    .mega-menu { 
        position: static; 
        display: none; 
        padding: 10px 5% 20px 8%; 
        background: #080b0f; 
        box-shadow: none; 
        border-top: none; 
    }
    .mega-menu.show { display: block !important; }
    .mega-menu-grid { flex-direction: column; gap: 20px; }
    .mega-menu-column { min-width: auto; }

    .product-detail-layout { grid-template-columns: 1fr; padding: 20px; gap: 30px; }
    
    .product-detail-image { 
        height: auto !important; 
        max-height: 400px !important; 
        padding: 20px !important;
    }
    
    .hero { min-height: 450px; }
    .hero-content { padding: 10px !important; margin-bottom: 0; }
    .hero h1 { font-size: 2.2rem; }

    /* ========================================================
       SWIPEABLE HORIZONTAL GRIDS FOR MOBILE HOMEPAGE
       ======================================================== */
    .category-grid,
    .product-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 20px !important; /* Space for shadow/scroll */
        margin-left: -5vw !important;     /* Bleed to edge of screen */
        margin-right: -5vw !important;
        padding-left: 5vw !important;     /* Keep initial padding */
        padding-right: 5vw !important;
        scrollbar-width: none !important; /* Hide scrollbar Firefox */
        gap: 15px !important;
        grid-template-columns: none !important; /* Override desktop grid */
    }
    
    .category-grid::-webkit-scrollbar,
    .product-grid::-webkit-scrollbar {
        display: none !important;         /* Hide scrollbar Chrome/Safari */
    }
    
    .category-card {
        flex: 0 0 75% !important;         /* Show 75% of one card so the next peeks in */
        min-width: 250px !important;
        max-width: 280px !important;
        scroll-snap-align: center !important;
        height: 180px !important;
        display: block !important;
    }

    .product-card {
        flex: 0 0 80% !important;         /* Show 80% of one card so the next peeks in */
        min-width: 260px !important;
        max-width: 300px !important;
        scroll-snap-align: center !important;
        height: auto !important;          /* Auto height allows image to fit properly */
        display: flex !important;
        flex-direction: column !important; /* Ensure content stacks vertically inside card */
    }
    
    /* ENFORCE IMAGE SIZING ON MOBILE BROWSER */
    .category-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 15px !important;
    }

    .product-image {
        height: 220px !important;         /* Adjust image height for horizontal swipe cards */
        width: 100% !important;
        object-fit: contain !important;
        padding: 15px !important;
        background-color: #080b0f !important;
    }
    
    .blog-card img,
    .cart-item img {
        object-fit: contain !important;
    }
}