.swiper-container {
    display: flex;
    flex-wrap: wrap; /* امکان شکستن به خطوط جدید */
    gap: 15px; /* فاصله بین محصولات */
    width: 100%;
    position: relative;
    overflow: hidden;
}
.product-box {
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 15px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* برای محاسبه درست padding و border */
    min-width: 220px;
    
}
.product-image {
    position: relative;
    border-radius: 15px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 5px;
    font-size: 11px;
    border-radius: 50px;
}
.countdown-timer {
    display: flex;
    gap: 5px; /* فاصله بین کادرها */
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 5px;
    border-radius: 5px;
    color: #fff;
   
}
.countdown-box {
    width: 25px;
    height: 25px;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.countdown-box .count-value {
    font-size: 14px;
}
/* عنوان محصول */
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* قیمت تخفیف خورده */
.product-price {
    font-size: 14px;
    color: #fff; /* رنگ قرمز برای جلب توجه */
    font-weight: bold;
    margin: 5px 0;
    background-color:red;
    padding: 1px 5px;
    border-radius: 5px;
    margin-left: 5px;
}

/* قیمت عادی (قیمت قبل از تخفیف) */
.product-regular-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through; /* خط کشیده روی قیمت عادی */
    margin-bottom: 10px;
    display: inline-block;
}
/* استایل آیکون‌های جهت‌یابی */
/* استایل آیکون‌های جهت‌یابی */
.swiper-button-next, .swiper-button-prev {
    position: relative;
    width: 15px;
    height: 15px;
    border-radius: 5px;
    background-color: red;
    opacity: 0;
    visibility: hidden;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* انتقال نرمال */
}

/* استایل برای ::before و ::after */
.swiper-button-next::before, .swiper-button-prev::before {
    font-size: 14px !important; /* اندازه آیکون */
    color: white; /* رنگ آیکون سفید */
    content: ''; /* اطمینان از نمایش آیکون‌های پیش‌فرض */
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 14px !important; /* اندازه آیکون */
    color: white; /* رنگ آیکون سفید */
    content: ''; /* اطمینان از نمایش آیکون‌های پیش‌فرض */
}

/* نمایش آیکون‌ها در حالت hover */
.swiper-container:hover .swiper-button-next, .swiper-container:hover .swiper-button-prev {
    opacity: 1; /* نمایش آیکون‌ها */
    visibility: visible; /* نمایش آیکون‌ها */
}
/* فقط در صورتی که اسلایدر در محیط تنظیمات المنتور است */
.elementor-editor-active .swiper-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* فاصله بین محصولات */
    width: 100%;
    position: relative;
    overflow: hidden;
}
.elementor-editor-active .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: 100%;
    position: relative;
    transition-property: transform;
}
