:root {
    --carousel-bg: rgb(156, 15, 72);
    /*--carousel-bg: #000;*/
}

/* استایل‌های سفارشی برای Swiper */
.special-offers-wrapper .special-offers .text-muted{
    font-size: 13px !important;
}
.special-offers-wrapper {
    position: relative;
    padding: 0 8px;
}
.special-offers-wrapper .swiper-button-next,.special-offers-wrapper .swiper-button-prev {
    background-color: #fcf4e9;
}

.special-offers {
    border-radius: 15px;
    padding: 15px;
    max-height: 580px;
    background-color: var(--carousel-bg);
    overflow: hidden;
}

.special-offers-wrapper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.special-offers-wrapper .swiper-button-next, .special-offers-wrapper .swiper-button-prev {
    background: #fcf4e9 !important;
    color: var(--bs-primary) !important;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.special-offers-wrapper .swiper-button-prev.swiper-button-disabled,
.special-offers-wrapper .swiper-button-next.swiper-button-disabled {
    opacity: 0 !important;
}

.special-offers-wrapper .swiper-button-next:hover, .special-offers-wrapper .swiper-button-prev:hover {
    background-color: #d6cfc5;

}

.special-offers-wrapper .swiper-button-next::after, .special-offers-wrapper .swiper-button-prev::after {
    font-size: 13px;
    font-weight: bold;
}

/* --- توجه: این دو قانون تداخل داشتند، قانون پیش‌فرض سوایپر بهتر است --- */
/* .special-offers-wrapper .swiper-button-next::after {
    content: 'prev' !important;
    color: red !important;
} */

.special-offers-poster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.special-offers-poster svg {
    width: 80px;
}

.special-offers-swiper .special-offers-poster .more-svg {
    width: 18px;
}

.special-offers-poster a {
    padding-right: 13px;
    position: relative;
    text-decoration: none;
    font-size: 14px;
    color: #fcf4e9;
}

.special-offers-poster a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 21px;
    height: 1px;
    width: 0;
    background-color:  #fcf4e9;
    transition: width 0.4s ease;
}

.special-offers-poster a:hover::after{
    width: 93%;
}

.special-offers-swiper .card {
    padding: 10px;
    border-radius: 15px;
    background-color: #fff;
    border: none;
    margin-bottom: 0;
}

.special-offers-swiper .card img {
    border-radius: 15px;
    padding-bottom: 10px;
    height: 300px !important; /* ارتفاع ثابت برای یکدستی کارت‌ها */
    width: 100% !important;
    object-fit: contain !important; /* تصویر بدون کات شدن در باکس جا می‌گیرد */
    background: #fff;
}

.special-offers-swiper .card p {
    font-size: 13px;
    color: rgb(33, 37, 41);
    text-align: center;
    font-weight: 600;
}

.special-offers-swiper .product-name {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important; /* تعداد خطوط مورد نظر */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


.special-offers-swiper .card .price-wrapper {
    display: flex;
    justify-content: space-between;
}

.special-offers-swiper .card .price-wrapper .discount-badge {
    font-size: 11px;
    border-radius: 15px;
    padding: 5px 10px;
    background-color: #e6123d;
    color: #fff;
    font-weight: 600;
    line-height: 13px;
}

.special-offers-swiper .card .price-wrapper .new-price {
    font-size: 12px;
    font-weight: 700;
    color: rgb(33, 37, 41);
}

.special-offers-swiper .card .old-price {
    font-size: 11px;
    color: #616161;
}

.special-offers-swiper .special-offers-end a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    color: #fcf4e9;
}

.special-offers-swiper .special-offers-end svg {
    width: 40px;
}

.special-offers-swiper .card .countdown {
    font-size: 12px;
    text-align: left;
}
/*استایل های مجید*/
.special-offers-swiper .swiper-slide{
    background: #fff;
    border-radius: 15px;
    padding: 0px;
}
.special-offers-swiper .swiper-wrapper > .swiper-slide:first-child
,.special-offers-swiper .swiper-wrapper > .swiper-slide:last-child {
    width: 195px !important;
    background:transparent !important;
}
.special-offers-swiper .swiper-slide article > div:first-child {
    margin: 0px !important;
}
.special-offers-swiper .swiper-slide h3{
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important; /* تعداد خطوط مورد نظر */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.special-offers-swiper .swiper-slide article > div:nth-child(2) {
    padding: 0px !important;
}
.countdown-special-off{
    font-size: 12px;
}
.price {
    justify-content: center;
}

.amazing-product-title{
     display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important; /* تعداد خطوط مورد نظر */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}



.special-offers-wrapper .swiper {
    clip-path: inset(0 0 0 -100%);
    padding-right: 10px;
}

.special-offers-wrapper .swiper-slide {
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .special-offers-wrapper .swiper-slide {
        width: 315px;
    }
}

.special-offers-wrapper .swiper-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.special-offers-wrapper .special-offers-poster {
    width: 100%;
}