/* Обертка */
.products-tabs-wrapper {
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    height: 505px;
    position: relative;
}

/* Header */
.pt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.pt-tabs {
    display: flex;
    gap: 20px;
}
.pt-badge-new { background: #00B1BA; color: #fff; font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 32px; }

.pt-tab-btn {
    background: none;
    border: none;
    font-size: 40px;
    font-weight: 600;
    color: #B3B8BB;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.pt-tab-btn.active {
    color: #292A2A;
}

.pt-show-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00B1BA;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

/* Основной ряд */
.pt-content-row {
    display: flex;
    gap: 20px;
    height: 425px;
    width: 100%;
}

/* Сайдбар */
.pt-sidebar {
    width: 264px;
    height: 100%;
    position: relative;
    display: flex;
    gap: 12px;
    flex-shrink: 0; /* Не сжимаем */
}

.pt-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.pt-sidebar-scroll::-webkit-scrollbar { display: none; }

.pt-sidebar-item {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 16px;
    font-weight: 500;
    color: #292A2A;
}

.pt-sidebar-item:hover,
.pt-sidebar-item.active {
    background: #F3F4F5;
    color: #00B1BA;
}

.pt-sidebar-item:hover .pt-s-icon,
.pt-sidebar-item.active .pt-s-icon {
    color: #00B1BA;
}

.pt-s-icon {
    width: 24px;
    height: 24px;
    color: #292A2A;
    transition: color 0.2s;
    flex-shrink: 0;
}

/* Кастомный скроллбар */
.pt-sidebar-track {
    width: 4px;
    height: 100%;
    background: #F3F4F5;
    border-radius: 36px;
    position: relative;
}

.pt-sidebar-thumb {
    width: 4px;
    background: #767C80;
    border-radius: 36px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
}

/* Слайдер область */
.pt-slider-area {
    flex: 1;
    position: relative; /* Базовый блок для стрелок */
    min-width: 0;
    /* Скрываем только то, что выходит ЗА границы всего блока */
    overflow: hidden; 
}

/* Контейнер слайдера */
.pt-slider-container {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Скрываем стандартный скролл */
    overflow-y: hidden;
    scroll-behavior: smooth; /* Плавная прокрутка */
    
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.pt-slider-container::-webkit-scrollbar { display: none; }

.pt-slider-track {
    display: flex;
    gap: 20px;
    height: 100%;
    width: max-content;
    
    /* 
       ВАЖНО: Делаем отступ слева, чтобы первая карточка не прилипала к краю
       и чтобы левая стрелка стояла ровно на её границе.
       Расчет: (Свободное место - Ширина стрелки/2) ~ примерно 44px
    */
    padding-left: 44px; 
    padding-right: 20px; /* Немного места справа для безопасного скролла */
}

/* Карточка товара */
.pt-product-card {
    flex-shrink: 0;
    width: 238px; /* Точная ширина из Figma */
    height: 100%;
    background: #fff;
    border: 1px solid #DEE2E3;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ... (стили внутренних элементов без изменений, кроме комментариев) ... */

/* Верх карточки */
.pt-card-top { position: relative; height: 160px; margin-bottom: 8px; }
.pt-card-image { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.pt-card-image img { max-width: 148px; max-height: 148px; object-fit: contain; }
.pt-card-badges { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 4px; }
.pt-badge-sale { background: #D92A22; color: #fff; font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 32px; }
.pt-card-actions { display: flex; gap: 12px; }
.pt-action-btn { background: none; border: none; padding: 0; cursor: pointer; color: #878D91; transition: color 0.2s; display: flex; }
.pt-action-btn:hover { color: #00B1BA; }

/* Информация */
.pt-card-info { margin-bottom: auto; }
.pt-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; color: #00B1BA; font-size: 14px; font-weight: 500; }
.pt-title { font-size: 14px; font-weight: 600; color: #292A2A; line-height: 1.2; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-article { font-size: 14px; color: #292A2A; opacity: 0.8; }

/* Доставка */
.pt-delivery { margin-top: 8px; font-size: 14px; line-height: 1.35; }
.pt-del-row { display: flex; gap: 4px; }
.pt-del-label { color: #878D91; }
.pt-del-val { color: #292A2A; }

/* Наличие */
.pt-stock { display: flex; align-items: center; gap: 4px; margin-top: 12px; margin-bottom: 12px; }
.pt-stock-icon { width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.pt-stock-text { color: #2FB844; font-size: 14px; font-weight: 500; }
.pt-stock-badge { background: rgba(47, 184, 68, 0.2); color: #2FB844; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 32px; margin-left: auto; }

/* Низ карточки */
.pt-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.pt-price-current { font-size: 20px; font-weight: 600; color: #292A2A; }
.pt-price-old { font-size: 14px; color: #878D91; text-decoration: line-through; }
.pt-cart-btn { width: 48px; height: 48px; background: #00B1BA; border-radius: 32px; border: none; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.pt-cart-btn:hover { background: #0099a1; }

/* Стрелки слайдера */
.pt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #F3F4F5;
    border-radius: 32px;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00B1BA;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pt-slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #00B1BA;
}

/*
   Позиционирование стрелок:
   Левая: 24px от левого края. Это ставит её центр на границу отступа (44px), 
   то есть ровно на начало первой карточки (половина внутри, половина снаружи).
   Правая: 0px от правого края. Совпадает с границей блока.
   Так как у нас padding-right у трека 20px, последняя карта заканчивается чуть левее края.
   Стрелка right:0 будет заходить на неё примерно наполовину (ширина стрелки 40px).
*/
.pt-slider-arrow.prev { left: 24px; }
.pt-slider-arrow.next { right: 0; }

/* Красный цвет для "Под заказ" */
.pt-stock-text.out-of-stock-text {
    color: #D10F17 !important;
    background: transparent;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
}

/* Зелёный для "В наличии" */
.pt-stock-text {
    color: #2FB844;
    font-weight: 500;
}

.pt-product-card .pt-stock .pt-stock-text.out-of-stock-text {
    color: #D10F17 !important;
}