﻿.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
.sidebar-menu ul.collapse {
    display: none;
}

    .sidebar-menu ul.collapse.show {
        display: block;
    }

.sidebar-menu .toggle-icon {
    font-size: 0.75rem;
}
.header-top .btn:hover {
    background-color: #176A81;
}
.promo-banner {
    background-size: cover;
    background-position: center;
    height: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .promo-banner:hover {
        transform: scale(1.01);
    }

.promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
}

.header-top img {
    height: 65px;
}
.cart-summary-btn:hover {
    background-color: #176A81;
}
.form-control:focus {
    border-color: #1F839F;
    box-shadow: none;
}

.header-top,
.header-bottom {
    background-color: #1F839F;
    color: #fff;
    font-size: 14px;
}

.promo-news {
    font-weight: 500;
}
.search-highlight {
    border: 2px solid #1F839F;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    .search-highlight:focus-within {
        border-color: #176A81;
        box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.25);
    }

    .search-highlight .form-control {
        border: none;
        box-shadow: none;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

        .search-highlight .form-control:focus {
            outline: none;
            box-shadow: none;
        }

    .search-highlight .btn {
        background-color: #1F839F;
        padding: 0 1.2rem;
        border: none;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease;
    }

        .search-highlight .btn:hover {
            background-color: #176A81;
        }

.header-bottom ul li a {
    font-weight: 500;
    padding: 8px 15px;
    transition: background 0.3s ease;
}

    .header-bottom ul li a:hover {
        background-color: #176A81;
        color: #fff !important;
    }

.mobile-header {
    background-color: #2f2f2f;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mobile-search {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* лёгкая тень */
    border-bottom: 1px solid #e0e0e0; /* тонкий бордер */
}


    .mobile-header .btn:hover i {
        color: #1F839F;
    }

    .mobile.mobile-icons{
        background-color: white;
    }
.mobile-icons a {
    text-decoration: none;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background: linear-gradient(90deg, #232526 0%, #1F839F 100%);
    color: #fff;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
}

.footer-logo {
    height: 48px;
}

.footer-social a {
    color: #fff;
    margin-right: 16px;
    font-size: 1.5rem;
    transition: color 0.2s;
}

    .footer-social a:hover {
        color: #232526;
    }

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 18px;
    font-size: 1rem;
}

    .footer-links a:hover {
        text-decoration: underline;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1rem;
    padding-top: 0.5rem;
    font-size: 0.95rem;
}

.footer-modern {
    background: linear-gradient(90deg, #1e1f22 0%, #2d2f36 100%);
    color: #fff;
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.2);
}

    .footer-modern .footer-link {
        color: #aaa;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-modern .footer-link:hover {
            color: #1F839F;
        }

    .footer-modern .footer-social a {
        color: #aaa;
        margin: 0 8px;
        font-size: 1.5rem;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .footer-modern .footer-social a:hover {
            color: #1F839F;
            transform: translateY(-2px);
        }

.custom-canvas {
    background: linear-gradient(180deg, #1e1f22 0%, #2d2f36 100%);
    color: #fff;
    width: 80%;
    /* ширина для мобилок */
    max-width: 320px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.canvas-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}

    .canvas-link:hover {
        color: #1F839F;
    }

.canvas-cart-btn {
    background-color: #1F839F;
    border: none;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

    .canvas-cart-btn:hover {
        background-color: #e96d1f;
    }

.custom-canvas {
    background: #2f2f2f;
    color: #fff;
    width: 85%;
    max-width: 360px;
}

.btn-close-white {
    filter: invert(1);
}


/* Плавное появление */
.offcanvas.show {
    opacity: 1;
    transform: translateX(0);
}

.offcanvas {
    opacity: 0;
    transform: translateX(100%);
}

.category-block {
    height: 100%;
    display: block;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

    .category-block:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

.category-img {
    width: 100%;
    height: 200px; /* фиксированная высота карточки */
    object-fit: cover; /* обрезает края, не тянет */
    border-radius: 8px;
    display: block;
    transition: transform 0.5s ease;
}

.category-block:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .category-overlay h5 {
        font-size: 1.1rem;
        line-height: 1.3;
        max-width: 90%;
        text-align: center;
        color: #fff;
        margin: 0 auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* максимум 2 строки */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.category-block:hover .category-overlay {
    opacity: 1;
}

.limited-offer {
    background-size: cover;
    background-position: center;
}

#offer-timer {
    font-family: monospace;
}

/* Обязательно для корректной работы слайдера */
.categorySlider .swiper-wrapper {
    display: flex;
}

.categorySlider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.brandSlider .swiper-slide {
    flex-shrink: 0;
    width: auto;
}


.breadcrumb a {
    color: #1F839F;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Модалка обратной связи */
#feedbackModal .modal-content {
    border-radius: 12px;
}

#feedbackModal .modal-header h5 {
    font-size: 1.25rem;
}

#feedbackModal .form-control {
    border-radius: 6px;
}

#feedbackModal button[type="submit"] {
    transition: background-color 0.3s ease;
}

    #feedbackModal button[type="submit"]:hover {
        background-color: #e96f22;
    }


.dropdown-toggle::after {
    display: none !important;
}
/* Адаптив — на телефонах по 2 */
@media (max-width: 575.98px) {
    .categories-grid .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .category-overlay h5 {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        /* максимум 3 строки, если надо */
    }
}

@media (min-width: 1200px) {
    .category-overlay h5 {
        font-size: 0.95rem;
    }
}

@media (min-width: 1400px) {
    .category-overlay h5 {
        font-size: 0.9rem;
    }
}

/* === Анимации === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Главный контейнер каталога === */
.catalog-hover:hover .catalog-main-menu {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}


.catalog-main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: none;
    z-index: 9999;
}
.catalog-main-menu-main {
    position: unset;
    display:block !important;
    top: 100%;
    background: #fff;
}
/* Кнопка каталога и меню одной высоты */
.catalog-toggle {
    height: 100%;
    min-height: 52px; /* такая же высота, как у поиска */
    display: flex;
    align-items: center;
}

/* Одинаковая ширина меню и кнопки */
.catalog-main-menu {
    width: 100% !important; /* Сделать ширину меню равной кнопке */
    min-width: 100%;
    left: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    background-color: #fff;
    padding: 0;
    z-index: 9999;
}

/* === Элемент верхнего уровня === */
.catalog-item {
    position: relative;
}
    .catalog-item a {
        text-decoration: none;
    }

        .catalog-item a:hover {
            text-decoration: none;
        }
.catalog-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

    .catalog-link:hover {
        background-color: lightgray;
        text-decoration: none;
        color: #000;
    }

/* === Подменю === */
.catalog-item:hover > .submenu {
    display: block !important;
    animation: fadeInRight 0.3s ease-in-out;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 280px;
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    z-index: 1001;
}

    /* === Вложенные уровни === */
    .submenu .submenu {
        top: 0;
        left: 100%;
    }

    /* === Элементы подменю === */
    .submenu li {
        position: relative;
    }

    .submenu a {
        display: block;
        padding: 8px 12px;
        color: #333;
        font-size: 0.95rem;
        font-weight: 400;
        transition: background 0.2s ease;
    }

        .submenu a:hover {
            background-color: #f8f9fa;
            color: #1F839F;
        }

.mega-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 900px; /* стало шире */
    max-width: 95vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    animation: fadeInRight 0.3s ease-in-out;
    padding: 2.5rem 2.5rem;
}

.catalog-item:hover > .mega-submenu {
    display: block;
}

.submenu-group .submenu-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .submenu-group .submenu-title:hover {
        color: #1F839F;
    }

.submenu-link {
    display: block;
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

    .submenu-link:hover {
        color: #1F839F;
    }
.grandchild-list {
    padding-left: 0;
    margin: 0;
}

.grandchild-link {
    padding: 4px 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
}

    .grandchild-link:hover {
        background-color: #f5f5f5;
        text-decoration: none;
    }

.grandchild-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
/* Тёмный канвас */
.custom-canvas {
    width: 300px;
    background-color: #1e1e1e;
    color: #ffffff;
    overflow-y: auto;
}

/* Ссылки */
.canvas-link {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .canvas-link:hover {
        color: #1F839F;
    }

/* Кнопка раскрытия */
.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    margin-left: 0.5rem;
}

/* Анимация поворота */
.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Вложенность и отступы */
.category-item ul {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Заголовок */
.custom-canvas .offcanvas-title {
    color: #ffffff;
}

/* Кнопка закрытия */
.custom-canvas .btn-close {
    filter: invert(1);
}

/* ✅ Компактный главный слайдер */
.hero-slider .hero-slide {
    height: 400px; /* фиксированная высота твоего баннера */
    background-size: contain; /* помещает картинку целиком */
    background-repeat: no-repeat; /* не повторять */
    background-position: center center;
}

@media (min-width: 768px) {
    .hero-slider .hero-slide {
        height: 260px; /* планшеты */
        padding: 2rem 1rem;
    }
}

@media (min-width: 1200px) {
    .hero-slider .hero-slide {
        height: 320px; /* десктоп */
        padding: 2.2rem 1rem;
    }
}

/* Адаптивная типографика внутри слайдов */
.hero-slider .hero-slide h1 {
    font-size: clamp(20px, 2.6vw, 34px);
    line-height: 1.15;
    margin-bottom: .6rem;
}

.hero-slider .hero-slide .lead {
    font-size: clamp(14px, 1.6vw, 18px);
    margin-bottom: 1rem;
}

.hero-slider .hero-slide .btn {
    padding: .6rem 1.1rem;
}

/* Стрелки — компактнее и аккуратнее */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    width: 36px;
    height: 36px;
    color: #fff;
    background-color: rgba(0,0,0,.4);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color .2s ease;
}

    .hero-slider .swiper-button-prev:hover,
    .hero-slider .swiper-button-next:hover {
        background-color: #1F839F;
    }

    .hero-slider .swiper-button-prev::after,
    .hero-slider .swiper-button-next::after {
        font-size: 16px;
        font-weight: bold;
    }

/* На очень узких экранах стрелки не мешают */
@media (max-width: 480px) {
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        width: 32px;
        height: 32px;
    }

        .hero-slider .swiper-button-prev::after,
        .hero-slider .swiper-button-next::after {
            font-size: 14px;
        }
}


/* ===== База шрифтов ===== */
html {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Заголовки ===== */
h1 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}

h2 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
}

h3 {
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

/* ===== Хедер ===== */
.header-top {
    font-size: 15px;
}

.header-bottom .nav-link {
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
}

.header-middle .catalog-toggle {
    border-radius: 12px;
}

/* Контакты в хедере: повысим контраст и кегль */
.header-top .text-white, .header-bottom .text-white {
    color: #fff !important;
}

.header-top .fa-envelope, .header-top .fa-phone-alt {
    opacity: .9;
}

/* ===== Поиск ===== */
.search-highlight .form-control {
    min-height: 46px;
    font-size: 15px;
}

.search-highlight .btn {
    min-height: 46px;
    font-size: 15px;
}

#globalSearch::placeholder, #globalSearchMobile::placeholder {
    color: #718096;
}

/* ===== Сайдбар категорий ===== */
#categorySidebar .nav-link, #categorySidebar .list-group-item {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    padding: 10px 12px; /* кликабельная высота ~42px */
}

#categorySidebar i {
    font-size: 0.95em;
    opacity: .9;
}

/* ===== Карточки/плитки на главной (если есть) ===== */
.card, .tile {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16,24,40,.06);
}

/* ===== Чипы/кнопки под слайдером ===== */
.badge, .chip, .btn-outline-secondary {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
}

/* ===== Футер ===== */
.footer-modern {
    font-size: 15px;
}

    .footer-modern h6 {
        font-size: 16px;
        font-weight: 700;
    }

.footer-link {
    color: rgba(255,255,255,.85);
}

    .footer-link:hover {
        color: #fff;
    }

/* ===== Мобильные штрихи ===== */
@media (max-width: 991.98px) {
    .mobile-header .btn {
        font-size: 15px;
    }

    .mobile-search .form-control {
        min-height: 44px;
    }
}

/* Микро-нюансы */
.cart-summary-btn .cart-count, .cart-summary-btn .cart-total {
    font-weight: 700;
}
