/**
 * Стили для сетки товаров (Swiper)
 */

.products-grid-wrapper {
    width: 100%;
    margin: 40px 0;
    padding: 0;
    position: relative;
}

.products-grid-swiper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 60px;
    overflow: visible;
}

.products-grid-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.products-grid-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Ссылка на карточку товара */
.product-card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Карточка товара */
.product-card {
    font-family: Helvetica Neue;
    display: flex;
    flex-direction: column!important;
    gap: 20px;
    width: 100%;
    padding: 20px 10px 20px 20px;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 40%!important;
}

.product-card>div{
    gap: 20px;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Левая часть - изображение */
.product-card-image {
    position: relative;
    flex: 0 0 35%;
    max-width: 200px;
}

.product-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.product-card-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Бейдж скидки */
.product-card-badge {
    font-family: Helvetica Neue;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #8E0808;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    border: 1px solid #8E0808;
}

/* Правая часть - контент */
.product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.product-card-title {
    font-family: Helvetica Neue !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f2937;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Цены */
.product-card-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.product-card-price-old {
    font-size: 16px;
    color: #888888 !important;
    text-decoration: line-through;
    font-weight: 400 !important;
}

.product-card-price-new {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

.product-card-price-current {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

/* Форма корзины */
.product-card form.cart {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Кнопка */
.product-card-button {
    background: #fff !important;
        color: #8E0808 !important;
        padding: 12px 30px !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px;
        border: 1px solid #8E0808 !important;
        border-radius: 50px !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        width: 100%;
        box-sizing: border-box !important;
        cursor: pointer !important;
        font-family: Helvetica Neue !important;
}

.product-card-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 8, 8, 0.3);
}

.product-card-button:active:not(:disabled) {
    transform: translateY(0);
}

.product-card-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Навигация Swiper */
.products-grid-swiper .swiper-button-next,
.products-grid-swiper .swiper-button-prev {
    color: #8E0808;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #8E0808;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.products-grid-swiper .swiper-button-next:after,
.products-grid-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 700;
}

.products-grid-swiper .swiper-button-next:hover,
.products-grid-swiper .swiper-button-prev:hover {
    background: #8E0808;
    color: #fff;
}

.products-grid-swiper .swiper-button-next {
    right: 0;
}

.products-grid-swiper .swiper-button-prev {
    left: 0;
}

/* Пагинация Swiper */
.products-grid-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.products-grid-swiper .swiper-pagination-bullet {
    background: #8E0808;
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.products-grid-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .products-grid-swiper {
        padding: 20px 50px;
    }
}

@media (max-width: 768px) {
    .product-card>div {
        flex-direction: column;
    }
    .products-grid-swiper {
        padding: 20px 50px 60px;
    }

    .product-card {
        flex-direction: column;
        gap: 20px;
    }

    .product-card-image {
        flex: 1;
        max-width: 100%;
    }

    .product-card-image img {
        transform: none;
    }

    .product-card-title {
        font-size: 20px !important;
    }

    .product-card-button {
        width: 100%;
    }

    .products-grid-swiper .swiper-button-next,
    .products-grid-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .products-grid-swiper .swiper-button-next:after,
    .products-grid-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 20px;
    }

    .product-card-title {
        font-size: 18px !important;
    }

    .product-card-price-new,
    .product-card-price-current {
        font-size: 16px;
    }

    .product-card-button {
        padding: 10px 25px;
        font-size: 12px;
    }
}