﻿html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
    position: static;
    background: #F5F5DC;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100%;
}

html {
    --scrollbar-size: 10px;
    --scrollbar-thumb: rgba(155, 125, 42, 0.42);
    --scrollbar-thumb-hover: rgba(184, 145, 34, 0.72);
    --scrollbar-thumb-active: rgba(0, 87, 183, 0.78);
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 125, 42, 0.42) transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

*:hover {
    scrollbar-color: rgba(155, 125, 42, 0.42) transparent;
}

*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*:hover::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-active);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    background: #F5F5DC;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    color: #333;
}

.schapka {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    background: #FFF8DC;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.inschapka {
    display: grid;
    grid-template-columns: auto minmax(320px, 450px) auto;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box; /* <--- ДОБАВИТЬ ВОТ ЭТО */
    gap: 20px;
}

.header-lang-switcher {
    justify-self: end;
    gap: 8px;
    flex-wrap: wrap;
}

.logofoto {
    width: 170px;
    height: auto;
    display: block;
}

/* ПОИСК */

.search-bar {
    display: flex;
    width: 100%;
    max-width: 450px;
    border: 2px solid #FFD700;
    border-radius: 25px;
    overflow: hidden;
    background: white;
    margin: 0;
    justify-self: center;
}

    .search-bar input {
        border: none;
        padding: 10px 15px;
        width: 100%;
        outline: none;
        font-size: 16px;
    }

    .search-bar button {
        background: #FFD700;
        border: none;
        padding: 0 20px;
        cursor: pointer;
        font-size: 18px;
    }

    .search-clear-btn {
        background: #fff3b0 !important;
        color: #333 !important;
        border: none !important;
        padding: 0 15px !important;
        cursor: pointer !important;
        font-size: 16px !important;
    }

    .search-clear-btn:hover {
        background: #ffe680 !important;
    }

.legal-header-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* ЯЗЫКИ */

.lang-switcher {
    display: flex;
    gap: 8px;
}

.lang-item {
    cursor: pointer;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #e7dcc3;
    background: #fffaf0;
    border-radius: 999px;
    padding: 8px 12px;
    line-height: 1;
}

.header-lang-switcher .lang-item {
    font-size: 12px;
    color: #8a6d1f;
}

    .lang-item.active {
        color: #0057b7;
        border-color: rgba(0, 87, 183, 0.22);
        background: rgba(0, 87, 183, 0.08);
    }
/* ГЛАВНЫЙ КОНТЕЙНЕР */

.main-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    gap: 30px;
}
/* БОКОВАЯ ПАНЕЛЬ */

.leftpanel {
    position: sticky;
    top: 110px;
    width: 250px;
    z-index: 900;
    flex-shrink: 0;
    background: transparent; /* Убираем общий фон, чтобы блоки разделились */
}
/* Блок с навигацией */

.panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 10px 0;
    margin-bottom: 20px; /* Отступ между меню и рекламой */
}

.menu-item, .category-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #444;
    font-size: 17px;
    transition: 0.2s;
}



    .menu-item:hover, .category-nav a:hover {
        background-color: #f8f8f0;
        color: #0057b7;
        padding-left: 25px;
    }



    .menu-item.active {
        background-color: #0057b7;
        color: white !important;
        font-weight: bold;
    }

.category-nav .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-nav .category-count {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.18);
    color: #7a6100;
    font-size: 13px;
    font-weight: 700;
}

.category-nav .category-link-drinks:hover,
.category-nav .category-link-drinks.active {
    background: rgba(0, 87, 183, 0.12);
    color: #0057b7;
}

.category-nav .category-link-snacks:hover,
.category-nav .category-link-snacks.active {
    background: rgba(230, 126, 34, 0.14);
    color: #b85a00;
}

.category-nav .category-link-sweets:hover,
.category-nav .category-link-sweets.active {
    background: rgba(214, 51, 132, 0.12);
    color: #b03073;
}

.category-nav .category-link-other:hover,
.category-nav .category-link-other.active {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
}

.separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.category-title {
    font-size: 12px;
    font-weight: bold;
    color: #bbb;
    text-transform: uppercase;
    margin-left: 20px;
    letter-spacing: 1px;
}
/* РЕКЛАМА В ПАНЕЛИ */

.side-ad {
    padding: 15px;
    background: white; /* Делаем белый фон как у меню */

    border: 2px dashed #FFD700; /* Золотистая пунктирная рамка для акцента */

    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}



    .side-ad:hover {
        transform: scale(1.02); /* Легкий эффект при наведении */
    }

.ad-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.side-ad img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.side-ad span {
    font-size: 13px;
    color: #0057b7;
    font-weight: bold;
    display: block;
    line-height: 1.4;
}
/* КОНТЕНТ */ /* ФУТЕР */

.main-footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}



    .footer-column h4 {
        color: #FFD700;
        margin-bottom: 20px;
        text-transform: uppercase;
    }



    .footer-column p, .footer-column a {
        color: #ccc;
        text-decoration: none;
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
    }

.footer-logo {
    width: 150px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-shop-photo {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 180px;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-shop-photo:hover {
    opacity: 1;
}

.side-ad-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.side-ad-link img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-ad-link:hover img {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.side-ad-text {
    font-size: 13px;
    color: #0057b7;
    font-weight: bold;
    display: block;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 20px;
    color: #777;
    font-size: 12px;
}
/* КОНТАКТЫ В ФУТЕРЕ */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    width: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
}

.contact-text {
    font-style: normal;
    color: #ccc;
    line-height: 1.5;
}



    .contact-text a {
        color: #FFD700 !important;
    }


/* Общие настройки для контентной области */
.content-area {
    flex: 1 1 0;
    padding: 40px;
    width: auto;
    max-width: 920px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
}

    /* Заголовок страницы */
    .content-area h1 {
        font-size: 32px;
        margin-bottom: 30px;
        color: #222;
        border-bottom: 3px solid #ffcc00; /* Твой фирменный желтый/медовый цвет */
        display: inline-block;
        padding-bottom: 5px;
    }

/* Блоки с юридической информацией */
.legal-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.legal-block {
    width: 100%;
    box-sizing: border-box;
}

.legal-block h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.legal-block p {
    margin: 0;
    font-size: 16px;
    color: #444;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.legal-block strong {
    color: #000;
}

/* Ссылки внутри текста */
.legal-block a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

    .legal-block a:hover {
        text-decoration: underline;
        color: #0056b3;
    }

/* Разделитель между блоками (опционально) */
.legal-block:not(:last-child) {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .content-area {
        padding: 20px;
        margin: 10px;
    }

        .content-area h1 {
            font-size: 26px;
        }
}

.mobile-menu-btn {
    display: none; /* Скрыта на ПК */
}

.mobile-menu-logo {
    display: none;
}

@media (max-width: 768px) {

    html, body {
        overflow-x: clip; /* Меняем на clip, как и в основной части */
        position: static;
    }

    /* Шапка под мобилку */
    .inschapka {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 15px;
        row-gap: 8px;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
        padding: 8px 15px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Кнопка-бургер */
    .mobile-menu-btn {
        display: flex;
        background: #0057b7;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        order: 1;
    }

    .hamburger-icon {
        width: 20px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .hamburger-icon span {
            display: block;
            width: 100%;
            height: 2px;
            background: white;
            border-radius: 2px;
            transition: 0.3s;
        }

    /* Анимация бургера в крестик */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .logo-link {
        order: 2;
        margin: 0;
    }

    .logofoto {
        width: 100px;
    }

    .header-lang-switcher {
        display: flex;
        align-items: center;
        order: 3;
        justify-self: auto;
    }

    .search-wrapper {
        order: 4;
    }

    .legal-header-placeholder {
        display: none;
    }

    /* ВЫЕЗЖАЮЩАЯ ПАНЕЛЬ */
    .leftpanel {
        display: block !important;
        position: fixed;
        top: 0;
        left: -85%; /* Спрятана за экраном */
        width: 80%;
        height: 100vh;
        background: #F5F5DC;
        z-index: 10001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        padding: 0;
        overflow-y: auto;
    }

        .leftpanel.active {
            left: 0;
        }
    /* Выезд шторки */

    .mobile-menu-logo {
        display: block;
        text-align: center;
        padding: 25px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        background: #FFF8DC;
    }

        .mobile-menu-logo img {
            width: 130px;
        }

    /* Затемнение фона */
    .menu-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
        backdrop-filter: blur(2px);
    }

    /* Категории и ссылки в меню */
    .panel {
        box-shadow: none;
        background: transparent;
        padding: 10px 0;
    }

    .category-nav {
        display: flex !important;
        flex-direction: column;
        padding: 0;
    }

        .menu-item, .category-nav a {
            font-size: 17px;
            padding: 15px 25px;
            border-bottom: 1px solid rgba(0,0,0,0.03);
        }

    /* Реклама в шторке */
    .side-ad {
        width: 75%;
        margin: 30px auto 50px;
        padding: 10px;
        background: white;
    }

        .side-ad img {
            max-height: 110px;
            object-fit: contain;
        }

    /* Сетка товаров на мобилке */
    .main-container {
        display: block;
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* ЦЕНТРИРОВАНИЕ ФУТЕРА */
    .footer-content {
        flex-direction: column; /* Элементы в колонку */
        align-items: center; /* Центрируем колонки */
        text-align: center; /* Центрируем текст внутри */
        gap: 35px; /* Расстояние между блоками */
    }

    .footer-column {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрируем содержимое каждой колонки */
    }

    /* Иконки и контакты тоже в центр */
    .contact-item {
        justify-content: center; /* Центрируем иконку + текст */
        text-align: center;
        width: 100%;
    }

    .contact-text {
        text-align: center;
    }

    /* Убираем лишние отступы у заголовков на мобилке */
    .footer-column h4 {
        margin-bottom: 15px;
    }
}