/*=====================================================
                SHOP PAGE TITLE
======================================================*/

.page-title {
    background: linear-gradient(rgba(15, 25, 20, 0.62), rgba(15, 25, 20, 0.7)), url('/test/sigmabuys/assets/images/product3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 8%;
    text-align: center;
}

.page-title h1{

    font-size:42px;

    color:#ffffff;

    margin-bottom:15px;

    font-weight:700;

}

.page-title p{

    color:rgba(255,255,255,.7);

    font-size:18px;

}

/*=====================================================
                SHOP SECTION
======================================================*/

.shop{

    width:90%;

    max-width:1400px;

    margin:60px auto;

    display:grid;

    grid-template-columns:280px 1fr;

    gap:35px;

    align-items:start;

}

/*=====================================================
                FILTER TOGGLE (mobile)
======================================================*/

.filter-toggle{
    display:none;
    align-items:center;
    gap:8px;
    padding:12px 24px;
    background:var(--forest-deep);
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    grid-column:1 / -1;
}

.filter-toggle:hover{
    background:var(--forest-deep);
}

.filter-toggle i{
    font-size:14px;
}

/*=====================================================
              SIDEBAR OVERLAY (mobile)
======================================================*/

.sidebar-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:999;
    opacity:0;
    transition:opacity .3s ease;
}

.sidebar-overlay.active{
    opacity:1;
}

/*=====================================================
              SIDEBAR CLOSE BUTTON
======================================================*/

.sidebar-close{
    display:none;
    position:absolute;
    top:15px;
    right:15px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:#f0f0f0;
    border:none;
    font-size:18px;
    color:#333;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

.sidebar-close:hover{
    background:var(--clay);
    color:#fff;
}

/*=====================================================
                    SIDEBAR
======================================================*/

.sidebar{

    background:#ffffff;

    padding:25px;

    border-radius:12px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    position:sticky;

    top:30px;

}

/*=====================================================
                SIDEBAR HEADINGS
======================================================*/

.sidebar h2{

    font-size:22px;

    color:var(--ink);

    margin-bottom:20px;

    font-weight:600;

}

/*=====================================================
                CATEGORY LIST
======================================================*/

.sidebar ul{

    list-style:none;

    margin-bottom:25px;

}

.sidebar ul li{

    margin-bottom:12px;

}

.sidebar ul li a{

    display:block;

    padding:12px 15px;

    color:#444;

    border-radius:8px;

    transition:.3s;

    text-decoration:none;

    font-size:16px;

}

.sidebar ul li a:hover{

    background:var(--forest);

    color:white;

    padding-left:20px;

}

/*=====================================================
                    DIVIDER
======================================================*/

.sidebar hr{

    border:none;

    border-top:1px solid #ddd;

    margin:25px 0;

}

/*=====================================================
                PRICE FILTER
======================================================*/

.sidebar input[type="range"]{

    width:100%;

    margin:15px 0;

    cursor:pointer;

    accent-color:var(--forest);

}

.sidebar p{

    color:#666;

    font-size:15px;

    margin-bottom:15px;

}

/*=====================================================
            DIFFICULTY FILTER
======================================================*/

.sidebar label{

    display:block;

    margin-bottom:15px;

    color:#555;

    font-size:16px;

    cursor:pointer;

}

.sidebar input[type="checkbox"]{

    margin-right:10px;

    accent-color:var(--forest);

}

/*=====================================================
            FILTER BUTTON
======================================================*/

.filter-btn{

    width:100%;

    margin-top:20px;

    padding:12px;

    background:var(--forest);

    color:white;

    border:none;

    border-radius:8px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.filter-btn:hover{

    background:var(--forest-deep);

}

/*=====================================================
            PAGINATION
======================================================*/

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    padding:40px 20px;
}

.pagination a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:45px;
    height:45px;
    background:#fff;
    color:#333;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:all .3s ease;
}

.pagination a:hover{
    background:var(--forest);
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 6px 18px rgba(31,111,74,.3);
}

.pagination a.active{
    background:var(--forest);
    color:#fff;
    box-shadow:0 6px 18px rgba(31,111,74,.3);
}

/*=====================================================
            SIDEBAR EYEBROW LABEL
======================================================*/

.sidebar-eyebrow{
    display:block;
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    font-weight:700;
    color:var(--forest);
    margin-bottom:6px;
}

/*=====================================================
            CATEGORY LIST (icon chips)
======================================================*/

.sidebar ul li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 14px;
    border-left:3px solid transparent;
    border-radius:0 8px 8px 0;
}

.sidebar ul li a i{
    width:18px;
    text-align:center;
    color:var(--forest);
    font-size:14px;
    transition:.3s;
}

.sidebar ul li a:hover{
    background:#eefaf2;
    color:var(--forest-deep);
    border-left-color:#a8e6bf;
    padding-left:14px;
}

.sidebar ul li a:hover i{
    transform:scale(1.1);
}

.sidebar ul li a.active{
    background:var(--forest);
    color:#fff;
    border-left-color:#1a6e3c;
    padding-left:14px;
    box-shadow:0 6px 14px rgba(31,111,74,.25);
}

.sidebar ul li a.active i{
    color:#fff;
}

/*=====================================================
            PRICE FILTER TICKS
======================================================*/

.price-ticks{
    display:flex;
    justify-content:space-between;
    font-size:11px;
    color:#aab2b8;
    margin-top:-6px;
    margin-bottom:12px;
    font-weight:600;
}

.sidebar input[type="range"]{
    height:6px;
    border-radius:4px;
    background:#e8edf0;
    -webkit-appearance:none;
}

.sidebar input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--forest);
    border:3px solid #fff;
    box-shadow:0 2px 8px rgba(31,111,74,.5);
    cursor:pointer;
}

#priceLabel{
    display:inline-block;
    background:#eefaf2;
    color:var(--forest-deep);
    font-weight:600;
    padding:5px 12px;
    border-radius:20px;
    font-size:13px;
}

/*=====================================================
            DIFFICULTY TOGGLE PILLS
======================================================*/

#difficultyFilter{
    display:flex;
    flex-direction:column;
    gap:10px;
}

#difficultyFilter label{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    padding:9px 14px;
    border-radius:10px;
    background:#f6f7f8;
    border:1.5px solid transparent;
    font-size:14px;
    font-weight:600;
    color:#5a6772;
    transition:.25s;
    cursor:pointer;
}

#difficultyFilter label span::before{
    content:'';
    display:inline-block;
    width:9px;
    height:9px;
    border-radius:50%;
    margin-right:8px;
}

#difficultyFilter label.diff-beginner span::before{ background:var(--forest); }
#difficultyFilter label.diff-intermediate span::before{ background:#e3a008; }
#difficultyFilter label.diff-advanced span::before{ background:var(--clay); }

#difficultyFilter input[type="checkbox"]{
    accent-color:var(--forest);
    width:16px;
    height:16px;
    margin:0;
}

#difficultyFilter label:has(input:checked){
    background:#eefaf2;
    border-color:var(--forest);
    color:var(--forest-deep);
}

/*=====================================================
                SHOP TOOLBAR
======================================================*/

.shop-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:25px;
    background:#fff;
    padding:16px 22px;
    border-radius:12px;
    border-left:4px solid var(--forest);
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

#resultsCount{
    color:#5a6772;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:8px;
}

#resultsCount i{
    color:var(--forest);
}

.sort-wrap{
    display:flex;
    align-items:center;
    gap:10px;
}

.sort-wrap label{
    color:#333;
    font-weight:600;
    font-size:14px;
}

.sort-wrap select{
    padding:9px 16px;
    border:1.5px solid #e5e9ec;
    border-radius:8px;
    font-family:'Poppins',sans-serif;
    outline:none;
    cursor:pointer;
    background:#fcfcfc;
    color:var(--ink);
    font-weight:500;
    transition:.25s;
}

.sort-wrap select:hover,
.sort-wrap select:focus{
    border-color:var(--forest);
    background:#fff;
}

/*=====================================================
        PRODUCT CARD — SHOP PAGE ENHANCEMENTS
======================================================*/

.shop-content .product-card{
    opacity:0;
    animation:cardIn .5s ease forwards;
    position:relative;
    padding-bottom:0;
}

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

.shop-content .card-body{
    padding:0 0 20px;
}

.shop-content .diff-tag{
    position:absolute;
    top:15px;
    right:15px;
    z-index:2;
    padding:5px 12px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.5px;
    color:#fff;
    text-transform:uppercase;
}

.shop-content .diff-tag-beginner{ background:rgba(31,111,74,.92); }
.shop-content .diff-tag-intermediate{ background:rgba(217,130,43,.92); }
.shop-content .diff-tag-advanced{ background:rgba(192,57,43,.92); }

.shop-content .category-eyebrow{
    display:block;
    font-size:11px;
    font-weight:700;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--forest);
    margin:16px 15px 4px;
}

.shop-content .product-card h3{
    margin-top:2px;
}

.shop-content .price-row{
    display:flex;
    justify-content:center;
    align-items:baseline;
    gap:10px;
    margin-bottom:12px;
}

.shop-content .price-row .price{
    margin-bottom:0;
}

.shop-content .original-price{
    color:#aab2b8;
    text-decoration:line-through;
    font-size:15px;
    font-weight:500;
}

/*=====================================================
                EMPTY STATE
======================================================*/

.empty-state{
    grid-column:1/-1;
    text-align:center;
    padding:70px 20px;
    color:#8f9aa3;
}

.empty-state i{
    font-size:42px;
    color:#c9d3d8;
    margin-bottom:18px;
}

.empty-state h3{
    color:var(--ink);
    font-size:20px;
    margin-bottom:8px;
}

.empty-state p{
    font-size:14px;
}

/*=====================================================
       RESPONSIVE - TABLET (max-width: 992px)
======================================================*/

@media(max-width:992px){

    .page-title{
        padding:45px 5%;
    }

    .page-title h1{
        font-size:34px;
    }

    .page-title p{
        font-size:16px;
    }

    .shop{
        grid-template-columns:240px 1fr;
        gap:25px;
        width:95%;
    }

    .product-grid{
        grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
        gap:20px;
    }
}

/*=====================================================
       RESPONSIVE - MOBILE (max-width: 768px)
======================================================*/

@media(max-width:768px){

    .page-title{
        padding:35px 5%;
    }

    .page-title h1{
        font-size:28px;
    }

    .page-title p{
        font-size:15px;
    }

    /* Shop: Stack layout */
    .shop{
        grid-template-columns:1fr;
        gap:20px;
        margin:30px auto;
        width:92%;
    }

    /* Show filter toggle button */
    .filter-toggle{
        display:flex;
        justify-content:center;
    }

    /* Sidebar becomes a slide-in drawer */
    .sidebar{
        position:fixed;
        top:0;
        left:-320px;
        width:300px;
        height:100%;
        z-index:1000;
        border-radius:0;
        overflow-y:auto;
        transition:left .35s ease;
        padding:60px 25px 25px;
        box-shadow:5px 0 25px rgba(0,0,0,.15);
    }

    .sidebar.active{
        left:0;
    }

    .sidebar-close{
        display:flex;
    }

    .sidebar-overlay{
        display:block;
        pointer-events:none;
    }

    .sidebar-overlay.active{
        pointer-events:all;
    }

    /* Product grid adjustments */
    .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    /* Pagination */
    .pagination{
        padding:30px 15px;
        gap:6px;
    }

    .pagination a{
        width:40px;
        height:40px;
        font-size:14px;
    }
}

/*=====================================================
       RESPONSIVE - SMALL MOBILE (max-width: 480px)
======================================================*/

@media(max-width:480px){

    .page-title{
        padding:28px 5%;
    }

    .page-title h1{
        font-size:24px;
    }

    .page-title p{
        font-size:14px;
    }

    .shop{
        width:95%;
        margin:20px auto;
    }

    .product-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .pagination a{
        width:36px;
        height:36px;
        font-size:13px;
        border-radius:8px;
    }
}