* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #f5f5f5;
    background: black;
    line-height: 1.6;
    min-width: inherit !important;
}

#modifier-modal .modal-body-container {
    display: block;
}
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #2c3038 0%, #24272e 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #ff9f43;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    color: #b2b8c5;
    max-width: 600px;
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.Product_el {
    transition: all 0.2s ease-out;
    margin: 22px;
    min-height: 250px;
    vertical-align: text-bottom;

    cursor: pointer;
    position: relative;
    flex: 0 0 calc(30% - 35px);
    font-family: "stolzl-book", sans-serif;
    width: 100%;
}
.Product_el .price {
    font-size: 34px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 100;
    text-transform: uppercase;
    line-height: 5em;
    letter-spacing: -0.7px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3), 1px 1px 10px rgba(0, 0, 0, 0.3), 1px 1px 10px rgba(0, 0, 0, 0.3), 1px 1px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 1400px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cart-button {
        position: fixed;
        bottom: 30px;
        top: initial !important;
    }
}

@media (max-width: 1035px) {
    .menu-grid {
        grid-template-columns: repeat(3, 0fr);
    }
    .Product_el {
        flex: 0 0 39%;
        display: flex;
    }
}

@media (max-width: 993px) {
    .menu-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 690px) {
    .menu-grid {
display: flex !important;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {

    .Product_el {
        min-height: 186px !important;
    }
    .Product_el {
        flex: 0 0 41%;
        display: flex;
        width: 45%;
    }
}

@media (max-width: 576px) {
    .container, .container-sm {
        max-width: 100% !important;
    }
    .Product_el .price {
        line-height: 2em;
        min-height: 125px;

    }
    .Product_el {
        margin: 30px 0;
    }
}

@media (max-width: 500px) {
    .menu-grid {

    }
}



.limit-info {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    font-weight: normal;
}

.selected-counter {
    margin: 10px 0;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.header-action-btn:hover {
    color: #ff9f43;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.cart-button {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: linear-gradient(to right, #ff9f43, #ff7c0d);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-button:hover {
    background: linear-gradient(to right, #ff7c0d, #ff9f43);
}

.debug-button {
    right: 240px;
    background: linear-gradient(to right, #6c757d, #5a6268);
}

.debug-button:hover {
    background: linear-gradient(to right, #5a6268, #6c757d);
}

/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    background: linear-gradient(180deg,#141823,#0f121a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border-bottom: 1px solid #232632;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

/* Контейнер для содержимого модального окна */
.modal-body-container {
    display: flex;
    flex-direction: row;
}

/* Левая секция с изображением */
.modal-left-section {
    flex: 0 0 40%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #232632;
}

.modal-image-container {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-description {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    text-align: center;
}

/* Правая секция с модификаторами */
.modal-right-section {
    flex: 1;
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
}

.modifiers-section {
    margin-top: 16px;
}

.modifier-group {
    margin-bottom: 24px;
}

.modifier-group-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.modifier-group-title i {
    margin-right: 8px;
    color: #fff;
}

.limit-info {
    font-size: 14px;
    color: #888;
    margin-left: 8px;
    font-weight: normal;
}

.modifier-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modifier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border: 1px solid #232632;
    border-radius: 15px;
    transition: all 0.2s;
}

.modifier-item:hover {
    border-color: #ccc;
}

.modifier-info {
    display: flex;
    flex-direction: column;
}

.modifier-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.modifier-price {
    font-size: 14px;
    color: #fff;
    margin-top: 4px;
}

.modifier-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Кнопка "Показать еще" */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #11141e;
    border: 1px solid #3b4055;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.show-more-btn:hover {
    background-color: #232632;
    color: #fff;
}

.show-more-btn i {
    margin-left: 8px;
}

/* Футер модального окна */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border-top: 1px solid #232632;
}

.modal-price {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #0f121a;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-display {
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.modal-add-button {
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    background: #fd7d0e;
}

.modal-add-button:hover {
    background-color: #e55a2b;
}

/* Стили для скрытых элементов */
.hidden-modifiers {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-body-container {
        flex-direction: column;
    }

    .modal-left-section {
        border-right: none;
        border-bottom: 1px solid #232632;
    }

    .modal-right-section {
        max-height: none;
    }
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Корзина */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #2c3038;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    color: #f5f5f5;
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: #24272e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3f49;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3f49;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.cart-item-modifiers {
    font-size: 12px;
    color: #b2b8c5;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #ff9f43;
    font-weight: bold;
}

.cart-item-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 8px;
    padding: 4px;
    border-radius: 999px;
    background: #1f232b;
    border: 1px solid #3a3f49;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #495163;
    border-radius: 50%;
    background: #2f3541;
    color: #f7f8fb;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-qty-btn:hover {
    border-color: #ff9f43;
    color: #ff9f43;
}

.cart-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border: 1px solid #5a2f2a;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.08);
    color: #ff736c;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.15);
    color: #ff9a95;
}

.cart-total {
    padding: 20px;
    background: #24272e;
    border-top: 1px solid #3a3f49;
}

.checkout-btn {
    background: linear-gradient(to right, #ff9f43, #ff7c0d);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: linear-gradient(to right, #ff7c0d, #ff9f43);
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

.clear-cart-btn {
    background: linear-gradient(to right, #ff3b30, #d62c20);
}

.clear-cart-btn:hover {
    background: linear-gradient(to right, #d62c20, #ff3b30);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

/* Дебаг модальное окно */
.debug-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: #2c3038;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 12px;
    z-index: 1002;
    display: none;
    color: #f5f5f5;
}

.debug-modal.open {
    display: block;
}

.debug-header {
    padding: 20px;
    background: #24272e;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3f49;
}

.debug-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.debug-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
    font-family: monospace;
    font-size: 12px;
}

.debug-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #3a3f49;
    border-radius: 8px;
    background: #343840;
}

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

.debug-overlay.open {
    display: block;
}


.DesktopHeader_logo {
    background-image: url("/img/logo-mroob1.png");
    flex: 0 0 auto;
    width: 155px;
    height: 39px;
    margin-right: 0;
    margin-bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    background-position: 0 50%;
}

.site-header {
    background: #000;
    border-bottom: 1px solid #3a3f49;
    padding: 15px 0;
    transition: transform 0.3s ease;
    position: relative;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: #f5f5f5;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Логотип по центру */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ff9f43;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    z-index: 1000;
}

/* Основная навигация */
.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.header-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header-link:hover {
    background: rgba(255, 159, 67, 0.1);
    border-color: #ff9f43;
    color: #ff9f43;
}

.header-link.primary {
    background: #ff9f43;
    color: white;
}

.header-link.primary:hover {
    background: #ff7c0d;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

.header-link.external::after {
    content: " ↗";
    font-size: 12px;
}

/* Сайдбар */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #2c3038;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
    border-right: 1px solid #3a3f49;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 159, 67, 0.1);
    border-color: #ff9f43;
    color: #ff9f43;
}

.sidebar-link.primary {
    background: #ff9f43;
    color: white;
}

.sidebar-link.primary:hover {
    background: #ff7c0d;
}

.sidebar-link.external::after {
    content: " ↗";
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .header-logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .header-container {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }

    .header-logo {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .burger-menu {
        width: 25px;
        height: 18px;
    }

    .burger-line {
        height: 2px;
    }
}

/* Навигация по категориям - ФИКСИРОВАННАЯ с анимацией */
.categories-nav {
    background: #000;
    border-bottom: 1px solid #3a3f49;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

.categories-nav.compact {
    top: 0;
}

.categories-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff9f43 transparent;
    padding-bottom: 5px;
}
.categories-scroll {
    scroll-behavior: smooth;
    scroll-padding: 0 20px;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: #ff9f43;
    border-radius: 3px;
}

.category-link {
    color: #b2b8c5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.category-link:hover {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.1);
}

.category-link.active {
    color: #fff;
    background: #ff9f43;
    border-color: #ff9f43;
    box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
}

/* Стили для заголовков категорий */
.category-heading {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9f43;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    scroll-margin-top: 80px;
}

.category-name {
    display: inline-block;
    background: linear-gradient(135deg, #ff9f43, #ff7c0d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-nav {
        gap: 15px;
        justify-content: center;
    }

    .header-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .category-heading {
        scroll-margin-top: 70px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-nav {
        flex-direction: column;
        gap: 10px;
    }

    .header-link {
        text-align: center;
        width: 100%;
        max-width: 200px;
    }

    .category-heading {
        scroll-margin-top: 60px;
        margin: 30px 0 15px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Индикатор прокрутки для навигации */
.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: #ff9f43;
    border-radius: 3px;
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-indicator.visible {
    opacity: 1;
}

.notmodifier .modal-left-section {
    flex: 0 0 100%;
}