/* Стили для страницы акций */
body {
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: margin-left 0.3s;
    font-family: 'Playfair Display', serif;
}

/* HEADER */
header {
    background: #333333;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    z-index: 3000;
    padding: 0;
}

header .container-fluid {
    height: 100%;
}

header .row {
    height: 100%;
    margin: 0;
}

.header-left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    width: 260px;
}

.header-left-section .d-flex {
    width: 100%;
    justify-content: center;
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    height: 45px;
}

.header-center-section {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    flex-shrink: 0;
}

.header-nav-section {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.menu-akcii,
.menu-dostavka {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    margin: 0;
    white-space: nowrap;
    padding: 0;
}

/* Стили для поиска */
.search-box-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 4000;
    display: none;
    margin-top: 5px;
}

.search-results.active {
    display: block;
}

.search-results-list {
    padding: 10px 0;
}

.search-results-category {
    padding: 8px 15px;
    background: #f5f5f5;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.search-result-title mark {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 3px;
}

.search-result-price {
    font-family: 'Poiret One', cursive;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 2px;
}

.search-result-desc {
    font-family: 'Poiret One', cursive;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc mark {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 3px;
}

.search-results-empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.search-results-empty p {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 5px;
}

.search-results-empty small {
    font-family: 'Poiret One', cursive;
    font-size: 14px;
    color: #999;
}

.search-results-more {
    padding: 10px 15px;
    text-align: center;
    font-family: 'Poiret One', cursive;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Анимация для подсветки товара */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Стили для мобильного поиска */
.mobile-search {
    position: relative;
}

.mobile-search .search-results {
    position: fixed;
    top: auto;
    left: 20px;
    right: 20px;
    max-height: 300px;
    z-index: 4500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-results {
        max-height: 300px;
    }

    .search-result-item {
        padding: 8px 12px;
    }

    .search-result-img {
        width: 40px;
        height: 40px;
    }

    .search-result-title {
        font-size: 14px;
    }
}

.search-box {
    height: 36px;
    border-radius: 5px;
    border: none;
    padding: 0 15px 0 45px;
    font-family: 'Playfair Display', serif;
    width: 417px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #666;
}

.header-right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding: 0 20px;
    flex: 1;
    min-width: 0;
}

.menu-akcii:hover,
.menu-dostavka:hover {
    color: #ddd;
}

/* .search-box-wrapper {
    position: relative;
    display: inline-block;
    margin: 0;
} */

.search-box {
    height: 36px;
    border-radius: 5px;
    border: none;
    padding: 0 15px 0 45px;
    font-family: 'Playfair Display', serif;
    width: 417px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #666;
}

.btn-reserve-table {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 20px;
    transition: all 0.3s;
}

.btn-reserve-table:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-fav,
.icon-user {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.icon-fav img,
.icon-user img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.favorites-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: 'Poiret One', cursive;
}

/* .cart {
    color: white;
    font-size: 16px;
    font-family: 'Poiret One', cursive;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #555;
    padding: 5px 15px;
    border-radius: 4px;
    white-space: nowrap;
} */

/* Адаптив шапки */
/* Для маленьких экранов (до 767px) */
@media (max-width: 767px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    header { height: 60px; }

    .header-left-section {
        flex: 1;
        padding-left: 15px;
    }

    .header-center-section {
        flex: 0 0 auto;
        padding: 0 15px;
        /* Убрано display: none !important, которое было в stocks_style.css */
    }

    .header-right-section {
        flex: 0 0 auto;
        padding-right: 15px;
    }

    .header-nav-section {
        display: flex !important;
        align-items: center;
    }

    .main-links {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-right: 10px;
    }

    .desktop-search {
        display: none !important;
    }

    /* Гарантируем отображение иконок */
    .header-icons {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Бургер-меню справа */
    .burger-menu {
        display: flex !important;
        margin-left: 10px;
    }

    .menu-akcii,
    .menu-dostavka {
        font-size: 16px;
    }

    .logo {
        height: 35px;
    }

    .icon-fav img,
    .icon-user img {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    header {
        height: 65px;
    }

    .header-left-section {
        width: auto;
        padding: 0 15px;
        flex: 0 0 auto;
    }

    .header-center-section {
        padding: 0 15px;
        flex: 0 0 auto;
    }

    .header-right-section {
        padding: 0 15px;
        flex: 1;
        min-width: 0;
    }

    .logo {
        height: 40px;
    }

    .menu-akcii,
    .menu-dostavka {
        font-size: 16px;
        padding: 0;
    }

    .header-nav-section {
        gap: 15px;
    }

    .search-box {
        width: 200px;
        height: 35px;
    }

    .btn-reserve-table {
        font-size: 14px;
        padding: 8px 15px;
        margin-right: 15px;
    }

    .header-right {
        gap: 15px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    header {
        height: 65px;
    }

    .header-left-section {
        width: 260px;
        padding: 0;
        flex: 0 0 260px;
    }

    .header-center-section {
        padding: 0 20px;
        flex: 0 0 auto;
    }

    .header-right-section {
        padding: 0 20px;
        flex: 1;
        min-width: 0;
    }

    .logo {
        height: 40px;
    }

    .menu-akcii,
    .menu-dostavka {
        font-size: 18px;
        padding: 0;
    }

    .header-nav-section {
        gap: 20px;
    }

    .search-box {
        width: 250px;
        height: 35px;
    }

    .btn-reserve-table {
        font-size: 15px;
        padding: 9px 18px;
        margin-right: 15px;
    }

    .header-right {
        gap: 15px;
    }
}

@media (min-width: 1200px) {
    .header-left-section {
        width: 260px;
        padding: 0;
        flex: 0 0 260px;
    }

    .header-center-section {
        padding: 0 30px;
        flex: 0 0 auto;
    }

    .header-right-section {
        padding: 0 30px;
        flex: 1;
        min-width: 0;
    }

    .logo-container {
        justify-content: center;
    }

    .header-nav-section {
        gap: 25px;
    }
}

/* SIDEBAR */
#sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: #252222;
    color: white;
    overflow-y: auto;
    z-index: 2000;
    transition: all 0.3s ease;
    transform: translateX(0);
}

#sidebar.collapsed {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sidebar.collapsed .sidebar-header,
#sidebar.collapsed .sidebar-links {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.sidebar-collapsed-toggle {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    width: 100%;
    padding: 10px 0;
}

#sidebar.collapsed .sidebar-collapsed-toggle {
    opacity: 1;
    visibility: visible;
}

.menu-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 18px;
    letter-spacing: 3px;
    margin-top: 5px;
}

.arrow-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

#sidebar .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: block;
    font-family: 'Playfair Display', serif;
    background: none;
    border: none;
}

#sidebar.collapsed .close-btn {
    opacity: 0;
    pointer-events: none;
}

.sidebar-header {
    position: relative;
    padding-top: 50px;
    margin-bottom: 20px;
}

#sidebar h4 a {
    text-align: center;
    margin: 0;
    font-size: 20px;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    color: white;
    text-decoration: none;
}

#sidebar a {
    display: block;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #3a3737;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
    transition: background 0.3s;
}

#sidebar a:hover {
    background: #3a3737;
}

@media (max-width: 1199px) {
    #sidebar {
        left: -260px;
        top: 0;
        height: 100vh;
        padding-top: 70px;
    }

    #sidebar.active {
        left: 0;
    }

    #sidebar.collapsed {
        width: 60px;
        left: -60px;
    }

    #sidebar.collapsed.active {
        left: 0;
    }

    .sidebar-collapsed-toggle {
        top: 100px;
    }
}

@media (min-width: 1200px) {
    #sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    body.sidebar-expanded .content-wrapper {
        margin-left: 260px;
    }

    body.sidebar-collapsed .content-wrapper {
        margin-left: 80px;
    }
}

/* CONTENT */
.content-wrapper {
    margin-top: 70px;
    padding: 30px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 70px);
}

@media (min-width: 1200px) {
    .content-wrapper {
        margin-left: 260px;
    }
}

@media (max-width: 1199px) {
    .content-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 15px;
        margin-top: 60px;
    }
}

/* СТРАНИЦА АКЦИЙ */
.promo-page {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #333;
    text-align: center;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Акционные карточки */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.promo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
}

.promo-card-header {
    padding: 40px 30px 30px;
    position: relative;
}

.promo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: 25px;
}

.promo-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.promo-card-desc {
    font-family: 'Poiret One', cursive;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.promo-card-body {
    padding: 0 30px 30px;
}

.promo-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.promo-highlight-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.promo-highlight-subtext {
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    color: #666;
    text-align: center;
}

.promo-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.promo-details li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-family: 'Poiret One', cursive;
    font-size: 17px;
    color: #555;
}

.promo-details li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 20px;
}

.promo-important {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
}

.promo-important-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-important-text {
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    color: #856404;
}

.promo-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.promo-action-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 10px;
}

.promo-action-text {
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.promo-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.promo-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Разделитель */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 60px 0;
}

/* Правила акций */
.promo-rules {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.rules-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    border-bottom: 1px solid #eee;
    font-family: 'Poiret One', cursive;
    font-size: 17px;
    color: #555;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li:before {
    content: '•';
    position: absolute;
    left: 20px;
    color: #667eea;
    font-size: 24px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promo-card-header,
    .promo-card-body {
        padding: 25px 20px;
    }

    .promo-card-title {
        font-size: 24px;
    }

    .promo-card-desc {
        font-size: 16px;
    }

    .promo-rules {
        padding: 25px;
    }
}

/* FOOTER - ИСПРАВЛЕННЫЙ */
footer {
    background: white;
    padding: 40px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1000; /* Выше сайдбара */
    width: 100%;
    margin-left: 0; /* Сброс отступа сайдбара */
}

/* Удалите старые медиа-запросы для футера и замените на эти: */

/* Для всех экранов */
footer {
    margin-left: 0 !important; /* Футер всегда на всю ширину */
    clear: both;
}

/* На десктопе (1200px+) */
@media (min-width: 1200px) {
    body.sidebar-expanded footer {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
        transition: margin-left 0.3s ease, width 0.3s ease;
    }

    body.sidebar-collapsed footer {
        margin-left: 60px !important;
        width: calc(100% - 60px) !important;
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
}

/* На планшетах и мобильных (<1200px) */
@media (max-width: 1199px) {
    footer {
        margin-left: 0 !important;
        width: 100% !important;
        transition: margin-left 0.3s ease, width 0.3s ease;
    }

    #sidebar.expanded ~ footer {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* На маленьких экранах */
    @media (max-width: 767px) {
        footer {
            margin-left: 0 !important;
            width: 100% !important;
        }

        #sidebar.expanded ~ footer {
            margin-left: 0 !important;
            width: 100% !important;
        }
    }
}

/* Стили содержимого футера */
footer h5 {
    font-family: 'Advent Pro', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

footer p {
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

footer .text-center.text-secondary {
    font-family: 'Advent Pro', sans-serif;
    margin-top: 30px;
}

footer h5.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

footer h5.footer-logo-title img {
    height: 30px;
}

@media (max-width: 767px) {
    footer {
        padding: 20px 15px;
        margin-top: 40px;
    }

    footer .row {
        flex-direction: column;
    }

    footer .col-md-4 {
        margin-bottom: 30px;
    }
}



/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3500;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 4000;
    transition: right 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-mobile-menu:hover {
    background: #f5f5f5;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-search {
    position: relative;
    margin-bottom: 10px;
}

.mobile-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 15px 0 40px;
    font-family: 'Playfair Display', serif;
}

.mobile-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #666;
}

.mobile-btn-reserve {
    width: 100%;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-btn-reserve:hover {
    background: #ff5252;
}

/* .mobile-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 5px;
    font-family: 'Poiret One', cursive;
    font-size: 16px;
} */

body.mobile-menu-open {
    overflow: hidden;
}


/* ОСНОВНЫЕ СТИЛИ ШАПКИ ДЛЯ ВСЕХ ЭКРАНОВ */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

/* Для десктопа (1200px и больше) */
@media (min-width: 1200px) {
    .header-left-section {
        width: 260px;
        flex: 0 0 260px;
    }

    .header-center-section {
        flex: 1;
        padding: 0 30px;
    }

    .header-right-section {
        flex: 0 0 auto;
        padding: 0 30px;
    }

    .header-nav-section {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .main-links {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .desktop-search {
        display: block !important;
        flex: 1;
        max-width: 417px;
        margin: 0 25px;
    }

    .search-box-wrapper {
        display: block !important;
        width: 100%;
    }

    .search-box {
        width: 100% !important;
        height: 36px;
    }

    .header-icons {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .btn-reserve-table {
        display: inline-block !important;
        margin-right: 20px;
    }

    /* .cart {
        display: flex !important;
    } */

    .burger-menu {
        display: none !important;
    }
}

/* Для средних экранов (768px-1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .header-left-section {
        flex: 0 0 auto;
        padding-left: 20px;
    }

    .header-center-section {
        flex: 1;
        padding: 0 20px;
    }

    .header-right-section {
        flex: 0 0 auto;
        padding-right: 20px;
    }

    .header-nav-section {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .main-links {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-right: 20px;
    }

    .desktop-search {
        display: none !important;
    }

    .header-icons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .burger-menu {
        display: flex !important;
        margin-left: 15px;
    }

    .menu-akcii,
    .menu-dostavka {
        font-size: 18px;
    }

    .logo {
        height: 40px;
    }
}

/* Для маленьких экранов (до 767px) */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    header {
        height: 60px;
    }

    .header-left-section {
        flex: 1;
        padding-left: 15px;
    }

    .header-center-section {
        flex: 0 0 auto;
        padding: 0 15px;
    }

    .header-right-section {
        flex: 0 0 auto;
        padding-right: 15px;
    }

    .header-nav-section {
        display: flex !important;
        align-items: center;
    }

    .main-links {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-right: 10px;
    }

    .desktop-search {
        display: none !important;
    }

    .header-icons {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .burger-menu {
        display: flex !important;
        margin-left: 10px;
    }

    .menu-akcii,
    .menu-dostavka {
        font-size: 16px;
    }

    .logo {
        height: 35px;
    }

    .icon-fav img,
    .icon-user img {
        width: 20px;
        height: 20px;
    }
}

/* МОБИЛЬНОЕ МЕНЮ */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s;
    display: block;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3500;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 4000;
    transition: right 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-mobile-menu:hover {
    background: #f5f5f5;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-search {
    position: relative;
}

.mobile-search input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px 0 45px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}

.mobile-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    pointer-events: none;
}

.mobile-btn-reserve {
    width: 100%;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mobile-btn-reserve:hover {
    background: #ff5252;
}

/* .mobile-cart-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.mobile-cart-section:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.mobile-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-cart span:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #333;
}

.mobile-cart-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-cart-total span:first-child {
    font-family: 'Poiret One', cursive;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-cart-total .cart-badge {
    background: #ff6b6b;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    display: none;
} */

.mobile-additional-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.mobile-additional-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.mobile-additional-links a:hover {
    background: #f5f5f5;
    color: #ff6b6b;
}

.mobile-additional-links a i {
    width: 20px;
    text-align: center;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* MOBILE: сайдбар скрыт за экраном, открывается FAB-кнопкой снизу */
@media (max-width: 1199px) {
    #sidebar {
        left: -260px !important;
        transform: translateX(0) !important;
        width: 260px !important;
        top: 0;
        height: 100vh;
        padding-top: 70px;
        z-index: 2500;
        transition: left 0.3s ease;
    }

    #sidebar.active {
        left: 0 !important;
    }

    #sidebar.collapsed {
        width: 260px !important;
        left: -260px !important;
    }

    #sidebar.collapsed .sidebar-header,
    #sidebar.collapsed .sidebar-links,
    #sidebar.collapsed .close-btn {
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
    }

    .sidebar-collapsed-toggle {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
        padding-bottom: 90px;
    }

    body.sidebar-active {
        overflow: hidden;
    }

    body.sidebar-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2400;
    }
}

@media (max-width: 767px) {
    #sidebar {
        padding-top: 60px;
    }
}

/* MOBILE: упрощённая шапка */
@media (max-width: 1199px) {
    header .row {
        flex-wrap: nowrap;
    }

    .main-links {
        display: none !important;
    }

    .header-left-section {
        width: auto !important;
        flex: 0 0 auto;
    }

    .header-center-section {
        flex: 1;
        justify-content: flex-end;
        padding: 0 10px;
    }

    .header-nav-section {
        justify-content: flex-end;
        width: 100%;
    }

    .header-right-section {
        flex: 0 0 auto;
        padding: 0 10px;
    }
}



/* Кнопка открытия сайдбара на мобильных */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #252222;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    z-index: 1800;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.mobile-sidebar-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 20px;
}

.mobile-sidebar-toggle .menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
}


@media (max-width: 1199px) {
    .mobile-sidebar-toggle {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .mobile-sidebar-toggle {
        display: none;
    }
}


.icon-user {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    display: none;
    z-index: 4000;
    margin-top: 10px;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-family: 'Poiret One', cursive;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #ff6b6b;
}


/* Стили для счетчика категорий в сайдбаре */
.sidebar-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-family: 'Poiret One', cursive;
}

#sidebar.collapsed .category-count {
    display: none;
}


