
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    position: relative; /* для позиционирования псевдоэлемента */
    color: white;
    font-family: "Irish Grover", sans-serif ;
}

/* Контейнер контента занимает всё свободное место */
.content-area {
    flex: 1 0 auto;   /* растягивается, но не сжимается меньше содержимого */
    width: 100%;      /* на всякий случай */
}
.main-content {
    margin: 0 auto;      /* центрируем */
    padding: 80px 20px 120px 20px;
    width: 100%;
}
/* Первый слой: фон с пионами */
.background-overlay {
    position: fixed;
    background-image: url('../back_images/111.jpg');

    background-color: black;

    background-size: cover;
    background-position: center;
    width: 100%; /* Ширина из Figma */
    height: 100%; /* Высота из Figma */
    z-index: -2;
}
/* Второй слой: затемнение */
.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* цвет и степень затемнения */
    z-index: -1; /* поверх картинки */
}

/* === НАВИГАЦИЯ === */
.navbar-custom {
    backdrop-filter: blur(1rem);
    background: rgba(2, 2, 2, 0.49);
    border-bottom: 1px solid rgba(122, 121, 121, 0.66);
    z-index: 1005;
}

/*!* Убрала классы .nav-account .nav-link,*!*/
.nav-menu li a,
.nav-menu li button.nav-link {
    font-size: 16px;
    color: white;
    letter-spacing: 1px;
    transition: color 0.5s;
    position: relative;

    text-decoration: none !important;
    border-bottom: none !important;
}

/*!* Убрала классы .nav-account .nav-link,*!*/
.nav-menu li a:hover,
.nav-menu li button.nav-link:hover {
    color: white;
}

/*!* Плавное подчеркивание меню *!*/
.nav-menu li a::after,
.nav-menu li button.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px; /* расстояние от текста */
    left: 0;
    width: 0;
    height: 0.5px; /* толщина линии */

    background-color: rgb(166, 6, 59); /* цвет линии */
    transition: width 0.3s ease; /* анимация появления */
}

.nav-menu li a:hover::after,
.nav-menu li button.nav-link:hover::after {
    width: 100%; /* линия растягивается на всю ширину ссылки */
}

.nav-menu li a.icon-link {
    transition: color 0.5s ease;
}

.nav-menu li a.icon-link:hover {
    color: rgb(166, 6, 59);
}
/*Отмена плавного подчеркивания для  иконок телеграмма и телефона*/
.nav-menu li a.icon-link::after {
    content: none;  /* или display: none; – убирает подчеркивание */
}


/* === ФУТЕР - ПОДВАЛ === */
.footer-block {
    flex-shrink: 0;
    width: 100%;
    backdrop-filter: blur(5rem);
    border-top: 1px solid;
    border-top-color: rgba(255,255,255,0.5);
  }

/* Верхний футер */
.footer-on-top {
    /*width: 100%;*/
    padding: 15px 0;
    z-index: 2;
}

.footer-on-top-links {
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-on-top a {
    color: whitesmoke;
    text-decoration: none;
    font-size: 14px;
}

.footer-on-top-links a:hover {
    color: rgb(166, 6, 59);
}
/* Нижняя приписка */
.footer {
    font-size: 0.7em; /* Еще меньше */
    width: 100%;
    text-align: center;
    color: whitesmoke;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
    z-index: 3; /* Самый верхний слой */
}
.footer a {
    text-decoration: none;
    color: #d09fff;
}
.footer a:hover {
    color: bisque;
}

/* === Баннер === */
.banner-carousel {
    height: 200px; /* фиксированная высота */
    overflow: hidden; /* чтобы ничего не вылезало */
}

.banner-carousel .carousel-inner,
.banner-carousel .carousel-item {
    height: 100%; /* занимают всю высоту родителя */
}

.banner-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* изображение покрывает всю область, обрезаясь по краям */
    /* Если хотите, чтобы изображение целиком помещалось с полосами, используйте object-fit: contain */
}
@media (max-width: 768px) {
    .banner-carousel {
        height: 150px;
    }
}

/* КОРЗИНА НА ГЛАВНОЙ  */
/* Контейнер корзины */
.row-basket  {
    margin-top: 6rem;
    display: flex;
    flex-wrap: wrap;
}
.basket-mini .btn-group {
    margin: 1rem;
    /*margin-left: 5rem;*/
}
.basket-mini .dropdown-menu {
    width: 400px;
    padding-bottom: 0;
    max-width: none;
    z-index: 9999;
}
.basket-mini .dropdown-menu li {
    display: block;
}
.btn-group .btn-outline-secondary {
    background: rgba(196, 196, 196, 0.36); /* полупрозрачный фон */
    backdrop-filter: blur(1rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: white;
    transition: all 0.3s ease;
}
/* Наведение на корзину */
.btn-group .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.42) !important;
}

.basket-mini strong {
    font-size: 17px;
    color: whitesmoke;
    font-weight: 400;
}
/* Сумма */
.basket-total-amount {
    margin-top: 5rem;
    color: whitesmoke;
    font-weight: 400;
    font-size: 17px;                  /* чуть крупнее, если нужно */
    margin-left: 8px;                /* отступ от надписи "Всего в корзине:" */
    font-family: 'Inria Serif', serif;
    letter-spacing: 0.5px;
    margin-right: 10px;
}
.remove-link {
    color: #575757;
}

.page_inner {
    /*margin:-0.5rem;*/
    margin-bottom: -2rem;
}

/* ---------- ТРИГГЕР ПОИСКА (ЛУПА + НАДПИСЬ) ---------- */
.search-filter-bts {
    display: flex;
    justify-content: space-between;
    width: auto;           /* ширина по содержимому */
    color: white;          /* цвет текста и иконки (можно настроить) */
    font-family: 'Noto Sans', sans-serif;
}

.search-trigger,
.filter-trigger {
    gap: 10rem;               /* расстояние между лупой и словом */
    background: transparent; /* полностью прозрачный фон */
    border: none;           /* убираем рамку */
    padding: 1rem;             /* убираем внутренние отступы */
    width: auto;           /* ширина по содержимому */
    color: white;          /* цвет текста и иконки (можно настроить) */
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.5s;
}
.filter-trigger {
    margin-left: 25.2%;
}

.search-trigger:hover,
.filter-trigger:hover {
    color: rgb(250, 167, 224);
}

/* Контейнер для позиционирования */
.filter-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Выпадающий блок */
.filter-dropdown {
    display: none;
    position: absolute;
    /*top:100%;  !* сразу под кнопкой с отступом *!*/
    left: 19rem;                 /* можно left: 0; если нужно выравнивание по левому краю */
    width: 15rem;
    backdrop-filter: blur(1rem);
    background: rgba(196, 196, 196, 0.29);
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 12px;
    padding: 20px;
    z-index: 1000;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Класс для отображения */
.filter-dropdown.active {
    display: block;
}
/* Стили элементов формы */
.filter-group {
    margin-bottom: 15px;
}
.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.filter-select,
.filter-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.47);
    color: white;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.filter-select option {
    background: #333;
    color: white;
}
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.range-inputs input {
    flex: 1;
    min-width: 0;  /* для корректного сжатия */
}
.filter-apply-btn {
    display: block;
    margin-left: auto;     /* автоматический отступ слева */
    margin-right: auto;    /* автоматический отступ справа */
    width: 60%;
    padding: 10px;
    background: rgba(108, 107, 107, 0.74);
    border: 1px solid white;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.5s;
}
.filter-apply-btn:hover {
    background: rgba(229, 229, 229, 0.5);
}

/* ---------- ОВЕРЛЕЙ ПОИСКА (ЗАТЕМНЕНИЕ) ---------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;              /* скрыт по умолчанию */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;             /* показываем через JS */
    opacity: 1;
}

/* Контейнер с формой поиска */
.search-overlay-content {
    width: 90%;
    max-width: 600px;
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    padding: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: scale(1);
}

/* Сама форма */
.search-overlay-form {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Поле ввода */
.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 25px;
    font-size: 18px;
    color: white;
    font-family: 'Noto Sans', sans-serif;
    outline: none;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 300;
}

/* Кнопка отправки (лупа) */
.search-overlay-submit {
    background: rgb(250, 167, 224);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 8px;
}

.search-overlay-submit:hover {
    background: rgba(225, 134, 197, 1);
    transform: scale(1.05);
}

/* Кнопка закрытия (крестик) */
.search-overlay-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    margin-top: 2rem;
}

.no-results a {
    color: whitesmoke;
    text-decoration: underline;
    transition: color 0.3s;
}

.no-results a:hover {
    color: white;
}
/* Адаптивность */
@media (max-width: 768px) {
    .search-trigger {
        padding: 8px 18px;
        font-size: 14px;
    }

    .search-overlay-input {
        padding: 14px 20px;
        font-size: 16px;
    }

    .search-overlay-submit,
    .search-overlay-close {
        width: 44px;
        height: 44px;
    }
}

/* ===КАТАЛОГ=== */
/* Список категорий */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.category-type a{
    text-decoration:  none;
    color: rgba(255, 255, 255, 0.76);
    overflow: hidden;
}
.category-type a:hover{
    color: rgb(255, 255, 255);

}
.category-item.active a {
    color: #94252f;
    font-size: 1.1rem;
    font-weight: 700;        /* жирный */
}

/* Плавное подчеркивание меню */
.category-item {
    margin-bottom: 15px; /* нужное вам значение */
}
.category-item a {
    padding: 5px 15px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    transition: color 0.5s;
    position: relative; /* необходимо для позиционирования псевдоэлемента */
}

/* Плавное подчеркивание */
.category-item a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 15px;   /* начинается отступом от левого края, чтобы совпадало с текстом */
    width: 0;
    height: 0.3px; /* чуть толще, чтобы было заметнее */
    /*background-color: rgb(250, 167, 224);*/
    background-color: rgb(166, 6, 59);
    transition: width 0.6s ease;
}

/* При наведении расширяем линию */
.category-item a:hover::after {
    width: calc(100%);
}

/* КАРТОЧКИ ТОВАРОВ НА ГЛАВНОЙ */
.product-card {
    backdrop-filter: blur(10px);
    transition:  background 0.5s;
}
.product-card:hover {
    backdrop-filter: blur(20px);
    box-shadow:  2px 2px 20px rgba(245, 245, 245, 0.61);
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;  /* квадрат */
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* заполняет контейнер, обрезая лишнее */
}


/* Знак рубля */
.product-price a{
    font-size: 18px;
    font-weight: bold;
    margin-top: auto;    /* прижимает цену к низу, но оставляет место для кнопки */
}
/*Кнопка корзины*/
.btn {
    color: whitesmoke;
    display: flex;
    justify-content: flex-end;
    font-size: 1.3rem;
    transition: background 0.3s;
    text-decoration: none;
}

/*Пагинация*/
.pagination .page-link {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    transition: all 0.4s ease;
}

.pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Активная страница */
.pagination .page-item.active .page-link {
    background-color: white;
    border-color: white;
    color: #333;
}
/* Фокус (клавиатурная навигация) */
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); /* белое свечение */
    outline: none;
}

/* СТРАНИЦА ТОВАРА */
.price,
.rub {
    font-weight: bold;
    color: whitesmoke;
}
/* Кнопки купить на странице товара */
.btn-shop,
.btn-back{
    color: whitesmoke;
    text-decoration: none;
    transition: color 0.4s;
    cursor: pointer;
}
.btn-shop:hover,
.btn-back:hover,
.btn i:hover {
    /*color: rgb(250, 167, 224);*/
    color: rgb(245, 228, 172);
}
