

/* Start:/bitrix/templates/eshop_bootstrap_v4/components/bitrix/catalog/.default/style.css?17751376287260*/
/* =========================================
   1. СТИЛИ КАРКАСА (Сайдбар + Контент)
   ========================================= */
.collection { display: grid; grid-template-columns: 1fr; gap: 20px; }
.collection.with-sidebar { grid-template-columns: 250px 1fr; align-items: start; }
@media (max-width: 1024px) { .collection.with-sidebar { grid-template-columns: 1fr; } }
.collection__content { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.section__title { font-size: 28px; margin-bottom: 20px; color: #11497b; }

/* =========================================
   2. СТИЛИ КАТЕГОРИЙ (InSales)
   ========================================= */
.collections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 992px) { .collections-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.collections-grid__item { border-radius: 5px; box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05); overflow: hidden; transition: 0.4s box-shadow, 0.4s transform; background: #fff; height: 100%; }
.collections-grid__item:hover { box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.2); transform: translateY(-3px); }
.collection-card { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; }
.collection-card__image { padding-top: 100%; position: relative; background: #f8f9fa; }
.collection-card__image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.collection-card__data { padding: 15px; text-align: center; margin-top: auto; }
.collection-card__title { color: #11497b; font-weight: 600; font-size: 15px; line-height: 1.3; }
.collection-card__count { color: #999; font-size: 13px; margin-top: 5px; }

/* =========================================
   3. СТИЛИ ТОВАРОВ (InSales)
   ========================================= */
.insales-grid-wrapper { --color-primary: #11497b; --color-primary-d: #0e3c65; --color-white: #ffffff; --color-black: #000000; --shadow-s: 0 0 15px 0 rgba(0, 0, 0, 0.05); --shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.2); --radius: 5px; --button-height: 36px; }
.insales-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) { .insales-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .insales-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 10px; display: flex; flex-direction: column; height: 100%; position: relative; transition: 0.3s box-shadow, 0.3s transform; overflow: hidden; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); z-index: 2; }
.product-card__image { position: relative; padding-top: 100%; margin-bottom: 10px; display: block; background: #fff; }
.product-card__image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.product-card__content { flex-grow: 1; display: flex; flex-direction: column; }
.product-card__title { font-size: 14px; line-height: 1.3; color: var(--color-black); text-decoration: none; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 38px; }
.product-card__title:hover { color: var(--color-primary); }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--color-black); margin-bottom: 15px; margin-top: auto; }
.product-card__add { margin-top: 10px; }
.button--primary { background: var(--color-primary); color: var(--color-white); border: none; border-radius: var(--radius); height: var(--button-height); width: 100%; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; text-decoration: none; }
.button--primary:hover { background: var(--color-primary-d); color: #fff; text-decoration: none; }



/* =========================================
   4. БОКОВОЕ МЕНЮ (САЙДБАР)
   ========================================= */
.collection-nav {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.05);
    padding: 15px 20px;
}
.collection-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.collection-nav li {
    position: relative;
}
.collection-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #222222;
    text-decoration: none !important;
    font-size: 14px;
    border-bottom: 1px solid #eeeeee;
    transition: 0.2s color;
}
.collection-nav li:last-child > a {
    border-bottom: none;
}
.collection-nav li a:hover {
    color: #11497b;
}
.collection-nav li a.is-active {
    font-weight: 700;
    color: #11497b;
}
/* Стили для вложенных списков */
.collection-nav li ul {
    padding-left: 15px;
    display: none; /* По умолчанию скрыто */
    border-left: 1px solid #eeeeee;
    margin-left: 5px;
}
.collection-nav li.is-open > ul {
    display: block; /* Показываем, если открыто */
}
/* Иконка-стрелочка */
.collection-nav li a span svg {
    width: 10px;
    height: 10px;
    fill: #999999;
    transition: transform 0.3s;
}
.collection-nav li.is-open > a > span svg {
    transform: rotate(90deg); /* Поворот стрелки при открытии */
    fill: #11497b;
}
/* Невидимая кнопка поверх стрелки для клика (JS) */
.js-nav-toggle-btn {
    position: absolute;
    right: 0;
    top: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

/* =========================================
   КНОПКА-ТРАНСФОРМЕР "В КОРЗИНУ"
   ========================================= */
.add-to-cart-wrapper {
    position: relative;
    width: 100%;
    height: 40px; /* Высота из вашего шаблона */
}
.add-to-cart-wrapper .button--primary {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.add-to-cart-wrapper .add-cart-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #f7f8fa;
    border: 1px solid #f1f1f1;
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

/* Состояние "В корзине" */
.add-to-cart-wrapper.in-cart .button--primary {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}
.add-to-cart-wrapper.in-cart .add-cart-counter {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Стили самого счетчика */
.counter-btn {
    background: transparent;
    border: none;
    color: #11497b;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    width: 40px;
    height: 100%;
    transition: 0.2s;
}
.counter-btn:hover { background: #e9ecef; }
.counter-value {
    font-size: 14px;
    font-weight: 600;
    color: #11497b;
}
/* End */


/* Start:/bitrix/templates/eshop_bootstrap_v4/components/bitrix/catalog.element/.default/style.css?17786710598495*/
/* =========================================
   ОБЩИЕ СТИЛИ КОМПОНЕНТА
   ========================================= */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin: 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (max-width: 1024px) {
    .product { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================
   ГАЛЕРЕЯ ТОВАРА
   ========================================= */
.product__gallery {
    min-width: 0;
    position: sticky;
    top: 100px;
}
@media (max-width: 1024px) {
    .product__gallery {
        width: 100%;
        max-width: 630px;
        margin: 0 auto;
        position: relative;
        top: 0;
    }
}
.product-gallery {
    display: flex;
    gap: 10px;
}
@media (max-width: 768px) {
    .product-gallery { flex-direction: column-reverse; }
}
.product-gallery__main {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}
.product-gallery__main img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
}
.product-gallery__thumbs {
    flex: 0 0 80px;
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (max-width: 768px) {
    .product-gallery__thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
}
.product-gallery__thumbs .thumb {
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.2s;
    background: #fff;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .product-gallery__thumbs .thumb {
        width: 60px;
        height: 60px;
    }
}
.product-gallery__thumbs .thumb:hover,
.product-gallery__thumbs .thumb.is-active {
    border-color: #11497b;
}
.product-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 5px;
    box-sizing: border-box;
}

/* =========================================
   ИНФОРМАЦИЯ О ТОВАРЕ
   ========================================= */
.product__content { min-width: 0; }
.product__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}
.product__head-main { flex-grow: 1; }
.product__title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #11497b;
    line-height: 1.3;
}
.product__meta {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    color: #999999;
    margin: 10px 0 0;
}
.product__prices {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin: 15px 0 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.product__price { font-size: 32px; font-weight: 700; color: #000; }
.product__old-price { font-size: 22px; text-decoration: line-through; color: #999999; }
.product__discount {
    font-weight: 700;
    color: #f8353e;
    font-size: 16px;
    padding: 5px 10px;
    background: #fff0f0;
    border-radius: 5px;
}
.product__short-description { margin: 20px 0; font-size: 15px; line-height: 1.6; color: #444; }

/* =========================================
   БЛОК ПОКУПКИ
   ========================================= */
.product__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    background: #fff;
    border: 1px solid #f1f1f1;
}
.product__available {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0fce2d;
    font-size: 14px;
}
.product__available::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0fce2d;
}
.product__available.not-available { color: #f8353e; }
.product__available.not-available::before { background-color: #f8353e; }

/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
.button--primary { background: #11497b; color: #ffffff; }
.button--primary:hover { background: #0e3c65; }
.button--secondary { background: #fff; color: #11497b; border: 2px solid #11497b; }
.button--secondary:hover { background: #f1f5f9; }
.button--telegram { background: #fff; color: #2AABEE; border: 1px solid #2AABEE; }
.button--telegram:hover { background: #2AABEE; color: #fff; }
.button:disabled { background: #ccc !important; color: #888 !important; border-color: #ccc !important; cursor: not-allowed; }

.product__alternative-purchase {
    display: flex;
    gap: 10px;
}
@media (max-width: 575px) {
    .product__alternative-purchase { flex-direction: column; }
}

/* Счетчик +/- */
.add-cart-counter__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 6px;
    height: 50px;
    border: 1px solid #11497b;
}
.add-cart-counter__controls-btn {
    background: transparent;
    border: none;
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #11497b;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 4px;
}
.add-cart-counter__controls-btn:hover { background: #f1f5f9; }
.add-cart-counter__controls-btn svg { width: 14px; height: 14px; }
.add-cart-counter__detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #11497b;
    font-size: 14px;
    line-height: 1.2;
    flex: 1;
    text-align: center;
}
.add-cart-counter__detail-text { font-weight: 700; font-size: 16px; }
.add-cart-counter__detail-open_cart { font-size: 12px; color: #666; margin-top: 2px; }

/* =========================================
   SEO ТЕКСТ ВНИЗУ
   ========================================= */
.product-bottom__fishtext {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* =========================================
   МОДАЛЬНЫЕ ОКНА
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 440px;
    padding: 30px;
    position: relative;
    box-sizing: border-box;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #11497b;
    text-align: center;
    margin: 0 0 15px 0;
}
.modal-input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 15px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}
/* Всплывающее окно корзины */
.cart-popup-content {
    display: flex;
    gap: 20px;
    align-items: center;
}
@media (max-width: 575px) {
    .cart-popup-content { flex-direction: column; text-align: center; }
}
.cart-popup-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 10px;
}
.cart-popup-info { flex: 1; }
.cart-popup-title { font-size: 16px; font-weight: 600; color: #000; margin-bottom: 10px; }
.cart-popup-price span { font-weight: 700; color: #11497b; font-size: 18px; }
.cart-popup-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cart-popup-buttons .button { height: 45px; font-size: 14px; flex: 1; min-width: 150px; }
/* End */
/* /bitrix/templates/eshop_bootstrap_v4/components/bitrix/catalog/.default/style.css?17751376287260 */
/* /bitrix/templates/eshop_bootstrap_v4/components/bitrix/catalog.element/.default/style.css?17786710598495 */
