.special-products-block {
}
/* — общая обёртка блока — */
.special-products-block {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 229px;
    margin: 40px auto;
    padding: 15px 0;
    position: relative;
    box-sizing: border-box;
}
.special-products-block:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}
.container-1 {
    padding-top: 15px;
}
.promo-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 36px;
    padding-bottom: 14px;
    margin: 0;
    text-align: center;
    color: #fff;
    width: 100%;
}

/* — карточка товара — */
.special-product-item {
    width: 260px;
    margin-right: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
    transition: transform .3s ease;
}
.special-product-item:hover {
    transform: translateY(-5px);
}
.special-product-link {
    display: block;
    height: 100%;
    color: #333;
    text-decoration: none;
}
.special-product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #ffffff;
}
.special-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.special-product-info {
    text-align: center;
    padding: 5px;
}
.special-product-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.special-product-code {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}
.special-product-price-block {
    margin-bottom: 10px;
}
.special-product-price {
    font-size: 18px;
    color: #373130;
    font-weight: 700;
}
.special-product-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

/* — количество + кнопка — */
.special-product-btn-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.quantity-control button {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-control input {
    width: 42px;
    height: 28px;
    text-align: center;
    border: none;
    font-size: 14px;
    outline: none;
}
.to-cart.btn {
    flex: 1;
    white-space: nowrap;
}

/* — адаптив — */
@media (max-width: 992px) {
    .special-product-image {
        height: 80px;
        padding: 0;
    }
    .special-product-name {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .special-product-price-block {
        margin-bottom: 5px;
    }
    .special-product-price {
        font-size: 16px;
    }
    .special-product-price-old {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .special-products-block {
        min-height: auto;
        padding: 10px 0;
        margin: 20px auto;
    }
    .promo-title {
        font-size: 18px;
        line-height: 24px;
        padding-bottom: 8px;
    }
    
    /* Улучшенное отображение блока цены */
    .special-product-price-block {
        margin-bottom: 8px;
    }
    .special-product-price {
        font-size: 15px;
    }
    
    /* Адаптация блока кнопки */
    .special-product-btn-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 8px;
    }
    .to-cart.btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 13px;
    }
    .quantity-control {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    /* Уменьшение высоты изображения */
    .special-product-image {
        height: 70px;
    }
    
    /* Уменьшение отступов в информации */
    .special-product-info {
        padding: 4px;
    }
}

@media (max-width: 480px) {
    /* Увеличение области цены */
    .special-product-price-block {
        margin-bottom: 10px;
    }
    .special-product-price {
        font-size: 14px;
    }
    
    /* Улучшение видимости кнопок */
    .special-product-btn-wrap {
        gap: 5px;
    }
    .to-cart.btn {
        padding: 7px 8px;
        font-size: 12px;
    }
    
    /* Уменьшение названия товара */
    .special-product-name {
        font-size: 11px;
        min-height: 26px;
        margin-bottom: 4px;
    }
    
    /* Уменьшение кода товара */
    .special-product-code {
        font-size: 10px;
        margin-bottom: 6px;
    }
}

/* Для слайдера Flickity - улучшение видимости */
@media (max-width: 995px) {
    .special-products-list {
        display: block !important;
    }
    .special-product-item {
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        margin-right: 10px;
    }
    .flickity-viewport {
        height: 285px !important; /* Увеличена высота */
    }
}

@media (max-width: 600px) {
    .flickity-viewport {
        height: 285px !important; /* Дополнительное увеличение */
    }
    .special-product-item {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
    }
}

@media (max-width: 480px) {
    .flickity-viewport {
        height: 285px !important; /* Максимальная высота для мобилок */
    }
    .special-product-item {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }
}