/* === Карусель товаров === */
.product-carousel {
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}

/* Скроллбар */
.product-carousel::-webkit-scrollbar {
    height: 6px;
}

.product-carousel::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

.product-carousel::-webkit-scrollbar-thumb {
    background: var(--btn-gradient-start);
    border-radius: 10px;
}

.product-carousel:hover::-webkit-scrollbar-thumb {
    background: var(--btn-gradient-end);
}

.carousel-container {
    display: flex;
    gap: 20px;
    padding: 0 10px;
    min-width: max-content;
}

/* === Карточка товара === */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    margin: 0;
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-card .title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-card .description {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-card .price {
    font-size: 22px;
    font-weight: bold;
    color: var(--btn-gradient-start);
    margin-bottom: 20px;
}

.buy-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
    color: white;
    border: none;
    border-radius: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.buy-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
    transition: left 0.7s ease;
}

.buy-btn:hover {
    transform: translateY(-3px);
}

.buy-btn:hover:before {
    left: 100%;
}

/* Адаптивность карточек */
@media (max-width: 768px) {
    .product-card {
        width: 260px;
        padding: 20px;
    }

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

    .product-card .price {
        font-size: 20px;
    }

    .buy-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-carousel {
        padding: 10px 0;
    }

    .carousel-container {
        gap: 16px;
        padding: 0 8px;
    }

    .product-card {
        width: 240px;
    }

    .product-card img {
        height: 160px;
    }

    .product-card .description {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .product-card {
        width: 220px;
        padding: 18px;
    }

    .product-card .title {
        font-size: 16px;
    }

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

    .buy-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}