/* =========================================
   BLAYHUB SHOP CSS — V22.0 (Premium Interactions Edition)
   ========================================= */

:root { 
    --shop-red: #e5383b; 
    --shop-red-dark: #b91c1f; 
    --shop-bg: #050608;       
    --shop-surface: #0e0f12;  
    --shop-border: #1a1c20;   
    --shop-muted: #3a3d41; 
    --shop-text: #e8e8e8; 
    --shop-sub: #6b6e72; 
}

/* 1. HERO */
.shop-hero { 
    height: 500px; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    margin-top: -105px; 
    padding-top: 105px; 
    background-image: url('/assets/shopmotor.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    overflow: hidden; 
    opacity: 1 !important; 
    visibility: visible !important; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    /* 🌟 The Sweet Spot: 65% at the top, 85% in the middle */
    background: linear-gradient(180deg, rgba(5,6,8,0.65) 0%, rgba(5,6,8,0.85) 55%, var(--shop-bg) 100%); 
    z-index: 1; 
}

.shop-hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px; max-width: 800px; opacity: 1 !important; visibility: visible !important; }
.shop-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(4rem, 10vw, 7rem); color: #fff; line-height: 0.9; margin: 0; font-weight: 700; letter-spacing: -1px; }
.text-red { color: var(--shop-red); }
.hero-sub { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.45); margin: 0; max-width: 420px; font-weight: 300; letter-spacing: 0.3px; }
.hero-specs { display: flex; align-items: center; gap: 40px; margin-top: 18px; padding: 16px 40px; border: 1px solid rgba(255,255,255,0.09); background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.spec-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.spec-value { font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; }
.spec-label { font-family: 'Inter', sans-serif; font-size: 0.6rem; color: rgba(255,255,255,0.38); letter-spacing: 3px; font-weight: 600; }
.spec-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.18); transform: skew(-15deg); }

/* 2. TOPBAR */
.shop-topbar { 
    position: sticky; 
    top: 105px; 
    z-index: 200; 
    background: rgba(8,9,11,0.94); 
    backdrop-filter: blur(14px); 
    -webkit-backdrop-filter: blur(14px); 
    border-bottom: 1px solid var(--shop-border); 
}
.topbar-inner { max-width: 1340px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.search-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--shop-border); border-radius: 6px; height: 40px; padding: 0 14px; flex: 1; max-width: 420px; transition: border-color 0.2s; }
.search-box:focus-within { border-color: var(--shop-red); }
.search-icon { color: var(--shop-muted); font-size: 0.8rem; flex-shrink: 0; }
.search-box input { flex: 1; background: transparent; border: none; color: var(--shop-text); font-family: 'Inter', sans-serif; font-size: 0.85rem; outline: none; min-width: 0; }
.search-box input::placeholder { color: var(--shop-muted); }
.search-clear { background: none; border: none; color: var(--shop-muted); cursor: pointer; font-size: 0.78rem; padding: 0; display: flex; transition: color 0.15s; }
.search-clear:hover { color: #aaa; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.result-count { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--shop-sub); white-space: nowrap; }

/* SHARED SELECT */
.select-wrapper, .garage-select-wrapper { position: relative; display: flex; align-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--shop-border); border-radius: 6px; transition: border-color 0.18s; cursor: pointer; width: 100%; }
.select-wrapper:hover, .garage-select-wrapper:hover { border-color: #444; }
.select-wrapper select, .garage-select-wrapper select { width: 100%; height: 100%; background: transparent; border: none; color: #ccc; padding: 8px 34px 8px 14px; appearance: none; -webkit-appearance: none; font-family: 'Oswald', sans-serif; font-size: 0.82rem; font-weight: 500; cursor: pointer; outline: none; position: relative; z-index: 2; }
.select-wrapper select option, .garage-select-wrapper select option { background: #111; color: #fff; }
.select-wrapper > i, .garage-select-wrapper > i { position: absolute; right: 11px; color: var(--shop-red); font-size: 0.68rem; pointer-events: none; z-index: 1; }

/* SIDEBAR GARAGE WIDGET */
.sidebar-garage-widget { background: rgba(229, 56, 59, 0.05); padding: 16px; border-radius: 8px; border: 1px solid rgba(229, 56, 59, 0.15); margin-bottom: 26px; }
.garage-form-vertical { display: flex; flex-direction: column; gap: 10px; }
.garage-select-wrapper select:disabled { opacity: 0.4; cursor: not-allowed; }
.clear-garage-link { background: transparent; border: none; color: var(--shop-sub); font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s ease; padding: 0; }
.clear-garage-link:hover { color: var(--shop-red); }

/* GARAGE TOGGLE SWITCH */
.toggle-switch-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.toggle-label { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #ccc; }
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #28a745; box-shadow: 0 0 8px rgba(40,167,69,0.3); }
input:checked + .slider:before { transform: translateX(20px); }

/* 3. LAYOUT */
.shop-container { max-width: 1340px; margin: 0 auto; padding: 36px 28px 100px; display: flex; gap: 28px; align-items: flex-start; opacity: 1 !important; visibility: visible !important; }

/* 4. SIDEBAR & SCROLLABLE CATEGORIES */
.mobile-drag-handle { display: none; }
.shop-sidebar { width: 252px; flex-shrink: 0; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; position: sticky; top: 130px; height: fit-content; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-sticky-header { padding: 24px 24px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: inherit; z-index: 10; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; }
.sidebar-header h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); letter-spacing: 1px; margin: 0; display: flex; align-items: center; gap: 8px; }
.close-sidebar-btn { display: none; background: none; border: none; color: var(--shop-sub); font-size: 1rem; cursor: pointer; padding: 4px; transition: color 0.15s; }
.close-sidebar-btn:hover { color: #fff; }

.sidebar-scroll-area { padding: 24px; overflow-y: auto; flex: 1; }
.sidebar-scroll-area::-webkit-scrollbar { width: 4px; }
.sidebar-scroll-area::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-sticky-footer { padding: 16px 24px 24px; background: inherit; border-top: 1px solid rgba(255, 255, 255, 0.05); z-index: 10; }

.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { display: block; font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 600; color: rgba(255, 255, 255, 0.25); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }

.category-list { list-style: none; padding: 0 5px 0 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.category-list::-webkit-scrollbar { width: 4px; }
.category-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 4px; }
.category-list::-webkit-scrollbar-thumb { background: rgba(229,56,59,0.5); border-radius: 4px; }
.category-list::-webkit-scrollbar-thumb:hover { background: var(--shop-red); }

.cat-btn { width: 100%; text-align: left; background: transparent; border: none; border-radius: 6px; color: rgba(255, 255, 255, 0.45); padding: 10px 14px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.86rem; display: flex; align-items: center; gap: 10px; transition: all 0.2s ease; position: relative; }
.cat-btn:hover { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.04); }
.cat-btn.active { color: #fff; font-weight: 600; background: rgba(229, 56, 59, 0.1); }
.cat-btn.active::after { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 3px; background: var(--shop-red); border-radius: 0 3px 3px 0; box-shadow: 0 0 8px rgba(229, 56, 59, 0.6); }

.rating-filter-group { display: flex; flex-direction: column; gap: 6px; }
.rate-btn { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; color: #a1a1aa; font-family: 'Inter', sans-serif; font-size: 0.85rem; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; text-align: left; }
.rate-btn .stars { color: #52525b; letter-spacing: 2px; font-size: 0.8rem; transition: color 0.2s; }
.rate-btn:hover { background: rgba(255,255,255,0.03); color: white; }
.rate-btn:hover .stars { color: #f5a623; }
.rate-btn.active { background: rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.2); color: white; }
.rate-btn.active .stars { color: #f5a623; text-shadow: 0 0 10px rgba(245, 166, 35, 0.4); }

.price-range-display { display: flex; justify-content: space-between; font-family: 'Oswald', sans-serif; font-size: 0.9rem; font-weight: 400; color: rgba(255, 255, 255, 0.7); margin-bottom: 16px; }
.range-slider-track { position: relative; height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; margin: 6px 0 18px; }
.range-fill { position: absolute; height: 100%; background: var(--shop-red); border-radius: 2px; top: 0; left: 0; width: 100%; pointer-events: none; }
.range-slider-track input[type="range"] { position: absolute; width: 100%; top: 50%; transform: translateY(-50%); -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0; height: 24px; }
.range-slider-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--shop-red); cursor: pointer; pointer-events: all; transition: box-shadow 0.15s; }
.range-slider-track input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(229,56,59,0.22); }
.sidebar-sort-only { display: none; }
.btn-apply-filters { width: 100%; background: rgba(229, 56, 59, 0.9); color: #fff; border: 1px solid rgba(229, 56, 59, 0.4); padding: 12px; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 2px; cursor: pointer; border-radius: 8px; transition: all 0.2s ease; }
.btn-apply-filters:hover { background: var(--shop-red); box-shadow: 0 6px 20px rgba(229,56,59,0.3); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); z-index: 2990; }
.sidebar-overlay.active { display: block; }

/* 5. MOBILE FILTER BAR */
.mobile-filter-bar { display: none; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; }
.filter-toggle-btn { background: transparent; border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); padding: 8px 18px; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 1px; cursor: pointer; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.filter-toggle-btn:hover { border-color: var(--shop-red); color: var(--shop-red); }

/* 6. PREMIUM GRID & FITMENT BADGES */
.shop-main { flex: 1; min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

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

/* Base Card Styles */
.premium-product-card { 
    background: linear-gradient(145deg, #18181b, #0f0f11); 
    border: 1px solid #27272a; 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 100%; 
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    opacity: 0; 
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
    position: relative; /* Essential for Shine sweep */
}
.premium-product-card:hover { border-color: #3f3f46; box-shadow: 0 25px 45px rgba(0,0,0,0.8); z-index: 5; }

.premium-product-card.dimmed { opacity: 0.4 !important; filter: grayscale(80%); }
.premium-product-card.dimmed:hover { opacity: 1 !important; filter: grayscale(0%); }

.premium-img-box { height: 200px; background: #0a0b0c; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 15px; }
.premium-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.premium-product-card:hover .premium-img-box img { transform: scale(1.1); }
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--shop-red); color: #fff; font-family: 'Oswald', sans-serif; font-size: 0.65rem; font-weight: 500; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 3px; }
.product-hover-actions { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, transparent 100%); transform: translateY(101%); transition: transform 0.28s ease; z-index: 3; display: flex; }
.premium-product-card:hover .product-hover-actions { transform: translateY(0); }
.btn-quick-view { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 9px; font-family: 'Oswald', sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; text-align: center; border-radius: 4px; backdrop-filter: blur(6px); transition: background 0.18s; cursor: pointer; }
.btn-quick-view:hover { background: rgba(255,255,255,0.2); }
.premium-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.premium-category { font-size: 10px; color: #e11d48; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 700; }
.premium-title { font-family: 'Oswald', sans-serif; color: #ffffff; font-size: 16px; margin: 0 0 8px 0; line-height: 1.3; letter-spacing: 0.5px; }

.fitment-badge { font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.5px; width: fit-content; text-transform: uppercase; }
.fitment-badge.exact-fit { background: rgba(40, 167, 69, 0.15); color: #28a745; border: 1px solid rgba(40, 167, 69, 0.3); }
.fitment-badge.universal { background: rgba(255, 255, 255, 0.08); color: #aaa; border: 1px solid rgba(255, 255, 255, 0.15); }
.fitment-badge.no-fit { background: rgba(229, 56, 59, 0.1); color: var(--shop-red); border: 1px solid rgba(229, 56, 59, 0.3); }

.product-rating { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.rating-count { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: var(--shop-muted); }
.product-price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; margin-bottom: 15px; }
.premium-price { font-size: 20px; color: #ffffff; font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 0.5px; }
.product-price-original { color: var(--shop-muted); font-family: 'Inter', sans-serif; font-size: 0.85rem; text-decoration: line-through; }

/* 🌟 ADD BUTTONS & OUT OF STOCK STATES */
.btn-stealth-add { position: relative; overflow: hidden; background: transparent; border: 1px solid #e11d48; color: #e11d48; padding: 12px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; border-radius: 4px; cursor: pointer; text-align: center; width: 100%; transition: all 0.3s ease; }
.btn-stealth-add:hover { background: #e11d48; color: #ffffff; box-shadow: 0 0 10px rgba(225, 29, 72, 0.4); }

.btn-oos-state { 
    background: rgba(255, 255, 255, 0.05) !important; 
    border-color: rgba(255, 255, 255, 0.1) !important; 
    color: #6b6e72 !important; 
    cursor: not-allowed; 
}
.btn-oos-state:hover { box-shadow: none !important; transform: none !important; }

/* 7. EMPTY & ERROR STATES */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state-icon { width: 76px; height: 76px; border-radius: 50%; background: #18191d; border: 1px solid var(--shop-border); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: var(--shop-muted); margin-bottom: 6px; }
.empty-state h3 { font-family: 'Oswald', sans-serif; font-size: 1.9rem; color: var(--shop-muted); margin: 0; font-weight: 500; }
.empty-state p { font-family: 'Inter', sans-serif; font-size: 0.88rem; color: var(--shop-muted); margin: 0; }
.empty-state-btn { margin-top: 6px; background: transparent; border: 1px solid var(--shop-muted); color: var(--shop-sub); padding: 10px 26px; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 1.5px; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.empty-state-btn:hover { border-color: #888; color: #fff; }
.server-error { grid-column: 1 / -1; text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--shop-muted); }
.server-error i { font-size: 2.8rem; margin-bottom: 6px; }

/* 8. SKELETON LOADER */
.skeleton-card { border-radius: 10px; background: var(--shop-surface); border: 1px solid var(--shop-border); aspect-ratio: 3 / 4.2; position: relative; overflow: hidden; }
.skeleton-card::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); animation: shimmer 1.7s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* 9. ULTRA-MINIMALIST PAGINATION */
.pagination { margin-top: 60px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.page-btn { min-width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid transparent; color: var(--shop-muted); cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 1rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.page-btn:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,0.03); }
.page-btn.active { color: #fff; border-bottom: 2px solid var(--shop-red); border-radius: 0; font-weight: 500; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.page-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.page-btn.page-nav { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.page-btn.page-nav:hover:not(:disabled) { color: var(--shop-red); }
.page-ellipsis { color: var(--shop-muted); letter-spacing: 2px; padding: 0 4px; }


/* =======================================================
   10. RESPONSIVE MOBILE UX & BOTTOM SHEET
   ======================================================= */
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1080px) { .shop-sidebar { width: 220px; } .product-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) { 
    .shop-hero { height: 360px; margin-top: -70px; padding-top: 70px; } 
    .shop-topbar { position: relative; top: 0; padding: 15px 16px; background: transparent; backdrop-filter: none; border-bottom: none; z-index: 10; }
    .topbar-inner { padding: 0; flex-wrap: wrap; }
    
    /* DOUBLE COUNT FIX */
    .topbar-inner #result-count { display: none !important; }
    .topbar-right { display: none; } 
    .search-box { width: 100%; min-width: unset; flex: 1; max-width: none; background: rgba(255,255,255,0.06); } 
    
    .shop-container { display: block; padding: 0 16px 60px; } 
    .mobile-drag-handle { display: block; width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin: 0 auto 15px; }
    .shop-sidebar { 
        position: fixed; top: auto; bottom: 0; left: 0; width: 100%; height: 85vh; 
        border-radius: 24px 24px 0 0; padding: 0; z-index: 3000; 
        transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
        border: none; border-top: 1px solid rgba(229, 56, 59, 0.3); 
        background: rgba(11, 9, 10, 0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    } 
    .shop-sidebar.active { transform: translateY(0); } 
    
    .sidebar-sticky-header { padding: 20px 24px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .sidebar-scroll-area { padding: 20px 24px; }
    .sidebar-sticky-footer { padding: 15px 24px 24px; }
    
    .close-sidebar-btn { display: flex; } 
    .sidebar-sort-only { display: block; } 
    .btn-apply-filters { position: sticky; bottom: 0; margin-top: 20px; width: 100%; left: 0; z-index: 10; box-shadow: 0 -20px 40px rgba(11,9,10,0.95); padding: 14px; font-size: 1.1rem; }
    
    .mobile-filter-bar { display: flex; position: relative; margin-bottom: 20px; z-index: 5; } 
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } 
    
    .premium-img-box { height: 140px; }
    .premium-title { font-size: 14px; }
    .premium-details { padding: 12px; }
    .btn-stealth-add { font-size: 11px; padding: 10px; }
}
@media (max-width: 460px) { 
    .shop-hero h1 { font-size: 3.5rem; } 
    .hero-specs { gap: 22px; padding: 14px 22px; } 
    .spec-value { font-size: 1rem; } 
    .spec-label { font-size: 0.56rem; } 
    .product-grid { gap: 10px; } 
    .premium-price { font-size: 1.1rem; } 
}


/* =========================================
   🌟 PREMIUM MICRO-INTERACTIONS (Shine & Pulse)
   ========================================= */

/* 1. The Glass Shine Sweep on Hover */
.premium-product-card::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); z-index: 20; pointer-events: none;
}
.premium-product-card:hover::after {
    animation: shineSweep 0.85s ease-out forwards;
}
@keyframes shineSweep {
    100% { left: 200%; }
}

/* 2. The Satisfying Heartbeat Pulse */
.btn-save-part {
    position: absolute; top: 12px; right: 12px; z-index: 25;
    background: rgba(11, 9, 10, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform 0.15s ease, background 0.3s, color 0.3s;
}
.btn-save-part:hover {
    color: var(--shop-red); background: rgba(11, 9, 10, 0.9);
}
.btn-save-part:active {
    transform: scale(0.85); /* Tactile click feel */
}
.btn-save-part.saved-active {
    background: rgba(229, 56, 59, 0.15); border-color: var(--shop-red); color: var(--shop-red);
    animation: heartPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.btn-save-part.saved-active i { color: var(--shop-red) !important; }

@keyframes heartPulse {
    0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(229, 56, 59, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 56, 59, 0); }
}

/* 3. Magnetic Card Effect Reset */
.premium-product-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.premium-product-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.08),
        transparent 40%
    );
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 10;
}
.premium-product-card:hover::before { opacity: 1; }

.premium-product-card.magnetic-reset {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}


/* =========================================
   🌟 HYPER-PREMIUM QUICK VIEW MODAL
   ========================================= */
.qv-overlay {
    position: fixed; inset: 0; background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.qv-overlay.active { opacity: 1; visibility: visible; }

.qv-content {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.95), rgba(15, 15, 17, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--shop-red);
    border-radius: 16px; width: 92%; max-width: 950px;
    position: relative; transform: scale(0.96) translateY(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(229, 56, 59, 0.1);
    overflow: hidden;
}
.qv-overlay.active .qv-content { transform: scale(1) translateY(0); }

.qv-close {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); color: #a1a1aa;
    width: 36px; height: 36px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    z-index: 10; transition: all 0.2s; backdrop-filter: blur(4px);
}
.qv-close:hover { background: var(--shop-red); color: #fff; border-color: var(--shop-red); transform: rotate(90deg); }

.qv-layout { display: flex; flex-direction: row; min-height: 450px; }

.qv-image-col {
    flex: 1.1; display: flex; align-items: center; justify-content: center; padding: 40px;
    border-right: 1px solid rgba(255,255,255,0.05); position: relative;
    /* The Studio Spotlight Effect */
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 60%), #0a0b0c;
}
.qv-image-col img {
    max-width: 100%; max-height: 380px; object-fit: contain; z-index: 2;
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.qv-image-col:hover img { transform: scale(1.05); }

.qv-details-col { flex: 1; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }

.qv-details-col .premium-title { font-size: 28px; margin-bottom: 12px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.qv-details-col .premium-price { font-size: 32px; text-shadow: 0 0 15px rgba(255,255,255,0.1); }

.qv-actions { display: flex; flex-direction: column; gap: 18px; margin-top: 35px; }

.qv-full-details-link {
    text-align: center; font-family: 'Oswald', sans-serif; color: var(--shop-sub);
    font-size: 0.95rem; letter-spacing: 1.5px; text-decoration: none; transition: color 0.2s;
    text-transform: uppercase;
}
.qv-full-details-link i { margin-left: 6px; transition: transform 0.2s; }
.qv-full-details-link:hover { color: #fff; }
.qv-full-details-link:hover i { transform: translateX(5px); }

@media (max-width: 768px) {
    .qv-layout { flex-direction: column; }
    .qv-image-col { padding: 30px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .qv-image-col img { max-height: 220px; }
    .qv-details-col { padding: 30px 25px; }
}