/* Bereza Special Products Carousel */

.bereza-special-carousel {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bereza-special-carousel .slick-list {
    overflow: hidden !important;
    flex: 1 1 auto !important;
}

.bereza-special-carousel .slick-track {
    display: block !important;
}

.bereza-special-carousel .slick-slide {
    flex: none !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

/* Card — high specificity to override template CSS */
.bereza-special-carousel .slick-slide .bereza-product-card,
.feature-right-col .bereza-special-carousel .bereza-product-card {
    flex: 0 0 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Square image — high specificity selector to override template CSS */
.bereza-special-carousel .slick-slide .bereza-product-image,
.feature-right-col .bereza-special-carousel .bereza-product-image {
    width: 180px !important;
    max-width: 180px !important;
    height: 180px !important;
    flex-shrink: 0 !important;
    margin: 0 auto 10px !important;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bereza-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bereza-no-image {
    color: #adb5bd;
    font-size: 13px;
}

/* Product info — block layout, prevent ANY height stretching */
.bereza-special-carousel .slick-slide .bereza-product-card .bereza-product-info,
.feature-right-col .bereza-special-carousel .slick-slide .bereza-product-card .bereza-product-info {
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    text-align: center;
    min-width: 0;
    overflow: visible;
    width: 100%;
    padding: 0 4px;
}

.bereza-special-carousel .slick-slide .bereza-product-card .bereza-product-title {
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 6px;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: none !important;
    height: auto !important;
}

.bereza-special-carousel .slick-slide .bereza-product-card .bereza-product-price {
    font-weight: 700;
    color: var(--brand, #1b9e3e);
    font-size: 18px;
    margin: 4px 0 8px;
    flex: none !important;
    height: auto !important;
    max-height: 30px !important;
}

/* Add to cart — quantity + buttons in one row */
.bereza-addtocart-form {
    margin: 8px 0;
    width: 100%;
}

.bereza-addtocart-bar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.bereza-quantity-box {
    flex: 0 0 auto;
}

.bereza-quantity-input {
    width: 36px !important;
    height: 32px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    padding: 0;
    box-sizing: border-box;
}

.bereza-quantity-controls {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bereza-qty-btn {
    width: 20px;
    height: 15px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    font-size: 10px;
    line-height: 14px;
    padding: 0;
    cursor: pointer;
    border-radius: 2px;
}

.bereza-qty-btn:hover {
    background: #e9ecef;
}

.bereza-qty-plus { border-bottom: none; border-radius: 2px 2px 0 0; }
.bereza-qty-minus { border-radius: 0 0 2px 2px; }

.bereza-addtocart-btn-wrap {
    flex: 1 1 auto;
    margin-left: 4px;
}

.bereza-addtocart-btn {
    display: block;
    width: 100%;
    background: var(--brand, #1b9e3e);
    color: #fff;
    border: none;
    padding: 0 12px;
    height: 32px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.bereza-addtocart-btn:hover {
    opacity: 0.85;
}

/* Details link */
.bereza-details-link {
    display: block;
    color: #0d6efd;
    font-size: 12px;
    text-decoration: none;
    margin-top: 6px;
}

.bereza-details-link:hover {
    text-decoration: underline;
}

/* No products message */
.bereza-special-carousel .no-products {
    text-align: center;
    color: #adb5bd;
    padding: 20px;
}

/* Slick overrides — arrows as circular icon buttons */
.bereza-special-carousel .slick-prev,
.bereza-special-carousel .slick-next {
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    position: absolute;
    top: 90px;
    transform: none;
    z-index: 20;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.bereza-special-carousel .slick-prev { left: 4px; }
.bereza-special-carousel .slick-next { right: 4px; }

.bereza-special-carousel .slick-prev::before {
    content: '\2039';
    font-size: 20px;
    color: var(--brand, #1b9e3e);
    text-indent: 0;
    display: block;
    line-height: 28px;
    text-align: center;
}

.bereza-special-carousel .slick-next::before {
    content: '\203A';
    font-size: 20px;
    color: var(--brand, #1b9e3e);
    text-indent: 0;
    display: block;
    line-height: 28px;
    text-align: center;
}

/* Full-width variant — 4 products per slide */
.bereza-special-carousel.layout-fullwidth .bereza-product-card {
    flex: 0 0 25%;
}
@media (max-width: 992px) {
    .bereza-special-carousel.layout-fullwidth .bereza-product-card {
        flex: 0 0 33.33%;
    }
}
@media (max-width: 768px) {
    .bereza-special-carousel.layout-fullwidth .bereza-product-card {
        flex: 0 0 50%;
    }
}
@media (max-width: 576px) {
    .bereza-special-carousel.layout-fullwidth .bereza-product-card {
        flex: 0 0 100%;
    }
}

