
/* Контейнер для акции с каруселью товаров */
.special-offer-container {
    max-width: 100%;
    overflow: visible;
    padding: 0;
}

.special-offer-container .special-offer-banner-container {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 15px;
}

.special-offer-container .products-carousel.owl-carousel {
    margin: 0;
}

.special-offer-container .owl-item {
    padding: 0 10px;
}

/* Карусель товаров в контейнере акции */
.special-offer-container .products-carousel {
    max-width: 100%;
}

.special-offer-container .owl-carousel {
    overflow: hidden;
}

/* Стили для заголовка модуля */
.special-offer-container .module-title {
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Scrollbar для карусели */
.special-offer-container .scrollbar {
    margin: 20px 15px 0;
}

.special-offer-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    padding: 0px 0px 30px 0px;
}

.special-offer-banner-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px 20px 10px;
    max-width: 350px;
    height: 250px;
    flex-shrink: 0;
}

/* Компактная версия для карусели */
.special-offer-container .special-offer-banner-left {
    max-width: 250px;
    height: 200px;
    padding: 15px 10px;
}

.special-offer-container .special-offer-banner-left .special-offer-title {
    font-size: 60px;
    line-height: 70px;
}

.special-offer-container .special-offer-subtitle {
    font-size: 14px;
}

.special-offer-banner-left .special-offer-title {
    font-size: 86px;
font-weight: 400;
line-height: 103px;
letter-spacing: 0%;
text-align: center;


}
.special-offer-subtitle {
    font-size: 17px;
font-weight: 400;
line-height: 100%;
letter-spacing: 0%;
text-align: center;
}

.special-offer-banner-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 34px;
}

.special-offer-title-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.special-offer-banner-right .special-offer-title{
    font-size: 36px;
font-weight: 500;
line-height: 100%;
letter-spacing: 0%;
text-align: left;

margin : 0 !important;
overflow : unset !important;
white-space: unset !important;
}

/* Компактная версия правой части для карусели */
.special-offer-container .special-offer-banner-right .special-offer-title {
    font-size: 28px;
}

.special-offer-container .special-offer-timer-block {
    gap: 15px;
}

.special-offer-container .flip-digit {
    width: 30px;
    height: 45px;
}

.special-offer-container .flip-card-top,
.special-offer-container .flip-card-bottom {
    font-size: 30px;
    line-height: 48px;
    height: 23px;
}

.special-offer-container .flip-card-bottom {
    top: 23px;
}

.special-offer-container .flip-card-bottom::before {
    font-size: 30px;
    line-height: 48px;
    top: -23px;
}

.special-offer-container .timer-separator {
    font-size: 30px;
    margin-top: -15px;
}

.special-offer-dates span {
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: left;
    opacity: 0.7;
}

.special-offer-timer-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 29px;
}

.special-offer-timer{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.timer-label{
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.timer-item-block{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.timer-item-block .timer-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.timer-digits {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.flip-digit {
    position: relative;
    width: 35px;
    height: 53px;
    perspective: 300px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;

    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 25%, rgba(153, 153, 153, 1) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.flip-card-top,
.flip-card-bottom {
    position: absolute;
    width: 100%;
    height: 29px;
    overflow: hidden;
   
    border-radius: 4px;
  
    color: #000000;
    font-size: 36px;
    font-weight: 400;
    line-height: 58px;
    text-align: center;
}

.flip-card-top {
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transform-origin: bottom;
    transition: transform 0.3s ease-out;
    /* Верхняя часть - показываем верхнюю половину цифры */
}

.flip-card-bottom {
    top: 29px;
    /* Нижняя часть - сдвигаем содержимое вверх чтобы показать нижнюю половину */
    text-indent: -9999px;
    position: relative;
    color: transparent;
}

.flip-card-bottom::before {
    content: attr(data-value);
    position: absolute;
    top: -29px;
    left: 0;
    right: 0;
    font-size: 36px;
    font-weight: 400;
    line-height: 58px;
    color: #000000;
    text-indent: 0;
    text-align: center;
}

/* Анимация flip - верхняя часть падает */
.flip-card.flipping .flip-card-top {
    transform: rotateX(-90deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.timer-item-block .timer-separator{
    color: rgba(119, 118, 118, 1);
    font-size: 36px;
    font-weight: 400;
    line-height: 53px;
    letter-spacing: 0%;
    text-align: center;
    align-self: center;
    margin-top: -20px;
}

.flipdown.timer-item-block .rotor-group{
    padding : 0px;
}

.flipdown .rotor-group:first-child {
    display: none;
}

.flipdown.timer-item-block {
    width: unset;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .special-offer-info {
        flex-direction: column;
        gap: 10px;
        padding: 0px 0px 20px 0px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .special-offer-banner-left {
        max-width: 100%;
        width: 100%;
        height: auto;
        padding: 20px 10px 20px 10px;
    }

    .special-offer-banner-left .special-offer-title{
        font-size: 48px;
        line-height: 58px;
    }

    .special-offer-banner-left .special-offer-subtitle {
        font-size: 14px;
    }
    
    .special-offer-banner-right {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 24px;
        padding: 0px 15px 0px 15px;
    }
    
    .special-offer-banner-right .special-offer-title {
        font-size: 28px;
    }
    
    .special-offer-timer-block {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .flip-digit {
        width: 40px;
        height: 48px;
    }
    
    .flip-card-top,
    .flip-card-bottom {
        font-size: 38px;
        line-height: 48px;
        height: 24px;
    }
    
    .flip-card-bottom {
        top: 24px;
    }
    
    .flip-card-bottom::before {
        font-size: 38px;
        line-height: 48px;
        top: -24px;
    }
}

@media (max-width: 480px) {
    .special-offer-banner-left .special-offer-title {
        font-size: 60px;
        line-height: 70px;
    }
    
    .special-offer-subtitle {
        font-size: 14px;
    }
    
    .timer-item-block {
        gap: 6px;
    }
    
    .timer-digits {
        gap: 4px;
    }
    
    .flip-digit {
        width: 35px;
        height: 42px;
    }
    
    .flip-card-top,
    .flip-card-bottom {
        font-size: 32px;
        line-height: 42px;
        height: 21px;
    }
    
    .flip-card-bottom {
        top: 21px;
    }
    
    .flip-card-bottom::before {
        font-size: 32px;
        line-height: 42px;
        top: -21px;
    }
    
    .timer-label-small {
        font-size: 10px;
    }
}


.timer-label-small{
    color: rgba(119, 118, 118, 1);

font-size: 14px;
font-weight: 400;
line-height: 100%;
letter-spacing: 0%;
text-align: center;
}


.timer-info-link .special-offer-rules{
    color: rgba(200, 16, 46, 1);

    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: left;
}



@media (max-width: 990px) {
  .special-offer-info{
    flex-direction: column;
  }
}

/* Десктоп версия для акции с каруселью */
@media (min-width: 1400px) {
    .special-offer-container .special-offer-info {
        gap: 20px;
    }
    
    .special-offer-container .special-offer-banner-left {
        max-width: 220px;
        height: 180px;
    }
    
    .special-offer-container .special-offer-banner-left .special-offer-title {
        font-size: 52px;
        line-height: 60px;
    }
    
    .special-offer-container .special-offer-banner-right .special-offer-title {
        font-size: 24px;
    }
}

@media (min-width: 1900px) {
    .special-offer-container .special-offer-info {
        gap: 30px;
    }
    
    .special-offer-container .special-offer-banner-left {
        max-width: 250px;
        height: 200px;
    }
    
    .special-offer-container .special-offer-banner-left .special-offer-title {
        font-size: 60px;
        line-height: 70px;
    }
    
    .special-offer-container .special-offer-banner-right .special-offer-title {
        font-size: 28px;
    }
}


.special-offer-banner-container{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

#common-home #content > .bestseller-carousel-wrap.special-offer-container{
   display: block;
 
    margin-top: 50px;
}

#common-home #content > .bestseller-carousel-wrap.special-offer-container .owl-item{
    background: #FFF !important;
}
.bestseller-carousel-wrap.special-offer-container .special-offer-info{
    flex-direction: column;
    padding: 0;
}


#common-home .special-offer-container .special-offer-banner-container {

    border: 5px solid rgba(218, 54, 80, 1);
    background: rgba(246, 246, 246, 1);
    padding: 10px;
}

#common-home .special-offer-banner-left {
    padding: 25px 20px 25px 20px;
    max-width: unset;
    height: 190px;
}

#common-home .special-offer-banner-button {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

#common-home .special-offer-banner-button .button-all-special-products {
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 100%;
    font-size: 18px;
    background: #000;
    color: #fff;
}

#common-home .special-offer-banner-button .button-all-special-offers {
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 100%;
    font-size: 18px;
    background: #fff;
    color: #000;
}

@media (min-width: 768px) {
    #common-home .special-offer-banner-button.mobile-link{
        display: none!important;
       }
}

@media (max-width: 768px) {
    #common-home .special-offer-banner-button.desktop-link{
     display: none!important;
    }

    #common-home .special-offer-banner-container{
        flex-direction: column;
        padding: 15px;
    }
    #common-home .special-offer-banner-right{
         padding-bottom: 15px;
    }
    #common-home .special-offer-info{
        margin: 0;
        width: 100%;
    }

    #common-home .special-offer-banner-button.mobile-link{
        flex-direction: row;
        margin: 0;
    }
    #common-home  .button-all-special-products{
        font-size: 16px!important;
      
  }

}

@media (max-width: 400px) {
    #common-home  .button-all-special-products{
        font-size: 14px!important;
      
  }
}