.cdc-countdown{direction:rtl;display:block;width:100%;max-width:430px;margin:12px 0 14px;padding:10px 12px;box-sizing:border-box;border:1px solid #ff5722;border-radius:8px;background:#fff7f2;color:#333;text-align:center}
.cdc-countdown .cdc-caption{margin:0 0 8px;font-size:13px;font-weight:600;color:#e64a19}
.cdc-countdown .cdc-timer{display:flex;align-items:center;justify-content:center;gap:5px;direction:ltr}
.cdc-countdown .cdc-unit{min-width:48px;padding:5px 4px 4px;border:1px solid #ffd0bd;border-radius:5px;background:#fff;display:flex;flex-direction:column;align-items:center;line-height:1.2}
.cdc-countdown .cdc-value{font-family:Arial,sans-serif;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;color:#e53920}
.cdc-countdown .cdc-label{margin-top:3px;font-size:10px;color:#777}
.cdc-countdown .cdc-separator{font-weight:700;color:#f06435;margin-top:-8px}
@media(max-width:480px){.cdc-countdown{padding:8px 6px}.cdc-countdown .cdc-unit{min-width:40px}.cdc-countdown .cdc-value{font-size:17px}.cdc-countdown .cdc-caption{font-size:12px}}


/* Category product cards: compact countdown, matching the product page style */
#products .product-miniature .cdc-countdown,
.products .product-miniature .cdc-countdown,
.product_list .product-miniature .cdc-countdown {
    max-width: 100%;
    margin: 8px 0 10px;
    padding: 7px 5px;
    border-radius: 6px;
}
#products .product-miniature .cdc-countdown .cdc-caption,
.products .product-miniature .cdc-countdown .cdc-caption,
.product_list .product-miniature .cdc-countdown .cdc-caption {
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.5;
}
#products .product-miniature .cdc-countdown .cdc-timer,
.products .product-miniature .cdc-countdown .cdc-timer,
.product_list .product-miniature .cdc-countdown .cdc-timer {
    gap: 3px;
}
#products .product-miniature .cdc-countdown .cdc-unit,
.products .product-miniature .cdc-countdown .cdc-unit,
.product_list .product-miniature .cdc-countdown .cdc-unit {
    min-width: 0;
    flex: 1 1 0;
    padding: 4px 2px 3px;
}
#products .product-miniature .cdc-countdown .cdc-value,
.products .product-miniature .cdc-countdown .cdc-value,
.product_list .product-miniature .cdc-countdown .cdc-value {
    font-size: 15px;
}
#products .product-miniature .cdc-countdown .cdc-label,
.products .product-miniature .cdc-countdown .cdc-label,
.product_list .product-miniature .cdc-countdown .cdc-label {
    font-size: 9px;
}
#products .product-miniature .cdc-countdown .cdc-separator,
.products .product-miniature .cdc-countdown .cdc-separator,
.product_list .product-miniature .cdc-countdown .cdc-separator {
    font-size: 11px;
}


/* Category cards: narrower box with breathing room around timer units */
#products .product-miniature .cdc-countdown,
.products .product-miniature .cdc-countdown,
.product_list .product-miniature .cdc-countdown {
    width: 100%;
    max-width: 245px;
    margin: 8px auto 10px;
    padding: 8px 10px;
}
#products .product-miniature .cdc-countdown .cdc-timer,
.products .product-miniature .cdc-countdown .cdc-timer,
.product_list .product-miniature .cdc-countdown .cdc-timer {
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    gap: 4px;
}
#products .product-miniature .cdc-countdown .cdc-unit,
.products .product-miniature .cdc-countdown .cdc-unit,
.product_list .product-miniature .cdc-countdown .cdc-unit {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 3px 4px;
}
#products .product-miniature .cdc-countdown .cdc-value,
.products .product-miniature .cdc-countdown .cdc-value,
.product_list .product-miniature .cdc-countdown .cdc-value {
    font-size: 14px;
}
@media (max-width: 480px) {
    #products .product-miniature .cdc-countdown,
    .products .product-miniature .cdc-countdown,
    .product_list .product-miniature .cdc-countdown {
        max-width: 230px;
        padding: 7px 9px;
    }
}

/* تنظیم نهایی شمارنده در صفحه شاخه‌ها */
body#category .cdc-countdown {
    width: 190px !important;
    max-width: 190px !important;
    margin: 8px auto !important;
    padding: 7px 8px !important;
    box-sizing: border-box !important;
}

body#category .cdc-countdown .cdc-timer {
    display: flex !important;
    width: 100% !important;
    max-width: 170px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    gap: 3px !important;
    box-sizing: border-box !important;
}

body#category .cdc-countdown .cdc-unit {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
}

body#category .cdc-countdown .cdc-value {
    font-size: 13px !important;
}

body#category .cdc-countdown .cdc-label {
    font-size: 8px !important;
}

body#category .cdc-countdown .cdc-separator {
    font-size: 10px !important;
    margin-top: -5px !important;
}

/* حذف کادر نارنجی شمارنده فقط در موبایل صفحه محصول */
@media screen and (max-width: 991px) {
    body#product .cdc-countdown {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 4px 0 !important;
    }
}

/* مخفی کردن متن فرصت باقی‌مانده فقط در موبایل صفحه محصول */
*/@media screen and (max-width: 991px) {
    body#product .cdc-countdown .cdc-caption {
        display: none !important;
    }
}/*

/* کاهش فاصله بالا و پایین شمارنده در موبایل صفحه محصول */
@media screen and (max-width: 991px) {
    body#product .cdc-countdown {
        margin-top: 3px !important;
        margin-bottom: 3px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    body#product .cdc-countdown .cdc-timer {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* انتقال شمارنده به سمت راست در موبایل صفحه محصول */
@media screen and (max-width: 991px) {
    body#product .cdc-countdown {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: right !important;
    }

    body#product .cdc-countdown .cdc-timer {
        justify-content: flex-end !important;
        margin-right: 0 !important;
        margin-left: auto !important;
    }
}

/* جمع‌وجور کردن شمارنده در موبایل صفحه شاخه‌ها */
@media screen and (max-width: 991px) {
    body#category .cdc-countdown {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 3px auto !important;
        padding: 3px 2px !important;
    }

    body#category .cdc-countdown .cdc-timer {
        width: 100% !important;
        max-width: 100% !important;
        gap: 2px !important;
        box-sizing: border-box !important;
    }

    body#category .cdc-countdown .cdc-unit {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        padding: 2px 1px !important;
    }

    body#category .cdc-countdown .cdc-value {
        font-size: 12px !important;
    }

    body#category .cdc-countdown .cdc-label {
        font-size: 7px !important;
    }

    body#category .cdc-countdown .cdc-separator {
        font-size: 9px !important;
    }
}