/* Контейнер вкладок */
.categories-tabs-container {
    margin: 0 0;
    padding: 0 0;
}
/* Обеспечиваем равномерное распределение карточек */
.slider-container {
    display: flex;
    overflow: hidden;
    gap: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Карточка продукта с фиксированной шириной */
.product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
   /* Добавляем максимальную ширину */
    border: 1px solid #00000026;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    scroll-snap-align: start; /* Для точного выравнивания */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
        max-width: 200px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 calc(100% - 10px);
        min-width: 180px;
        max-width: 180px;
    }
}

/* Убираем лишние отступы и обеспечиваем точное выравнивание */
.products-slider {
    box-sizing: border-box;
}

.slider-container {
    padding: 0;
    margin: 0;
}
/* Навигация вкладок */
.categories-tabs-nav {
display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #ef6644;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    border-color: #ef6644;
    color: #ef6644;
}

.tab-btn.active {
    background: #ef6644;
    border-color: #ef6644;
    color: white;
}

/* Контент вкладок */
.categories-tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Слайдер */
.products-slider {
    position: relative;
    padding: 0;
}

.slider-container {
display: flex;
    overflow: hidden;
    gap: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 345px;
    padding-top: 5px;
}

/* Стрелки слайдера */
.slider-arrow {
position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    background: white;
    border: 2px solid #ef6644;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex
;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.products-slider:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}

.slider-arrow:hover {
background: #ef6644;
    border-color: #ef6644;
    color: white;
    transition: all 0.3s ease;
}

.slider-prev {
    left: 9px;
}

.slider-next {
    right: 9px;
}

/* Карточка продукта */
.product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
	max-width: 265px;
    border: 1px solid #00000026;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #ef6644;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: #ef6644;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #005a87;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .categories-tabs-nav {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .products-slider {
        padding: 0;
    }
    
    /* Скрываем стрелки на мобильных */
    .slider-arrow {
        display: none !important;
    }
    
    /* Включаем горизонтальную прокрутку касанием */
    .slider-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .slider-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .product-card {
        flex: 0 0 calc(50% - 0px);
        min-width: 200px;
		    max-width: 370px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 180px;
		max-width: 370px;
    }
    
    .categories-tabs-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-image {
        height: 160px;
    }
}



/* Дополнительные стили для лучшего UX */
.products-slider {
    position: relative;
}

.products-slider::before,
.products-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Показываем градиенты только при необходимости прокрутки */
.products-slider.scrollable::before,
.products-slider.scrollable::after {
    opacity: 1;
}

.products-slider:not(.scrollable)::before,
.products-slider:not(.scrollable)::after {
    opacity: 0;
}
