/* ==========================================
   PRODUCT SLIDER
========================================== */

.product-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-slider-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.product-slide {
    flex: 0 0 25%;
    padding: 0 8px;
    box-sizing: border-box;
}


/* ==========================================
   PRODUCT CARD
========================================== */

.product-card {
    height: 100%;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   IMAGE
========================================== */

.product-offer {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}

.product-offer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-offer img {
    transform: scale(1.05);
}


/* ==========================================
   BADGE
========================================== */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    padding: 5px 10px;

    background: #dc3545;
    color: #fff;

    border-radius: 50px;

    font-size: 12px;
    font-weight: 600;
}

.product-badge.new {
    background: #198754;
}


/* ==========================================
   PRODUCT INFO
========================================== */

.product-info {
    padding: 18px;
}

.product-title {
    margin: 5px 0 8px;

    font-size: 17px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    color: #f5a623;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-rating span {
    color: #888;
    margin-left: 4px;
    font-size: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.product-price strong {
    font-size: 19px;
    color: #111;
}

.product-price del {
    font-size: 13px;
    color: #999;
}


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

.product-button {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
}


/* ==========================================
   SLIDER CONTROLS
========================================== */

.product-slider-controls {
    display: flex;
    gap: 8px;
}

.product-slider-prev,
.product-slider-next {
    width: 42px;
    height: 42px;

    border: 1px solid #ddd;
    background: #fff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}

.product-slider-prev:hover,
.product-slider-next:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product-slider-prev:disabled,
.product-slider-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {

    .product-slide {
        flex: 0 0 33.333333%;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {

    .product-slide {
        flex: 0 0 50%;
    }

    .product-info {
        padding: 14px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-price strong {
        font-size: 17px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .product-slide {
        flex: 0 0 100%;
    }

}