:root {
    --bg-color: #fbf8f5; 
    --primary-color: #502314; 
    --white: #ffffff;
    --gray-text: #8d8172; 
    --light-brown: #ddd2c1; 
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Надежный системный стек для поддержки монгольских символов */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    
    /* Основной шрифт и шрифт заголовков с фоллбеком на систему */
    --font-main: 'Flame-Regular', cursive, var(--font-system);
    --font-heading: 'Flame-Bold', sans-serif, var(--font-system);
}

/* ==========================================
   ШРИФТЫ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================== */
@font-face {
    font-family: 'Flame-Regular';
    src: url('../fonts/Flame-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Flame-Bold';
    src: url('../fonts/Flame-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--primary-color);
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   ШАПКА (HEADER)
   ========================================== */
.top-nav {
    padding: 12px 0;
    border-bottom: 1px solid rgba(80, 35, 20, 0.1);
}

.top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.top-menu a {
    font-weight: 700;
    font-size: 14px;
}

.main-header {
    padding: 20px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

/* Переключатель типа заказа */
.order-type-switch {
    display: flex;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 3px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.switch-btn {
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    background: transparent;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.switch-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Адрес в шапке */
.address-info {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    line-height: 1.2;
}

.address-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-label {
    font-size: 16px;
}

.edit-icon {
    font-size: 12px;
    color: #b9b1aa;
}

.address-value {
    font-size: 13px;
    color: var(--gray-text);
    font-family: var(--font-main);
    font-weight: 400;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background: var(--white);
    border: 1.5px solid #dccfbd;
    padding: 13px 25px;
    border-radius: 25px;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.top-menu a,
.switch-btn,
.address-label,
.btn-login {
    font-family: var(--font-main);
    font-weight: normal; 
}

.btn-login i {
    font-size: 14px;
}

/* Корзина в шапке */
.cart-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-family: var(--font-main);
}

.cart-branch-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.cart-branch-type {
    font-size: 11px;
    font-weight: 600;
}

.cart-branch-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-cart {
    background: var(--light-brown);
    border: none;
    width: auto;
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-cart:hover {
    transform: scale(1.05);
}

.cart-total-header {
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-main);
}

/* ==========================================
   МОДАЛЬНЫЕ ОКНА (ОБЩИЕ СТИЛИ)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: #e6dcd0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0d5c1;
    padding-bottom: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Табы городов и селекты */
.city-tabs { display: flex; gap: 15px; }
.city-tab {
    flex: 1;
    background: var(--white);
    border: 1px solid #dccfbd;
    padding: 12px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.city-tab i.fa-map { margin-right: 8px; color: var(--primary-color); }
.city-tab i.check-icon { font-size: 20px; color: #dccfbd; }
.city-tab.active { border-color: var(--primary-color); }
.city-tab.active i.check-icon { color: #009640; }

.custom-select { position: relative; user-select: none; }
.select-selected {
    background-color: var(--white);
    border: 1px solid #dccfbd;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.select-actions { display: flex; gap: 10px; align-items: center; color: var(--gray-text);}
.clear-select { cursor: pointer; color: #a09384; }
.clear-select:hover { color: var(--primary-color); }

.select-items {
    position: absolute;
    background-color: var(--white);
    top: 110%; left: 0; right: 0;
    z-index: 99;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 200px; overflow-y: auto;
    border: 1px solid #dccfbd;
}

.select-hide { display: none; }
.select-items div {
    padding: 15px 20px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f0e9df;
    font-size: 14px;
}
.select-items div:hover { background-color: #fcfaf8; }

.branch-time-list { color: var(--primary-color); }
.branch-time-list i { margin-right: 5px; }

.input-with-icon { position: relative; width: 50%; }
.input-with-icon i {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%); font-size: 16px; color: var(--primary-color);
}
.input-with-icon input {
    width: 100%; padding: 12px 15px 12px 40px;
    border: 1px solid var(--primary-color); border-radius: 25px;
    background: transparent; color: var(--primary-color);
    font-weight: 600; font-size: 14px; outline: none;
}

.modal-footer { display: flex; gap: 15px; margin-top: 30px; }
.modal-footer button {
    flex: 1; padding: 15px; border-radius: 25px;
    font-size: 16px; font-weight: 800; cursor: pointer;
    font-family: var(--font-heading);
}

.btn-cancel { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }
.btn-save { background: var(--primary-color); border: 1px solid var(--primary-color); color: var(--white); }

.custom-textarea {
    width: 100%; height: 100px; padding: 15px;
    border: 1px solid #dccfbd; border-radius: 15px; background: var(--white);
    color: var(--primary-color); font-family: var(--font-main); font-size: 14px;
    resize: none; outline: none; transition: 0.2s;
}
.custom-textarea:focus { border-color: var(--primary-color); }
.custom-textarea::placeholder { color: #b9b1aa; }


/* ==========================================
   ГЛАВНАЯ СТРАНИЦА (HOME)
   ========================================== */
.promo-banners { padding: 30px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-item {
    display: block; border-radius: 20px; overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(80, 35, 20, 0.15); }
.promo-item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 20px; }

.shop-container { display: flex; gap: 30px; padding: 20px 15px; align-items: flex-start; }

/* Сайдбар */
.sidebar-menu {
    width: 250px; background: var(--white); border-radius: 20px;
    padding: 15px 0; box-shadow: var(--shadow); flex-shrink: 0;
    position: sticky; top: 20px; align-self: flex-start;
    max-height: calc(100vh - 40px); overflow-y: auto;
}
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu ul { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li a {
    display: flex; align-items: center; padding: 15px 25px; color: var(--primary-color);
    font-weight: 700; font-size: 15px; gap: 15px; border-left: 4px solid transparent; transition: 0.2s;
}
.sidebar-menu li a img { width: 24px; height: 24px; object-fit: contain; }
.sidebar-menu li.active a, .sidebar-menu li a:hover {
    background: #fff8f0; border-left-color: #f28b1a; color: #f28b1a;
}

/* Товары */
.products-section { flex-grow: 1; }
.category-block { margin-bottom: 50px; scroll-margin-top: 20px; }
.category-title {
    font-size: 32px; margin-bottom: 20px; padding: 10px 0;
    position: sticky; top: 0px; background-color: var(--bg-color); z-index: 10;
}

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card {
    background: var(--white); border-radius: 20px; padding: 20px; position: relative;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-badges {
    display: flex; justify-content: space-between; align-items: center;
    position: absolute; top: 20px; left: 20px; right: 20px; z-index: 2;
}
.badge-new { background: #009640; color: white; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 800; }
.badge-spicy { color: #e31837; font-size: 18px; }
.product-image { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-name { font-size: 18px; margin-bottom: 15px; flex-grow: 1; }
.product-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.price-label { display: block; font-size: 12px; color: var(--gray-text); margin-bottom: 5px; }
.price-value { font-size: 18px; font-weight: 800; }

.btn-add-circle {
    background: #f28b1a; border: none; width: 40px; height: 40px;
    border-radius: 50%; color: white; font-size: 18px; cursor: pointer; transition: transform 0.2s;
}
.btn-add-circle:hover { transform: scale(1.1); }

/* ==========================================
   МОДАЛЬНОЕ ОКНО ТОВАРА И КАСТОМИЗАЦИИ
   ========================================== */
.product-modal-content { max-width: 900px; padding: 40px; }
.product-modal-body { display: flex; gap: 40px; }
.product-modal-left { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.product-modal-left img { width: 100%; max-width: 350px; margin-bottom: 20px; }
.product-modal-left h2 { font-size: 28px; }
.product-modal-right { flex: 1; display: flex; flex-direction: column; max-height: 400px; overflow-y: auto; }
.combo-desc { font-size: 13px; color: var(--gray-text); margin-bottom: 20px; }

.combo-item {
    background: var(--bg-color); border-radius: 12px; padding: 15px;
    margin-bottom: 10px; display: flex; align-items: center; gap: 15px;
}
.combo-item img { width: 60px; height: 60px; object-fit: contain; }
.combo-item-info { flex-grow: 1; font-weight: 700; font-size: 14px; }
.combo-edit-btn { background: transparent; border: none; color: var(--gray-text); cursor: pointer; font-size: 16px; }

.product-modal-footer {
    display: flex; justify-content: flex-end; gap: 20px;
    margin-top: 30px; padding-top: 20px; border-top: 1px solid #e0d5c1;
}
.qty-selector { display: flex; align-items: center; border: 1px solid #dccfbd; border-radius: 25px; padding: 5px 15px; }
.qty-btn { background: transparent; border: none; font-size: 16px; cursor: pointer; color: var(--primary-color); }
.qty-value { margin: 0 15px; font-weight: 800; }

.btn-add-to-cart {
    background: #009640; color: white; border: none; border-radius: 25px;
    padding: 15px 30px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.2s;
}
.btn-add-to-cart:hover { background: #007a33; }

/* Экран кастомизации */
.cust-group-title { font-size: 16px; font-family: var(--font-heading); margin: 20px 0 10px 0; }
.ingredients-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ingredient-pill {
    background: transparent; border: 1px solid var(--primary-color); border-radius: 20px;
    padding: 8px 15px; font-size: 13px; font-weight: 600; color: var(--primary-color);
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.ingredient-pill i { font-size: 10px; }
.ingredient-pill.removed { opacity: 0.5; background: #f0e9df; border-color: #dccfbd; text-decoration: line-through; }

.addons-list { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.addon-card {
    background: #fdfcfb; border: 1px solid #f0e9df; border-radius: 15px;
    padding: 15px; width: 130px; flex-shrink: 0; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.addon-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; }
.addon-name { font-size: 12px; font-weight: 700; margin-bottom: 5px; display: block; }
.addon-price { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: block; }

.addon-qty-control {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #f0e9df; border-radius: 20px; padding: 5px;
}
.addon-qty-control button {
    background: var(--primary-color); color: white; border: none; border-radius: 50%;
    width: 24px; height: 24px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.addon-qty-control span { font-weight: 800; font-size: 14px; }

.cust-modal-footer {
    justify-content: flex-end; border-top: none; padding-top: 10px; margin-top: 10px;
}
.btn-save-pill {
    width: 100%; max-width: 400px; background-color: var(--primary-color); color: var(--white);
    padding: 16px 20px; border-radius: 35px; border: none; font-size: 16px; font-weight: 800;
    font-family: var(--font-heading); cursor: pointer; text-align: center; transition: background-color 0.2s ease;
}
.btn-save-pill:hover { background-color: #3a190e; }

/* ==========================================
   БОКОВАЯ КОРЗИНА (САЙДБАР)
   ========================================== */
.cart-sidebar {
    position: fixed; 
    top: 0; 
    right: -100%; /* Для мобилок лучше -100% */
    width: 400px; 
    height: 100vh; /* Фоллбек */
    height: 100dvh; /* Динамическая высота для мобилок */
    background: var(--bg-color); 
    z-index: 1001; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease; 
    display: flex; 
    flex-direction: column;
}
.cart-sidebar-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed; top: 0; right: -450px; width: 400px; height: 100vh;
    background: var(--bg-color); z-index: 1001; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease; display: flex; flex-direction: column;
}
.cart-sidebar.active { right: 0; }

.cart-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; }
.cart-title { font-size: 24px; color: var(--primary-color); }
.cart-close { background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--primary-color); }

.cart-items-container { flex-grow: 1; overflow-y: auto; padding: 0 30px; }
.cart-item { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid #e0d5c1; position: relative; }
.cart-item img { width: 80px; height: 80px; object-fit: contain; }
.cart-item-details { flex-grow: 1; }
.cart-item-title { font-weight: 800; font-size: 14px; margin-bottom: 5px; padding-right: 20px;}
.cart-item-price { font-size: 14px; color: var(--gray-text); margin-bottom: 10px; }
.cart-item-remove { position: absolute; top: 20px; right: 0; background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--primary-color); }
.cart-item-actions { display: flex; justify-content: space-between; align-items: center; }
.cart-item-edit { background: transparent; border: none; cursor: pointer; color: var(--primary-color); }

.cart-sidebar-footer { padding: 20px 30px; border-top: 1px solid #e0d5c1; background: var(--white); }
.cart-summary-line { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 15px; }
.btn-checkout {
    width: 100%; background: #009640; color: white; padding: 15px; border-radius: 25px;
    border: none; font-weight: 800; font-size: 16px; cursor: pointer; text-align: center;
}
.btn-checkout:hover { background: #007a33; }

/* ==========================================
   ОФОРМЛЕНИЕ ЗАКАЗА (CHECKOUT)
   ========================================== */
.checkout-page { padding: 40px 15px; }
.checkout-page-title { font-size: 32px; text-transform: uppercase; margin-bottom: 30px; }

.checkout-layout { 
    display: flex; gap: 40px; align-items: flex-start;
}

.checkout-form-section { 
    flex: 1 1 auto; 
    max-width: calc(100% - 340px); 
    background: var(--white); border-radius: 20px; padding: 40px; 
}

.checkout-stepper-section { 
    flex: 0 0 300px; 
    background: #fdfbf7; border-radius: 20px; padding: 40px 30px; 
    position: sticky; top: 20px;
}

.checkout-block { margin-bottom: 25px; }
.checkout-label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 10px; }

.checkout-address-box {
    display: flex; align-items: center; background: var(--white);
    border: 1px solid #dccfbd; border-radius: 25px; padding: 12px 20px;
}
.checkout-address-box input { border: none; outline: none; flex-grow: 1; margin: 0 10px; font-size: 14px; font-weight: 600; color: var(--primary-color); }

.radio-group { display: flex; gap: 20px; }
.radio-label {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
    border: 1px solid #dccfbd; padding: 12px 20px; border-radius: 25px; cursor: pointer; flex: 1;
}
.radio-label input[type="radio"] { accent-color: var(--primary-color); width: 16px; height: 16px; }

.checkout-row-3, .checkout-row-2 { display: flex; gap: 15px; margin-bottom: 25px; }
.checkout-input-group { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.checkout-input-group.flex-grow { flex: 2; }
.checkout-input-group label { font-size: 13px; font-weight: 800; }

/* Общие стили для инпутов Checkout */
.checkout-input-group input, 
.checkout-select {
    width: 100%; border: 1px solid #dccfbd; border-radius: 25px; 
    padding: 14px 20px; font-size: 14px; font-weight: 600; outline: none; 
    font-family: var(--font-main); color: var(--primary-color);
    background-color: transparent; transition: border-color 0.2s ease; box-sizing: border-box;
}
.checkout-input-group input:focus, .checkout-select:focus { border-color: var(--primary-color); }
.checkout-input-group input::placeholder { color: #b9b1aa; font-weight: 400; }

/* Поле с иконкой телефона */
.input-with-icon-left { 
    position: relative; display: flex; width: 100%; align-items: center;
    background: var(--white); border: 1px solid #dccfbd; border-radius: 25px; padding: 12px 20px;
}
.input-with-icon-left i { 
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%); 
    color: #b9b1aa; font-size: 15px; pointer-events: none; 
}
.input-with-icon-left input { 
    padding-left: 15px; border: none; outline: none; flex-grow: 1;
    margin: 0 10px; font-size: 14px; font-weight: 600; color: var(--primary-color);
}

.checkout-summary-box { margin-top: 40px; padding-top: 20px; border-top: 1px solid #dccfbd; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--primary-color); }
.summary-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-top: 15px; padding-top: 15px; border-top: 2px solid var(--primary-color); }

.checkout-actions { display: flex; gap: 20px; margin-top: 30px; }
.checkout-actions button { flex: 1; padding: 15px; border-radius: 25px; font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.2s; }
.btn-back { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }
.btn-continue { background: var(--primary-color); border: 1px solid var(--primary-color); color: var(--white); }

.stepper-list { list-style: none; padding: 0; margin: 0; position: relative; }
.stepper-list::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: #009640; z-index: 1; }
.stepper-item { display: flex; gap: 15px; margin-bottom: 30px; position: relative; z-index: 2; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid #009640; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 14px; color: #009640; }
.stepper-item.completed .step-circle, .stepper-item.active .step-circle { background: #009640; color: white; }
.step-text { display: flex; flex-direction: column; }
.step-text span { font-size: 11px; color: var(--gray-text); }
.step-text strong { font-size: 14px; color: var(--primary-color); font-weight: 800; }
.stepper-item:not(.active):not(.completed) .step-text strong { color: var(--gray-text); }

/* ==========================================
   ФУТЕР (FOOTER)
   ========================================== */
.main-footer { padding: 60px 0 30px 0; background-color: var(--bg-color); }
.footer-card { background-color: #fdfbf7; border-radius: 20px; padding: 40px 50px; margin-bottom: 20px; }
.footer-links-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 800; margin-bottom: 20px; color: var(--primary-color); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a, .footer-phone { font-family: var(--font-main); font-size: 13px; font-weight: 700; color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #f28b1a; }
.app-links { display: flex; flex-direction: column; gap: 15px; }
.app-links img { height: 40px; object-fit: contain; }
.footer-divider { border: none; border-top: 1px solid var(--primary-color); opacity: 0.3; margin: 30px 0; }
.footer-slogan { font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--primary-color); line-height: 1.5; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; }
.footer-copyright { display: flex; align-items: center; gap: 15px; }
.footer-logo { height: 35px; opacity: 0.5; filter: grayscale(100%); }
.copyright-text p { margin: 3px 0; font-size: 12px; color: var(--gray-text); }
.footer-socials { display: flex; gap: 10px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background-color: #f28b1a; color: white; border-radius: 50%; text-decoration: none; font-size: 14px; transition: transform 0.2s, background-color 0.2s; }
.social-icon:hover { transform: scale(1.1); background-color: #d17511; }

/* ==========================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================== */

/* Планшеты и небольшие экраны */
@media (max-width: 992px) {
    .top-nav { display: none; }
    .header-left, .header-right { gap: 15px; }
    .logo img { height: 55px; }
    .order-type-switch { padding: 2px; }
    .switch-btn { padding: 10px 15px; font-size: 14px; }
    .address-info { display: none; } 
    .btn-login { padding: 10px 15px; font-size: 14px; }
    .btn-cart { width: 40px; height: 40px; font-size: 16px; }
    .cart-branch-info { display: none; }
    .promo-grid { gap: 15px; }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    /* Баннеры: горизонтальный свайп */
    .promo-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; 
        margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px;
    }
    .promo-grid::-webkit-scrollbar { display: none; }
    .promo-item { flex: 0 0 85%; scroll-snap-align: center; }

    /* Контент и сетка товаров */
    .shop-container { flex-direction: column; }
    .sidebar-menu { width: 100%; display: flex; overflow-x: auto; padding: 0;}
    .sidebar-menu li a { padding: 10px 15px; white-space: nowrap; }
    
    /* Модалка товара */
    .product-modal-body { flex-direction: column; }
    .product-modal-footer { flex-direction: column; }

    /* Футер */
    .footer-card { padding: 30px 20px; }
    .footer-links-row { flex-direction: column; gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 20px;}
    
    /* Чекаут */
    .checkout-layout { flex-direction: column; }
    .checkout-form-section, .checkout-stepper-section { max-width: 100%; flex: 1 1 auto; }
}