.product-sale02 {
    padding: 60px 0;
}

.product-sale02-header {
    background: var(--bv-primary);
    /* Red header banner */
    padding: 10px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    flex-wrap: wrap;
    gap: 5px 0;
}

.product-sale02-header .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sale-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.sale-title svg {
    width: 28px;
    height: 28px;
    fill: #FFEB3B;
}

.sale-countdown {
    display: flex;
    align-items: center;
    gap: 15px;
}

.countdown-text {
    font-size: 15px;
    font-weight: 600;
}

.countdown-items {
    display: flex;
    gap: 8px;
}

.countdown-item {
    background: #f8b705;
    /* Yellow boxes */
    color: #333;
    padding: 4px 9px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.countdown-item span {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.view-all {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.product-sale02-slider {
    background: var(--bv-primary);
    padding: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    /* border: 1px solid #eee; */
}

.product-sale02-slider .slick-list {
    margin: 0 -10px;
}

/* Custom Product Card for Flash Sale (if different) */
.flash-product-card {
    padding: 0 10px;
    height: 100%;
}

.flash-product-card .product-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.flash-product-card .product-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.flash-product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #D32F2F;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.flash-product-card .btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.flash-product-card .btn-wishlist:hover {
    background: #fdf2f2;
    color: #D32F2F;
    border-color: #D32F2F;
}

.flash-product-card .product-image {
    aspect-ratio: 1/1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flash-product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.flash-product-card .product-item:hover .product-image img {
    transform: scale(1.08);
}

.flash-product-card .product-badges {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.flash-product-card .badge-item {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.flash-product-card .badge-new {
    background: #E8F5E9;
    color: #2E7D32;
}

.flash-product-card .badge-hot {
    background: #FFEBEE;
    color: #C62828;
}

.flash-product-card .product-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-product-card .price-box {
    margin-bottom: 15px;
}

.flash-product-card .curr-price {
    font-size: 16px;
    font-weight: 800;
    color: #D32F2F;
}

.flash-product-card .old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.flash-product-card .sold-box {
    margin-top: auto;
}

.flash-product-card .progress-bar {
    height: 16px;
    background: #FFE0B2;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-product-card .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #F44336 0%, #FF9800 100%);
    border-radius: 10px;
    width: 65%;
    /* Dummy value */
}

.flash-product-card .progress-text {
    position: relative;
    z-index: 1;
    font-size: 10px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Slick Dots Styling */
.product-sale02-slider .slick-dots {
    bottom: -35px !important;
}

/* Media Queries */
@media (max-width: 991px) {
    .sale-title {
        font-size: 22px;
    }

    .countdown-items {
        gap: 4px;
    }

    .countdown-item {
        padding: 3px 6px;
        min-width: 50px;
    }

    .countdown-item span {
        font-size: 15px;
    }

    .countdown-text {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .product-sale02-header {
        padding: 10px 15px;
    }

    .product-sale02-header .header-left {
        gap: 15px;
    }

    .countdown-text {
        /* width: 100%; */
    }

    .sale-countdown {
        flex-wrap: wrap;
    }

    .product-sale02-slider {
        padding: 20px 10px;
    }
}