/* Global Font Override */
*:not(i):not([class*="icon"]):not(span) {
    font-family: 'Rubik', sans-serif !important;
}

/* CSS Reset and Base Styles */
/* Apply Comfortaa font to body and key elements */
body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
}

/* Обнуляющие стили (CSS Reset) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset для старых браузеров */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
}
a {
    text-decoration: none;
    color: inherit;
    background: transparent;
}

/* Общие стили */

.site-content {
    background-color: #f8f8f8;
}


.container {
    width: 80%;
    max-width: 1400px;
    margin: 20px auto 20px auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.container-menu {
    padding: 0px;
}

h1 {
    font-size: 32px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
}

h2 {
    font-size: 32px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
}

p {
    font-family: 'Rubik', sans-serif;
}

.order-button.disabled:hover, .order-button:disabled:hover {
    background: #adb5bd !important;
    border-color: #adb5bd !important;
    transform: none !important;
    box-shadow: none !important;
}

/* header */

header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 80%;
    max-width: 1400px;
    padding: 0px 0px 10px 0px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    padding: 0px 0px;
    justify-content: space-between;
}

.header-address {
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-address .header-address-time {
    font-size: 14px;
}

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e4e4;
    padding: 16px 0px;

}

.header-info-item {
    display: flex;
    letter-spacing: -0.5px;
    flex-direction: column;
    gap: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.site-branding {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: flex-end;
}

.site-branding img {
    width: 200px;
    border-radius: 0px !important;
    height: 100%;
    object-fit: contain;
}

.site-branding a {
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #fe6b35;
    white-space: nowrap;
}

.header-number {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    letter-spacing: -0.5px;
    font-size: 16px;
}

.header-number p {
    font-size: 14px;
}

.productType-info-header {
    gap: 4px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.productType-info-header-text {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.5;
}

.menu {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}

.menu li {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu li a img {
    width: 20px;
    height: auto;
}

#primary-menu li {
    border-radius: 25px;
    padding: 12px 16px;
    background-color: white;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    will-change: transform;
}

#primary-menu {
    gap: 12px;
}

#secondary-menu li {
    font-size: 14px;
    font-weight: 400;
}

#sticky-menu .container{
    align-items: center;
    margin: 0 auto;
    justify-content: space-between;
    padding: 0px;
    flex-direction: row;
}

/* Sticky Menu Styles */
#sticky-menu {
    position: relative;
    z-index: 100;
    margin-bottom: 0;
    /* Убираем transition: all чтобы избежать странных анимаций при возврате */
}



#sticky-menu.sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 8px 20px!important;
    border-radius: 0;
    margin: 0;
    animation: slideDown 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#sticky-menu.sticky #primary-menu {
    gap: 8px;
}

#sticky-menu.sticky #primary-menu li {
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#sticky-menu.sticky #primary-menu li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.menu-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.2s ease;
}

.menu-link:hover {
    color: #ff6b35;
}

/* Active menu item */
#primary-menu li.active {
    background-color: #ff6b35 !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

#primary-menu li.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
    will-change: left;
}

#primary-menu li.active:hover::before {
    left: 100%;
}

#primary-menu li.active .menu-link {
    color: white !important;
    font-weight: 600;
}

#sticky-menu.sticky #primary-menu li.active {
    background-color: #ff6b35 !important;
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Sticky Cart Styles */
.sticky-cart {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: slideInRight 0.4s ease 0.2s forwards;
    will-change: opacity, transform;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sticky-cart a {
    min-width: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.sticky-cart a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.sticky-cart .cart-total-price {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.sticky-cart .cart-item-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #ff6b35;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* footer */

footer {
    background: #1d2327;
    color: #fff;
}

.footer-container {
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0;
    margin: 24px auto 0px auto !important;
}

.footer-logo {
    width: 200px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.payment-logos {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.payment-logos img {
    width: 64px;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 20px;
    padding: 12px 8px;
}


.footer-container-top {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.footer-column-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    width: 100%;    
}

.footer-column h4 {
    margin: 16px 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.footer-column ul li {
    font-size: 14px;
    font-weight: 400;
}

.footer-legal {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.5;
    flex-wrap: wrap;
}

.pizza-info-container,
.salad-info-container,
.snack-info-container,
.dessert-info-container,
.sauce-info-container,
.drink-info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    height: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Body padding to prevent layout jump when menu becomes sticky */
body.sticky-menu-active {
    padding-top: 80px;
}

/* === АДАПТИВНЫЕ СТИЛИ === */

@media (max-width: 1680px) {
    p {
        font-family: 'Rubik', sans-serif;
        font-size: 14px;
    }

    .header-left {
        gap: 32px;
    }
}

@media (max-width: 1367px) {
    header {
        width: 90%;
    }    
    .container {
        width: 90%;
        padding: 15px 0;
    }

    .header-info {
        position: absolute;
        top: 12px;
        right: 60px;
    }

    .menu li {
        font-size: 14px;
    }

    .footer-container-top {
        flex-direction: column;
    }
}

/* === Disable sticky hover highlight on touch devices to prevent lingering selection === */
@media (hover: none) and (pointer: coarse) {
    .menu-link:hover {
        color: inherit !important;
    }
    #sticky-menu.sticky #primary-menu li:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .header-top {
        gap: 24px;
    }

    .header-left {
        gap: 12px;
    }

    .site-branding img {
        width: 100px;
    }

    .payment-logos img {
        width: 20px;
    }

    .header-number {
        font-size: 14px;
    }

    .scribble-circle {
        font-size: 12px;
    }

    .footer-logo {
        width: 100px;
    }

    .scribble-circle::after {
        top: 70%;
        left: 40%;
    }
    
    .container {
        width: 90%;
        padding: 15px 0;
    }
    
    header {
        width: 90%;
        padding: 0px 0px 10px 0px;
    }
    
    .menu {
        gap: 20px;
    }
    
    #primary-menu {
        gap: 8px;
    }
    
    #primary-menu li {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    h2 {
        font-size: 28px;
    }

    .footer-container-top {
        flex-wrap: wrap;
    }

    .footer-logo {
        width: 100%;
    }

    .footer-column-wrapper {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-legal p {
        font-size: 10px;
    }

    .footer-column h4 {
        font-size: 16px;
    }

    .footer-documents ul li a {
        font-size: 12px;
    }

    .footer-column ul li a {
        font-size: 13px;
    }

    #sticky-menu.sticky #primary-menu li {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px 0;
        gap: 15px;
    }
    
    header {
        width: 95%;
        gap: 8px;
    }

    .header-left {
        gap: 8px;
    }
    
    /* Адаптивная шапка */
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-info, .header-address, .header-number, .header-bottom, .header-cart {
        display: none !important;
    }

    .header-left {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    
    .site-branding {
        justify-content: center;
    }
    
    .site-branding img {
        width: 150px;
    }
    
    .header-address,
    .header-number {
        text-align: center;
        align-items: center;
    }
    
    .header-info-item {
        text-align: center;
        align-items: center;
    }
    
    /* Адаптивное меню */
    #sticky-menu .container {
        padding-left: 0;
        box-sizing: border-box;
    }
    .menu {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px; /* опускаем полосу скролла чуть ниже */
        justify-content: flex-start;
        margin-left: -4%;
        padding-left: 4%;
        padding-right: 4%;
    }
    
    #primary-menu li {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* Sticky menu для мобильных */
    #sticky-menu.sticky {
        padding: 6px 0 !important;
    }
    
    #sticky-menu.sticky .container {
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto; /* позволяет горизонтальный скролл */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    #sticky-menu.sticky .container::-webkit-scrollbar {
        display: none;
    }
    
    #sticky-menu.sticky #primary-menu {
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        flex-shrink: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* убираем отрицательный margin, возвращаем нормальный отступ */
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    #sticky-menu.sticky #primary-menu::-webkit-scrollbar {
        display: none;
    }
    
    #sticky-menu.sticky #primary-menu li {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Скрываем sticky-cart на мобильных */
    .sticky-cart {
        display: none !important;
    }
    
    /* Заголовки */
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 24px;
        text-align: left;
        margin-bottom: 15px;
    }
    
    h3 {
        font-size: 18px;
    }

    .footer-container-top,
    .footer-legal {
        flex-direction: column;
    }

    .product-stickers {
        top: -4px !important;
        left: 0px !important;
        right: auto !important;
    }

    .footer-column {
        width: 48%;
    }
    
    .footer-container {
        padding-bottom: 24px !important;
    }

    .footer-column-wrapper {
        flex-wrap: wrap;
    }

    .footer-column ul li a {
        font-size: 12px;
    }

    .main-navigation {
        overflow-y: auto;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        padding-right: 4% !important;
    }

    #sticky-menu.sticky .container {
        overflow-x: auto; /* позволяет горизонтальный скролл */
    }

    #sticky-menu.sticky .container::-webkit-scrollbar {
        display: none;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 8px 0;
        gap: 24px;
        margin: 28px auto;
    }
    
    header {
        width: 92%;
    }
    
    .site-branding img {
        width: 120px;
    }
    
    .site-branding a {
        font-size: 24px;
    }
    
    .header-number {
        font-size: 14px;
    }
    
    .menu {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        justify-content: flex-start;
        margin-left: -4%;
        padding-left: 4%;
        padding-right: 4%;
    }

    .header-cart {
        display: none;
    }

    .sticky .container {
        width: 100%;
    }

    /* Контейнер меню – как у секции «Комбо» */
    #sticky-menu .container {
        width: 100%;      /* растягиваем на всю ширину */
        margin: 0px 0;   /* сохраняем вертикальные отступы */
        padding-left: 0;  /* убираем базовый левый отступ */
        padding-right: 0; /* убираем базовый правый отступ */
    }
    
    #primary-menu li {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    #sticky-menu.sticky {
        padding: 0px 10px !important;
    }
    
    #sticky-menu.sticky #primary-menu li {
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 300;
    }

    .main-navigation {
        overflow-y: auto;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .main-navigation ul {
        justify-content: flex-start;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 0px;
    }
    
    .sticky-cart a {
        padding: 4px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .footer-container-top,
    .footer-legal {
        flex-direction: column;
        gap: 8px;
        gap: 2px;
    }

    .product-stickers {
        top: -4px !important;
        left: 0px !important;
        right: auto !important;
    }

    .footer-column {
        width: 100%;
    }
    
    .footer-container {
        padding-bottom: 24px !important;
    }

    .footer-column-wrapper{
        flex-wrap: wrap;
    }
}

/* === FAB КОРЗИНА ДЛЯ МОБИЛЬНЫХ === */

/* FAB корзина - показывается только на мобильных */
.mobile-fab-cart {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff6b35 0%, #f5543d 100%);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fabBounceIn 0.5s ease-out;
}

.mobile-fab-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.mobile-fab-cart:active {
    transform: scale(0.95);
}

@keyframes fabBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fab-cart-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.fab-cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
}

.fab-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #fff;
    color: #ff6b35;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff6b35;
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Показываем FAB только на мобильных */
@media (max-width: 768px) {
    .mobile-fab-cart {
        display: block;
    }
}

@media (max-width: 480px) {
    .mobile-fab-cart {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    
    .fab-cart-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .fab-cart-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -3px;
        right: -3px;
    }
}

/* === Исправление горизонтального скролла для секции Комбо === */

/* === Mobile Burger Menu === */
.mobile-burger {
    display:none;
    width:24px;
    height:24px;
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
    position:relative;
}
.mobile-burger span,
.mobile-burger::before,
.mobile-burger::after {
    content:'';
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    background:#000;
    transition:0.3s;
}
.mobile-burger::before { top:4px; }
.mobile-burger span { top:11px; }
.mobile-burger::after { bottom:4px; }
@media (max-width: 768px) {
    .mobile-burger {
        display:flex;
    }
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
    overflow-y: auto; /* позволяет прокрутку, если контент выше экрана */
    overscroll-behavior: contain;
    max-height: 96%;
}
.mobile-menu.open {
    right: 0; /* Slide in */
}

/* Overlay behind menu */
.mobile-menu-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: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-delivery-map-wrapper {
    width:100%;
    height:180px;
    margin-top:auto; /* прижимает к низу внутри flex */
    border-radius:12px;
    overflow:hidden;
    flex-shrink:0; /* не сжимать */
}

#mobile-delivery-map {
    width:100%;
    height:100%;
}

/* Disable scroll when menu open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Scrollable content area */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: flex-start;
}

/* Address / phone styling */
.mobile-menu .header-address p,
.mobile-menu .header-number p,
.mobile-menu .header-number a {
    font-size: 14px;
    line-height: 1.4;
    color: #1d2327;
}
.mobile-menu .header-number a { font-weight: 600; }

/* Secondary menu links */
.mobile-menu #mobile-secondary-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: flex-start;
}
.mobile-menu #mobile-secondary-menu li a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
    width: 100%;
}
.mobile-menu #mobile-secondary-menu li a:hover { color: #ff6b35; }

/* Close button */
.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 300;
}
.mobile-menu-close:hover { background: #eaeaea; }
.mobile-menu-header {
    display:flex;
    justify-content:space-between;
    align-items: flex-start;
    padding-bottom:12px;
    
}
.mobile-menu-close {
    background:none;
    border:none;
    font-size:32px;
    line-height:1;
    cursor:pointer;
}
.mobile-menu .header-address,
.mobile-menu .header-number {
    display:flex;
}
.mobile-menu .header-address {
    flex-direction:column;
    gap:4px;
    margin-bottom:12px;
    margin-top: 12px;
    font-size:14px;
    color:#1d2327;
    align-items: flex-start;
}
.mobile-menu .header-address-time { font-size:12px; opacity:0.7; }
.mobile-menu .header-number {
    flex-direction:column;
    gap:4px;
    padding-bottom:12px;
    margin-top: 12px;
    margin-left: 0px;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu .header-number a {
    font-size:16px;
    font-weight:600;    
    color:#ff6b35;
    text-align: left;
    width: max-content;
}
.mobile-menu .header-number p { 
    font-size:14px; 
    color:#1d2327; 
}

.mobile-menu .header-address,
.mobile-menu .header-number { 
    display:flex !important; 
}

.menu-secondary-menu-container {
    width: 100%;
    margin-bottom: auto;
}

.mobile-menu #mobile-secondary-menu {
    display:flex;
    flex-direction:column;
    gap:0px;
    width: 100%;
}
.mobile-menu #mobile-secondary-menu li {
    font-size:16px;
    width: 100%;
}

.mobile-menu-header {
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a {
    width: 140px;
    display: block;
}

.mobile-menu a img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* убираем правый отступ, чтобы последняя карточка была полностью видна */
    .combo-section .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 16px 0;
        padding-left: 0;
    }
    /* небольшое внутреннее поле, чтобы карточки не прилипали к правому краю */
    .combo-flex {
        margin-left: -4%; /* тянем ленту влево, чтобы скролл «заходил» под левый отступ */
        padding-left: 4%;  /* сохраняем первоначальный визуальный отступ */
        padding-right: 4%; /* небольшой буфер справа */
        padding-bottom: 5px; /* опускаем горизонтальный скролл чуть ниже */
    }

    .cart-count-badge {
        position: absolute;
        top: -6px;
        right: 0px;
        left: 120px;
    }
}

/* === Fix flicker of menu text color on mobile auto scroll === */
@media (max-width: 768px) {
    .menu-link {
        transition: none !important;
    }
}




