/*=========================================================
PRODUCT SECTION
=========================================================*/

.product-section{
    padding:60px 0;
    background:#fff;
}

.product-section:nth-child(even){
    background:#f8f9fa;
}

/*=========================================================
SECTION HEADER
=========================================================*/

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    gap:20px;
}

.section-header h2{
    margin:0;
    font-size:30px;
    font-weight:700;
    color:#212529;
}

.section-header p{
    margin:6px 0 0;
    color:#6c757d;
    font-size:15px;
}

.view-all-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    background:#198754;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:.3s;
}

.view-all-btn:hover{
    background:#157347;
    color:#fff;
    text-decoration:none;
}

.view-all-btn i{
    transition:.3s;
}

.view-all-btn:hover i{
    transform:translateX(4px);
}

/*=========================================================
PRODUCT CARD
=========================================================*/

.product-card{
    position:relative;
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
    overflow:hidden;
    height:100%;
    display:flex;
    flex-direction:column;
    transition:.30s ease;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 35px rgba(0,0,0,.10);
}

/*=========================================================
IMAGE
=========================================================*/

.product-image{
    position:relative;
    width:100%;
    height:220px;
    background:#fff;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:15px;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:.35s;
}

.product-card:hover .product-image img{
    transform:scale(1.06);
}

/*=========================================================
BADGES
=========================================================*/

.discount-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#dc3545;
    color:#fff;
    padding:5px 10px;
    font-size:12px;
    border-radius:20px;
    font-weight:700;
}

.new-badge{
    position:absolute;
    top:12px;
    right:12px;
    background:#198754;
    color:#fff;
    padding:5px 10px;
    font-size:11px;
    border-radius:20px;
    font-weight:700;
}

/*=========================================================
ACTION BUTTONS
=========================================================*/

.product-actions{
    position:absolute;
    right:12px;
    bottom:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
    opacity:0;
    transform:translateY(10px);
    transition:.30s;
}

.product-card:hover .product-actions{
    opacity:1;
    transform:translateY(0);
}

.action-btn{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#198754;
    box-shadow:0 5px 12px rgba(0,0,0,.12);
    cursor:pointer;
    transition:.3s;
}

.action-btn:hover{
    background:#198754;
    color:#fff;
}


/*=========================================================
PRODUCT CONTENT
=========================================================*/

.product-content{
    padding:16px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.product-brand{
    color:#198754;
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:.4px;
}

.product-title{
    margin:0 0 8px;
    font-size:16px;
    font-weight:600;
    line-height:1.5;
    height:48px;
    overflow:hidden;
}

.product-title a{
    color:#212529;
    text-decoration:none;
    transition:.25s;
}

.product-title a:hover{
    color:#198754;
}

.product-category{
    font-size:13px;
    color:#6c757d;
    margin-bottom:10px;
}

/*=========================================================
RATING
=========================================================*/

.product-rating{
    display:flex;
    align-items:center;
    gap:2px;
    margin-bottom:12px;
}

.product-rating i{
    color:#ffc107;
    font-size:13px;
}

.product-rating span{
    margin-left:6px;
    color:#6c757d;
    font-size:13px;
}

/*=========================================================
PRICE
=========================================================*/

.product-price{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:12px;
}

.old-price{
    color:#adb5bd;
    font-size:14px;
    text-decoration:line-through;
}

.sale-price{
    color:#198754;
    font-size:22px;
    font-weight:700;
}

/*=========================================================
STOCK
=========================================================*/

.product-stock{
    margin-bottom:16px;
    font-size:13px;
}

.in-stock{
    color:#198754;
    font-weight:600;
}

.out-stock{
    color:#dc3545;
    font-weight:600;
}

.product-stock i{
    margin-right:4px;
}

/*=========================================================
BUTTON
=========================================================*/

.product-buttons{
    margin-top:auto;
}

.btn-cart{
    width:100%;
    height:44px;
    border:none;
    border-radius:8px;
    background:#198754;
    color:#fff;
    font-size:15px;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
    transition:.30s;
}

.btn-cart:hover{
    background:#157347;
}

.btn-cart i{
    font-size:17px;
}

/*=========================================================
EMPTY SECTION
=========================================================*/

.empty-products{
    padding:70px 20px;
    background:#fff;
    border:1px dashed #dee2e6;
    border-radius:12px;
    text-align:center;
}

.empty-products i{
    font-size:60px;
    color:#198754;
    margin-bottom:18px;
}

.empty-products h4{
    margin-bottom:10px;
    font-weight:700;
}

.empty-products p{
    color:#6c757d;
    margin:0;
}

/*=========================================================
RESPONSIVE
=========================================================*/

/* Desktop */
@media (min-width:1200px){

    .product-image{
        height:220px;
    }

}

/* Laptop */
@media (max-width:991px){

    .product-section{
        padding:50px 0;
    }

    .section-header h2{
        font-size:26px;
    }

    .product-image{
        height:190px;
    }

}

/* Tablet */
@media (max-width:768px){

    .section-header{
        flex-direction:column;
        align-items:flex-start;
        margin-bottom:22px;
    }

    .view-all-btn{
        width:100%;
        justify-content:center;
    }

    .product-image{
        height:170px;
    }

    .product-title{
        font-size:15px;
        height:44px;
    }

    .sale-price{
        font-size:19px;
    }

}

/* Mobile - 2 Cards */
@media (max-width:576px){

    .product-section{
        padding:35px 0;
    }

    .section-header h2{
        font-size:22px;
    }

    .section-header p{
        font-size:13px;
    }

    .product-image{
        height:150px;
        padding:10px;
    }

    .product-content{
        padding:12px;
    }

    .product-title{
        font-size:14px;
        height:40px;
    }

    .product-brand,
    .product-category,
    .product-rating,
    .product-stock{
        font-size:12px;
    }

    .sale-price{
        font-size:18px;
    }

    .old-price{
        font-size:12px;
    }

    .btn-cart{
        height:40px;
        font-size:13px;
    }

    .discount-badge,
    .new-badge{
        font-size:10px;
        padding:4px 8px;
    }

}

/*=========================================================
IMAGE LOADING EFFECT
=========================================================*/

.product-image{
    overflow:hidden;
}

.product-image img{
    transition:transform .35s ease;
}

/*=========================================================
FOCUS STATES
=========================================================*/

.product-title a:focus,
.view-all-btn:focus,
.btn-cart:focus,
.action-btn:focus{
    outline:none;
    box-shadow:0 0 0 .2rem rgba(25,135,84,.25);
}

/*=========================================================
SMOOTH TRANSITIONS
=========================================================*/

.product-card,
.product-card *,
.view-all-btn,
.btn-cart,
.action-btn{
    transition:all .25s ease;
}

/*=========================================================
PRICE ALIGNMENT
=========================================================*/

.product-price{
    min-height:34px;
}

/*=========================================================
BUTTON SPACING
=========================================================*/

.product-buttons{
    padding-top:6px;
}

/*=========================================================
VIEW ALL BUTTON
=========================================================*/

.text-center .btn-success{
    border-radius:8px;
    font-weight:600;
    padding:12px 28px;
}

.text-center .btn-success:hover{
    transform:translateY(-2px);
}

/*=========================================================
LARGE DESKTOP
=========================================================*/

@media (min-width:1400px){

    .product-image{
        height:240px;
    }

}

/*=========================================================
PRINT
=========================================================*/

@media print{

    .product-actions,
    .btn-cart,
    .view-all-btn{
        display:none !important;
    }

}


.product-card-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.product-card-link:hover{
    color:inherit;
}