/* ===================================================================
   FILE: store.css
   DESCRIPTION: Ultra-Modern, World-Class Premium Fluid Design
   =================================================================== */

/* =========================================
   1. CORE VARIABLES & FLUID SETUP
   ========================================= */
:root {
    --store-bg: #03030f; /* Deep Luxury Dark */
    --store-card: rgba(255, 255, 255, 0.03);
    --store-card-hover: rgba(255, 255, 255, 0.06);
    --store-border: rgba(255, 255, 255, 0.08);
    --store-glass-blur: blur(20px);
    --cyan: #33D5E5;
    --pink: #E849E8;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --fluid-pad: 3vw; /* Dynamic Edge-to-Edge Padding */
}

/* Base Body Override */
.store-page-body {
    background-color: var(--store-bg);
    color: var(--text-main);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Fluid Container (No Empty Spaces on Left/Right) */
.store-fluid-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--fluid-pad);
    box-sizing: border-box;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--store-bg); }
::-webkit-scrollbar-thumb { background: var(--store-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar-x::-webkit-scrollbar { height: 4px; display: none; } /* Hide horizontal by default */

/* =========================================
   2. HERO SECTION (Immersive Full-Width)
   ========================================= */
.full-width-hero {
    position: relative;
    width: 100vw;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat fixed;
    margin-top: -80px; /* Merges with transparent header */
    padding-top: 80px;
}

.full-width-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(3,3,15,0.95) 0%, rgba(3,3,15,0.6) 50%, rgba(3,3,15,0.1) 100%);
    z-index: 1;
}

.store-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--fluid-pad);
    max-width: 800px;
}

.hero-badge {
    display: inline-block; padding: 6px 15px;
    background: rgba(51, 213, 229, 0.1); color: var(--cyan);
    border: 1px solid var(--cyan); border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 20px;
}

.store-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1; margin-bottom: 20px;
    color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.store-hero-content p {
    font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; line-height: 1.6;
}

/* =========================================
   3. SMART SEARCH & UTILITY BAR
   ========================================= */
.live-search-section {
    position: sticky; top: 70px; z-index: 990;
    background: rgba(3, 3, 15, 0.85);
    backdrop-filter: var(--store-glass-blur);
    border-bottom: 1px solid var(--store-border);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-flex-container {
    display: flex; justify-content: center; align-items: center; gap: 20px;
}

.premium-select {
    background: var(--store-card); color: #fff;
    border: 1px solid var(--store-border); padding: 12px 20px;
    border-radius: 30px; font-weight: 500; cursor: pointer; outline: none;
    appearance: none; -webkit-appearance: none;
}
.premium-select option { background: var(--store-bg); }

.premium-search-box {
    position: relative; width: 100%; max-width: 600px;
}

.premium-search-box input {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--store-border);
    padding: 15px 100px 15px 50px; border-radius: 30px; color: #fff; font-size: 1rem;
    transition: 0.3s;
}

.premium-search-box input:focus {
    border-color: var(--cyan); box-shadow: 0 0 20px rgba(51, 213, 229, 0.2); outline: none;
}

.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.search-action-btns {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    display: flex; gap: 10px;
}

.icon-btn {
    background: transparent; border: none; color: var(--cyan);
    font-size: 1.2rem; cursor: pointer; transition: 0.3s;
}
.icon-btn:hover { color: var(--pink); transform: scale(1.1); }

/* Live Search Dropdown */
.search-results-dropdown {
    position: absolute; top: 110%; left: 0; width: 100%;
    background: rgba(10, 10, 30, 0.95); backdrop-filter: var(--store-glass-blur);
    border: 1px solid var(--store-border); border-radius: 15px;
    max-height: 400px; overflow-y: auto; display: none; z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.search-results-dropdown.active { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    border-bottom: 1px solid var(--store-border); text-decoration: none; transition: 0.3s;
}
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-item img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.search-result-details h4 { color: #fff; margin: 0 0 5px 0; font-size: 0.95rem; }

.status-container { display: flex; justify-content: flex-end; gap: 15px; margin-top: 5px; height: 15px; }
.status-text { font-size: 0.8rem; margin: 0; }
.text-cyan { color: var(--cyan); }

/* =========================================
   4. BREADCRUMBS & PROMO BANNER
   ========================================= */
.breadcrumb-container { padding-top: 20px; }
.modern-breadcrumbs { display: flex; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.modern-breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.modern-breadcrumbs a:hover { color: var(--cyan); }
.modern-breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 10px; color: var(--store-border); }

.promo-banner-section { padding: 30px 0; }
.premium-glass-banner {
    background: linear-gradient(135deg, rgba(51, 213, 229, 0.1), rgba(232, 73, 232, 0.05));
    backdrop-filter: var(--store-glass-blur); border: 1px solid var(--store-border);
    border-radius: 20px; padding: 30px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.promo-banner-content h3 { color: var(--cyan); margin-bottom: 10px; font-size: 1.5rem; }
.promo-banner-content p { color: #cbd5e1; margin: 0; font-size: 1rem; }
.btn-glow {
    background: linear-gradient(45deg, var(--cyan), var(--pink)); color: #fff;
    border: none; padding: 12px 30px; border-radius: 30px; font-weight: 600; cursor: pointer;
    box-shadow: 0 0 20px rgba(51, 213, 229, 0.4); transition: 0.3s; text-decoration: none; display: inline-block;
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 5px 25px rgba(232, 73, 232, 0.6); }

/* =========================================
   5. MAIN STORE GRID LAYOUT
   ========================================= */
#store-main { padding-bottom: 80px; }
.store-container {
    display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
}

/* --- SIDEBAR FILTERS (Glassmorphism) --- */
.premium-sidebar {
    background: var(--store-card); backdrop-filter: var(--store-glass-blur);
    border: 1px solid var(--store-border); border-radius: 20px; padding: 25px;
    position: sticky; top: 160px; height: calc(100vh - 180px);
    display: flex; flex-direction: column;
}
.filter-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--store-border); padding-bottom: 15px; margin-bottom: 20px; }
.filter-header h3 { font-size: 1.1rem; color: #fff; margin: 0; }
.filter-close-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.filter-scroll-area { flex-grow: 1; overflow-y: auto; padding-right: 10px; }
.filter-scroll-area::-webkit-scrollbar { width: 4px; }

.filter-group { margin-bottom: 25px; }
.filter-group h4 { font-size: 0.95rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }

/* Category Links */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 10px; }
.category-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.3s; display: block; }
.category-link:hover, .category-link.active { color: var(--pink); font-weight: 600; padding-left: 5px; }

/* Price Slider */
.price-slider input[type="range"] { width: 100%; -webkit-appearance: none; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; outline: none; }
.price-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--cyan); border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px rgba(51, 213, 229, 0.5); }
.price-value { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }
#price-max-value { color: var(--cyan); font-weight: 600; }

/* Custom Checkboxes */
.custom-checkbox-group label, .custom-radio-group label {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    cursor: pointer; color: var(--text-muted); font-size: 0.9rem; transition: 0.2s;
}
.custom-checkbox-group label:hover, .custom-radio-group label:hover { color: #fff; }
.custom-checkbox-group input, .custom-radio-group input { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; }

/* Color Swatches */
.color-filter-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch-input { display: none; }
.color-swatch-label { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,0.2); transition: 0.3s; }
.color-swatch-label:hover { transform: scale(1.1); }
.color-swatch-input:checked + .color-swatch-label { border-color: #fff; box-shadow: 0 0 0 2px var(--cyan); transform: scale(1.1); }

/* Colors */
.swatch-blue { background: #3498db; } .swatch-green { background: #2ecc71; }
.swatch-grey { background: #95a5a6; } .swatch-black { background: #111; }
.swatch-beige { background: #f5f5dc; } .swatch-red { background: #e74c3c; }

.sidebar-footer { padding-top: 20px; border-top: 1px solid var(--store-border); display: flex; flex-direction: column; gap: 10px; }
.sidebar-footer .btn { width: 100%; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; }
#apply-filters-btn { background: var(--cyan); color: #000; }
#apply-filters-btn:hover { background: #fff; }
#reset-filters-btn { background: transparent; border: 1px solid var(--store-border); color: #fff; }
#reset-filters-btn:hover { background: rgba(255,255,255,0.1); }

/* --- 6. TOP CONTROLS (Right Side) --- */
.premium-controls-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; border-bottom: 1px solid var(--store-border); margin-bottom: 30px;
}
.mobile-filter-btn { display: none; background: var(--store-card); border: 1px solid var(--store-border); color: #fff; padding: 10px 20px; border-radius: 30px; cursor: pointer; }
.highlight-count { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.premium-select-sort { background: var(--store-card); color: #fff; border: 1px solid var(--store-border); padding: 10px 15px; border-radius: 8px; outline: none; cursor: pointer; }

/* --- 7. PREMIUM PRODUCT GRID & CARDS --- */
.premium-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Fluid Grid */
    gap: 30px;
}

.product-card {
    background: var(--store-card); backdrop-filter: var(--store-glass-blur);
    border: 1px solid var(--store-border); border-radius: 20px;
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(51, 213, 229, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(51, 213, 229, 0.1);
}

.product-image-container { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #08081a; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.4s; }
.product-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: 0.4s; z-index: 1; pointer-events: none; }

.product-card:hover .product-image { transform: scale(1.1); opacity: 0; }
.product-card:hover .product-video { opacity: 1; }

.product-badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; z-index: 3; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.product-badge.new { background: var(--cyan); color: #000; }
.product-badge.sale { background: var(--pink); color: #fff; }

.product-actions {
    position: absolute; bottom: 15px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px;
    transform: translateY(50px); opacity: 0; transition: all 0.4s ease; z-index: 3;
}
.product-card:hover .product-actions { transform: translateY(0); opacity: 1; }

.product-action-btn {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); color: #000;
    border: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.2s;
}
.product-action-btn:hover { background: var(--cyan); transform: scale(1.1); }
.product-action-btn.wishlisted { background: var(--pink); color: #fff; }

.product-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.product-name { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 10px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { font-size: 0.85rem; color: #f1c40f; margin-bottom: 15px; }

.product-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.price-stack { display: flex; flex-direction: column; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.price-stack del { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }

.add-to-cart-btn {
    background: transparent; border: 1px solid var(--cyan); color: var(--cyan); padding: 8px 15px; border-radius: 30px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.3s;
}
.add-to-cart-btn:hover { background: var(--cyan); color: #000; box-shadow: 0 0 15px rgba(51, 213, 229, 0.4); }

/* Infinite Scroll Loader */
.infinite-scroll-trigger { height: 60px; display: flex; justify-content: center; align-items: center; margin-top: 30px; width: 100%; }
.loader-dots span { width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; display: inline-block; margin: 0 5px; animation: bounce 0.6s infinite alternate; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; } .loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { to { transform: translateY(-10px); } }

/* =========================================
   8. NEW MODULES (AI Mood Board, Reels)
   ========================================= */
.mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mb-20 { margin-bottom: 20px; }

/* AI Mood Board */
.premium-mood-board {
    background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?q=80&w=2000&auto=format&fit=crop') center/cover;
    border-radius: 20px; position: relative; overflow: hidden; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.premium-mood-board::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(135deg, rgba(10,10,30,0.9), rgba(232,73,232,0.2)); backdrop-filter: blur(5px); }
.mood-content-wrapper, .mood-quiz-wrapper, .mood-result-wrapper { position: relative; z-index: 2; padding: 40px; text-align: center; color: #fff; }
.btn-ai-glow { background: linear-gradient(45deg, var(--pink), var(--cyan)); color: #fff; border: none; padding: 12px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; box-shadow: 0 0 20px rgba(232,73,232,0.5); transition: 0.3s; margin-top: 15px;}
.btn-ai-glow:hover { transform: scale(1.05); }

.quiz-options-grid { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap;}
.quiz-option { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; border: 2px solid rgba(255,255,255,0.2); transition: 0.3s; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.quiz-option:hover { transform: scale(1.1); border-color: #fff; box-shadow: 0 0 20px var(--cyan); }

.mood-grid { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; justify-content: center;}
.mood-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 10px; border-radius: 12px; width: 140px; }
.mood-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }

/* Shoppable Reels */
.premium-reels-section { margin-bottom: 40px; }
.section-subtitle { font-size: 1.3rem; color: #fff; margin-bottom: 20px; }
.reels-container { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; }
.reel-card { min-width: 180px; aspect-ratio: 9/16; border-radius: 16px; scroll-snap-align: center; position: relative; overflow: hidden; background: #000; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
.reel-card:hover { border-color: var(--pink); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(232,73,232,0.3); }
.reel-card video { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.reel-card:hover video { opacity: 1; }
.reel-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, #000, transparent); display: flex; flex-direction: column; align-items: center; transform: translateY(20px); opacity: 0; transition: 0.3s; }
.reel-card:hover .reel-overlay { transform: translateY(0); opacity: 1; }
.reel-overlay span { color: #fff; font-weight: 600; margin-bottom: 10px; font-size: 0.9rem; }
.btn-shop-reel { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); border: 1px solid #fff; color: #fff; padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; }
.btn-shop-reel:hover { background: #fff; color: #000; }

/* In-Grid Promo Banner */
.grid-promo-banner { grid-column: 1 / -1; background: linear-gradient(135deg, #ff00cc, #333399); border-radius: 20px; padding: 30px; display: flex; justify-content: space-between; align-items: center; color: #fff; box-shadow: 0 10px 30px rgba(255, 0, 204, 0.3); }
.promo-content h2 { margin: 0 0 5px 0; font-size: 1.8rem; }
.countdown-timer { display: flex; gap: 15px; }
.timer-box { background: rgba(0,0,0,0.3); padding: 10px 15px; border-radius: 8px; text-align: center; min-width: 70px; }
.timer-box span { font-size: 1.5rem; font-weight: bold; display: block; }
.timer-box small { font-size: 0.7rem; text-transform: uppercase; }

/* Picked For You */
.picked-for-you-section { background: rgba(51, 213, 229, 0.05); border: 1px solid rgba(51, 213, 229, 0.1); border-radius: 20px; padding: 25px; margin-bottom: 40px; }
.picked-header h3 { margin: 0 0 20px 0; font-size: 1.3rem; color: #fff; }

/* =========================================
   9. FULL WIDTH BLOCKS (Look, UGC, Recently)
   ========================================= */
.full-width-block { padding: 80px 0; border-top: 1px solid var(--store-border); }
.bg-dark { background: rgba(0,0,0,0.3); }
.section-title h2 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.text-gradient { background: linear-gradient(45deg, var(--cyan), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Shop The Look */
.premium-look-box { position: relative; border-radius: 20px; overflow: hidden; margin-top: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.look-image { width: 100%; display: block; }
.hotspot { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); cursor: pointer; z-index: 5; }
.hotspot-center { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hotspot-pulse { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--cyan); border-radius: 50%; animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(51,213,229,0.7); opacity: 1;} 100% { transform: scale(2.5); box-shadow: 0 0 0 15px rgba(51,213,229,0); opacity: 0;} }
.glass-popup { position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%); width: 220px; background: rgba(10,10,30,0.9); backdrop-filter: blur(10px); border: 1px solid var(--store-border); border-radius: 12px; padding: 15px; text-align: center; opacity: 0; visibility: hidden; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hotspot:hover .glass-popup { opacity: 1; visibility: visible; bottom: 120%; }

/* UGC Grid */
.masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 250px; gap: 20px; margin-top: 40px; }
.ugc-card { border-radius: 15px; overflow: hidden; position: relative; cursor: pointer; border: 1px solid var(--store-border); }
.ugc-card-image { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.ugc-card:hover .ugc-card-image { transform: scale(1.1); }
.ugc-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: 0.4s; }
.ugc-card:hover .ugc-overlay { opacity: 1; }
.ugc-overlay-content { color: #fff; transform: translateY(20px); transition: 0.4s; }
.ugc-card:hover .ugc-overlay-content { transform: translateY(0); }

/* =========================================
   10. GLASS MODALS, DRAWERS & TRAYS
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.modal-overlay.active { display: flex; opacity: 1; }
.glass-modal { background: rgba(10, 10, 30, 0.85) !important; backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.6); border-radius: 24px; color: #fff; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.3s; z-index: 10; display: flex; align-items: center; justify-content: center;}
.modal-close:hover { background: var(--pink); transform: rotate(90deg); }

/* Split Layout Modals (Quick View & UGC) */
.quick-view-container, .ugc-modal-container { max-width: 1000px; width: 95%; padding: 0; overflow: hidden; }
.split-layout { display: flex; height: 600px; max-height: 90vh; }
.qv-left, .ugc-modal-image-wrapper { width: 50%; background: #000; padding: 20px; display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.ugc-modal-image-wrapper { padding: 0; }
.qv-right, .ugc-modal-details { width: 50%; padding: 40px; overflow-y: auto; background: rgba(255,255,255,0.02); }
.qv-main-media-display { width: 100%; flex-grow: 1; border-radius: 12px; overflow: hidden; background: #111; }
.qv-main-media-display img, #ugc-modal-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.qv-media-thumbnails { display: flex; gap: 10px; height: 70px; justify-content: center;}
.qv-thumbnail { width: 70px; height: 100%; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: 0.3s; overflow: hidden;}
.qv-thumbnail img { width: 100%; height: 100%; object-fit: cover;}
.qv-thumbnail.active, .qv-thumbnail:hover { opacity: 1; border-color: var(--cyan); }

.qv-category-badge { display: inline-block; background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.qv-price-huge { font-size: 2.5rem; font-weight: 800; color: var(--cyan); text-shadow: 0 0 15px rgba(51,213,229,0.3); display: flex; align-items: center; gap: 15px; }
.qv-price-huge del { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; text-shadow: none; }

.modern-tabs { display: flex; border-bottom: 1px solid var(--store-border); gap: 20px; }
.qv-tab-btn { background: none; border: none; color: var(--text-muted); padding: 10px 0; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: 0.3s; }
.qv-tab-btn.active, .qv-tab-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.qv-tab-content { display: none; padding-top: 20px; }
.qv-tab-content.active { display: block; }
.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }

/* Mini Cart Drawer */
.mini-cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1010; opacity: 0; visibility: hidden; transition: 0.4s; }
.mini-cart-overlay.active { opacity: 1; visibility: visible; }
.mini-cart { position: fixed; top: 0; right: -400px; width: 400px; max-width: 90%; height: 100vh; background: rgba(10, 10, 30, 0.95); backdrop-filter: blur(20px); border-left: 1px solid var(--store-border); z-index: 1011; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5); transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.mini-cart.active { right: 0; }
.mini-cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--store-border); }
.mini-cart-header h3 { margin: 0; font-size: 1.2rem; color: #fff; }
.cart-close-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mini-cart-body { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 15px; margin-bottom: 20px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; border: 1px solid var(--store-border); }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex-grow: 1; }
.cart-item-name { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; color: #fff; }
.quantity-control { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.5); border-radius: 20px; padding: 2px 5px; width: fit-content; }
.quantity-btn { background: transparent; border: none; color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.quantity-btn:hover { background: rgba(255,255,255,0.1); }
.mini-cart-footer { padding: 20px; border-top: 1px solid var(--store-border); background: rgba(0,0,0,0.3); }
.checkout-btn { background: linear-gradient(45deg, var(--cyan), #0055ff); color: #fff; border: none; padding: 12px; border-radius: 30px; font-weight: 700; width: 100%; text-align: center; text-decoration: none; display: block; box-shadow: 0 5px 20px rgba(51, 213, 229, 0.3); }

/* Compare Tray Sticky */
.premium-compare-tray { position: fixed; bottom: -120px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 800px; background: rgba(10, 10, 30, 0.9); backdrop-filter: blur(20px); border: 1px solid var(--store-border); border-bottom: none; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.4); z-index: 1005; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.premium-compare-tray.active { bottom: 0; }
.compare-tray-items { display: flex; gap: 15px; }
.compare-tray-item { width: 60px; height: 60px; position: relative; border-radius: 8px; border: 1px solid var(--store-border); }
.compare-tray-item img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.remove-compare { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; background: #e74c3c; color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* Miscellaneous Components */
.seo-read-more-box { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; text-align: justify; padding: 30px; background: var(--store-card); border-radius: 15px; border: 1px solid var(--store-border); }
.seo-read-more-box h2 { color: #fff; font-size: 1.3rem; margin-bottom: 15px; }

.glass-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--store-border); padding: 12px 15px; border-radius: 8px; color: #fff; font-family: inherit; }
.glass-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 10px rgba(51,213,229,0.2); }

.floating-wallet { position: fixed; bottom: 30px; right: 30px; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); border: 1px solid #ffd700; border-radius: 50px; padding: 8px 20px 8px 8px; display: flex; align-items: center; gap: 15px; z-index: 998; box-shadow: 0 5px 20px rgba(255,215,0,0.2); cursor: pointer; transition: 0.3s; }
.floating-wallet:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255,215,0,0.4); }
.wallet-icon { width: 35px; height: 35px; background: #ffd700; color: #000; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; }

/* Geo Popup */
.geo-popup { bottom: 20px; left: 20px; padding: 0; border-radius: 16px; width: auto; max-width: 350px; }
.geo-content { padding: 15px 20px; }

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1200px) {
    .store-container { grid-template-columns: 240px 1fr; gap: 25px; }
    .premium-search-box { max-width: 400px; }
}

@media (max-width: 992px) {
    /* Fluid adjustments */
    :root { --fluid-pad: 4vw; }
    .store-hero-content h1 { font-size: 2.5rem; }
    
    /* Off-canvas Filter Sidebar */
    .store-container { grid-template-columns: 1fr; }
    .premium-sidebar {
        position: fixed; top: 0; left: -100%; width: 320px; height: 100vh;
        z-index: 1050; border-radius: 0; border: none; border-right: 1px solid var(--store-border);
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: rgba(3, 3, 15, 0.98); backdrop-filter: blur(30px);
    }
    .premium-sidebar.active { left: 0; }
    .filter-close-btn { display: block; }
    .filter-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1040; display: none; }
    .filter-overlay.active { display: block; }
    .mobile-filter-btn { display: inline-flex; align-items: center; gap: 8px;}

    /* Utility Bar Restructure */
    .search-flex-container { flex-direction: column; align-items: stretch; gap: 15px; }
    .premium-search-box { max-width: 100%; }

    /* Modals */
    .split-layout { flex-direction: column; height: 85vh; overflow-y: auto; }
    .qv-left, .qv-right, .ugc-modal-image-wrapper, .ugc-modal-details { width: 100%; }
    .qv-left { height: 400px; flex-shrink: 0; }
    .grid-promo-banner { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 576px) {
    :root { --fluid-pad: 5vw; }
    .store-hero-content h1 { font-size: 2.2rem; }
    .premium-controls-bar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .right-controls { width: 100%; justify-content: space-between; }
    .premium-product-grid { grid-template-columns: 1fr; } /* 1 Card per row mobile */
    .product-image-container { aspect-ratio: 4/3; }
    .floating-wallet { bottom: 80px; right: 15px; } /* Adjust for mobile nav */
    .premium-compare-tray { flex-direction: column; gap: 15px; padding-bottom: 25px; }
}

/* ===================================================================
   URGENT UI/UX FIXES (Added to solve layout issues)
   =================================================================== */

/* 1. Fix Search Bar File Input Visibility */
#visual-search-input {
    display: none !important; /* Force hiding the ugly file input */
}

/* 2. Fix Gigantic Images in Product Grid & Picked For You */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Force uniform height for all cards */
}

.product-image-container {
    width: 100%;
    height: 280px !important; /* Strict height to prevent overflow */
    aspect-ratio: unset; /* Override previous aspect ratio */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Stop image container from growing */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Ensure image fits perfectly */
    display: block;
}

/* 3. Fix Trending Looks (Reels) Height */
.reel-card {
    min-width: 200px;
    height: 350px !important; /* Prevent reels from becoming too tall */
    aspect-ratio: unset;
}

/* 4. Fix Quick View Modal Image & Layout */
.qv-main-media-display {
    width: 100%;
    height: 380px !important; /* Fixed height for modal image */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08081a;
}

.qv-main-media-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important; /* Prevent cropping in modal */
}

.quick-view-details h3, 
.quick-view-details p, 
.quick-view-details ul {
    color: var(--text-muted);
}

/* ===================================================================
   URGENT WORLD-CLASS UI FIXES (Breadcrumbs, Quick View, AI Grid)
   =================================================================== */

/* 1. BREADCRUMBS FIX (Remove Bullets & Align Horizontally) */
ul#breadcrumbs {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}
ul#breadcrumbs li {
    display: inline-flex;
    align-items: center;
}
ul#breadcrumbs li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}
ul#breadcrumbs li a:hover {
    color: var(--cyan);
}
ul#breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: var(--store-border);
}

/* 2. PICKED FOR YOU GRID FIX (Stop Giant Images) */
#picked-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    width: 100%;
}
#picked-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#picked-grid .product-image-container {
    height: 250px !important;
    width: 100%;
}

/* 3. QUICK VIEW MODAL LAYOUT FIX (Force Side-by-Side) */
@media (min-width: 993px) {
    .quick-view-content.split-layout {
        display: flex !important;
        flex-direction: row !important; /* Force side-by-side on PC */
        width: 100%;
        align-items: stretch;
    }
    .qv-left, .qv-right {
        width: 50% !important; /* Exactly half screen each */
    }
}

/* Fix Quick View Image Size */
.qv-main-media-display {
    height: 350px !important; /* Control image height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08081a;
    border-radius: 12px;
    overflow: hidden;
}
.qv-main-media-display img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important; /* Image will fit without stretching */
}

/* ===================================================================
   WORLD-CLASS QUICK VIEW MODAL FIX (100% WORKING)
   =================================================================== */

/* 1. Modal Container Width & Z-Index */
.quick-view-container {
    max-width: 1100px !important; /* Premium wide look */
    width: 95% !important;
    padding: 0 !important; /* Remove padding to touch edges */
    overflow: hidden !important;
    z-index: 99999 !important; /* Above header */
}

/* 2. Perfect 50-50 Split Layout */
.quick-view-content.split-layout {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 650px !important;
    max-height: 85vh !important;
    background: var(--store-bg);
}

/* 3. LEFT SIDE: Image Area (Exactly 50%) */
.quick-view-media {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    background: #03030a !important; /* Deep dark premium background */
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid var(--store-border) !important;
}

.qv-main-media-display {
    flex-grow: 1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 15px !important;
}

/* Stop image squishing - Make it fit perfectly */
.qv-main-media-display img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* This is the magic property! */
    display: block !important;
}

/* 4. RIGHT SIDE: Details Area (Exactly 50%) */
.quick-view-details {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 40px !important;
    overflow-y: auto !important; /* Scroll only the text side */
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* 5. Typography Polish for Right Side */
.quick-view-details h2#qv-name {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    color: #fff !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}

.quick-view-details .qv-price-huge {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--cyan) !important;
    margin-bottom: 20px !important;
}

/* Custom Scrollbar for the right side text */
.quick-view-details::-webkit-scrollbar {
    width: 6px !important;
}
.quick-view-details::-webkit-scrollbar-thumb {
    background: var(--store-border) !important;
    border-radius: 10px !important;
}

/* 6. MOBILE RESPONSIVENESS (Stack vertically on phones) */
@media (max-width: 992px) {
    .quick-view-content.split-layout {
        flex-direction: column !important;
        height: auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    .quick-view-media {
        flex: 0 0 400px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--store-border) !important;
    }
    .quick-view-details {
        flex: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        overflow-y: visible !important;
    }
}

/* Mobile Safe Area Fix for Cart Footer */
.mini-cart-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
}

/* GPU Hardware Acceleration for Smooth Video Hover */
.product-video {
    transform: translateZ(0); /* Forces GPU rendering */
    will-change: opacity; /* Tells browser to prepare for animation */
    pointer-events: none; /* Stops video from blocking clicks */
    -webkit-backface-visibility: hidden;
}

/* SEO Fix: Prevent Layout Shift (CLS) on Image Load */
.product-image-container {
    aspect-ratio: 1 / 1 !important; /* Forces a perfect square space before image loads */
    width: 100%;
    height: auto !important; /* Overrides previous fixed height to keep it responsive */
    background-color: #08081a; /* Placeholder color while loading */
}

/* Ensure skeleton loader matches this exact ratio */
.skeleton-card > div:first-child {
    aspect-ratio: 1 / 1 !important;
}

/* ===================================================================
   WORLD-CLASS UX UPGRADES (Visual Chips, Animations, Search)
   =================================================================== */

/* 1. Expandable Minimalist Search Bar */
.modern-search {
    width: 50px !important; /* Starts as just an icon */
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden;
}
.modern-search:focus-within, .modern-search.expanded {
    width: 350px !important; /* Expands on click */
}
.modern-search input {
    opacity: 0;
    transition: opacity 0.3s;
}
.modern-search:focus-within input, .modern-search.expanded input {
    opacity: 1;
}

/* 2. Visual Chips for Sidebar Filters (Replaces boring checkboxes/radios) */
.custom-checkbox-group label, .custom-radio-group label {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--store-border);
    padding: 8px 15px !important;
    border-radius: 30px !important; /* Pill shape */
    margin: 5px 2px !important;
    transition: all 0.3s ease !important;
}
.custom-checkbox-group label:hover, .custom-radio-group label:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
/* Hide the actual box */
.custom-checkbox-group input, .custom-radio-group input {
    display: none !important; 
}
/* Glowing effect when checked */
.custom-checkbox-group input:checked + span, .custom-radio-group input:checked + span {
    color: #000 !important;
    font-weight: 600;
}
.custom-checkbox-group label:has(input:checked), .custom-radio-group label:has(input:checked) {
    background: linear-gradient(45deg, var(--cyan), var(--pink)) !important;
    border-color: transparent !important;
    box-shadow: 0 5px 15px rgba(51, 213, 229, 0.4) !important;
}

/* 3. Neon Price Slider */
.price-slider input[type="range"] {
    height: 6px !important;
    background: linear-gradient(90deg, var(--cyan), var(--pink)) !important;
    box-shadow: 0 0 10px rgba(232, 73, 232, 0.5);
}
.price-slider input[type="range"]::-webkit-slider-thumb {
    width: 24px !important;
    height: 24px !important;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
}

/* 4. Scroll Reveal Animation Classes */
.reveal-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Flying Cart Parabola Animation */
.flying-img {
    position: fixed;
    z-index: 999999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(51, 213, 229, 0.8);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    pointer-events: none;
}

/* ===================================================================
   WORLD-CLASS NEW FEATURES CSS (Pinterest Gallery, Sticky Buy Bar)
   =================================================================== */

/* 1. Pinterest-Style Masonry Gallery */
.pinterest-gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}
.pinterest-gallery .premium-look-box {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    transition: transform 0.3s;
}
.pinterest-gallery .premium-look-box:hover {
    transform: translateY(-5px);
}
@media (max-width: 992px) { .pinterest-gallery { column-count: 2; } }
@media (max-width: 576px) { .pinterest-gallery { column-count: 1; } }

/* 2. Quick View Sticky Buy Bar */
.qv-right {
    position: relative;
    padding-bottom: 100px !important; /* Make room for sticky bar */
}
.sticky-qv-buy-bar {
    position: sticky;
    bottom: -40px; /* Aligns with bottom of scroll area */
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--store-border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 24px 0;
    z-index: 100;
    margin-top: 30px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.qv-sticky-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
}
@media (max-width: 992px) {
    .sticky-qv-buy-bar {
        position: fixed;
        bottom: 0;
        border-radius: 0;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

/* ===================================================================
   GOD TIER UPGRADES: Bento Grid, 3D Tilt, Command Palette
   =================================================================== */

/* 1. Ambient Glow (Dynamic Aurora Background) */
.ambient-glow-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 0; transition: background 0.8s ease;
    filter: blur(150px); opacity: 0.6; mix-blend-mode: screen;
}

/* Make sure main content is above glow */
main, .store-fluid-container { position: relative; z-index: 2; }

/* 2. 3D Parallax Tilt & Glare Effect */
.product-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}
.card-glare {
    position: absolute; top: 0; left: 0; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%; opacity: 0; pointer-events: none; z-index: 4;
    transition: opacity 0.3s; mix-blend-mode: overlay;
    transform: translate(-50%, -50%);
}

/* 3. Asymmetric Bento Box / Magazine Layout */
@media (min-width: 993px) {
    .premium-product-grid {
        grid-auto-flow: dense; /* Helps fill empty spots */
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    .bento-large .product-image-container {
        height: 100% !important;
        min-height: 400px;
    }
    .bento-large .product-name {
        font-size: 1.8rem; /* Bigger title for large cards */
    }
}

/* 4. Command Palette (Mac OS Spotlight Style) */
.command-palette-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
    z-index: 999999; display: flex; justify-content: center; padding-top: 10vh;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.command-palette-overlay.active { opacity: 1; visibility: visible; }

.command-palette-box {
    width: 90%; max-width: 650px; background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
    display: flex; flex-direction: column; overflow: hidden;
    transform: scale(0.95) translateY(-20px); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.command-palette-overlay.active .command-palette-box { transform: scale(1) translateY(0); }

.cp-header {
    display: flex; align-items: center; padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2);
}
.cp-header i { font-size: 1.5rem; color: var(--cyan); margin-right: 15px; }
.cp-header input {
    flex-grow: 1; background: transparent; border: none; color: #fff;
    font-size: 1.3rem; outline: none; font-family: inherit;
}
.cp-esc-badge {
    background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 6px;
    font-size: 0.8rem; color: var(--text-muted); font-weight: bold;
}

.cp-results { max-height: 400px; overflow-y: auto; padding: 10px; }
.cp-result-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    border-radius: 12px; text-decoration: none; transition: 0.2s; cursor: pointer;
}
.cp-result-item:hover { background: rgba(255,255,255,0.05); }
.cp-result-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.cp-item-info h4 { margin: 0 0 5px 0; color: #fff; font-size: 1.1rem; }
.cp-item-info p { margin: 0; color: var(--cyan); font-weight: bold; }

/* ===================================================================
   GOD TIER UPGRADES: Human Scale, Story Reels, AI Orb
   =================================================================== */

/* 1. Human Scale Silhouette Overlay */
.human-scale-overlay {
    position: absolute; bottom: 0; right: 20px;
    height: 80%; /* Average human height relative to image */
    width: auto; opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease; z-index: 5;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.qv-main-media-display.show-scale .human-scale-overlay { opacity: 0.8; }

/* Custom Toggle Switch */
.scale-switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.scale-switch input { opacity: 0; width: 0; height: 0; }
.scale-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); border-radius: 20px; transition: .4s; }
.scale-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: var(--text-muted); border-radius: 50%; transition: .4s; }
input:checked + .scale-slider { background-color: var(--cyan); }
input:checked + .scale-slider:before { transform: translateX(20px); background-color: #000; }

/* 2. Instagram/TikTok Style Story Modal */
.story-container {
    width: 100%; max-width: 400px; height: 80vh; max-height: 800px;
    background: #000; border-radius: 16px; position: relative; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.story-container video { width: 100%; height: 100%; object-fit: cover; }
.story-progress-bar { position: absolute; top: 10px; left: 10px; right: 10px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 5px; z-index: 10; }
.progress-fill { height: 100%; background: #fff; width: 0%; border-radius: 5px; }
.story-nav { position: absolute; top: 0; width: 50%; height: 100%; z-index: 5; cursor: pointer; }
.story-nav.left { left: 0; } .story-nav.right { right: 0; }

/* Story Interactive Tag */
.story-product-tag {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; z-index: 15;
}
.tag-dot { width: 15px; height: 15px; background: rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,0.3); animation: pulse-ring 1.5s infinite; cursor: pointer; }
.tag-info { background: rgba(10,10,30,0.85); backdrop-filter: blur(10px); padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); margin-top: 10px; text-align: center; opacity: 0; transform: translateY(10px); transition: 0.3s; pointer-events: none; }
.story-product-tag:hover .tag-info { opacity: 1; transform: translateY(0); pointer-events: all; }
.tag-info span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.tag-info strong { display: block; color: var(--cyan); }

/* 3. AI Floating Concierge Orb */
#ai-orb-container {
    position: fixed; bottom: 100px; right: 30px; z-index: 9990;
    display: flex; flex-direction: column; align-items: flex-end; gap: 15px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
}
.ai-orb-hidden { transform: translateY(150px) scale(0.5); opacity: 0; pointer-events: none; }
.ai-orb-visible { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }

.ai-orb { width: 60px; height: 60px; position: relative; cursor: pointer; }
.orb-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--cyan)); box-shadow: 0 0 20px var(--cyan); animation: orb-breathe 3s infinite alternate; }
.orb-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 2px dashed rgba(51, 213, 229, 0.5); animation: spin 10s linear infinite; }

.ai-orb-message {
    background: rgba(10,10,30,0.9); backdrop-filter: blur(15px); border: 1px solid var(--cyan);
    padding: 15px; border-radius: 16px 16px 0 16px; width: 250px;
    box-shadow: 0 10px 30px rgba(51,213,229,0.2); transform-origin: bottom right;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-orb-message p { margin: 0; font-size: 0.9rem; color: #fff; line-height: 1.4; }

@keyframes orb-breathe { 0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 10px var(--cyan); } 100% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 30px var(--pink); background: radial-gradient(circle, #fff, var(--pink)); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }

/* ===================================================================
   WORLD-CLASS UX FIXES (Wishlist, Dynamic Reward Pill)
   =================================================================== */

/* 1. Global Wishlist Button Styling */
.global-wishlist-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--store-border);
    border-radius: 50%;
    color: var(--pink);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.global-wishlist-btn:hover {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 10px 20px rgba(232, 73, 232, 0.4);
    transform: translateY(-3px);
}
.wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--cyan);
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

/* 2. Apple Dynamic Island UX for Reward Points (Fixes annoyance) */
.floating-wallet {
    width: 50px; /* Collapsed state */
    overflow: hidden;
    padding: 6px;
    white-space: nowrap;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s;
    opacity: 0.7; /* Make it less distracting */
}
.floating-wallet:hover {
    width: 170px; /* Expanded state on hover */
    opacity: 1;
    transform: translateY(-5px);
}
.floating-wallet .wallet-info {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.floating-wallet:hover .wallet-info {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================================================
   WORLD-CLASS FIX: RECENTLY VIEWED SECTION (Horizontal Carousel)
   =================================================================== */

#recently-viewed-grid {
    display: flex !important;
    gap: 25px !important;
    overflow-x: auto !important;
    padding-bottom: 25px !important;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
}

/* Custom Scrollbar for the Carousel */
#recently-viewed-grid::-webkit-scrollbar {
    height: 8px;
}
#recently-viewed-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
#recently-viewed-grid::-webkit-scrollbar-thumb {
    background: var(--store-border);
    border-radius: 10px;
}
#recently-viewed-grid::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* Force Cards to be standard size and stay in a single row */
#recently-viewed-grid .product-card {
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important; /* Stop them from squeezing */
    scroll-snap-align: start;
    height: 100% !important;
}

/* Fix Image Height to stop them from becoming giants */
#recently-viewed-grid .product-image-container {
    height: 250px !important;
    width: 100% !important;
    aspect-ratio: unset !important;
}

#recently-viewed-grid .product-image {
    object-fit: cover !important;
}

/* ===================================================================
   WORLD-CLASS CURATED STOREFRONT CSS (Circles, Squares, Carousels)
   =================================================================== */

.section-header-flex {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--store-border); padding-bottom: 10px; margin-bottom: 20px;
}
.btn-view-all {
    background: transparent; border: none; color: var(--cyan); font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.btn-view-all:hover { color: var(--pink); transform: translateX(5px); }

/* 1. Circle Category Scroller */
.circle-category-scroller {
    display: flex; gap: 30px; overflow-x: auto; padding: 10px 5px 20px 5px; scroll-behavior: smooth;
}
.circle-cat-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
    min-width: 120px;
}
.circle-img-box {
    width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--store-border); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #111; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.circle-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.circle-cat-item:hover .circle-img-box { border-color: var(--cyan); transform: scale(1.1); box-shadow: 0 15px 30px rgba(51, 213, 229, 0.3); }
.circle-cat-item:hover img { transform: scale(1.2); }
.circle-cat-item span { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: 0.3s; white-space: nowrap; }
.circle-cat-item:hover span { color: #fff; }

/* 2. Horizontal Product Carousels (For New Arrivals, Deals) */
.horizontal-product-carousel {
    display: flex; gap: 25px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory;
}
.horizontal-product-carousel .product-card {
    min-width: 280px; max-width: 280px; flex-shrink: 0; scroll-snap-align: start;
}

/* 3. Square Shop By Room Grid */
.square-room-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.square-room-card {
    position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; cursor: pointer;
    border: 1px solid var(--store-border);
}
.square-room-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.square-room-card:hover img { transform: scale(1.1); }
.room-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex; align-items: flex-end; justify-content: center; padding: 20px;
}
.room-overlay h4 { color: #fff; margin: 0; font-size: 1.3rem; letter-spacing: 1px; transition: 0.3s; transform: translateY(10px); }
.square-room-card:hover .room-overlay h4 { color: var(--cyan); transform: translateY(0); }