.short-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.price-item {
    margin-bottom: 0.5rem;
}

.price-type {
    font-weight: 500;
    color: #666;
}

.price-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    margin-left: 0.5rem;
}

/* Фильтры */
.filter-section {
    margin-bottom: 1.5rem;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.filter-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #6c757d;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

/* Сортировка */
.sort-select {
    max-width: 200px;
}

/* Активные фильтры */
.active-filters {
    margin-bottom: 1rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.filter-tag .close {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    line-height: 0;
    cursor: pointer;
}

/* Адаптивные стили */
@media (max-width: 767.98px) {
    /* Шапка */
    .navbar-brand img {
        max-height: 30px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Контейнер */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Основной контент */
    body {
        padding-bottom: 60px !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Футер */
    footer {
        margin-bottom: 60px !important;
    }

    /* Мобильное нижнее меню */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        height: 60px;
    }

    .mobile-bottom-nav__item {
        flex: 1;
        text-align: center;
        position: relative;
    }

    .mobile-bottom-nav__item .btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 5px;
        border: none;
        background: none;
        color: #333;
        position: relative;
    }

    .mobile-bottom-nav__item .btn i {
        font-size: 1.2rem;
        margin-bottom: 2px;
        display: inline-block;
        width: auto;
        height: auto;
        line-height: 1;
    }
    
    .mobile-bottom-nav__item .cart-icon-wrapper i {
        font-size: 1.2rem;
        display: inline-block;
        width: auto;
        height: auto;
        line-height: 1;
        position: relative;
    }
    
    .mobile-bottom-nav__item .cart-icon-wrapper {
        position: relative;
        display: inline-block;
        width: auto;
        height: auto;
        line-height: 1;
    }

    .mobile-bottom-nav__item .btn span:not(.badge) {
        font-size: 0.7rem;
        line-height: 1;
    }

    .mobile-bottom-nav__item .cart-icon-wrapper .badge {
        position: absolute;
        top: -8px;
        right: -8px;
        font-size: 0.6rem;
        padding: 2px 4px;
        background-color: #468C25;
        color: white;
        border-radius: 50%;
        min-width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transform: translate(0, 0);
    }
    
    /* Адаптивные стили для счетчика в нижнем меню */
    @media (max-width: 575.98px) {
        .mobile-bottom-nav__item .cart-icon-wrapper .badge {
            top: -6px;
            right: -6px;
            font-size: 0.55rem;
            min-width: 14px;
            height: 14px;
            padding: 1px 3px;
        }
    }
    
    @media (max-width: 400px) {
        .mobile-bottom-nav__item .cart-icon-wrapper .badge {
            top: -4px;
            right: -4px;
            font-size: 0.5rem;
            min-width: 12px;
            height: 12px;
            padding: 1px 2px;
        }
    }

    /* Убираем только кнопку каталога из верхнего меню */
    .mobile-buttons .mobile-catalog-btn {
        display: none;
    }

    /* Оставляем только кнопку бургер-меню */
    .mobile-buttons .navbar-toggler {
        margin-left: auto;
    }

    /* Карточки товаров */
    .card {
        margin-bottom: 15px;
    }

    .card-img-top {
        aspect-ratio: 1/1;
        object-fit: contain;
        width: 100%;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    /* Сетка каталога */
    .row-cols-sm-2 {
        --bs-gutter-x: 10px;
    }

    .col {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Кнопки */
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Форма поиска */
    .search-form {
        width: 100%;
        margin: 10px 0;
    }

    .search-form .form-control {
        font-size: 0.875rem;
    }

    /* Меню категорий */
    .category-parent > div {
        padding: 0.5rem;
    }

    /* Корзина */
    .cart-counter {
        font-size: 0.75rem;
        padding: 0.25em 0.5em;
    }

    /* Карточки товаров для мобильной версии */
    .catalog-card .card-img-wrapper {
        aspect-ratio: 1/1 !important;
        padding-top: 0 !important;
        position: relative;
    }

    .catalog-card .card-img-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        position: absolute;
        top: 0;
        left: 0;
    }

    .category-title {
        font-size: 1.5rem;
    }
    
    .category-image {
        max-height: 200px;
    }
    
    .category-image img {
        height: 200px;
    }
    
    .category-info {
        padding: 15px;
        margin: -15px -15px 15px -15px;
        border-radius: 0;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 575.98px) {
    /* Одна карточка в ряд */
    .row-cols-1 {
        --bs-gutter-x: 0;
    }

    .card {
        border-radius: 0;
        margin-bottom: 10px;
    }

    /* Заголовки */
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Отступы */
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Кнопки в карточке */
    .btn-outline-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    .search-form {
        max-width: 150px;
    }

    .search-input {
        width: 100px;
    }
}

/* Стили для средних экранов */
@media (min-width: 768px) and (max-width: 991.98px) {
    .row-cols-md-3 {
        --bs-gutter-x: 15px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* Стили для изображений в редакторе */
.content-wrapper img {
    max-width: 100%;
    height: auto;
}

/* Фиксированные пропорции для карточек товаров */
.card-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Улучшенные стили для фильтров */
.filter-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: white;
    padding: 1rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.filter-collapse.show {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .filter-collapse {
        position: static;
        transform: none;
        padding: 0;
        background: transparent;
    }
}

/* Стили для логотипа */
.navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Стили для каталога */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    color: #468C25;
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Стили для левого меню категорий */
.list-group-item {
    border: none;
    background: transparent;
    color: #333;
    padding: 10px 15px;
    margin-bottom: 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.list-group-item:hover {
    background-color: #e8f5e9;
    color: #28a745;
    transform: translateX(5px);
}

/* Красивая подсветка активного пункта */
.list-group-item.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: translateX(5px);
    border-left: 4px solid #fff;
    font-weight: 600;
}

/* Специальные пункты меню */
.list-group-item.special-item {
    font-weight: 600;
    color: #28a745;
    border-left: 3px solid transparent;
}

.list-group-item.special-item:hover {
    background-color: #e8f5e9;
    border-left-color: #28a745;
}

.list-group-item.special-item.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: translateX(5px);
    border-left: 4px solid #fff;
    font-weight: 600;
}

/* Подкатегории */
.list-group-item.subcategory {
    padding-left: 25px;
    font-size: 0.9rem;
    color: #666;
}

.list-group-item.subcategory:hover {
    background-color: #f8f9fa;
    color: #28a745;
    transform: translateX(3px);
}

.list-group-item.subcategory.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25);
    transform: translateX(3px);
    border-left: 3px solid #fff;
    font-weight: 500;
}

/* Разделитель */
.list-group-item.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 15px 0;
    padding: 0;
    border: none;
}

/* Стили для меню категорий */
.category-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.category-link:hover {
    color: #468C25;
    text-decoration: none;
}

.subcategories.show {
    display: block;
}

.category-parent > div {
    padding: 0.75rem 1rem;
}

.category-parent .fa-chevron-down {
    transition: transform 0.2s;
}

.category-parent:hover .fa-chevron-down {
    transform: rotate(-180deg);
}

/* Стили для баннера */
.slideshow-container {
    width: 80%; /* Уменьшено по ширине на 20% */
    margin: 0 auto; /* Центрирование */
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-slider {
    position: relative;
    width: 100%;
    padding-top: 22.22%; /* Уменьшено в полтора раза с 33.33% */
}

.slide-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.slide-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-dots {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Адаптивные стили для баннера */
@media (max-width: 768px) {
    .slide-slider {
        padding-top: 26.67%; /* Уменьшено в полтора раза с 40% */
    }
}

@media (max-width: 576px) {
    .slide-slider {
        padding-top: 33.33%; /* Уменьшено в полтора раза с 50% */
    }
}

/* Стили для карточек товаров */
.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card .card-title {
    color: #212529;
}

.product-card .price {
    color: #468C25;
    font-weight: 500;
}

.product-card .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
}

.product-card .card-title {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.product-card .card-title:hover {
    color: #468C25;
}

/* Стили для списка заказов */
.order-item {
    transition: background-color 0.2s ease;
}

.order-item:hover {
    background-color: #f8f9fa;
}

.order-item .product-name {
    color: #212529;
}

/* Стили для баннера */
.carousel-item {
    height: 400px;  /* Фиксированная высота для всех баннеров */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Чтобы изображение заполняло всю область */
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Стили для форм */
.form-control {
    border-radius: 0.25rem;
}

.form-control:focus {
    border-color: #468C25;
    box-shadow: 0 0 0 0.2rem rgba(70, 140, 37, 0.25);
}

.btn-primary {
    background-color: #468C25;
    border-color: #468C25;
}

.btn-primary:hover {
    background-color: #3a7420;
    border-color: #3a7420;
}

/* Стили для карточек */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Стили для бейджей статусов */
.badge {
    padding: 0.5em 0.75em;
    border-radius: 0.25rem;
}

/* Стили для карточки товара */
.product-price-section {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}

.selected-price {
    font-size: 1.5rem;
    color: #468C25;
}

#productCarousel .carousel-item img {
    border-radius: 0.5rem;
    object-fit: cover;
    height: 400px;
}

.specifications-content {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid #eee;
}

.form-select:focus {
    border-color: #468C25;
    box-shadow: 0 0 0 0.2rem rgba(70, 140, 37, 0.25);
}

.quantity-control {
    max-width: 120px;
}

/* Стили для ссылок в заказах */
.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: #468C25 !important;
}

/* Стиль для всей карточки товара в заказе */
.order-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.order-product-card:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

/* Общие стили для корзины */
.cart-link {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.cart-link .badge {
    background: #468C25;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -3px;
    right: -3px;
}

/* Мобильные кнопки */
.mobile-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.mobile-buttons .btn,
.mobile-buttons .navbar-toggler,
.mobile-buttons .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin: 0;
    color: #333;
    background: #fff;
}

.mobile-buttons .btn:hover,
.mobile-buttons .cart-link:hover {
    background-color: #f8f9fa;
    color: #468C25;
}

.mobile-buttons .cart-link {
    text-decoration: none;
    position: relative;
}

.mobile-buttons .cart-link .badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
}

/* Мобильный каталог */
@media (max-width: 991.98px) {
    .catalog-menu-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .catalog-menu-mobile.show {
        transform: translateX(0);
    }

    .catalog-menu-header {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .catalog-menu-header h5 {
        margin: 0;
        font-size: 1.1rem;
    }

    .catalog-menu-body {
        padding: 0;
        overflow-y: auto;
        flex: 1;
    }

    .catalog-menu-body .list-group-item {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 0.75rem 1rem;
    }

    .catalog-menu-body .list-group-item:last-child {
        border-bottom: none;
    }

    /* Фиксированная шапка */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 0.5rem 1rem;
    }

    /* Отступ для контента */
    body {
        padding-top: 60px;
    }

    /* Боковой каталог в десктопной версии */
    #sidebarCatalog {
        display: none;
    }

    .catalog-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }

    .catalog-menu-header h5 {
        margin: 0;
    }

    .catalog-close {
        border: none;
        background: none;
        font-size: 1.25rem;
        padding: 0;
        color: #666;
    }

    /* Скрываем баннер в мобильной версии */
    .banner-container {
        display: block;
    }
    #mainBanner {
        display: flex;
    }

    /* Стили для карточек на мобильных */
    .catalog-card {
        border: none;
    }

    .catalog-card .card-body {
        padding: 1rem 0;
    }

    .card {
        border: none;
        border-radius: 0;
    }

    /* Стили для подкатегорий */
    .subcategories {
        margin-left: 1rem;
        display: none;
    }

    .subcategories.show {
        display: block;
    }

    #catalogMenu {
        margin-bottom: 1rem;
    }

    #catalogMenu .card-body {
        padding: 0;
    }

    #catalogMenu .list-group-item {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
    }

    #catalogMenu .list-group-item:last-child {
        border-bottom: none;
    }

    .mobile-catalog-btn {
        background-color: #468C25;
        border-color: #468C25;
    }

    .mobile-catalog-btn:hover,
    .mobile-catalog-btn:focus {
        background-color: #3a7420;
        border-color: #3a7420;
    }
}

/* Средние экраны - скрываем десктопное меню когда элементы не помещаются */
@media (min-width: 992px) and (max-width: 1199px) {
    .d-none.d-xl-flex {
        display: none !important;
    }
    
    .mobile-buttons {
        display: flex !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    /* Убеждаемся, что мобильные кнопки остаются справа */
    .navbar > .container {
        justify-content: space-between !important;
    }
    
    /* Показываем мобильное меню при клике на гамбургер */
    .navbar-collapse.show {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-top: 1px solid #dee2e6 !important;
        z-index: 1000 !important;
    }
}

/* Десктопная версия */
@media (min-width: 1201px) {
    /* Показываем баннер */
    .banner-container {
        display: block;
    }
    #mainBanner {
        display: flex;
    }

    #sidebarCatalog {
        display: block;
    }
    #catalogMenu {
        display: none !important;
    }

    .catalog-menu {
        display: block !important;
        position: static;
        width: auto;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .catalog-menu-header {
        display: none !important;
    }

    .subcategories {
        margin-left: 1rem;
    }

    .modal-backdrop {
        display: none !important;
    }
}

/* Скрываем заголовок категории */
.catalog-section h2 {
    display: none;
}

/* Стили для каталога */
.catalog-toggler {
    display: none;
}

.catalog-menu {
    display: block;
}

/* Стили для основного каталога */
.main-catalog {
    display: block;
}

/* Стили для карточек в каталоге */
.catalog-card {
    margin-bottom: 1rem;
}

.catalog-card .card-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.catalog-card .card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Стили для карточки товара */
#productCarousel {
    display: block !important;
}

#productCarousel .carousel-item {
    height: auto;
    padding-bottom: 100%; /* Тоже квадратное */
    position: relative;
}

#productCarousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Мобильные кнопки */
.mobile-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: flex-end;
}

.mobile-buttons .btn,
.mobile-buttons .navbar-toggler,
.mobile-buttons .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin: 0;
    flex-shrink: 0;
}

.mobile-catalog-btn {
    white-space: nowrap;
}

/* Стили для информации о категории */
.category-info {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-image {
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.category-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.category-description {
    color: #666;
    line-height: 1.6;
}

/* Стили для полоски информации о доставке */
.delivery-info-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0;
    font-size: 0.85rem;
}

.delivery-info-text {
    color: #495057;
    margin: 0;
    font-weight: 500;
}

.delivery-info-text strong {
    color: #468C25;
    font-weight: 600;
}

.delivery-separator {
    color: #6c757d;
    margin: 0 8px;
    font-weight: bold;
}

.delivery-info-text i {
    color: #468C25;
}

/* Адаптивные стили для полоски доставки */
@media (max-width: 768px) {
    .delivery-info-bar {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .delivery-separator {
        margin: 0 4px;
    }
}

@media (max-width: 576px) {
    .delivery-info-bar {
        padding: 4px 0;
        font-size: 0.75rem;
    }
    
    .delivery-info-text {
        line-height: 1.3;
    }
    
    .delivery-separator {
        margin: 0 3px;
    }
}

.category-card {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-card .img-container {
    position: relative;
    padding-top: 75%; /* Соотношение сторон 4:3 */
    overflow: hidden;
}

.category-card .img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: #333;
}

.category-card .card-text {
    font-size: 0.9rem;
    color: #666;
} 

/* Мобильный поиск */
.mobile-search-form {
    flex: 1;
    max-width: 200px;
    flex-shrink: 1;
    min-width: 120px;
    display: flex !important;
    align-items: stretch !important;
}

.mobile-search-input {
    border: 1px solid #28a745 !important;
    border-right: none !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.375rem 0.5rem !important;
    background-color: #fff !important;
    color: #495057 !important;
    height: 38px !important;
    flex: 1;
}

.mobile-search-input:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    outline: none !important;
}

.mobile-search-btn {
    border: 1px solid #28a745 !important;
    border-left: none !important;
    border-radius: 0 0.25rem 0.25rem 0 !important;
    background-color: #28a745 !important;
    color: #fff !important;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.875rem !important;
    height: 38px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #fff !important;
}

.mobile-search-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    outline: none !important;
}

/* Адаптация мобильных кнопок для поиска */
@media (max-width: 575.98px) {
    .mobile-search-form {
        max-width: 150px;
        min-width: 100px;
    }
    
    .mobile-search-input {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.4rem !important;
        height: 32px !important;
    }
    
    .mobile-search-btn {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.4rem !important;
        height: 32px !important;
    }
} 

/* Стили для поиска - унифицированные для всех экранов */
.search-form {
    display: flex !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 300px;
}

.search-input {
    border: 1px solid #28a745 !important;
    border-right: none !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
    flex: 1;
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
}

.search-input:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.search-btn {
    border: 1px solid #28a745 !important;
    border-left: none !important;
    border-radius: 0 0.25rem 0.25rem 0 !important;
    background-color: #28a745 !important;
    color: #fff !important;
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #fff !important;
}

/* Стили для кнопки профиля */
.profile-btn {
    border-radius: 0.25rem !important;
}

/* Стили для ссылки профиля */
.profile-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Сворачивание текста "Личный кабинет" на средних экранах */
@media (max-width: 1199px) {
    .profile-text {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .profile-text {
        display: inline !important;
    }
}

/* Исправление навигации для всех экранов */
.navbar > .container {
    justify-content: space-between !important;
}

.mobile-buttons {
    margin-left: auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Десктопная версия - показываем правую секцию */
@media (min-width: 992px) {
    .d-lg-flex {
        display: flex !important;
    }
    .d-lg-none {
        display: none !important;
    }
}

/* Средние и мобильные экраны - показываем мобильные кнопки */
@media (max-width: 991px) {
    .d-lg-flex {
        display: none !important;
    }
    .d-lg-none {
        display: flex !important;
    }
    
    .mobile-buttons {
        display: flex !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-top: 1px solid #dee2e6 !important;
        z-index: 1000 !important;
    }
} 

/* Стили для toast уведомлений */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    max-width: 400px !important;
    width: auto !important;
    right: auto !important;
    end: auto !important;
}

.toast-container.position-fixed {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    end: auto !important;
}

.toast {
    min-width: 300px !important;
    max-width: 400px !important;
    width: auto !important;
}

.toast-header {
    text-align: center !important;
}

.toast-body {
    text-align: center !important;
    padding: 0.75rem !important;
}
