

/* Start:/local/templates/72snab/css/product.css?178595083117482*/
/* Кнопка "В корзине" - после добавления товара */
.product-card__btn--in-cart {
    background: #0f6bb9 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    color:#fff;
}

.product-card__btn--in-cart:hover {
    background: #0a5a9e !important;
}

.product-card__btn--in-cart svg {
    display: none !important;
}

/* ===== Products Showcase — блок товаров на главной ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap');

@font-face {
    font-family: 'Bebas Neue Cyrillic';
    src: url('/local/templates/.default/fonts/BebasNeueCyrillic.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Основной контейнер */
.products-showcase {
    padding: 40px 0 0 0;
    background-color: #ffffff;
    font-family: 'Inter Tight', sans-serif;
}

.products-showcase.similar-products {
     padding: 40px 0 0px 0;
}

.products-showcase.also-bought-products{
     padding: 40px 0 40px 0;
}
.products-showcase.popular {
     padding: 40px 0 40px 0;
}

.products-showcase__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Заголовочная часть */
.products-showcase__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.products-showcase__title {
    margin: 0;
    color: #303030;
    font-size: 48px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.1;
}

.products-showcase__btn-all {
    color: #1481DB;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #1481DB;
    font-family: 'Inter Tight', sans-serif;
}

.products-showcase__btn-all:hover {
    background-color: #1481DB;
    color: white;
}

/* Сетка 5 колонок */
.products-showcase__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ===== ОБНОВЛЕННЫЕ СТИЛИ КАРТОЧКИ ТОВАРА ===== */
/* Карточка товара */
.product-card {
    background: white;
    border-radius: 0px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);*/
    box-shadow:0px 0px 2px 1px rgba(0, 0, 0, 0.05);
    background:#F2F3F5;
    cursor:pointer;
}

.product-card__inner {
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100%;
}

/* Блок изображения со слайдером */
.product-card__image-wrapper {
    position: relative;
    align-self: stretch;
    height: 271px;
    background: white;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0; /* не сжимается */
}

.product-card__image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card__image {
    /*width: 177px;*/
    width:100%;
    /*height: 174px;*/
    object-fit: contain;
    border-radius: 2px;
    display: none;
}

.product-card__image--active {
    display: block;
}

/* Индикаторы изображений (точки) */
.product-card__image-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.product-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #E1E1E1;
    cursor: pointer;
    transition: background 0.2s;
}

.product-card__dot:hover {
    background: #818084;
}

.product-card__dot--active {
    background: #818084;
}

/* Стрелки слайдера */
.product-card__slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s;
    padding: 0;
}

.product-card__slider-arrow:hover {
    background: white;
}

.product-card__slider-arrow--prev {
    left: 8px;
}

.product-card__slider-arrow--next {
    right: 8px;
}

.product-card__slider-arrow svg {
    width: 8px;
    height: 12px;
}

/* Верхняя информация (артикул + рейтинг) */
.product-card__info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    height: 18px;
    flex-shrink: 0; /* не сжимается */
}

.product-card__articul {
    color: #818084;
    font-size: 18px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    line-height: 1;
}

.product-card__rating {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.product-card__rating-value {
    color: #1481DB;
    font-size: 18px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    line-height: 1;
}

.product-card__rating-count {
    color: #8AC0ED;
    font-size: 18px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    line-height: 1;
}

/* Блок цен */
.product-card__prices {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
    flex-shrink: 0; /* не сжимается */
}

.product-card__price-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.product-card__price-label-text {
    color: #818084;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
}

.product-card__price-units {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.product-card__price-unit {
    color: #818084;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s;
}

.product-card__price-unit:hover {
    color: #1481DB;
}

.product-card__price-unit--active {
    color: #303030;
    font-weight: 500;
    cursor: default;
}

.product-card__price-unit--active:hover {
    color: #303030;
}

.product-card__price-values {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8px;
    align-self: stretch;
}

.product-card__price-current {
    color: #1481DB;
    font-size: 32px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
}

.product-card__price-old {
    color: #8AC0ED;
    font-size: 20px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    text-decoration: line-through;
    text-transform: uppercase;
    line-height: 1.2;
    display: inline-block;
}

/* ===== ОБНОВЛЕННЫЕ СТИЛИ НАЗВАНИЯ ТОВАРА ===== */
.product-card__title {
    margin: 8px 0;
    align-self: stretch;
    flex-shrink: 0; /* не сжимается, высота будет управляться JS */
    transition: height 0.1s ease;
    height: auto; /* по умолчанию авто */
    display: flex;
    align-items: flex-start;
}

/* Убираем ограничение по количеству строк */
.product-card__title-link {
    color: #303030;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: block; /* меняем с -webkit-box на block */
    overflow: visible; /* убираем скрытие */
    text-overflow: clip; /* убираем многоточие */
    line-height: 1.3;
    word-wrap: break-word; /* перенос длинных слов */
    overflow-wrap: break-word;
    width: 100%; /* занимает всю ширину родителя */
}

.product-card__title-link:hover {
    color: #1481DB;
}

/* Кнопки */
.product-card__actions {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    flex-shrink: 0; /* не сжимается */
    margin-top: auto; /* прижимает кнопки к низу */
}

.product-card__btn {
    flex: 1;
    height: 40px !important; /* Фиксированная высота для обеих кнопок */
    padding: 10px 18px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}

.product-card__btn svg {
    flex-shrink: 0;
}

.product-card__btn span {
    color: white;
    line-height: 1;
}

.product-card__btn--buy {
    background: #1481DB;
}

.product-card__btn--buy:hover {
    background: #0f6bb9;
}

.product-card__btn--details {
    background: #303030;
    display: flex !important; /* Исправлено для a-ссылки */
}

.product-card__btn--details:hover {
    background: #4a4a4a;
}

/* Состояние кнопки "В корзине" */
.product-card__btn--in-cart {
    background: #0f6bb9;
}

.product-card__btn--in-cart:hover {
    background: #0a5a9e;
}

/* Бейджи */
.product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
}

.product-card__badge {
    padding: 8px 10px;
    color: white;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    border-radius: 2px;
    line-height: 1;
    white-space: nowrap;
}

.product-card__badge--sale {
    background: #1481DB;
}

.product-card__badge--stock {
    background: #303030;
}

.product-card__badge--outstock {
    background: #818084;
}

/* Дополнительные стили для бейджей */
.product-card__badge--new {
    background: #4CAF50;
}

.product-card__badge--hit {
    background: #FF9800;
}

.product-card__badge--promo {
    background: #9C27B0;
}

.product-card__badge--recommend {
    background: #2196F3;
}

.product-card__badge--bestseller {
    background: #E91E63;
}

.product-card__badge--exclusive {
    background: #673AB7;
}

.product-card__badge--limited {
    background: #795548;
}

.product-card__badge--gift {
    background: #FF4081;
}

.product-card__badge--discount {
    background: #F44336;
}

.product-card__badge--expected {
    background: #FFC107;
    color: #303030;
}

.product-card__badge--outofstock {
    background: #9E9E9E;
}

/* Адаптивность (Десктоп и Планшеты) */
@media (max-width: 1200px) {
    .products-showcase__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-showcase__title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .products-showcase__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-showcase__title {
        font-size: 36px;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛОК (СВАЙП ПО ФИГМЕ) ===== */
@media (max-width: 768px) {
    .products-showcase {
        padding: 32px 0 0 16px;
    }
    
    .products-showcase__container {
        padding: 0;
        overflow: hidden; /* Обрезаем свайп за пределами экрана */
    }
    
    .products-showcase__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-left: 0px; 
        margin-bottom: 16px;
    }
    
    .products-showcase__title {
        font-size: 24px !important; /* По Фигме */
    }
    
    /* Превращаем сетку в горизонтальную ленту */
    .products-showcase__grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 9px !important; /* По Фигме отступ между карточками 9px */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* Слева 16px, снизу 16px для скроллбара, справа 0px (уход за край) */
        padding: 0 0 16px 16px; 
        
        scrollbar-width: thin;
        scrollbar-color: #E1E1E1 #F2F3F5;
    }

    /* Карточка товара (Мобилка) */
    .product-card {
        flex: 0 0 163px !important; /* По Фигме ширина 163px */
        min-width: 163px !important;
        scroll-snap-align: start;
        background: #F2F3F5 !important;
        box-shadow: none !important;
    }
    .product-card:hover {
        background: #F2F3F5 !important;
        box-shadow: none !important;
    }

    .product-card__inner {
        padding: 10px !important; /* По Фигме */
        gap: 16px !important; /* По Фигме */
    }

    .product-card__image-wrapper {
        height: 142px !important; /* По Фигме */
        background: white !important;
        border-radius: 2px;
    }

    .product-card__image {
        width: 109px !important; /* По Фигме */
        height: 107px !important; /* По Фигме */
        object-fit: contain;
    }

    .product-card__image-dots {
        bottom: 4px; /* Прижимаем точки к низу картинки */
    }

    /* Бейджи */
    .product-card__badges {
        top: 3px;
        left: 4px;
        gap: 4px;
        flex-direction: row;
		flex-wrap: initial;
    }

    .product-card__badge {
        padding: 8px 10px !important; /* По Фигме */
        font-size: 10px !important; /* По Фигме */
        border-radius: 2px;
    }

    /* Информация */
    .product-card__info-top {
        height: auto !important;
    }

    .product-card__articul,
    .product-card__rating-value,
    .product-card__rating-count {
        font-size: 13px !important; /* По Фигме */
    }

    /* Цены */
    .product-card__prices {
        gap: 12px !important;
    }

    /* В Фигме на мобилке нет переключателя "Цена за:", скрываем его */
    .product-card__price-label {
        display: none !important;
    }

    .product-card__price-values {
        flex-direction: row;
        align-items: flex-end;
        gap: 4px !important;
    }

    .product-card__price-current {
        font-size: 18px !important; /* По Фигме */
    }

    .product-card__price-old {
        font-size: 13px !important; /* По Фигме */
        line-height: 1.2;
    }

    /* Название */
    .product-card__title {
        margin: 0 !important;
        height: auto !important;
    }

    .product-card__title-link {
        font-size: 13px !important; /* По Фигме */
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; /* Ограничиваем 2 строками для ровности */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Кнопки (делаем стопкой для узкой карточки) */
    .product-card__actions {
        flex-direction: column !important;
        gap: 8px !important;
		display:none;
    }

    .product-card__btn {
        width: 100% !important;
        height: 32px !important;
        font-size: 14px !important;
        padding: 6px 10px !important;
    }

    /* === Стилизация скроллбара под карточками === */
    /* Для Chrome, Safari, Edge */
    .products-showcase__grid::-webkit-scrollbar {
        height: 4px; /* Толщина как в Figma */
    }
    .products-showcase__grid::-webkit-scrollbar-track {
        background: #F2F3F5; /* Цвет дорожки */
        border-radius: 900px;
        /* Белые рамки по 16px (под цвет вашего фона #ffffff). 
           Браузер послушно отодвинет дорожку и бегунок на 16px от обоих краев экрана! */
        border-left: 16px solid #ffffff;
        border-right: 16px solid #ffffff;
        background-clip: padding-box; 
    }
    .products-showcase__grid::-webkit-scrollbar-thumb {
        background: #E1E1E1; /* Бегунок */
        border-radius: 900px;
        border-left: 16px solid #ffffff;
        border-right: 16px solid #ffffff;
        background-clip: padding-box;
    }
}

@media (max-width: 576px) {
    /* Все правила наследуются от 768px, структура свайпа сохраняется */
}

@media (max-width: 480px) {
    .product-card__inner {
        padding: 10px !important;
    }
}
/* End */
/* /local/templates/72snab/css/product.css?178595083117482 */
