/* تایمر اختصاصی کادر پیشنهاد تخفیف‌دار کنار اسلایدر اصلی */
.home-discount-offers .product-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 52px;
    overflow: visible;
}

.home-discount-offers .timer-label {
    flex: 0 0 auto;
}

.home-discount-offers .timer {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
}

.home-discount-offers .countdown,
.home-discount-offers .home-offer-countdown {
    display: flex !important;
    direction: rtl;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap;
}

.home-discount-offers .countdown-container {
    display: flex !important;
    flex: 0 0 auto;
    padding: 2px;
}

.home-discount-offers .countdown-container .countdown-value {
    width: 31px;
    height: 31px;
    padding: 4px;
}

.home-discount-offers .countdown-container .countdown-heading {
    margin: 4px 0 0;
    line-height: 1.4;
}

.home-discount-offers .swiper-progress-bar {
    position: absolute;
    top: 68px;
    bottom: auto;
    right: 2.5%;
    left: 2.5%;
    width: 95%;
    margin: 0 auto;
    background: rgb(0 0 0 / 12%);
}

/*
 * تصاویر محصولات نسبت‌های متفاوتی دارند. قانون عمومی کارت محصول از
 * object-fit: cover استفاده می‌کند و در این کادر باریک بخشی از تصویر را
 * می‌بُرد؛ این بخش باید همیشه تمام محصول را نمایش دهد.
 */
.home-discount-offers .product-image {
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-discount-offers .product-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 400px) {
    .home-discount-offers .countdown,
    .home-discount-offers .home-offer-countdown {
        justify-content: flex-end;
    }

    .home-discount-offers .countdown-container .countdown-value {
        width: 28px;
        height: 28px;
    }
}
