/* Стили для блока "You may also like" - используем Cursor карточки с главной страницы */

.you-may-also-like {
    padding: 60px 0;
    background: #fff;
}

.you-may-also-like .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.you-may-also-like h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 3rem;
    font-family: "BPG ExtraSquare Mtavruli", sans-serif;
}

/* Используем Cursor карточки */
.you-may-also-like .product__items {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    margin-top: 2rem !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Переопределяем размер карточек для блока "You may also like" - 3 В РЯД КАК НА ГЛАВНОЙ */
.you-may-also-like .cursor-product-card {
    width: calc(33.333% - 16px) !important;
    max-width: calc(33.333% - 16px) !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Исправляем изображения - чтобы не выходили за блок */
.you-may-also-like .cursor-product-card__media {
    overflow: hidden !important;
    position: relative !important;
}

.you-may-also-like .cursor-product-card__main-image {
    max-width: 95% !important;
    max-height: 95% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transform: scale(1.1) !important;
}

/* На мобилке убираем увеличение для you-may-also-like */
@media (max-width: 768px) {
    .you-may-also-like .cursor-product-card__main-image {
        transform: scale(1) !important;
    }
}

/* Убираем слайдер если он есть */
.you-may-also-like .product__items.slider {
    display: flex !important;
    flex-wrap: wrap !important;
}

.you-may-also-like .product__items.slider .slick-track {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    transform: none !important;
}

.you-may-also-like .product__items.slider .slick-slide {
    width: auto !important;
    float: none !important;
}

/* Стили для кнопок на странице продукта */
.product-btn {
    background: white !important;
    color: black !important;
    border: 1px solid #111827 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.product-btn:hover {
    background: white !important;
    color: black !important;
    border-color: #111827 !important;
}

.product-btn:hover svg {
    fill: black !important;
}

.product-btn:hover path {
    fill: black !important;
}

.product-btn:active,
.product-btn:focus {
    background: #111827 !important;
    color: white !important;
    border-color: #111827 !important;
    outline: none !important;
    box-shadow: none !important;
}

.product-btn:active svg,
.product-btn:focus svg {
    fill: white !important;
}

.product-btn:active path,
.product-btn:focus path {
    fill: white !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .you-may-also-like {
        padding: 40px 0;
    }
    
    .you-may-also-like h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* На мобильных делаем карточки во всю ширину как на главной */
    .you-may-also-like .cursor-product-card {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        margin: 0 auto 15px auto !important;
    }
    
    .you-may-also-like .product__items {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* На мобилке убираем увеличение изображений в you-may-also-like */
    .you-may-also-like .cursor-product-card__main-image {
        transform: scale(1) !important;
    }
}

@media (max-width: 480px) {
    .you-may-also-like .product__items {
        justify-content: center !important;
    }
    
    .you-may-also-like .cursor-product-card {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
}
