

/* Стиль для страницы товаров */
.product-info--wrapper {
    background: transparent !important;
    color: var(--black) !important;
    padding: 0 !important;
    margin-bottom: 32px !important;
    box-shadow: none !important;
    border-radius: 15px !important;
    line-height: 21px !important;
}

.product-media-purchase {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.product-media {
    flex: 0 0 40% !important;
    max-width: 40% !important;
}

.product-purchase {
    flex: 0 0 55% !important;
    max-width: 55% !important;
}

.s-features-section .product-info--wrapper {
    background: var(--white) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: var(--shadow) !important;
}

/* Если нужно добавить отступ от заголовка до блока с характеристиками */
.s-features-section h3 {
    margin-bottom: 20px !important;
}

.skus {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skus li {
    flex: 0 1 calc(33.333% - 7px);
}

.skus label {
    display: block;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.skus input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.skus input[type="radio"] + span[itemprop="name"] {
    display: block;
    padding: 10px 15px;
    text-align: center;
    background: var(--white);
    color: var(--black);
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Активная кнопка */
.skus input[type="radio"]:checked + span[itemprop="name"] {
    background: var(--black);
    color: var(--white);
}

/* Ховер для неактивной кнопки */
.skus input[type="radio"]:not(:checked) + span[itemprop="name"]:hover {
    border-color: var(--black);
}

/* Скрываем знак валюты */
.currency,
span.ruble {
    display: none !important;
}

/* Если нужно добавить знак рубля после цены через CSS */
.price::after {
    content: " ₽";
}

/* Используем более специфичный селектор для кнопки "Купить" */
.purchase button[type="submit"],
#cart-form button[type="submit"] {
    background-color: var(--link-hover-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.purchase button[type="submit"]:hover,
#cart-form button[type="submit"]:hover {
    background-color: #006604 !important;
}

.purchase button[type="submit"]:active,
#cart-form button[type="submit"]:active {
    background-color: #005503 !important;
}

.purchase button[type="submit"]:disabled,
#cart-form button[type="submit"]:disabled {
    background-color: var(--gray4) !important;
    cursor: not-allowed !important;
}

.custom-product-images {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Убран отступ между изображениями */
}

.custom-product-image {
    width: 100% !important;
    position: relative !important;
}

.custom-product-image a {
    display: block !important;
    width: 100% !important;
}

.custom-product-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    vertical-align: top !important; /* Убирает возможные пробелы между изображениями */
}

/* Скрываем лишние элементы */
.skus .hint,
.skus .price,
.skus meta,
.skus link {
    display: none;
}

/* Стили для disabled состояния */
.skus label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .skus li {
        flex: 0 1 calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .skus li {
        flex: 0 1 100%;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .product-media-purchase {
        flex-direction: column !important;
    }
    
    .product-media,
    .product-purchase {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Для планшетов и компьютеров: вывод изображений в их натуральном размере и выравнивание по центру */
@media (min-width: 769px) {
    .custom-product-images {
        align-items: center !important;
    }
    
    .custom-product-image,
    .custom-product-image a {
        width: auto !important;
    }
    
    .custom-product-image img {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
    }
}