/* ============================================================
   MENU.CSS — Стили для страницы меню (корзина, каталог, доставка)
   ============================================================ */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #F6F1E8;
    font-family: 'Inter', sans-serif;
    color: #2A2624;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.menu-header {
    background: #1F1B19;
    padding: 20px 0;
    border-bottom: 2px solid #B88A28;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.menu-header .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.menu-header .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}
.menu-header .logo span { color: #B88A28; }
.menu-header .right-group {
    display: flex;
    align-items: center;
    gap: 24px;
}
.menu-header .back-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-header .back-link:hover { color: #B88A28; }
.menu-header .cart-link {
    color: rgba(255,255,255,0.8);
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.menu-header .cart-link:hover {
    color: #B88A28;
    transform: scale(1.05);
}
.menu-header .cart-link .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #B88A28;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(184,138,40,0.4);
}

/* ===== MAIN ===== */
.menu-main {
    flex: 1;
    padding: 40px 24px 60px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}
.menu-main .page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #1F1B19;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.01em;
}
.menu-main .page-sub {
    text-align: center;
    color: #6B6560;
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 32px;
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================================
   ПОИСКОВАЯ СТРОКА
============================================================ */
.search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
}
.search-wrapper .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #B8B0A6;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.25s;
}
.search-wrapper input {
    width: 100%;
    padding: 15px 52px 15px 52px;
    border: 1.5px solid #E5D9CC;
    border-radius: 40px;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #2A2624;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(31,27,25,0.05);
}
.search-wrapper input::placeholder {
    color: #B8B0A6;
}
.search-wrapper input:focus {
    border-color: #B88A28;
    box-shadow: 0 0 0 4px rgba(184,138,40,0.1), 0 8px 24px rgba(184,138,40,0.12);
}
.search-wrapper input:focus ~ .search-icon,
.search-wrapper:focus-within .search-icon {
    color: #B88A28;
}
.search-wrapper .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F6F1E8;
    color: #6B6560;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s;
}
.search-wrapper .search-clear.active {
    display: flex;
}
.search-wrapper .search-clear:hover {
    background: #7D2327;
    color: #FFFFFF;
    transform: translateY(-50%) rotate(90deg);
}

/* ===== ФИЛЬТРЫ ===== */
.filters-wrapper {
    position: relative;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #B88A28 transparent;
}
.filters-wrapper::-webkit-scrollbar { height: 4px; }
.filters-wrapper::-webkit-scrollbar-thumb { background: #B88A28; border-radius: 4px; }
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: max-content;
}
.filters button {
    background: transparent;
    border: 1.5px solid #D5C8B8;
    padding: 9px 24px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2A2624;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.filters button:hover {
    border-color: #B88A28;
    color: #B88A28;
    transform: translateY(-1px);
}
.filters button.active {
    background: #B88A28;
    color: #FFFFFF;
    border-color: #B88A28;
    box-shadow: 0 4px 12px rgba(184,138,40,0.25);
}

/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.product-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(31,27,25,0.06);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease;
    border: 1px solid #E5D9CC;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(31,27,25,0.1);
}
.product-card .image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #F6F1E8;
}
.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .image-wrap img {
    transform: scale(1.04);
}
.product-card .image-wrap .badge {
    position: absolute;
    top: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 40px;
    background: #B88A28;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(184,138,40,0.3);
}
.product-card .image-wrap .badge-left { left: 12px; right: auto; }
.product-card .image-wrap .badge-right { right: 12px; left: auto; }
.product-card .info {
    padding: 20px 24px 24px;
    position: relative;
}
.product-card .info .name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F1B19;
    margin-bottom: 4px;
    line-height: 1.2;
}
.product-card .info .desc {
    font-size: 0.9rem;
    color: #6B6560;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .info .price {
    font-weight: 700;
    color: #7D2327;
    font-size: 1.2rem;
}
.product-card .info .hashtag {
    display: inline-block;
    margin-top: 10px;
    background: #F6F1E8;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    color: #6B6560;
    letter-spacing: 0.04em;
}
.product-card .add-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #B88A28;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184,138,40,0.3);
    line-height: 1;
}
.product-card .add-btn:hover {
    background: #7D2327;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(125,35,39,0.3);
}
.product-card .add-btn:active {
    transform: scale(0.95);
}

/* ===== ПУСТОЕ СООБЩЕНИЕ ===== */
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6B6560;
    font-size: 1.2rem;
}
.empty-message i {
    font-size: 3.5rem;
    color: #B88A28;
    opacity: 0.25;
    margin-bottom: 16px;
    display: block;
}

/* ============================================================
   КОРЗИНА
============================================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31,27,25,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -560px;
    width: 520px;
    max-width: 92vw;
    height: 100%;
    background: #FFFFFF;
    z-index: 9999;
    box-shadow: -8px 0 60px rgba(31,27,25,0.18);
    transition: right 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}
.cart-panel.open { right: 0; }

/* ===== Шапка корзины ===== */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #F1E9DC;
    flex-shrink: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F4 100%);
}
.cart-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1F1B19;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-header .cart-close-btn {
    background: rgba(31,27,25,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #6B6560;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-header .cart-close-btn:hover {
    background: #7D2327;
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* ===== Тело корзины ===== */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px 24px;
    scrollbar-width: thin;
    scrollbar-color: #D5C8B8 transparent;
}
.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-track { background: transparent; }
.cart-body::-webkit-scrollbar-thumb {
    background: #D5C8B8;
    border-radius: 6px;
}
.cart-body::-webkit-scrollbar-thumb:hover { background: #B88A28; }

.cart-step { display: none; }
.cart-step.active { display: block; animation: cartFadeIn 0.35s ease; }

@keyframes cartFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1F1B19;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #E5D9CC;
}

/* ===== Пустая корзина ===== */
.cart-empty {
    text-align: center;
    padding: 70px 20px;
    color: #6B6560;
}
.cart-empty i {
    font-size: 3.5rem;
    color: #B88A28;
    opacity: 0.25;
    display: block;
    margin-bottom: 16px;
}
.cart-empty p {
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* ===== Карточки товаров в корзине ===== */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #FDF9F4;
    border: 1px solid #F1E9DC;
    align-items: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.cart-item:hover {
    border-color: #E5D9CC;
    box-shadow: 0 4px 12px rgba(31,27,25,0.04);
}
.cart-item .item-image {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F6F1E8;
    border: 1px solid #F1E9DC;
}
.cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item .item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item .item-details .item-name {
    font-weight: 600;
    color: #1F1B19;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item .item-details .item-price {
    color: #7D2327;
    font-weight: 700;
    font-size: 1rem;
}
.cart-item .item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 30px;
    padding: 3px;
    border: 1px solid #E5D9CC;
}
.cart-item .item-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #2A2624;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    line-height: 1;
}
.cart-item .item-controls button:hover {
    background: #B88A28;
    color: #FFFFFF;
}
.cart-item .item-controls .item-qty {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1F1B19;
}
.cart-item .item-remove {
    background: none;
    border: none;
    color: #B8B0A6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 6px;
    display: flex;
    align-items: center;
}
.cart-item .item-remove:hover {
    color: #7D2327;
}

/* ===== Футер корзины ===== */
.cart-footer {
    padding: 20px 28px 24px;
    border-top: 1px solid #F1E9DC;
    flex-shrink: 0;
    background: #FFFFFF;
    box-shadow: 0 -8px 24px rgba(31,27,25,0.04);
}
.cart-summary {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6B6560;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #E5D9CC;
}
.cart-items-count { font-weight: 500; }
.cart-subtotal { font-weight: 500; }

.cart-promo {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
}
.cart-promo input {
    flex: 1;
    padding: 11px 16px 11px 40px;
    border: 1px solid #E5D9CC;
    border-radius: 40px;
    font-size: 0.9rem;
    background: #FDF9F4;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: 'Inter', sans-serif;
    color: #2A2624;
}
.cart-promo input:focus {
    border-color: #B88A28;
    box-shadow: 0 0 0 3px rgba(184,138,40,0.1);
}
.cart-promo::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #B8B0A6;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}
.cart-promo button {
    padding: 11px 20px;
    background: #1F1B19;
    border: 1px solid #1F1B19;
    border-radius: 40px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.cart-promo button:hover {
    background: #B88A28;
    border-color: #B88A28;
    transform: translateY(-1px);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    font-weight: 500;
    color: #6B6560;
    padding-top: 14px;
    border-top: 1px solid #F1E9DC;
    margin-bottom: 4px;
}
.cart-total .total-price {
    color: #7D2327;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ============================================================
   ВЫБОР СПОСОБА ПОЛУЧЕНИЯ
============================================================ */
.delivery-choice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #E5D9CC;
}
.delivery-choice .choice-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B6560;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    text-align: center;
}
.delivery-choice .choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.delivery-choice .choice-item {
    background: #FDF9F4;
    border: 2px solid #E5D9CC;
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    user-select: none;
    position: relative;
    overflow: hidden;
}
.delivery-choice .choice-item:hover {
    border-color: #B88A28;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184,138,40,0.12);
}
.delivery-choice .choice-item.active {
    border-color: #B88A28;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(184,138,40,0.18);
}
.delivery-choice .choice-item.active::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #B88A28;
    color: #FFF;
    font-size: 0.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.delivery-choice .choice-item .choice-icon {
    font-size: 2rem;
    color: #B8B0A6;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s, transform 0.3s;
}
.delivery-choice .choice-item.active .choice-icon {
    color: #B88A28;
    transform: scale(1.1);
}
.delivery-choice .choice-item .choice-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2A2624;
    margin-bottom: 2px;
}
.delivery-choice .choice-item .choice-desc {
    font-size: 0.72rem;
    color: #6B6560;
    line-height: 1.3;
}

/* ============================================================
   ПОЛЯ ДОСТАВКИ
============================================================ */
#deliveryFields {
    margin-top: 20px;
    padding: 20px;
    background: #FDF9F4;
    border: 1px solid #F1E9DC;
    border-radius: 14px;
    animation: cartFadeIn 0.4s ease;
}
#deliveryFields .cart-step-title {
    margin-bottom: 16px;
    font-size: 1.25rem;
    border-bottom: none;
    padding-bottom: 0;
}
#deliveryFields .form-group {
    margin-bottom: 12px;
    position: relative;
}
#deliveryFields label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B6560;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
#deliveryFields input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5D9CC;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #FFFFFF;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: #2A2624;
}
#deliveryFields input[type="text"]:focus {
    border-color: #B88A28;
    box-shadow: 0 0 0 3px rgba(184,138,40,0.1);
}
#deliveryFields input[type="text"]::placeholder {
    color: #B8B0A6;
}

/* Автодополнение адреса */
.address-suggest-wrapper { position: relative; z-index: 5; }
.address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1.5px solid #E5D9CC;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(31,27,25,0.14);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}
.address-suggestions.active { display: block; animation: cartFadeIn 0.25s ease; }
.address-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2A2624;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    line-height: 1.35;
}
.address-suggestion-item:hover {
    background: #F6F1E8;
    color: #7D2327;
}

/* Карта */
#deliveryMap {
    height: 240px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1.5px solid #E5D9CC;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ============================================================
   КНОПКИ
============================================================ */
.btn-checkout,
.btn-next,
.btn-back,
.btn-confirm-order {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    margin-top: 12px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-checkout,
.btn-next {
    background: linear-gradient(135deg, #B88A28 0%, #9A7120 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(184,138,40,0.3);
}
.btn-checkout:hover,
.btn-next:hover {
    background: linear-gradient(135deg, #7D2327 0%, #5A1A1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(125,35,39,0.35);
}
.btn-checkout:active,
.btn-next:active { transform: translateY(0); }

.btn-back {
    background: transparent;
    color: #6B6560;
    border: 1.5px solid #E5D9CC;
    margin-top: 8px;
}
.btn-back:hover {
    background: #F6F1E8;
    border-color: #B8B0A6;
    color: #1F1B19;
}

.btn-confirm-order {
    background: linear-gradient(135deg, #7D2327 0%, #5A1A1C 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(125,35,39,0.3);
}
.btn-confirm-order:hover {
    background: linear-gradient(135deg, #5A1A1C 0%, #3E1214 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(125,35,39,0.4);
}

/* ============================================================
   ОПЛАТА
============================================================ */
.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.payment-option {
    background: #FDF9F4;
    border: 2px solid #E5D9CC;
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.payment-option:hover {
    border-color: #B88A28;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184,138,40,0.1);
}
.payment-option.active {
    border-color: #B88A28;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(184,138,40,0.16);
}
.payment-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #B88A28;
    color: #FFF;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-option .payment-icon {
    font-size: 1.6rem;
    color: #B8B0A6;
    width: 42px;
    height: 42px;
    text-align: center;
    transition: color 0.3s, background 0.3s;
    background: #F6F1E8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.payment-option.active .payment-icon {
    color: #FFFFFF;
    background: #B88A28;
}
.payment-option .payment-label {
    font-weight: 600;
    color: #2A2624;
    flex: 1;
    font-size: 0.95rem;
}
.payment-option .payment-desc {
    font-size: 0.78rem;
    color: #6B6560;
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

.cash-change-field {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: #FDF9F4;
    border-radius: 12px;
    border: 1.5px solid #E5D9CC;
    animation: cartFadeIn 0.3s ease;
}
.cash-change-field.active { display: block; }
.cash-change-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6B6560;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cash-change-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5D9CC;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: 'Inter', sans-serif;
    color: #2A2624;
}
.cash-change-field input:focus {
    border-color: #B88A28;
    box-shadow: 0 0 0 3px rgba(184,138,40,0.1);
}

/* ============================================================
   КНОПКИ НАВИГАЦИИ ПО ШАГАМ (оплата)
============================================================ */
.step-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 12px !important;
}
.step-nav .btn-back {
    order: 1 !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 15px !important;
    flex: none !important;
}
.step-nav .btn-confirm-order,
.step-nav .btn-next {
    order: 2 !important;
    width: 100% !important;
    margin-top: 0 !important;
    flex: none !important;
}

/* ============================================================
   АВТОРИЗАЦИЯ В КОРЗИНЕ
============================================================ */
.cart-auth-block {
    margin-top: 20px;
    padding: 20px;
    background: #FDF9F4;
    border-radius: 14px;
    border: 1px dashed #E5D9CC;
    text-align: center;
}
.cart-auth-block p {
    font-size: 0.9rem;
    color: #6B6560;
    margin-bottom: 14px;
    line-height: 1.5;
}
.cart-auth-block p strong { color: #1F1B19; }
.cart-auth-block .auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.cart-auth-block .auth-buttons button {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    flex: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}
.cart-auth-block .auth-buttons .btn-login {
    background: transparent;
    border: 1.5px solid #1F1B19;
    color: #1F1B19;
}
.cart-auth-block .auth-buttons .btn-login:hover {
    background: #1F1B19;
    color: #FFFFFF;
}
.cart-auth-block .auth-buttons .btn-register {
    background: #B88A28;
    color: #FFFFFF;
}
.cart-auth-block .auth-buttons .btn-register:hover {
    background: #7D2327;
    transform: translateY(-1px);
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ
============================================================ */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31,27,25,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-modal-overlay.active { display: flex; }
.auth-modal-window {
    background: #FFFFFF;
    max-width: 480px;
    width: 100%;
    padding: 40px 36px 32px;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(31,27,25,0.35);
    position: relative;
    animation: modalIn 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #F1E9DC;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-modal-window .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(31,27,25,0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #6B6560;
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-modal-window .modal-close:hover {
    background: #7D2327;
    color: #FFFFFF;
    transform: rotate(90deg);
}
.auth-modal-window .modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1F1B19;
    margin-bottom: 4px;
}
.auth-modal-window .modal-sub {
    color: #6B6560;
    font-size: 0.95rem;
    margin-bottom: 22px;
}
.auth-modal-window .auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 22px;
    border-bottom: 1px solid #F1E9DC;
}
.auth-modal-window .auth-tabs button {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6B6560;
    cursor: pointer;
    transition: all 0.25s;
    border-bottom: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}
.auth-modal-window .auth-tabs button.active {
    color: #1F1B19;
    border-bottom-color: #B88A28;
}
.auth-modal-window .form-group { margin-bottom: 14px; }
.auth-modal-window .form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6B6560;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-modal-window .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5D9CC;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #FDF9F4;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: #2A2624;
}
.auth-modal-window .form-group input:focus {
    border-color: #B88A28;
    box-shadow: 0 0 0 3px rgba(184,138,40,0.1);
}
.auth-modal-window .btn-submit-auth {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #B88A28 0%, #9A7120 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(184,138,40,0.25);
}
.auth-modal-window .btn-submit-auth:hover {
    background: linear-gradient(135deg, #7D2327 0%, #5A1A1C 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(125,35,39,0.3);
}
.auth-modal-window .auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #6B6560;
}
.auth-modal-window .auth-switch a {
    color: #B88A28;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-modal-window .auth-switch a:hover { color: #7D2327; }
.auth-modal-window .auth-form { display: block; }
.auth-modal-window .auth-form.hidden { display: none; }
.auth-modal-window .error-message {
    color: #d32f2f;
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
    padding: 8px 12px;
    background: #fdecea;
    border-radius: 8px;
}
.auth-modal-window .verify-info {
    font-size: 0.9rem;
    color: #6B6560;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ============================================================
   ПОДТВЕРЖДЕНИЕ ЗАКАЗА
============================================================ */
.order-confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31,27,25,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.order-confirm-overlay.active { display: flex; }
.order-confirm-window {
    background: #FFFFFF;
    max-width: 520px;
    width: 100%;
    padding: 48px 40px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 32px 100px rgba(0,0,0,0.5);
    animation: modalIn 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
    overflow: hidden;
}
.order-confirm-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B88A28, #7D2327, #B88A28);
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
}
@keyframes shimmerLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.order-confirm-window .icon {
    font-size: 4rem;
    color: #2e7d32;
    margin-bottom: 16px;
    animation: iconPop 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes iconPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.order-confirm-window h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1F1B19;
    margin-bottom: 8px;
}
.order-confirm-window .order-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: #B88A28;
    font-family: 'Cormorant Garamond', serif;
    margin: 14px 0;
    letter-spacing: 0.08em;
    padding: 12px 24px;
    background: #FDF9F4;
    border-radius: 12px;
    display: inline-block;
    border: 1px dashed #E5D9CC;
}
.order-confirm-window .order-details {
    color: #6B6560;
    font-size: 0.98rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.order-confirm-window .timer {
    font-size: 2.2rem;
    font-weight: 700;
    color: #7D2327;
    margin: 12px 0;
    font-variant-numeric: tabular-nums;
    font-family: 'Cormorant Garamond', serif;
}
.order-confirm-window .timer-label {
    font-size: 0.82rem;
    color: #6B6560;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.order-confirm-window .btn-close-confirm {
    margin-top: 24px;
    padding: 13px 44px;
    background: linear-gradient(135deg, #B88A28 0%, #9A7120 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 20px rgba(184,138,40,0.3);
}
.order-confirm-window .btn-close-confirm:hover {
    background: linear-gradient(135deg, #7D2327 0%, #5A1A1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(125,35,39,0.35);
}

/* ============================================================
   ФУТЕР
============================================================ */
.menu-footer {
    background: #1F1B19;
    color: rgba(255,255,255,0.5);
    padding: 32px 24px;
    border-top: 2px solid #B88A28;
    margin-top: auto;
}
.menu-footer .container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.menu-footer .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
}
.menu-footer .footer-logo span { color: #B88A28; }
.menu-footer .footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.menu-footer .footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.menu-footer .footer-links a:hover { color: #B88A28; }
.menu-footer .footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
}
.menu-footer .footer-social {
    display: flex;
    gap: 16px;
}
.menu-footer .footer-social a {
    color: rgba(255,255,255,0.25);
    font-size: 1.2rem;
    transition: color 0.3s;
}
.menu-footer .footer-social a:hover { color: #B88A28; }

/* ============================================================
   АДАПТИВ
============================================================ */
@media (max-width: 768px) {
    .menu-header .container { flex-direction: column; align-items: center; gap: 12px; }
    .menu-main .page-title { font-size: 2.4rem; }
    .search-wrapper { max-width: 100%; margin-bottom: 20px; }
    .search-wrapper input { padding: 13px 48px 13px 46px; font-size: 0.9rem; }
    .filters { flex-wrap: wrap; justify-content: center; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .product-card .add-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        bottom: 16px;
        right: 16px;
    }
    .cart-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    .cart-panel.open { right: 0; }
    .cart-header { padding: 18px 20px; }
    .cart-header h2 { font-size: 1.6rem; }
    .cart-body { padding: 16px 20px 20px; }
    .cart-footer { padding: 16px 20px 20px; }
    .auth-modal-window { padding: 32px 24px 28px; }
    .delivery-choice .choice-grid { grid-template-columns: 1fr; }
    .step-nav { flex-direction: column !important; gap: 10px !important; }
    .step-nav .btn-back { order: 1 !important; padding: 15px !important; }
    .step-nav .btn-confirm-order,
    .step-nav .btn-next { order: 2 !important; }
    .cart-total .total-price { font-size: 1.6rem; }
    .order-confirm-window { padding: 36px 24px 32px; }
    .order-confirm-window .order-number { font-size: 2rem; }
    .order-confirm-window h2 { font-size: 1.9rem; }
    .order-confirm-window .timer { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .menu-main { padding: 24px 16px 40px; }
    .menu-header .right-group { gap: 14px; }
    .menu-header .cart-link { font-size: 1.2rem; }
    .cart-item { padding: 12px; gap: 10px; }
    .cart-item .item-image { width: 56px; height: 56px; }
    .cart-item .item-details .item-name { font-size: 0.88rem; }
    .cart-item .item-details .item-price { font-size: 0.92rem; }
    .cart-item .item-controls button { width: 26px; height: 26px; font-size: 0.9rem; }
    .cart-item .item-controls .item-qty { font-size: 0.85rem; min-width: 18px; }
}