/*==========================================
        POPULAR PRODUCTS
==========================================*/

.popular-products{
    padding:90px 0;
    background:#f8fff7;
}

/* Section Title */

.popular-products .section-title .sub-title{
    color:#2E7D32;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.popular-products .section-title h2{
    font-size:42px;
    font-weight:700;
    color:#1B5E20;
    margin:15px 0;
}

.popular-products .section-title p{
    color:#666;
    max-width:650px;
    margin:auto;
}

/*=========================
        TABS
==========================*/

.product-tabs{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:50px;
}

.tab-btn{

    border:none;

    background:#fff;

    padding:12px 28px;

    border-radius:40px;

    font-size:16px;

    font-weight:600;

    color:#333;

    cursor:pointer;

    transition:.35s;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.tab-btn:hover{

    background:#2E7D32;

    color:#fff;

}

.tab-btn.active{

    background:#2E7D32;

    color:#fff;

}

/*=========================
        PRODUCT CARDS
   (Inherited from master design in product.css)
==========================*/

/* Hidden state for category filter */
.filter-item.hide{
    display:none !important;
}

/* Responsive */

@media(max-width:991px){

.product-tabs{
gap:10px;
flex-wrap: wrap;
justify-content: center;
}

.tab-btn{
padding:8px 18px;
font-size:14px;
}

}

@media(max-width:768px){

.popular-products{
padding:45px 0;
}

.popular-products .section-title {
margin-bottom: 25px;
}

.popular-products .section-title h2{
font-size:24px;
}

.popular-product-list.row.g-4 {
--bs-gutter-x: 10px;
--bs-gutter-y: 12px;
}

.product-tabs{
gap:6px;
}

.tab-btn{
padding:6px 14px;
font-size:12.5px;
}

}

@media(max-width:480px){

.popular-products{
padding:35px 0;
}

.popular-products .section-title h2{
font-size:22px;
}

.popular-product-list.row.g-4 {
--bs-gutter-x: 8px;
--bs-gutter-y: 10px;
}

.tab-btn {
padding: 5px 10px;
font-size: 11.5px;
}

}

/*==========================================
   RESPONSIVE PRODUCT GRID (4 Columns on Desktop)
   Produces a clean 2x4 grid for 8 items
==========================================*/
@media (min-width: 992px) {
    .popular-products .popular-product-list > .col-product,
    .popular-products .popular-product-list > [class*="col-xl-"],
    .popular-products .popular-product-list > [class*="col-lg-"] {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .popular-products .popular-product-list > .col-product,
    .popular-products .popular-product-list > [class*="col-md-"] {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

@media (max-width: 767.98px) {
    .popular-products .popular-product-list > .col-product,
    .popular-products .popular-product-list > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/*==========================================
   VIEW ALL PRODUCTS BUTTON
==========================================*/
.popular-view-all {
    margin-top: 42px;
    text-align: center;
}

.btn-popular-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2E7D32;
    color: #ffffff !important;
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid #2E7D32;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.22);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    line-height: 1.2;
}

.btn-popular-view-all i {
    transition: transform 0.25s ease;
    font-size: 13px;
}

.btn-popular-view-all:hover {
    background: #1B5E20;
    border-color: #1B5E20;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(27, 94, 32, 0.32);
}

.btn-popular-view-all:hover i {
    transform: translateX(4px);
}

.btn-popular-view-all:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.20);
}

@media (max-width: 768px) {
    .popular-view-all {
        margin-top: 26px;
    }

    .btn-popular-view-all {
        padding: 11px 26px;
        font-size: 14px;
        width: 100%;
        max-width: 260px;
    }
}