﻿/* ========== Глобальные настройки ========== */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 80px; /* Отступ для футера, если он не фиксированный */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

iframe {
    
    width: 100%;
    height: 100%;
}
.swiper-slide {
    height: auto !important;
}

.swiper-button-prev,
.swiper-button-next {
    
    border-radius: 50%;
    font-size: 18px;
    color: black;
  
}

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 18px;
        color: black;
        transform:scale(1.1);
    }


/* Адаптив*/

@media(max-width:991.98px) {
    .navbar-nav {
   flex-direction: row;
    justify-content:space-around;
    width:100%;

    
    }
 
    .input-group {
    margin-top:10px;
    margin-bottom:10px;
    
    }
    .footer {
     
        text-align:center;

    }
    iframe {
        width: 100%;
        height:40%;
    
    
    }




}
.col {
    content-visibility: auto;
    contain-intrinsic-size: 300px; /* примерная высота карточки */
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .zoom-result {
        width: 250px;
        height: 250px;
        margin-left: 15px;
    }

    .zoom-lens {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    /* На планшетах и телефонах убираем отдельное окно результата */
    .zoom-result {
        display: none !important;
    }
    /* Лупа становится увеличительным стеклом поверх фото */
    .zoom-lens {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.2);
        border: 2px solid #fff;
        backdrop-filter: blur(0px);
        background-repeat: no-repeat;
        pointer-events: none;
        display: none;
        z-index: 10;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

        .zoom-lens.active-lens {
            display: block;
        }
}

@media (max-width: 576px) {
    .zoom-lens {
        width: 100px;
        height: 100px;
    }
}

/* Стили для миниатюр */
.thumbnail-img {
    transition: transform 0.2s, opacity 0.2s;
}

    .thumbnail-img:hover {
        transform: scale(1.05);
        opacity: 0.8;
    }
/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .zoom-result {
        width: 250px;
        height: 250px;
        margin-left: 15px;
    }

    .zoom-lens {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .zoom-result {
        display: none !important;
    }

    .zoom-lens {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        background-color: rgba(255,255,255,0.2);
        border: 2px solid #fff;
        background-repeat: no-repeat;
        pointer-events: none;
        display: none;
        z-index: 10;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
}

@media (max-width: 576px) {
    .zoom-lens {
        width: 100px;
        height: 100px;
        border-radius: 6px;
    }
}
/* --- ФИЛЬТРЫ: МИНИМАЛИЗМ и КРАСОТА --- */
.filter-card {
    border: none;
    border-radius: 22px;
    box-shadow: 0 2px 24px rgba(60,74,98,0.07);
    background: #fff;
    margin-bottom: 24px;
}

.filter-header {
    background: transparent;
    border-bottom: none;
    padding: 24px 22px 10px 22px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

.filter-body {
    padding: 10px 22px 22px 22px;
}

.filter-section {
    border-bottom: 1px solid #f1f1f4;
    transition: background 0.15s;
}

    .filter-section:last-child {
        border-bottom: none;
    }

.filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 18px 0 14px 0;
    color: #212529;
    font-size: 1.13rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
    outline: none !important;
}

    .filter-toggle:hover, .filter-toggle:focus {
        color: #E65328;
        background: #f6f7fb;
    }

    .filter-toggle[aria-expanded="true"] .bi {
        transform: rotate(180deg);
    }

    .filter-toggle .bi {
        transition: transform 0.23s cubic-bezier(0.4,0,0.2,1);
        font-size: 1.2em;
        margin-left: 5px;
        color: #aaa;
    }

/* Минималистичные чекбоксы */
.filter-section .form-check-input {
    border-radius: 6px;
    border: 1.5px solid #bbb;
    width: 1.13em;
    height: 1.13em;
    background: #fafdff;
    margin-top: 0.17em;
    margin-right: 0.6em;
    transition: border-color 0.12s;
}

    .filter-section .form-check-input:checked {
        background-color: #E65328;
        border-color: #E65328;
    }

.filter-section .form-check-label {
    font-size: 1em;
    color: #222;
    padding-top: 1px;
    cursor: pointer;
}

.filter-section .form-check {
    margin-bottom: 7px;
}

/* Инпуты цены и поиска */
.filter-section input[type="number"],
.filter-section input[type="text"],
.filter-section input[type="email"] {
    border: 1.2px solid #e5e7ef;
    border-radius: 10px;
    background: #f8faff;
    padding: 8px 12px;
    font-size: 1em;
    margin-bottom: 7px;
    transition: border-color 0.15s;
}

.filter-section input:focus {
    outline: none;
    border-color: #E65328;
    background: #fff;
}

/* Кнопка "Очистить" */
.filter-header .link-secondary {
    color: #E65328 !important;
    font-size: 1.02em;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.17s;
}

    .filter-header .link-secondary:hover {
        color: #c63c10 !important;
        text-decoration: underline;
    }

/* Удалить выделение/обводку у collapse */
.filter-section .collapse {
    background: none;
    padding-left: 0;
    padding-right: 0;
    border: none;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .filter-card {
        border-radius: 20px;
        margin: 0 0 12px 0;
        box-shadow: 0 3px 18px rgba(60,74,98,0.08);
    }

    .filter-header, .filter-body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .filter-section input,
    .filter-section .form-check-label {
        font-size: 1em;
    }
}

/* Для плавного появления контента фильтра */
.filter-section .collapse:not(.show) {
    display: none;
}
/* Плавная прокрутка только если нужно на мобилки */




/* --- КАРТОЧКА ТОВАРА: МИНИМАЛИЗМ И КРАСОТА --- */
.product-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(36,50,66,0.09);
    background: #fff;
    transition: transform 0.13s, box-shadow 0.13s, border-color 0.18s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

    .product-card:hover,
    .product-card:focus-within {
        transform: translateY(-4px) scale(1.012);
        box-shadow: 0 8px 32px rgba(90,90,170,0.09);
        border-color: #eee;
        z-index: 2;
    }

.product-img-top-wrapper {
    background: #f6f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    min-height: 180px;
    max-height: 220px;
    border-bottom: 1px solid #f2f2f3;
}

    .product-img-top-wrapper img {
        max-width: 90%;
        max-height: 160px;
        object-fit: contain;
        border-radius: 10px;
        margin: auto;
    }

.product-card-body {
    padding: 17px 20px 3px 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #263047;
    line-height: 1.32;
    margin-bottom: 0.35rem;
    min-height: 2.2em;
    text-decoration: none !important;
}

.product-price {
    font-size: 1.23rem;
    font-weight: 600;
    color: #E65328;
    letter-spacing: 0.01em;
    margin-bottom: 5px;
}

.product-byline {
    font-size: 0.95rem;
    color: #8290a3;
}

.product-card-bottom {
    margin-top: auto;
    padding: 0 20px 16px 20px;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    border: none;
}

/* Кнопка "В корзину" */
.btn-product-cart {
    flex: 1 1 auto;
    border-radius: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    background: linear-gradient(99deg,#ff824a 15%,#ff571b 75%);
    border: none;
    color: #fff !important;
    transition: background 0.16s, box-shadow 0.13s;
    padding: 0.7em 0 0.7em 0;
    font-size: 1.06em;
    box-shadow: 0 1px 6px rgba(255, 130, 74, 0.08);
}

    .btn-product-cart:hover, .btn-product-cart:focus {
        background: linear-gradient(97deg,#e65328 5%,#fa8e55 89%);
        color: #fff !important;
        box-shadow: 0 2px 16px rgba(255, 130, 74, 0.17);
    }

/* Наличие */
.product-availability {
    font-size: 0.96rem;
    color: #46ba68;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 0.18em;
}

/* Нет в наличии */
.product-unavailable {
    color: #c63232;
}

@media (max-width: 991.98px) {
    .product-card-body, .product-card-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-img-top-wrapper {
        min-height: 150px;
        max-height: 160px;
        padding: 10px 0;
    }
}

/* (!) Для стилизации иконки корзины, если используешь Bootstrap Icons */
.product-card .bi-cart-plus {
    font-size: 1.3em;
    margin-right: 4px;
    vertical-align: -0.13em;
}


.product-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(36,50,66,0.08);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.16s, transform 0.16s;
}

    .product-card:hover {
        box-shadow: 0 7px 32px rgba(90,90,170,0.14);
        transform: translateY(-3px) scale(1.03);
        z-index: 2;
    }

.product-img-top-wrapper {
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    min-height: 155px;
}

    .product-img-top-wrapper img {
        max-width: 95%;
        max-height: 140px;
        object-fit: contain;
        border-radius: 10px;
        margin: auto;
        background: #fff;
    }

.product-card-body {
    padding: 16px 16px 3px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.075rem;
    font-weight: 500;
    color: #1A2541;
    min-height: 2.3em;
    text-decoration: none !important;
    margin-bottom: 0.3em;
}

.product-price {
    font-size: 1.18rem;
    font-weight: 600;
    color: #E65328;
    margin-bottom: 6px;
}

.product-availability {
    font-size: 0.98rem;
    color: #32a85b;
    margin-bottom: 0.25em;
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.product-unavailable {
    color: #d23939;
}

.product-card-bottom {
    margin-top: auto;
    padding: 0 16px 16px 16px;
    background: none;
    display: flex;
    align-items: center;
    border: none;
}

.btn-product-cart {
    border-radius: 13px;
    font-weight: 500;
    background: linear-gradient(99deg,#ff824a 15%,#ff571b 75%);
    border: none;
    color: #fff !important;
    transition: background 0.16s, box-shadow 0.13s;
    padding: 0.67em 0;
    font-size: 1.07em;
    box-shadow: 0 1px 6px rgba(255, 130, 74, 0.08);
}

    .btn-product-cart:hover, .btn-product-cart:focus {
        background: linear-gradient(99deg,#e65328 10%,#ff824a 90%);
    }

.product-card .bi-cart-plus {
    font-size: 1.15em;
    margin-right: 4px;
    vertical-align: -0.1em;
}
/* Липкий блок фильтров на странице каталога */
.filter-card {
    position: sticky;
    top: 80px; /* Отступ от верхнего края (высота вашей шапки + небольшой зазор) */
    z-index: 10; /* Чтобы фильтры не перекрывались другими элементами при скролле */
}

/* На маленьких экранах (планшеты, телефоны) липкость убираем, чтобы не мешала */
@media (max-width: 991.98px) {
    .filter-card {
        position: static;
    }
}
/* Вертикальная прокрутка для длинных списков в фильтрах (подкатегории, цвет, материал, магазины) */
.filter-section .collapse.show {
    max-height: 220px; /* оптимальная высота для выбора */
    overflow-y: auto; /* вертикальная прокрутка */
    padding-right: 8px; /* отступ для скроллбара */
    margin-top: 5px;
    margin-bottom: 10px;
}

    /* Красивый скроллбар (для WebKit-браузеров) */
    .filter-section .collapse.show::-webkit-scrollbar {
        width: 6px;
    }

    .filter-section .collapse.show::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .filter-section .collapse.show::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }

        .filter-section .collapse.show::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
/* Корзина — улучшенная таблица */
.table-responsive .table {
    border-radius: 1rem;
    overflow: hidden;
}

.table thead th {
    background: #f9fafb;
    font-weight: 600;
    border-bottom-width: 1px;
}

.table tfoot td {
    background: #ffffff;
    font-weight: 500;
}

.btn-outline-danger {
    border-radius: 2rem;
}

.btn-success {
    background: linear-gradient(105deg, #198754, #157347);
    border: none;
    border-radius: 2rem;
    transition: all 0.2s;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(25,135,84,0.2);
    }
/* Стили для поиска подкатегорий */
#subcategorySearch {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background-color: #f8faff;
}

    #subcategorySearch:focus {
        border-color: #E65328;
        outline: none;
        box-shadow: 0 0 0 2px rgba(230,83,40,0.2);
    }/* Стили для страницы профиля */
.avatar-circle {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}
.avatar-circle:hover {
    transform: scale(1.05);
}
.nav-tabs .nav-link {
    border: none;
    font-weight: 500;
    color: #4b5563;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    transition: all 0.2s;
}
.nav-tabs .nav-link:hover {
    background: #f3f4f6;

    color: #1f2937;
}

.nav-tabs .nav-link i {
    font-size: 1.1rem;
}
.table th {
    font-weight: 600;
    background-color: #f9fafb;
}
.fw-mono {
    font-family: monospace;
    font-size: 0.9rem;
}