
/* Global Layout Overflow Prevention */
html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
}

.hero-premium {
    overflow: hidden !important;
}

.mobile-overlay-menu {
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s, transform 0.3s ease;
}

.mobile-overlay-menu.active {
    visibility: visible;
    pointer-events: auto;
}
/* Ultra Premium 2026 Neon Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');


:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-border: rgba(15, 23, 42, 0.08);
    --border-color: rgba(15, 23, 42, 0.08);
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-subtle: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --gradient-hero: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 50%, #f0fdf4 100%);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --accent-primary: #ef4444;
    --accent-secondary: #06b6d4;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #0ea5e9;
    --accent-glow: rgba(239, 68, 68, 0.15);
    --glass-blur: 24px;
    --glass-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
    --glass-border: 1px solid rgba(15, 23, 42, 0.08);
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --transition-base: 250ms ease;
}

[data-theme='dark'] {
    --bg-primary: #080b11;
    --bg-secondary: #0f172a;
    --bg-card: #0f172a;
    --bg-surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-glass: rgba(8, 11, 17, 0.85);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-hero: radial-gradient(circle at 50% 50%, #161233 0%, #080b11 100%);
    --accent-glow: rgba(239, 68, 68, 0.25);
    --glass-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}


/* removed global reset */

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 0.6rem 2rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    max-width: 100%;
    transition: box-shadow 0.3s;
}
.site-header:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.logo a { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 36px; transition: opacity 0.2s; }
.logo-img:hover { opacity: 0.8; }

.main-nav { flex: 1; max-width: 560px; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-actions .theme-toggle,
.header-actions .icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-glass-border);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.header-actions .theme-toggle:hover,
.header-actions .icon-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 0;
    overflow: hidden;
}
.category-nav .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-nav .container::-webkit-scrollbar { display: none; }
.category-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}
.category-nav a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(139,92,246,0.04);
}

/* ===== HERO ===== */
.hero {
    padding: 2.5rem 0 !important;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 2.2rem !important;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1rem !important; opacity: 0.7; }

/* ===== SIDEBAR ===== */
.sidebar-filters {
    position: sticky;
    top: 5rem;
    height: fit-content;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
}
.sidebar-filters .panel {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--bg-glass-border);
    box-shadow: var(--glass-shadow);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 1.25rem !important;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid var(--bg-glass-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.2);
}
.product-card .product-image {
    background: var(--bg-primary);
    aspect-ratio: 1;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    transition: transform 0.35s;
    overflow: hidden;
    position: relative;
}
.product-card:hover .product-image { transform: scale(1.03); }
.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}
.product-card:hover .product-image img { transform: scale(1.08); }

.product-card .hover-actions {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    gap: 0.4rem;
    width: 85%;
}
.product-card:hover .hover-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.btn-compare {
    flex: 1;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.55rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
    transition: all 0.2s;
}
.btn-compare:hover { background: #7c3aed; transform: scale(1.03); }

.product-info { flex-grow: 1; }

.product-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}
.product-title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}
.product-title a:hover { color: var(--accent-primary); }

.product-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent-success);
}

.fp-badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== RESULTS TOOLBAR ===== */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--bg-glass-border);
    box-shadow: var(--glass-shadow);
}
.results-toolbar select {
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s;
}
.results-toolbar select:hover { border-color: var(--accent-primary); }

/* ===== FILTER CHIPS ===== */
.filter-chip {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}
.filter-chip:hover { transform: scale(1.05); }
.filter-chip a { color: white; text-decoration: none; font-weight: 800; }

/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.pagination-wrapper nav { display: flex; gap: 0.25rem; }
.pagination-wrapper a, .pagination-wrapper span {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--bg-glass-border);
    color: var(--text-secondary);
    background: var(--bg-secondary);
}
.pagination-wrapper a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}
.pagination-wrapper .active span,
.pagination-wrapper span[aria-current="page"] {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-glass-border);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-top: 0.75rem; }
.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 800;
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom {
    border-top: 1px solid var(--bg-glass-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== COMPARE BAR ===== */
.compare-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    transform: translateY(0);
    transition: transform 0.3s;
}
.compare-bar.hidden { transform: translateY(100%); }
.compare-now-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
    transition: all 0.2s;
}
.compare-now-btn:hover { transform: scale(1.05); }

/* ===== SCROLLBAR ===== */
.options-scroll::-webkit-scrollbar { width: 4px; }
.options-scroll::-webkit-scrollbar-thumb { background: var(--bg-glass-border); border-radius: 10px; }
.options-scroll::-webkit-scrollbar-track { background: transparent; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.product-card { animation: slideUp 0.4s ease backwards; }
.product-card:nth-child(1) { animation-delay: 0.02s; }
.product-card:nth-child(2) { animation-delay: 0.04s; }
.product-card:nth-child(3) { animation-delay: 0.06s; }
.product-card:nth-child(4) { animation-delay: 0.08s; }
.product-card:nth-child(5) { animation-delay: 0.10s; }
.product-card:nth-child(6) { animation-delay: 0.12s; }

/* ===== SEARCH ===== */
.search-suggestions-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
.search-suggestions-dropdown.show { display: block; animation: fadeIn 0.2s ease; }
.suggestion-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1rem; text-decoration: none; color: var(--text-primary);
    transition: background 0.2s; border-bottom: 1px solid var(--bg-glass-border);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: rgba(139,92,246,0.08); }
.suggestion-img { width: 40px; height: 40px; object-fit: contain; background: white; border-radius: 8px; }
.suggestion-info { flex: 1; }
.suggestion-name { font-weight: 600; font-size: 0.9rem; display: block; }
.suggestion-price { font-size: 0.8rem; color: var(--accent-success); font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr !important; }
    .sidebar-filters { position: static; max-height: none; }
    .hero h1 { font-size: 1.8rem !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .site-header { padding: 0.5rem 1rem; gap: 0.75rem; }
    .main-nav { max-width: 100% !important; }
    .hero { padding: 1.5rem 0 !important; }
    .hero h1 { font-size: 1.5rem !important; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; gap: 0.75rem; }
    .product-card { border-radius: 16px; padding: 0.75rem; }
    .product-title { font-size: 0.82rem; }
    .product-price { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
    .header-actions .icon-btn { display: none; }
    .product-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ===== PREMIUM SPECS WIDGETS ===== */
.specs-premium-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.spec-group-container {
    animation: fadeIn 0.5s ease-out;
}

/* Consolidated Screen Card */
.specs-screen-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin-bottom: 2rem;
    transition: transform 0.3s var(--transition-spring), border-color 0.3s;
    overflow: hidden;
    position: relative;
}
.specs-screen-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.specs-screen-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 1.25fr;
    gap: 3rem;
    align-items: center;
}

.specs-screen-mockup-outer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.specs-screen-frame {
    width: 100%;
    max-width: 380px;
    background: #0f172a;
    border: 10px solid #1e293b;
    border-bottom: 16px solid #1e293b;
    border-radius: 20px 20px 8px 8px;
    aspect-ratio: 16/10;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.specs-screen-frame::after {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 60px;
    height: 4px;
    background: #0f172a;
    border-radius: 0 0 4px 4px;
}

.specs-screen-content-area {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem;
    text-align: center;
    z-index: 3;
}

.specs-screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    transform: rotate(-20deg) translateY(-40%);
    pointer-events: none;
    z-index: 4;
}

.specs-screen-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specs-screen-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--bg-glass-border);
    transition: background-color 0.2s;
}
.specs-screen-row:hover {
    background-color: rgba(139, 92, 246, 0.03);
}

.specs-screen-label {
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.specs-screen-value {
    font-weight: 800;
    color: var(--text-primary);
}

.specs-screen-remaining-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-glass-border);
}

.specs-screen-subcard {
    background: rgba(120, 120, 120, 0.02);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.2s, border-color 0.2s;
}
.specs-screen-subcard:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.02);
}

/* Premium Battery Card */
.battery-visual-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.battery-visual-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.battery-visual-progress-outer {
    flex-grow: 1;
    height: 24px;
    background: rgba(120, 120, 120, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--bg-glass-border);
}

.battery-visual-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Design Cards */
.design-spec-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s;
}
.design-spec-card:hover {
    transform: translateY(-2px);
}

.design-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(120, 120, 120, 0.05);
    border: 1px solid var(--bg-glass-border);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.design-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Premium Connectivity Badges */
.connectivity-spec-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.connectivity-port-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}
.connectivity-port-badge:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

@media (max-width: 768px) {
    .specs-screen-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== PREMIUM REVISION 2026 CLASSES ===== */
.hero-premium {
    background: var(--gradient-hero) !important;
    position: relative;
    overflow: hidden;
}
.hero-premium h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-search-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 0.75rem;
    border-radius: 24px;
    border: 1px solid var(--bg-glass-border);
    box-shadow: var(--glass-shadow);
}
.glass-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-primary);
}
.glass-search-form button {
    background: var(--gradient-primary) !important;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.glass-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.premium-cat-card {
    text-decoration: none;
    background: var(--bg-secondary);
    padding: 2.2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--bg-glass-border);
    transition: all 0.3s var(--transition-spring);
    text-align: center;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.premium-cat-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
}

.product-card-premium {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--bg-glass-border);
    overflow: hidden;
    transition: all 0.3s var(--transition-spring);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.product-card-premium:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
}
.product-card-premium .card-btn-compare {
    border: 2px solid var(--accent-primary) !important;
    background: transparent !important;
    color: var(--accent-primary) !important;
    padding: 8px 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s !important;
}
.product-card-premium:hover .card-btn-compare {
    background: var(--accent-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.accent-glow-bg {
    background: var(--accent-glow) !important;
    color: var(--accent-primary) !important;
}
.accent-gradient-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
    transition: all 0.2s !important;
}
.accent-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow) !important;
}

.premium-cat-card:hover .cat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary) !important;
    box-shadow: 0 8px 20px var(--accent-glow);
    border-color: transparent !important;
}

/* ===== NEW HEADER, SEARCH INPUT, MEGA MENU, SPACE ORBS ===== */
.header-bottom-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-glass-border);
    border-bottom: 1px solid var(--bg-glass-border);
    position: relative;
    z-index: 9999;
}
.header-bottom-bar .nav-link {
    color: var(--text-primary) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1.1rem;
    transition: all 0.2s ease;
    display: inline-block;
    opacity: 0.85;
}
.header-bottom-bar .nav-link:hover {
    opacity: 1;
    color: var(--accent-primary) !important;
    background: var(--bg-primary);
}

.menu-item-group:hover .mega-menu-dropdown {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.menu-item-group:hover .nav-link {
    background: var(--bg-primary) !important;
    color: var(--accent-primary) !important;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.mega-menu-column-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mega-menu-column-title:hover {
    color: var(--accent-primary) !important;
}

.header-search-input {
    width: 100%;
    padding: 0.85rem 1.5rem 0.85rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: var(--glass-shadow);
}
.header-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.mega-menu-dropdown {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 0 0 24px 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    z-index: 10000;
    border: 1px solid var(--bg-glass-border) !important;
    border-top: none !important;
    box-sizing: border-box;
}

.mega-menu-item {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}
.mega-menu-item:hover {
    background: var(--bg-primary) !important;
    color: var(--accent-primary) !important;
    border-color: var(--bg-glass-border) !important;
    transform: translateX(4px);
}
.mega-menu-item span svg {
    color: var(--text-muted);
    transition: transform 0.2s ease, stroke 0.2s ease;
}
.mega-menu-item:hover span svg {
    transform: scale(1.1);
    stroke: var(--accent-primary);
}

/* Background blur blobs (orbs) */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: pulseOrb 8s infinite alternate ease-in-out;
}
.orb-1 {
    background: var(--accent-primary);
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
}
.orb-2 {
    background: var(--accent-secondary);
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    animation-delay: -3s;
}

@keyframes pulseOrb {
    0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
    100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.22; }
}

/* Premium scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-glass-border);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}


/* Mobile Enhancements */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    width: 100%;
}
.main-nav {
    flex: 1;
    max-width: 700px;
}
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.mobile-filter-btn {
    display: none;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
}
.close-filters-btn {
    display: none;
}

@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr !important; }
    .sidebar-filters { 
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
        z-index: 10000;
        overflow: hidden;
    }
    .sidebar-filters.active {
        display: block;
    }
    .sidebar-filters .panel {
        position: absolute;
        bottom: 0; left: 0; width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
        animation: slideUp 0.3s ease;
    }
    .mobile-filter-btn {
        display: inline-flex;
    }
    .close-filters-btn {
        display: block;
        position: absolute;
        top: 1rem; right: 1rem;
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border: none;
        width: 36px; height: 36px;
        border-radius: 50%;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .results-toolbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
@media (max-width: 768px) {
    .header-top { 
        padding: 0.5rem 1rem; 
        gap: 0.75rem; 
        flex-wrap: wrap;
    }
    .header-top .logo { order: 1; }
    .header-top .header-actions { order: 2; }
    .header-top .main-nav { 
        order: 3; 
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    .mega-menu-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .category-nav { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    .category-nav a { padding: 0.5rem; font-size: 0.8rem; }
}

/* ===== PREMIUM MOBILE MENU ===== */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    
    .site-header {
        position: relative !important;
    }

    

    /* Category nav goes hidden completely */
    .header-bottom-bar {
        display: none !important;
    }
}

/* Mobile Overlay Menu Styles */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.mobile-overlay-menu.active {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
}
.mobile-menu-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    padding-bottom: 5rem;
}
