/* Стили для товаров */
.pricing-box {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.pricing-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn:hover {
    background: #00665a !important;
}

/* Фиксированная высота для области с изображением */
.product-carousel-wrapper {
    min-height: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фиксированная высота для области с названием и ценой */
.pricing-head {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-head h3 {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

/* Стили для карусели товаров (старая версия - оставлено для совместимости) */
.product-carousel-wrapper {
    margin-bottom: 20px;
}

.product-carousel {
    position: relative;
    margin-bottom: 20px;
    display: block !important;
}

.product-carousel .carousel-item {
    text-align: center;
    padding: 5px;
    outline: none;
}

.product-carousel .carousel-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    min-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    background-color: #f5f5f5;
}

/* Стили для slick carousel */
.product-carousel.slick-initialized .slick-slide {
    display: block;
}

.product-carousel.slick-initialized .slick-slide img {
    display: block;
}

/* Показываем первый слайд до инициализации slick */
.product-carousel:not(.slick-initialized) .carousel-item:first-child {
    display: block !important;
}

.product-carousel:not(.slick-initialized) .carousel-item:not(:first-child) {
    display: none;
}

/* Стили для нового слайдера товаров */
.product-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item {
    display: none;
    text-align: center;
    height: 250px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.slider-item.active {
    display: flex;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    min-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    background-color: #f5f5f5;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 76, 63, 0.8);
    color: white;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 2;
    transition: background 0.3s;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 35px;
    text-align: center;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: normal;
    vertical-align: middle;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(0, 76, 63, 1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    padding: 10px 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #004C3F;
}

/* Стили для навигации карусели */
.product-carousel .slick-prev,
.product-carousel .slick-next {
    z-index: 2;
    width: 35px;
    height: 35px;
    background: rgba(0, 76, 63, 0.8);
    border-radius: 50%;
    transition: all 0.3s;
}

.product-carousel .slick-prev:hover,
.product-carousel .slick-next:hover {
    background: rgba(0, 76, 63, 1);
}

.product-carousel .slick-prev {
    left: 10px;
}

.product-carousel .slick-next {
    right: 10px;
}

.product-carousel .slick-prev:before,
.product-carousel .slick-next:before {
    font-size: 18px;
    color: white;
    opacity: 1;
}

/* Стили для точек навигации */
.product-carousel .slick-dots {
    bottom: -30px;
}

.product-carousel .slick-dots li button:before {
    color: #004C3F;
    font-size: 10px;
}

.product-carousel .slick-dots li.slick-active button:before {
    color: #004C3F;
    opacity: 1;
}

/* Скрываем карусель, если нет изображений */
.product-carousel-wrapper:empty {
    display: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .product-carousel .carousel-item img {
        max-height: 200px;
    }

    .product-carousel .slick-prev,
    .product-carousel .slick-next {
        width: 30px;
        height: 30px;
    }

    .product-carousel .slick-prev {
        left: 5px;
    }

    .product-carousel .slick-next {
        right: 5px;
    }
    
    .slider-item img {
        max-height: 200px;
    }

    .slider-prev, .slider-next {
        width: 30px;
        height: 30px;
        padding: 0;
        font-size: 14px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }
}

