:root {
    --b-glass: rgba(255, 255, 255, 0.7);
    --b-border: rgba(15, 23, 42, 0.08);
    --primary: #6366F1;
    --text-dark: #0F172A;
}

.shop-breadcrumb {
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 0 40px;
}

.shop-b-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--b-glass);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 20px;
    border: 1px solid var(--b-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.shop-b-list {
    display: flex;
    align-items: center;
    list-style: none;
}

.shop-b-item a {
    text-decoration: none;
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.shop-b-item a:hover {
    color: var(--primary);
}

.shop-b-item.active {
    color: var(--text-dark);
    font-weight: 900;
    font-size: 0.85rem;
}

.shop-b-sep {
    margin: 0 15px;
    color: #CBD5E1;
    font-size: 0.75rem;
}

/* --- STATS COUNTER --- */
.shop-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stats-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94A3B8;
}

.stats-indicator {
    width: 100px;
    height: 4px;
    background: #F1F5F9;
    border-radius: 10px;
    overflow: hidden;
}

.stats-fill {
    width: 35%; /* Represents progress/stock */
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .shop-breadcrumb {
        padding: 0 20px;
        margin: 20px auto;
    }
    
    .shop-b-wrapper {
        padding: 10px 15px;
    }

    .shop-stats {
        display: none; /* Keep mobile clean */
    }

    .shop-b-list {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* Hides scrollbar for clean look */
    }

    .shop-b-list::-webkit-scrollbar {
        display: none;
    }
}

/* Shop Content */

/* RESET & LAYOUT */
.elite-shop-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.shop-grid-engine {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* SIDEBAR V2 STYLING */
.sidebar-v2 { background: #fff; }

.v2-filter-group {
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 25px;
}

.v2-filter-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 900;
}

/* Sort Pills - High Contrast */
.v2-sort-pills { display: flex; flex-direction: column; gap: 10px; }
.v2-sort-pills label { cursor: pointer; }
.v2-sort-pills input { display: none; }
.v2-sort-pills span {
    display: block;
    padding: 12px 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.v2-sort-pills input:checked + span {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Category Stack - KILLS BULLETS */
.v2-cat-stack { display: flex; flex-direction: column; gap: 12px; }
.v2-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
}
.v2-check-label input {
    width: 18px; height: 18px; 
    accent-color: #6366F1;
    cursor: pointer;
}

/* Range Slider - Cinematic Style */
.v2-slider {
    width: 100%;
    appearance: none;
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    outline: none;
}
.v2-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px; height: 22px;
    background: #6366F1;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.v2-range-labels {
    display: flex;
    justify-content: space-between; /* FIXED SPACE */
    margin-top: 15px;
    font-weight: 900;
    color: #0F172A;
}

/* APPLY BUTTON - PREMIUM */
.v2-apply-btn {
    width: 100%;
    padding: 18px;
    background: #6366F1;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}
.v2-apply-btn:hover { background: #4F46E5; transform: translateY(-3px); }

/* TOOLBAR */
.v2-top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.v2-results { font-weight: 800; color: #94A3B8; font-size: 0.9rem; }
.v2-view-btn {
    background: none; border: none; font-size: 1.5rem; 
    color: #CBD5E1; cursor: pointer; transition: 0.2s;
}
.v2-view-btn.active { color: #0F172A; }

/* MOBILE LOGIC */
.m-action-bar { display: none; }
.v2-close-btn { display: none; }

@media (max-width: 1024px) {
    .shop-grid-engine { grid-template-columns: 1fr; }
    
    .m-action-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .m-trigger {
        background: #0F172A; color: #fff;
        border: none; padding: 10px 20px;
        border-radius: 12px; font-weight: 800;
    }

    .sidebar-v2 {
        position: fixed;
        top: 0; left: -100%;
        width: 100%; height: 100%;
        z-index: 2000;
        padding: 40px 20px;
        transition: 0.4s ease-in-out;
        overflow-y: auto;
    }
    .sidebar-v2.active { left: 0; }
    .v2-close-btn { display: block; background: none; border: none; font-size: 1.8rem; }
    .sidebar-v2-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
}

/* Products */

/* --- GRID ENGINE --- */
.shop-results-container {
    width: 100%;
}

.shop-product-grid {
    display: grid;
    /* This creates a fluid grid that fits 3 products on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* --- PAGINATION DESIGN --- */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.pag-nav {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 1px solid #E2E8F0;
    background: white;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.pag-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pag-nav:not(:disabled):hover {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
    transform: translateY(-2px);
}

.pag-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pag-num {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748B;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.pag-num.active {
    background: #6366F1;
    color: white;
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.2);
}

.pag-num:hover:not(.active) {
    background: #F1F5F9;
    color: #0F172A;
}

.pag-dots {
    color: #CBD5E1;
    font-weight: 800;
    padding: 0 5px;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 600px) {
    .shop-product-grid {
        grid-template-columns: 1fr; /* Full width on small phones */
        gap: 20px;
    }

    .shop-pagination {
        gap: 10px;
    }

    .pag-nav { width: 40px; height: 40px; }
    .pag-num { width: 35px; height: 35px; font-size: 0.8rem; }
}