/* Pool Market — Mediterranean Premium (2026-05-28 redesign) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Geist:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* === MEDITERRANEAN PALETTE === */
    /* Terracotta — главный акцент (CTA, цены, ссылки) */
    --primary: #B85638;
    --primary-light: #C5683E;
    --primary-dark: #94402A;
    --primary-gradient: #B85638;  /* без градиента — плоский */

    /* Olive — вторичный акцент (свежее, лёгкое, успех) */
    --secondary: #6B7C5C;
    --secondary-light: #8A9C78;
    --secondary-dark: #4F5D43;
    --secondary-gradient: #6B7C5C;

    --accent: #B85638;
    --accent-gradient: #B85638;

    /* Sage green — success */
    --success: #6B7C5C;
    --success-light: #8A9C78;
    --success-dark: #4F5D43;
    --success-gradient: #6B7C5C;

    /* Burnt sienna — danger (теплее чем красный) */
    --danger: #A03323;
    --danger-gradient: #A03323;

    /* Уберём радугу — оставим только нужное */
    --purple: #6B7C5C;
    --purple-gradient: #6B7C5C;
    --pink: #B85638;
    --pink-gradient: #B85638;

    /* Saffron — warning (тёплый) */
    --warning: #D49142;

    /* === NEUTRAL: тёплый кремовый фон === */
    --background: #FAF6F0;       /* кремовый, как песок */
    --background-alt: #F2EBDE;   /* чуть темнее */
    --surface: #FFFFFF;
    --surface-alt: #FBF7F0;

    /* Текст: тёплый тёмно-коричневый, не холодный slate */
    --text: #2C2825;             /* мокрый камень */
    --text-primary: #2C2825;
    --text-secondary: #6B5F54;   /* тёплый серо-коричневый */
    --text-light: #998A7A;

    --border: #E8DDC9;           /* тёплый бежевый бордер */
    --border-dark: #C9B89A;

    /* Тени: нейтральные коричневатые, не цветные синие */
    --shadow-sm: 0 1px 3px rgba(44, 40, 37, 0.06);
    --shadow: 0 4px 16px rgba(44, 40, 37, 0.08);
    --shadow-md: 0 8px 24px rgba(44, 40, 37, 0.10);
    --shadow-lg: 0 16px 40px rgba(44, 40, 37, 0.12);
    --shadow-xl: 0 24px 60px rgba(44, 40, 37, 0.16);

    /* Радиусы — оставляем 12-16, но убираем 28 (слишком детский bubble) */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Шрифты */
    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    min-height: 100vh;
    color: var(--text);
    padding-bottom: 100px;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";  /* красивые цифры Geist */
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-xl);
}

/* ANIMATIONS */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(184,86,56, 0.3); }
    50% { box-shadow: 0 0 40px rgba(184,86,56, 0.6); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* HEADER */
.header {
    background: url('/images/logo-beach.png') center bottom / cover no-repeat, #2C2825;
    padding: 56px 22px 32px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 24px rgba(44, 40, 37, 0.18);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(184, 86, 56, 0.22) 0%, transparent 65%);  /* терракотовое тёплое свечение */
    border-radius: 50%;
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(107, 124, 92, 0.18) 0%, transparent 65%);  /* оливковое свечение */
    border-radius: 50%;
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(184, 86, 56, 0.18);  /* терракотовый чуть прозрачный */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(184, 86, 56, 0.35);
}

.logo-text {
    color: #FAF6F0;  /* кремовый — мягче чем чисто белый */
}

.logo-title {
    font-family: var(--font-display) !important;
    font-size: 50px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    font-style: italic !important;  /* Fraunces italic — элегантнее */
    line-height: 1 !important;
}

.logo-subtitle {
    font-size: 10px;
    opacity: 0.75;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;  /* широкое разреживание = премиум */
    margin-top: 4px;
}

.room-selector {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: var(--transition);
    border: 1.5px solid rgba(255,255,255,0.28);
}

.room-selector:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}

.room-selector label {
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-selector input {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: 800;
    width: 80px;
    text-align: center;
    outline: none;
}

.room-selector input::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-stats {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.stat-badge {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-badge:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}

.stat-badge-icon {
    font-size: 18px;
}

.stat-badge-text {
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* Лайв-индикатор статуса работы */
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
    position: relative;
}
.live-dot-on {
    background: #22C55E;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    animation: live-pulse 2s ease-in-out infinite;
}
.live-dot-off { background: #EF4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25); }
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25), 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50%      { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25), 0 0 0 8px rgba(34, 197, 94, 0); }
}
#live-status-badge { gap: 6px; }

/* HERO BANNER */
.hero-banner {
    margin: -8px 16px 20px;
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-icon {
    font-size: 56px;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.hero-code {
    background: rgba(255,255,255,0.95);
    color: #F97316;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 800;
    display: inline-block;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-code:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* COMBO DEALS */
.combo-section {
    margin: 0 16px 20px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-radius: 24px;
    border: 1.5px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.08);
}

.combo-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combo-title-icon {
    font-size: 24px;
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.combo-card {
    background: white;
    border-radius: 18px;
    padding: 14px;
    border: 1.5px solid rgba(249, 115, 22, 0.15);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.combo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.combo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
}

.combo-card:active {
    transform: scale(0.98);
}

.combo-save {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.combo-items {
    font-size: 28px;
    margin-bottom: 8px;
}

.combo-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.combo-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-price-new {
    font-size: 18px;
    font-weight: 800;
    color: #F97316;
}

.combo-price-old {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* SEARCH BAR */
.search-bar {
    margin: 0 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 12px 16px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184,86,56, 0.12);
}

.search-icon {
    font-size: 20px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
}

.search-clear {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--danger);
    color: white;
}

/* CATEGORIES */
.categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.category-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(184,86,56, 0.05);
}

.category-chip.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(184,86,56, 0.35);
    transform: scale(1.02);
}

.chip-icon {
    font-size: 18px;
}

/* FREE SHIPPING BAR */
.shipping-bar {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.shipping-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.shipping-bar-icon {
    font-size: 28px;
}

.shipping-bar-content {
    flex: 1;
}

.shipping-bar-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.shipping-bar-progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 16px 16px;
}

.product-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(184,86,56, 0.18);
    border-color: rgba(184,86,56, 0.3);
}

.product-card:active {
    transform: scale(0.98);
}

.product-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.product-card.low-stock {
    border-color: rgba(251, 191, 36, 0.4);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image-emoji {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-emoji {
    transform: scale(1.1) rotate(-3deg);
}

.product-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-photo {
    transform: scale(1.06);
}

/* Legacy .product-image for backward compat */
.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}

.product-info {
    padding: 12px 12px 4px;
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    padding: 8px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.product-price-old {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(184,86,56, 0.4);
    flex-shrink: 0;
}

.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(184,86,56, 0.5);
}

.add-btn:active {
    transform: scale(0.95);
}

.add-btn.added {
    background: var(--success-gradient);
    transform: scale(1.1);
}

.add-btn:disabled {
    background: var(--border);
    color: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}

.product-card.out-of-stock .add-btn {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.badge-хит, .badge-hit, .badge-hit {
    background: linear-gradient(135deg, #F97316, #EF4444);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.badge-new {
    background: var(--secondary);
    color: white;
}

.badge-premium {
    background: var(--secondary);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    color: white;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stock-badge.low-stock {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(239, 68, 68, 0.15));
    color: #EA580C;
    border: 1px solid rgba(251, 146, 60, 0.4);
    font-size: 10px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scarcity-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
    animation: bounce 1s infinite;
}

/* === FEATURED PRODUCTS (POPULARНЫЕ ТОВАРЫ) === */
.featured-section {
    margin: 24px 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(184,86,56, 0.06) 0%, rgba(107,124,92, 0.04) 100%);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(184,86,56, 0.15);
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.featured-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.view-all-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.view-all-link:active {
    opacity: 0.8;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.featured-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(44,40,37, 0.06);
}

.featured-card:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(184,86,56, 0.12);
}

.featured-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:active .featured-image img {
    transform: scale(0.95);
}

.featured-emoji {
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.featured-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.featured-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.featured-add-btn {
    width: 100%;
    padding: 6px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(184,86,56, 0.3);
}

.featured-add-btn:active {
    transform: scale(0.9);
    box-shadow: 0 4px 12px rgba(184,86,56, 0.4);
}

/* === RECENT ORDERS (НЕДАВНИЕ ЗАКАЗЫ) === */
.recent-section {
    margin: 24px 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107,124,92, 0.06) 0%, rgba(184,86,56, 0.04) 100%);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(107,124,92, 0.15);
}

.recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.recent-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(44,40,37, 0.06);
    transition: var(--transition);
}

.recent-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(184,86,56, 0.12);
}

.recent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recent-badge {
    display: inline-block;
    background: rgba(184,86,56, 0.1);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 120px;
}

.recent-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.recent-date {
    color: var(--text-secondary);
}

.recent-total {
    font-weight: 800;
    color: var(--primary);
}

.recent-repeat-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(107,124,92, 0.3);
    flex-shrink: 0;
}

.recent-repeat-btn:active {
    transform: scale(0.9);
    box-shadow: 0 4px 12px rgba(107,124,92, 0.4);
}

/* FLOATING CART */
.floating-cart {
    position: fixed;
    bottom: 80px;
    right: calc(50% - 224px);
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(184,86,56, 0.45);
    z-index: 99;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(184,86,56, 0.55);
}

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

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #F97316, #EF4444);
    color: white;
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(184,86,56, 0.12);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-radius: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    min-width: 64px;
    color: var(--text-secondary);
}

.nav-item.active {
    background: rgba(184,86,56, 0.1);
    color: var(--primary);
}

.nav-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
}

.nav-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* PAGES */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

/* PAGE HEADER */
.page-header {
    padding: 28px 20px 20px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 10px;
}
.page-title-icon {
    color: var(--primary, #B85638);
    flex-shrink: 0;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* CART PAGE */
.cart-content {
    padding: 0 20px 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 16px;
    margin-bottom: 10px;
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: rgba(184,86,56, 0.2);
    box-shadow: 0 4px 16px rgba(184,86,56, 0.08);
}

.cart-item-image {
    font-size: 36px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.cart-item-image.has-photo { background: #f1f5f9; }
.cart-item-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item .remove-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cart-item .remove-btn:hover { background: #fee2e2; color: #ef4444; }

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(184,86,56, 0.06);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    font-size: 15px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-item-total {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    min-width: 50px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
    transition: var(--transition);
    opacity: 0.6;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    opacity: 1;
}

.remove-btn:active {
    transform: scale(0.95);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.start-shopping-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.start-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.start-shopping-btn:active {
    transform: scale(0.98);
}

/* HISTORY / ORDER CARDS */
.order-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
}

.order-card.status-completed {
    border-color: var(--success);
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.order-card.status-pending {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.order-card.status-preparing {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.order-card.status-ready {
    border-color: var(--purple);
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.order-card.status-delivering {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.order-card.status-cancelled {
    border-color: var(--danger);
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    opacity: 0.7;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-id {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.order-status {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--background);
    color: var(--text-secondary);
}

.order-info {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.order-date, .order-room {
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-items {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.order-item-name {
    flex: 1;
    color: var(--text);
}

.order-item-qty {
    color: var(--text-secondary);
    margin: 0 8px;
    font-weight: 600;
}

.order-item-price {
    font-weight: 700;
    color: var(--primary);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 16px;
    color: var(--text-secondary);
}

.order-total strong {
    font-size: 20px;
    color: var(--primary);
    margin-left: 8px;
}

.repeat-order-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 12px;
}

.repeat-order-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.repeat-order-btn:active {
    transform: scale(0.95);
}

.order-bonus {
    font-size: 14px;
    font-weight: 700;
    color: var(--purple);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 6px 12px;
    border-radius: 8px;
}

/* CART SUMMARY */
.cart-summary {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 16px 0;
    border: 1.5px solid rgba(184,86,56, 0.15);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(184,86,56, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.summary-row.total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid rgba(184,86,56, 0.15);
    border-bottom: none;
}

.summary-row.total .summary-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.summary-row.total .summary-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

/* CHECKOUT PAGE */
.checkout-content {
    padding: 0 20px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label .required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184,86,56, 0.1);
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
    display: none;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
}

.payment-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.payment-card.active {
    border-color: var(--primary);
    background: rgba(184,86,56, 0.06);
    box-shadow: 0 0 0 3px rgba(184,86,56, 0.1);
}

.payment-card-icon {
    font-size: 28px;
}

.payment-card-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.order-summary {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 16px 0;
    border: 1.5px solid rgba(184,86,56, 0.15);
}

.summary-row.discount .summary-value {
    color: var(--success);
}

.summary-row.bonuses .summary-value {
    color: var(--purple);
}

.summary-row.hidden {
    display: none;
}

/* Предзаказ: выбор времени */
.time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.time-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-option:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.time-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(184,86,56, 0.2);
}

.time-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.time-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.time-option.active .time-label {
    color: var(--primary);
}

.discount-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    margin-left: 8px;
}

/* Селектор периода меню */
.menu-period-selector {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.menu-period-selector::-webkit-scrollbar {
    display: none;
}

.menu-period-option {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 92px;
}

.menu-period-option:hover {
    border-color: var(--primary-light);
    background: var(--surface-alt);
}

.menu-period-option.active {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(184, 86, 56, 0.15);
}

.menu-period-icon {
    font-size: 20px;
    margin-bottom: 4px;
    filter: grayscale(0.4) sepia(0.3);  /* приглушаем яркость эмодзи */
    opacity: 0.85;
}

.menu-period-option.active .menu-period-icon {
    filter: none;
    opacity: 1;
}

.menu-period-label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.01em;
}

.menu-period-option.active .menu-period-label {
    color: var(--primary);
}

.menu-period-time {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.menu-period-option.active .menu-period-time {
    color: var(--primary-light);
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    padding: 18px 24px;
    border-radius: 20px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(184,86,56, 0.4);
    margin-top: 16px;
    letter-spacing: 0.3px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(184,86,56, 0.5);
}

.checkout-btn:active {
    transform: translateY(0);
}

.checkout-btn:disabled {
    background: var(--border);
    color: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
}

.delivery-info-icon {
    font-size: 20px;
}

.delivery-info-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

/* ADMIN PAGE */
.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    flex: 1;
    padding: 14px 20px;
    background: var(--background);
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.admin-tab:hover {
    background: #E0F2FE;
}

.admin-tab.active {
    background: var(--primary-gradient);
    color: white;
}

.admin-content {
    padding: 0 20px 20px;
}

.admin-content.hidden {
    display: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

.stat-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ADMIN ORDER CARDS */
.admin-order-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.admin-order-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.admin-order-card.status-new {
    border-left: 4px solid #F97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, transparent 100%);
}

.admin-order-card.status-preparing {
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(184,86,56, 0.08) 0%, transparent 100%);
}

.admin-order-card.status-ready {
    border-left: 4px solid #10B981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
}

.admin-order-card.status-delivered {
    border-left: 4px solid #8B5CF6;
    opacity: 0.7;
}

.admin-order-card.status-cancelled {
    border-left: 4px solid #EF4444;
    opacity: 0.5;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, transparent 100%);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-order-id {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.admin-order-room {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--background-alt);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.admin-order-status {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--background-alt);
}

.admin-order-info {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-order-time, .admin-order-total {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-order-total {
    font-weight: 700;
    color: var(--primary);
}

.admin-order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-order-item {
    font-size: 13px;
    padding: 6px 12px;
    background: var(--background-alt);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.admin-order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-print {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--secondary-gradient);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-print:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.btn-notify {
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--accent);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.status-select {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
}

.status-select:hover {
    border-color: var(--primary);
}

/* ORDER FILTERS */
.order-filters {
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    font-size: 14px;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn-secondary {
    background: var(--background-alt);
    color: var(--text-secondary);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--surface);
    border-radius: 28px;
    padding: 32px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.modal-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(184,86,56, 0.3);
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(184,86,56, 0.4);
}

.modal-btn:active {
    transform: scale(0.98);
}

.modal-btn-secondary {
    background: var(--surface-alt);
    color: var(--text-secondary);
    box-shadow: none;
    border: 1.5px solid var(--border);
}

.modal-btn-secondary:hover {
    background: var(--background-alt);
    box-shadow: none;
}

/* STOCK MODAL */
.stock-modal-content {
    text-align: left;
}

.stock-modal-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.stock-modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background);
    border-radius: 16px;
    margin-bottom: 20px;
}

.stock-modal-product-image {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.stock-modal-product-info {
    flex: 1;
}

.stock-modal-product-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.stock-modal-product-current {
    font-size: 13px;
    color: var(--text-secondary);
}

.stock-adjust-type {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.stock-adjust-type-btn {
    flex: 1;
    padding: 14px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.stock-adjust-type-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
}

.stock-adjust-row {
    margin-bottom: 16px;
}

.stock-adjust-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* NOTIFICATION */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification-icon {
    font-size: 24px;
}

.notification-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* LOYALTY BADGE */
.loyalty-badge {
    position: fixed;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 200;
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.loyalty-badge.show {
    display: flex;
}

/* INSTALL PWA */
.install-pwa {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 800;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
}

.install-pwa.visible {
    display: flex;
}

.install-pwa-icon {
    font-size: 18px;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* INVENTORY LIST */
.inventory-list {
    display: grid;
    gap: 12px;
}

.inventory-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.inventory-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.inventory-item-image {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

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

.inventory-item-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.inventory-item-stock {
    font-size: 13px;
    color: var(--text-secondary);
}

.inventory-item-stock.low {
    color: var(--warning);
    font-weight: 700;
}

.inventory-item-stock.out {
    color: var(--danger);
    font-weight: 700;
}

.inventory-item-action {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.inventory-item-action:hover {
    transform: scale(1.05);
}

/* ORDER LIST */
.order-list {
    display: grid;
    gap: 12px;
}

.order-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s;
}

.order-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-id {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-status.new {
    background: var(--accent-gradient);
    color: white;
}

.order-status.preparing {
    background: var(--primary-gradient);
    color: white;
}

.order-status.ready {
    background: var(--purple-gradient);
    color: white;
}

.order-status.delivered {
    background: var(--success-gradient);
    color: white;
}

.order-status.cancelled {
    background: var(--danger-gradient);
    color: white;
}

.order-items {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

.order-actions {
    display: flex;
    gap: 8px;
}

.order-action-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.order-action-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.order-action-btn.success {
    background: var(--success-gradient);
    color: white;
}

.order-action-btn:hover {
    transform: scale(1.05);
}

/* AUTH FORM */
.auth-form {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin: 20px;
}

.auth-form h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184,86,56, 0.1);
}

.auth-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ADMIN LOGIN */
.admin-login {
    text-align: center;
    padding: 40px 20px;
}

.admin-login h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 24px;
}

/* BONUS BADGE */
.bonus-badge {
    background: var(--purple-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        border-radius: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .combo-grid {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* STICKY HEADER */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
}

/* ADMIN STATUS BADGES — COLOR-CODED PILLS */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-new,
.admin-order-status.status-new {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-preparing,
.admin-order-status.status-preparing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-ready,
.admin-order-status.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-delivered,
.admin-order-status.status-delivered {
    background: #f3f4f6;
    color: #374151;
}

.status-badge.status-cancelled,
.admin-order-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ADMIN TABLE — ZEBRA STRIPES */
.admin-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.admin-table tbody tr:hover {
    background: #f0f9ff;
}

/* NEW ORDER ACCENT */
.order-new {
    border-left: 4px solid #f59e0b !important;
}

/* PRINT STYLES */
@media print {
    .header,
    .bottom-nav,
    .floating-cart,
    .loyalty-badge,
    .install-pwa,
    .notification {
        display: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #1a1a2e;
    color: #94a3b8;
    padding: 24px 16px 32px;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}
.footer-brand {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.footer-legal {
    margin-bottom: 6px;
    color: #64748b;
}
.footer-copy {
    color: #475569;
    font-size: 11px;
}

/* ============== DESKTOP ENHANCEMENTS (768px+) ============== */
@media (min-width: 768px) {
    body {
        background:
            radial-gradient(circle at 15% 20%, rgba(6,182,212,.08) 0, transparent 35%),
            radial-gradient(circle at 85% 70%, rgba(8,145,178,.10) 0, transparent 45%),
            linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 30%, #F0F9FF 100%);
        background-attachment: fixed;
    }
    .container {
        max-width: 880px !important;
        border-radius: 20px;
        margin: 24px auto;
        min-height: calc(100vh - 48px);
        overflow: hidden;
    }
    .product-grid, .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
    .site-footer {
        margin-top: 60px;
    }
    /* Декор по бокам — большие водяные эмодзи */
    body::before, body::after {
        content: '';
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: 200px;
        height: 200px;
        opacity: .15;
        pointer-events: none;
        z-index: 0;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    body:not(.admin-page)::before {
        left: 4%;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='80' font-size='80'%3E🍹%3C/text%3E%3C/svg%3E");
    }
    body:not(.admin-page)::after {
        right: 4%;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='80' font-size='80'%3E🏊‍♂️%3C/text%3E%3C/svg%3E");
    }
    body.admin-page::before, body.admin-page::after { display: none; content: none; }
}

@media (min-width: 1100px) {
    .container { max-width: 980px !important; }
    .product-grid, .products-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ============== PRODUCT CARD WITHOUT PHOTO — pretty gradient placeholder ============== */
.product-image:not(.has-photo) {
    background: var(--surface-alt) !important;
    position: relative;
    overflow: hidden;
}
.product-image:not(.has-photo)::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.18) 0, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,.12) 0, transparent 50%);
}
.product-image:not(.has-photo) .product-image-emoji {
    font-size: 64px !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
    position: relative; z-index: 2;
}

/* Имена товаров в корзине — без обрезки */
.cart-item-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.3;
}

/* Install-PWA: добавим крестик */
.install-pwa { padding-right: 36px !important; }
.install-pwa-close {
    position: absolute; top: 50%; right: 10px;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 50%; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; line-height: 1;
}

/* ============== PREMIUM HERO BANNER ============== */
.hero-banner-premium {
    margin: 16px 16px 24px;
    border-radius: 24px;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 48px rgba(44, 40, 37, 0.14);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1A5F7A 0%, #2A8BB8 25%, #FF9047 50%, #FFB366 75%, #FFA500 100%);
    animation: heroGradientShift 12s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroGradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #1A5F7A 0%, #2A8BB8 25%, #FF9047 50%, #FFB366 75%, #FFA500 100%);
    }
    50% {
        background: linear-gradient(135deg, #2A8BB8 0%, #FF9047 25%, #FFB366 50%, #FFA500 75%, #1A5F7A 100%);
    }
}

.hero-banner-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-banner-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cpath d='M0,200 Q150,150 300,200 T600,200 T900,200 T1200,200 L1200,400 L0,400 Z' fill='rgba(255,255,255,0.1)'/%3E%3Cpath d='M0,250 Q200,200 400,250 T800,250 T1200,250 L1200,400 L0,400 Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-size: 1200px 100px;
    z-index: 1;
    animation: waveScroll 15s linear infinite;
}

@keyframes waveScroll {
    0% { background-position: 0 100%; }
    100% { background-position: 1200px 100%; }
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-float {
    position: absolute;
    font-size: 48px;
    animation: float 4s ease-in-out infinite;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hero-float-1 {
    top: 15%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.hero-float-2 {
    top: 20%;
    right: 15%;
    font-size: 52px;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero-float-3 {
    bottom: 20%;
    left: 12%;
    font-size: 46px;
    animation: float 5.5s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-float-4 {
    top: 10%;
    right: 20%;
    font-size: 56px;
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-text-content {
    position: relative;
    z-index: 3;
}

.hero-banner-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-banner-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 24px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-features {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 18px;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-feature-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-float-1 + .hero-feature-icon { animation-delay: 0s; }
.hero-float-2 + .hero-feature-icon { animation-delay: 0.3s; }
.hero-float-3 + .hero-feature-icon { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 640px) {
    .hero-banner-premium {
        min-height: 240px;
        padding: 32px 20px;
    }

    .hero-banner-title {
        font-size: 28px;
    }

    .hero-banner-subtitle {
        font-size: 16px;
    }

    .hero-float {
        font-size: 36px !important;
    }

    .hero-float-2, .hero-float-4 {
        font-size: 40px !important;
    }

    .hero-features {
        gap: 12px;
    }

    .hero-feature {
        padding: 8px 14px;
        font-size: 13px;
    }
}
.install-pwa-close:hover { background: rgba(255,255,255,.3); }

/* ==================== CHECKOUT IMPROVEMENTS ==================== */

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(184, 86, 56, 0.08), rgba(107, 124, 92, 0.08));
    border-radius: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-number {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(184, 86, 56, 0.4);
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-line {
    width: 32px;
    height: 2px;
    background: var(--secondary);
    opacity: 0.2;
}

.form-input.valid {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-input.valid::placeholder {
    color: #10b981;
}

.form-error {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.payment-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
}

.payment-card.active .payment-hint {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 640px) {
    .checkout-progress {
        gap: 4px;
        padding: 12px;
    }

    .progress-line {
        width: 16px;
    }

    .progress-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .progress-label {
        font-size: 10px;
    }
}

/* ==================== WISHLIST & MODALS ==================== */

.cart-badge-counter {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.55);
    border: 1.5px solid white;
    pointer-events: none;
    z-index: 5;
}

.add-btn {
    position: relative;
}

.wishlist-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.2);
}

.wishlist-btn.active {
    color: #ef4444;
}

.order-summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-summary-modal.active {
    opacity: 1;
}

.order-summary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.order-summary-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.order-summary-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.order-summary-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.order-summary-close:hover {
    color: #475569;
}

.order-summary-items {
    margin-bottom: 20px;
}

.order-summary-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-summary-item-emoji {
    font-size: 28px;
}

.order-summary-item-info {
    flex: 1;
}

.order-summary-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.order-summary-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-summary-item-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.order-summary-totals {
    background: linear-gradient(135deg, rgba(184, 86, 56, 0.08), rgba(107, 124, 92, 0.08));
    border-radius: 12px;
    padding: 16px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.order-summary-row:last-child {
    margin-bottom: 0;
}

.order-summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid rgba(107, 124, 92, 0.2);
    padding-top: 12px;
    margin-top: 12px;
}

@media (max-width: 640px) {
    .order-summary-content {
        max-width: 95%;
        padding: 20px;
    }

    .order-summary-header h2 {
        font-size: 16px;
    }
}

/* ==================== MEAL SETS (КОМПЛЕКСЫ) ==================== */

.meal-sets-container {
    padding: 0;
}

.meal-sets-header {
    padding: 24px 16px 16px;
    background: linear-gradient(135deg, rgba(184,86,56, 0.08) 0%, rgba(107,124,92, 0.06) 100%);
    border-bottom: 1.5px solid rgba(184,86,56, 0.1);
}

.meal-sets-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.meal-sets-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.meal-set-section {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.meal-set-section:last-child {
    border-bottom: none;
}

.meal-set-header-row {
    padding: 16px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(107,124,92, 0.04) 0%, rgba(184,86,56, 0.02) 100%);
}

.meal-set-type {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.meal-set-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.meal-set-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px 16px;
}

.meal-set-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    padding: 12px;
}

.meal-set-card:hover {
    border-color: rgba(184,86,56, 0.4);
    box-shadow: 0 8px 20px rgba(184,86,56, 0.12);
    transform: translateY(-2px);
}

.meal-set-card:active {
    transform: scale(0.98);
}

.meal-set-emoji {
    font-size: 48px;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
    border-radius: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.meal-set-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.meal-set-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.meal-set-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meal-set-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.meal-set-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.meal-set-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(184,86,56, 0.3);
}

.meal-set-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(184,86,56, 0.4);
}

.meal-set-btn:active {
    transform: scale(0.92);
}

@media (max-width: 480px) {
    .meal-set-emoji {
        min-width: 48px;
        height: 48px;
        font-size: 40px;
    }

    .meal-set-name {
        font-size: 13px;
    }

    .meal-set-desc {
        font-size: 11px;
    }
}

/* ==================== ГОРИЗОНТАЛЬНЫЕ СКРОЛЛЕРЫ ПО СЕКЦИЯМ ==================== */

.products-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

/* Когда .products-sections рендерится внутри .product-grid, переопределяем grid */
.product-grid:has(> .products-sections) {
    display: flex !important;
    flex-direction: column !important;
}

.product-grid > .products-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: 100% !important;
}

/* Каждая секция должна быть полной ширины */
.product-grid > .products-sections > .products-section {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.products-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden; /* Обрезаем carousel чтобы показать что это скроллер */
    width: 100%;
}

/* Обложка категории — узкий hero сверху раздела */
.section-cover {
    width: calc(100% - 32px);
    margin: 4px 16px 0;
    height: 96px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    position: relative;
}
.section-cover::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.18));
}

.products-section[data-section="popular"] {
    padding: 0 20px;
    margin-top: 12px;
}

.products-section[data-category] {
    padding: 0 0;
    margin-top: 0;
}

.section-header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* скрыть скроллбар на Firefox */
    -ms-overflow-style: none; /* скрыть на IE/Edge */
}

.section-carousel::-webkit-scrollbar {
    display: none; /* скрыть на Chrome/Safari */
}

.products-section .product-card {
    flex: 0 0 160px; /* фиксированная ширина карточки */
    min-width: 160px;
    height: auto;
}

.products-section[data-section="popular"] .product-card {
    flex: 0 0 140px;
    min-width: 140px;
}

/* Для обычной сетки (когда нет секций, только single grid) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .section-carousel {
        padding: 0 16px;
    }

    .section-header {
        padding: 0 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .products-section[data-section="popular"] {
        padding: 0 16px;
    }

    /* На мобильном карточки меньше, чтобы было видно что это скроллер */
    .products-section .product-card {
        flex: 0 0 130px;
        min-width: 130px;
    }

    .products-section[data-section="popular"] .product-card {
        flex: 0 0 105px;
        min-width: 105px;
    }

    .product-grid {
        padding: 0 16px;
    }
}

/* === Удаление элементов по запросу пользователя === */
.search-bar { display: none !important; }
.categories { display: none !important; }
.menu-period-selector { display: none !important; }
}

/* === ПЛАНИРОВЩИК МЕНЮ (комплексы) === */
.meal-plan-cta {
    display: flex; align-items: center; gap: 12px;
    width: calc(100% - 32px); margin: 12px 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white; border: none; border-radius: 14px; cursor: pointer;
    text-align: left; font-family: inherit;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
    transition: transform 0.15s ease;
}
.meal-plan-cta:active { transform: scale(0.98); }

.meal-dates-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0;
}
.meal-date-btn {
    padding: 12px 4px; background: #f8fafc; border: 2px solid #e2e8f0;
    border-radius: 12px; font-family: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; color: #0f172a; transition: all 0.15s;
    line-height: 1.3;
}
.meal-date-btn:hover:not(.disabled) { background: #dbeafe; border-color: #3b82f6; transform: translateY(-1px); }
.meal-date-btn.disabled { background: #fef2f2; color: #94a3b8; border-color: #fecaca; cursor: not-allowed; }
.meal-date-sub { font-size: 11px; font-weight: 500; opacity: 0.7; }

.meal-days-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.meal-day-pick {
    padding: 8px 4px; background: #f8fafc; border: 2px solid transparent;
    border-radius: 8px; cursor: pointer; font-family: inherit;
    text-align: center; transition: all 0.15s;
}
.meal-day-pick.weekend { background: #fef9e7; }
.meal-day-pick.selected { background: #3b82f6; color: white; border-color: #1d4ed8; }
.meal-day-pick:hover:not(.selected) { background: #e0e7ff; }

.meal-preset-btn {
    padding: 6px 12px; background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 16px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.meal-preset-btn:hover { background: #e2e8f0; }

.meal-plan-days { display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; }
.meal-plan-day {
    background: #f8fafc; padding: 12px; border-radius: 10px; border: 1px solid #e2e8f0;
}
.meal-plan-day-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.meal-plan-row {
    display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center;
    margin: 6px 0; font-size: 12px;
}
.meal-plan-row-label { font-weight: 600; color: #475569; }
.meal-period-select {
    width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-family: inherit; font-size: 12px; background: white;
}

.meal-pay-btn {
    flex: 1; padding: 10px; background: #f1f5f9; border: 2px solid transparent;
    border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
}
.meal-pay-btn.selected { background: #0f172a; color: white; border-color: #0f172a; }

/* === КРАСИВЫЕ КАРТОЧКИ КОМПЛЕКСОВ (v2) === */
.meal-sets-container { padding-bottom: 100px; }

.meal-set-grid { padding: 12px 16px 4px; gap: 14px !important; grid-template-columns: 1fr !important; }

.meal-card {
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    border: 1px solid rgba(226,232,240,0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex; flex-direction: column; gap: 10px;
}
.meal-card:active { transform: scale(0.99); }

.meal-card-top { display: flex; gap: 12px; align-items: flex-start; }

.meal-card-emoji {
    font-size: 40px;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-radius: 16px; flex-shrink: 0;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    line-height: 1;
}

.meal-card-text { flex: 1; min-width: 0; }
.meal-card-name { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.25; margin-bottom: 4px; }
.meal-card-desc { font-size: 12.5px; color: #64748b; line-height: 1.35; }

.meal-card-dishes {
    background: #f8fafc; border-radius: 10px; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 3px;
}
.meal-card-dishes > div { font-size: 11.5px; color: #475569 !important; line-height: 1.4; }
.meal-card-dishes > div span { color: #94a3b8 !important; }

.meal-card-comp-btn {
    background: white; border: 1px solid #e2e8f0; color: #475569;
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    cursor: pointer; align-self: flex-start; font-family: inherit;
    transition: all 0.15s;
}
.meal-card-comp-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

.meal-card-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 4px; padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.meal-card-price { font-size: 22px; font-weight: 800; color: #b85638; }

.meal-card-order-btn {
    background: linear-gradient(135deg, #b85638 0%, #8b3a23 100%);
    color: white; border: none; padding: 11px 20px; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 12px rgba(184,86,56,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    min-width: 120px;
}
.meal-card-order-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(184,86,56,0.4); }
.meal-card-order-btn:active { transform: scale(0.97); }

/* === Улучшенный CTA планировщика === */
.meal-plan-cta {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: calc(100% - 32px); margin: 14px 16px 18px !important;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%) !important;
    color: white !important; border: none !important; border-radius: 18px !important; cursor: pointer;
    text-align: left; font-family: inherit;
    box-shadow: 0 8px 24px rgba(79,70,229,0.35) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.meal-plan-cta:active { transform: scale(0.98); }
.meal-plan-cta::after {
    content: '✨';
    position: absolute; top: 8px; right: 12px; font-size: 14px; opacity: 0.6;
}

/* Унификация отступов в секциях периодов */
.meal-set-section { padding: 0 16px; }
.meal-set-header-row { padding: 14px 0 10px; }

/* Эмодзи периодов крупнее */
.meal-set-type { font-size: 17px !important; font-weight: 800 !important; }

/* === ПЛАНИРОВЩИК v2 === */
.meal-plan-progress {
    height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; margin-bottom: 8px;
}
.meal-plan-progress-bar {
    height: 100%; background: linear-gradient(90deg, #6366f1, #4338ca);
    border-radius: 2px; transition: width 0.3s ease;
}
.meal-plan-step-label { font-weight: 700; font-size: 14px; color: #0f172a; }

.meal-back-link {
    width: 100%; background: none; border: none; color: #64748b;
    font-size: 13px; padding: 12px; cursor: pointer; font-family: inherit;
    text-decoration: none;
}
.meal-back-link:hover { color: #0f172a; text-decoration: underline; }

/* "Применить ко всем" */
.apply-all-block {
    background: #fefce8; border: 1px solid #fde68a; border-radius: 12px;
    padding: 0; margin: 0 0 14px; overflow: hidden;
}
.apply-all-block summary {
    padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 13px;
    color: #92400e; list-style: none; user-select: none;
}
.apply-all-block summary::-webkit-details-marker { display: none; }
.apply-all-block summary::after { content: '▾'; float: right; transition: transform 0.2s; }
.apply-all-block[open] summary::after { transform: rotate(180deg); }
.apply-all-inner { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.apply-all-row {
    display: flex; align-items: center; gap: 6px;
    background: white; padding: 6px; border-radius: 8px;
}
.apply-all-select {
    flex: 1; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 6px;
    font-family: inherit; font-size: 12px; background: white; min-width: 0;
}
.apply-all-btn {
    background: #f59e0b; color: white; border: none; padding: 6px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.apply-all-btn:hover { background: #d97706; }

/* День v2 */
.meal-plan-day-v2 {
    background: white; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 12px; margin-bottom: 10px;
}
.meal-plan-day-header-v2 {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 700; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}
.meal-plan-day-total { color: #94a3b8; font-weight: 600; }
.meal-plan-day-total.has-total { color: #16a34a; font-weight: 800; font-size: 15px; }

.meal-plan-period { margin: 8px 0; }
.meal-plan-period-label {
    font-size: 11px; color: #64748b; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
}

.meal-row-unavail {
    background: #fef2f2; color: #991b1b; font-size: 12px;
    padding: 8px 12px; border-radius: 8px; font-style: italic;
}

/* Чипы вариантов */
.meal-chips-row {
    display: flex; gap: 6px; overflow-x: auto;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.meal-chip {
    background: white; border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 8px 10px; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.15s; flex-shrink: 0; min-width: 140px;
}
.meal-chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.meal-chip.selected {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}
.meal-chip.selected::before { content: '✓'; color: #16a34a; font-weight: 800; }
.meal-chip-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.meal-chip-name { font-size: 12px; font-weight: 700; color: #0f172a; }
.meal-chip-price { font-size: 11px; color: #64748b; font-weight: 600; }

/* Итого */
.meal-plan-total-box {
    margin: 14px 0; padding: 14px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}
.meal-plan-grand-total {
    font-size: 22px; font-weight: 800; color: #16a34a;
}

/* === Чипы переносятся на новую строку (не скроллятся) === */
.meal-chips-row {
    display: flex !important; flex-wrap: wrap !important; gap: 6px !important;
    overflow-x: visible !important;
}
.meal-chip {
    flex: 1 1 calc(50% - 4px); min-width: 0 !important;
}
.meal-chip-name { white-space: normal !important; word-break: break-word; line-height: 1.2; }

/* === Панель "Применить ко всем" v2 — чипы вместо select === */
.apply-all-section { margin-bottom: 14px; }
.apply-all-section:last-child { margin-bottom: 0; }

.apply-all-period-label {
    font-size: 11px; color: #92400e; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}

.apply-chip {
    background: white; border: 1.5px solid #fde68a; border-radius: 10px;
    padding: 6px 8px; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.15s;
    flex: 1 1 calc(33.33% - 4px); min-width: 110px;
}
.apply-chip:hover { background: #fef3c7; }
.apply-chip.selected {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #d97706;
    box-shadow: 0 2px 6px rgba(217,119,6,0.25);
}
.apply-chip.selected::before { content: '✓'; color: #d97706; font-weight: 800; font-size: 12px; }
.apply-chip-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.apply-chip-name { font-size: 11px; font-weight: 700; color: #0f172a; white-space: normal; line-height: 1.2; }
.apply-chip-price { font-size: 10px; color: #92400e; font-weight: 600; }

.apply-all-btn-v2 {
    margin-top: 6px; width: 100%; background: #f59e0b; color: white;
    border: none; padding: 8px; border-radius: 8px; font-weight: 700;
    font-size: 12px; cursor: pointer; font-family: inherit;
}
.apply-all-btn-v2:hover { background: #d97706; }
.apply-all-btn-v2:active { transform: scale(0.98); }

/* В блок применения — добавляем чуть больше воздуха */
.apply-all-inner { gap: 14px !important; }

/* === Compact Apply-All v3 === */
.apply-all-block {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 14px;
}
.apply-all-block summary {
    color: #0f172a !important;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px 12px 0 0;
    padding: 12px 14px;
}
.apply-all-block:not([open]) summary { border-radius: 12px; }

.apply-all-period-label {
    font-size: 10px !important;
    color: #64748b !important;
    text-align: left !important;
    margin-bottom: 6px !important;
}

.apply-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.apply-chip {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 4px 6px;
    cursor: pointer;
    font-family: inherit;
    display: flex; flex-direction: column; align-items: center;
    gap: 2px;
    transition: all 0.15s;
    min-width: 0;
    text-align: center;
}
.apply-chip:hover { background: #fef9c3; border-color: #fde68a; }
.apply-chip.selected {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #d97706;
    box-shadow: 0 2px 6px rgba(217,119,6,0.25);
}
.apply-chip.selected::before { content: '✓'; color: #d97706; font-weight: 800; font-size: 11px; position: absolute; top: 2px; right: 4px; }
.apply-chip { position: relative; }

.apply-chip-emoji { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.apply-chip-mini-name {
    font-size: 11px; font-weight: 700; color: #0f172a;
    line-height: 1.15; word-break: break-word; max-width: 100%;
}
.apply-chip-mini-price {
    font-size: 10px; color: #94a3b8; font-weight: 600;
}

.apply-all-section { margin-bottom: 12px; padding: 0 6px; }
.apply-all-inner { padding: 12px !important; gap: 10px !important; }

.apply-all-btn-master {
    margin-top: 4px; width: 100%; padding: 12px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white; border: none; border-radius: 10px;
    font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}
.apply-all-btn-master:hover { transform: translateY(-1px); }
.apply-all-btn-master:active { transform: scale(0.98); }

/* === Apply-All v4 — крупные чипы как в карточках дня === */
.apply-all-section-big { margin-bottom: 14px; }
.apply-all-section-big:last-of-type { margin-bottom: 0; }

.apply-all-period-label-big {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 8px;
    position: relative;
}
.apply-all-period-label-big::before, .apply-all-period-label-big::after {
    content: '';
    display: inline-block; width: 60px; height: 1px;
    background: #e2e8f0; vertical-align: middle; margin: 0 8px;
}

/* Большие чипы должны переиспользовать стиль meal-chip (он уже зелёный при selected) */
.apply-chip-big { font-size: 13px; }

/* Скрываем старые компактные стили чипов, если попадутся (на всякий случай) */
.apply-chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* === Единый компактный стиль чипов v5 — везде 3-в-ряд === */
.meal-chips-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    overflow: visible !important;
}
.meal-chip {
    flex: none !important;
    min-width: 0 !important;
    padding: 8px 4px 6px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2px !important;
    position: relative;
    border-radius: 10px !important;
    border-width: 1.5px !important;
}
.meal-chip > span:first-child {
    font-size: 22px !important; line-height: 1; margin-bottom: 2px;
}
.meal-chip-text {
    align-items: center !important;
    width: 100%;
}
.meal-chip-name {
    font-size: 11px !important;
    line-height: 1.15 !important;
    word-break: break-word;
}
.meal-chip-price {
    font-size: 10px !important;
    color: #94a3b8 !important;
}
.meal-chip.selected::before {
    position: absolute; top: 2px; right: 4px;
    font-size: 11px !important;
}

/* Master-кнопка disabled */
.apply-all-btn-master:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}
.apply-all-btn-master:disabled:hover { transform: none !important; }

/* Disabled оплаты в Шаге 3 */
.meal-pay-btn.disabled, .meal-pay-btn:disabled {
    opacity: 0.45; cursor: not-allowed !important; background: #f1f5f9 !important;
}

/* ==================== РАЗДЕЛ HOME — 2 плитки ==================== */
.home-tiles-wrap {
    padding: 0 16px 40px;
    display: none;
    position: relative;
    background:
        radial-gradient(1200px 320px at 20% -10%, rgba(255, 220, 200, 0.55), transparent 60%),
        radial-gradient(1000px 400px at 110% 10%, rgba(186, 230, 253, 0.5), transparent 65%),
        linear-gradient(180deg, #FFF8F0 0%, #FFF4E8 35%, #F4F0EA 100%);
}
body[data-mode="home"] .home-tiles-wrap { display: block; }

/* Декоративная волна в стыке между hero (header) и секцией плиток */
.home-tiles-wrap::before {
    content: '';
    display: block;
    width: 100%;
    height: 28px;
    margin: 0 -16px 16px;
    width: calc(100% + 32px);
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,32 C240,80 480,0 720,32 C960,64 1200,8 1440,40 L1440,0 L0,0 Z' fill='%23FFF8F0'/></svg>")
        no-repeat top center / 100% 100%;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.home-tiles-header { text-align: center; margin: 14px 0 24px; position: relative; }
.home-tiles-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: #B85638;
    background: rgba(255, 220, 200, 0.6);
    padding: 5px 12px; border-radius: 999px;
    margin-bottom: 12px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.home-tiles-title {
    font-size: 30px; font-weight: 800;
    color: #1F2937; margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.home-tiles-sub { color: #6B7280; font-size: 14px; margin: 0; font-weight: 500; }
.home-tiles-divider {
    width: 56px; height: 3px; margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, #F59E0B 50%, transparent);
    border-radius: 999px;
}

/* Бейджи в углах плиток */
.home-tile-badge {
    position: absolute; top: 12px; right: 12px;
    z-index: 3;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.home-tile-badge-warm {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #422006;
}
.home-tile-badge-cool {
    background: rgba(255, 255, 255, 0.95);
    color: #075985;
}
.home-tile-badge-soon {
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Мягкое отключение плитки (в стопе) */
.home-tile-soon {
    filter: saturate(0.55) brightness(0.92);
    cursor: pointer; /* остаётся кликабельной — покажет уведомление */
}
.home-tile-soon:hover { transform: none; box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.08); }
.home-tile-soon .home-tile-photo { opacity: 0.7; }
.home-tile-soon .home-tile-arrow { opacity: 0.4; }
.home-tile-soon.home-tile-bar.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(51, 65, 85, 0.85) 0%, rgba(71, 85, 105, 0.62) 45%, rgba(100, 116, 139, 0.3) 100%);
}

/* Преимущества (Почему мы) */
.home-perks {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin: 22px 0 18px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
.home-perk {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center;
}
.home-perk-icon {
    font-size: 22px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.home-perk-icon svg { display: block; }
.home-perk-title {
    font-size: 12px; font-weight: 800; color: #0F172A; line-height: 1.2;
}
.home-perk-sub {
    font-size: 10px; color: #64748B; font-weight: 500; line-height: 1.3; margin-top: 2px;
}

/* Маленькие декоративные точки-блики на фоне */
.home-tiles-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 38%, rgba(251, 191, 36, 0.18) 0, transparent 4px),
        radial-gradient(circle at 92% 22%, rgba(14, 165, 233, 0.16) 0, transparent 5px),
        radial-gradient(circle at 78% 70%, rgba(244, 114, 89, 0.14) 0, transparent 4px),
        radial-gradient(circle at 22% 82%, rgba(2, 132, 199, 0.12) 0, transparent 5px);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}
.home-tiles-wrap > * { position: relative; z-index: 2; }

.home-tile {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 24px 18px; margin-bottom: 14px;
    border: none; border-radius: 20px; cursor: pointer;
    text-align: left; font-family: inherit;
    color: white;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    position: relative; overflow: hidden;
}
.home-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28), 0 4px 10px rgba(15, 23, 42, 0.1);
}
.home-tile:active { transform: scale(0.985); }

.home-tile-meals { background: linear-gradient(135deg, #B85638 0%, #8B3A23 50%, #6B2A19 100%); }
.home-tile-bar { background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 50%, #075985 100%); }
.home-tile-sushi { background: linear-gradient(135deg, #1F2937 0%, #064E3B 45%, #DC2626 100%); }
.home-tile-vegan { background: linear-gradient(135deg, #15803D 0%, #65A30D 50%, #A3E635 100%); }

.home-tile-emoji { font-size: 48px; line-height: 1; flex-shrink: 0; }
.home-tile-body { flex: 1; min-width: 0; position: relative; z-index: 2; }
.home-tile-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.home-tile-desc { font-size: 13px; opacity: 0.96; line-height: 1.4; margin-bottom: 8px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.home-tile-meta { font-size: 12px; opacity: 0.92; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.home-tile-arrow { font-size: 24px; opacity: 0.9; flex-shrink: 0; position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* Плитки с фото: фото на всю плитку как фон, поверх — цветной градиент-оверлей для читаемости */
.home-tile-photo-wrap { min-height: 130px; padding: 22px 20px; }
.home-tile-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0; opacity: 0.92;
}
.home-tile-photo-wrap::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
}
.home-tile-meals.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(107,42,25,0.78) 0%, rgba(139,58,35,0.55) 45%, rgba(184,86,56,0.18) 100%);
}
.home-tile-bar.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(7,89,133,0.78) 0%, rgba(2,132,199,0.55) 45%, rgba(14,165,233,0.18) 100%);
}
.home-tile-sushi.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(31,41,55,0.82) 0%, rgba(6,78,59,0.6) 45%, rgba(220,38,38,0.22) 100%);
}
.home-tile-soon.home-tile-sushi.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(51,65,85,0.85) 0%, rgba(71,85,105,0.62) 45%, rgba(100,116,139,0.3) 100%);
}
.home-tile-vegan.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(21,128,61,0.78) 0%, rgba(101,163,13,0.55) 45%, rgba(163,230,53,0.18) 100%);
}
.home-tile-soon.home-tile-vegan.home-tile-photo-wrap::after {
    background: linear-gradient(110deg, rgba(51,65,85,0.85) 0%, rgba(71,85,105,0.62) 45%, rgba(100,116,139,0.3) 100%);
}

/* ==================== ШАПКА ТЕКУЩЕГО РАЗДЕЛА ==================== */
.section-bar {
    display: none;
    padding: 10px 16px;
    background: white; border-bottom: 1px solid #e2e8f0;
    align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 50;
}
body[data-mode="meals"] .section-bar,
body[data-mode="bar"] .section-bar { display: flex; }

.section-back-btn {
    background: #f1f5f9; border: none; color: #475569;
    padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.section-back-btn:hover { background: #e2e8f0; }

.section-title-wrap { display: flex; align-items: center; gap: 8px; }
.section-bar .section-title-wrap .section-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800 !important;
    font-style: normal !important;
    font-size: 15px !important;
    letter-spacing: 0.01em !important;
    color: #7C2D12 !important;
    margin-bottom: 0 !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important;
    border: 1.5px solid #FED7AA !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.18) !important;
    white-space: nowrap;
}
body[data-mode="bar"] .section-bar .section-title-wrap .section-title {
    color: #5B21B6 !important;
    background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 100%) !important;
    border-color: #C4B5FD !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.18) !important;
}

/* ==================== ВИДИМОСТЬ БЛОКОВ ПО MODE ==================== */
/* home — шапка и футер видны (как везде); скрываем только каталог и нижнюю навигацию */
body[data-mode="home"] #page-catalog,
body[data-mode="home"] .bottom-nav { display: none !important; }

/* meals — показываем только секции для meals */
body[data-mode="meals"] [data-section="bar"] { display: none !important; }
body[data-mode="meals"] .home-tiles-wrap { display: none; }

/* bar — показываем только секции для bar */
body[data-mode="bar"] [data-section="meals"] { display: none !important; }
body[data-mode="bar"] [data-section="sushi"] { display: none !important; }
body[data-mode="bar"] .home-tiles-wrap { display: none; }

/* sushi — показываем только секции для sushi */
body[data-mode="sushi"] [data-section="meals"] { display: none !important; }
body[data-mode="sushi"] [data-section="bar"] { display: none !important; }
body[data-mode="sushi"] .home-tiles-wrap { display: none; }
body[data-mode="sushi"] .section-bar { display: flex; }
body[data-mode="meals"] [data-section="sushi"] { display: none !important; }
body[data-mode="home"] [data-section="sushi"] { display: none !important; }

/* ==================== SUSHI SECTION ==================== */
.sushi-hero {
    margin: 16px 12px 12px;
    padding: 24px 20px 22px;
    background: linear-gradient(135deg, #1F2937 0%, #064E3B 50%, #DC2626 100%);
    border-radius: 22px;
    color: #fff;
    box-shadow: 0 14px 40px rgba(15,23,42,0.22), 0 2px 6px rgba(15,23,42,0.08);
    position: relative; overflow: hidden;
}
.sushi-hero::after {
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.sushi-hero-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    margin-bottom: 12px;
}
.sushi-hero-title {
    font-size: 28px; font-weight: 900;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sushi-hero-sub {
    font-size: 14px; opacity: 0.92;
    margin: 0; line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Sticky подвижная полоса категорий */
.sushi-cats {
    position: sticky;
    top: 42px; /* ниже section-bar */
    z-index: 40;
    margin: 0 0 14px;
    padding: 10px 0 8px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}
.sushi-cats-track {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 0 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sushi-cats-track::-webkit-scrollbar { display: none; }
.sushi-cat-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-family: inherit; font-size: 13px; font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
}
.sushi-cat-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.sushi-cat-btn.active {
    background: linear-gradient(135deg, #1F2937 0%, #064E3B 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(6,78,59,0.32);
}

/* Сетка товаров — 2 в строку */
.sushi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px 20px;
}
.sushi-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sushi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,23,42,0.1);
}
.sushi-card-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}
.sushi-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.sushi-card-badge {
    position: absolute; top: 8px; left: 8px;
    background: #DC2626; color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 3px 8px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
.sushi-card-body {
    padding: 12px 12px 14px;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 4px;
}
.sushi-card-name {
    font-size: 14px; font-weight: 800; color: #0f172a;
    line-height: 1.25;
    margin: 0;
    min-height: 36px;
}
.sushi-card-meta {
    font-size: 11px; color: #64748b; font-weight: 600;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.sushi-card-desc {
    font-size: 11px; color: #94a3b8; line-height: 1.3;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sushi-card-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
}
.sushi-card-price {
    font-size: 17px; font-weight: 900; color: #0f172a;
    white-space: nowrap;
}
.sushi-card-btn {
    border: none;
    background: linear-gradient(135deg, #064E3B 0%, #15803D 100%);
    color: #fff;
    font-family: inherit; font-size: 13px; font-weight: 800;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(6,78,59,0.28);
    transition: transform 0.1s, box-shadow 0.15s;
}
.sushi-card-btn:hover {
    box-shadow: 0 6px 14px rgba(6,78,59,0.4);
}
.sushi-card-btn:active { transform: scale(0.96); }
.sushi-card-btn.in-cart {
    background: linear-gradient(135deg, #15803D 0%, #65A30D 100%);
}

.sushi-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* Подзаголовок группы (когда показаны все) */
.sushi-group-title {
    grid-column: 1 / -1;
    font-size: 18px; font-weight: 900;
    color: #0f172a;
    margin: 16px 0 4px;
    padding-left: 4px;
    display: flex; align-items: center; gap: 8px;
}

/* На широких экранах — 3-4 колонки */
@media (min-width: 720px) {
    .sushi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
    .sushi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Картинка-кнопка — курсор-подсказка */
.sushi-card-img { cursor: zoom-in; }

/* ==================== SUSHI MODAL ==================== */
.sushi-modal {
    position: fixed; inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.sushi-modal.is-open { display: flex; }
.sushi-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: sushi-fade-in 0.18s ease;
}
.sushi-modal-sheet {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 48px rgba(0,0,0,0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: sushi-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 720px) {
    .sushi-modal { align-items: center; }
    .sushi-modal-sheet { border-radius: 24px; max-height: 88vh; }
}
@keyframes sushi-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sushi-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sushi-modal-close {
    position: absolute; top: 14px; right: 14px;
    z-index: 2;
    width: 36px; height: 36px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    color: #0f172a;
    font-size: 16px; font-weight: 900;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sushi-modal-close:active { transform: scale(0.94); }

.sushi-modal-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 120px;
    overflow: hidden;
    position: relative;
}
.sushi-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.sushi-modal-img .sushi-modal-img-badge {
    position: absolute; top: 14px; left: 14px;
    background: #DC2626; color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 5px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.sushi-modal-content { padding: 20px 22px 24px; }
.sushi-modal-title {
    font-size: 24px; font-weight: 900;
    color: #0f172a; margin: 0 0 6px;
    line-height: 1.2;
}
.sushi-modal-meta {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.sushi-modal-meta span {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.sushi-modal-desc {
    font-size: 14px; color: #334155;
    line-height: 1.5;
    margin: 0 0 16px;
}
.sushi-modal-options {
    margin: 12px 0 18px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.sushi-modal-options-title {
    font-size: 13px; font-weight: 800;
    color: #64748b; text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 10px;
}
.sushi-modal-opt {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.sushi-modal-opt:last-child { margin-bottom: 0; }
.sushi-modal-opt:hover { border-color: #cbd5e1; }
.sushi-modal-opt.active {
    border-color: #15803D;
    background: #f0fdf4;
}
.sushi-modal-opt-name {
    font-size: 14px; font-weight: 700; color: #0f172a;
    display: flex; align-items: center; gap: 8px;
}
.sushi-modal-opt-name::before {
    content: '';
    width: 18px; height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.15s;
}
.sushi-modal-opt.active .sushi-modal-opt-name::before {
    background: #15803D;
    border-color: #15803D;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px #15803D;
}
.sushi-modal-opt-price {
    font-size: 14px; font-weight: 800; color: #15803D;
}

/* Опция-счётчик (с +/-) */
.sushi-modal-opt-counter {
    cursor: default;
    padding: 8px 12px;
}
.sushi-modal-opt-counter:hover { border-color: #e2e8f0; }
.sushi-modal-opt-counter.active { border-color: #15803D; background: #f0fdf4; }
.sushi-modal-opt-info {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1;
}
.sushi-modal-opt-name-plain {
    font-size: 14px; font-weight: 700; color: #0f172a;
}
.sushi-modal-opt-price-plain {
    font-size: 12px; font-weight: 700; color: #15803D;
}
.sushi-modal-opt-stepper {
    display: flex; align-items: center;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.sushi-modal-opt-counter.active .sushi-modal-opt-stepper {
    border-color: #15803D;
}
.sushi-modal-step-btn {
    border: none; background: transparent;
    width: 32px; height: 32px;
    font-size: 17px; font-weight: 900;
    color: #0f172a;
    cursor: pointer;
}
.sushi-modal-step-btn:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}
.sushi-modal-step-btn:not(:disabled):active { background: #f1f5f9; }
.sushi-modal-step-val {
    min-width: 26px; text-align: center;
    font-size: 14px; font-weight: 800;
    color: #0f172a;
}

.sushi-modal-footer {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    position: sticky; bottom: 0;
}
.sushi-modal-qty {
    display: flex; align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}
.sushi-modal-qty-btn {
    border: none; background: transparent;
    width: 40px; height: 40px;
    font-size: 20px; font-weight: 900;
    color: #0f172a;
    cursor: pointer;
}
.sushi-modal-qty-btn:active { background: #e2e8f0; }
.sushi-modal-qty-val {
    min-width: 32px; text-align: center;
    font-size: 15px; font-weight: 800;
    color: #0f172a;
}
.sushi-modal-add-btn {
    flex: 1;
    border: none;
    background: linear-gradient(135deg, #064E3B 0%, #15803D 100%);
    color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 800;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(6,78,59,0.3);
    transition: transform 0.1s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sushi-modal-add-btn:active { transform: scale(0.98); }
.sushi-modal-add-price {
    font-weight: 900;
    background: rgba(255,255,255,0.18);
    padding: 3px 9px;
    border-radius: 8px;
}

/* Стандартный режим — пока не выбран, показываем home */
body:not([data-mode]) .home-tiles-wrap { display: block; }
body:not([data-mode]) #page-catalog,
body:not([data-mode]) .bottom-nav { display: none !important; }

/* Кнопка «Контакты» под двумя плитками — компактная */
.home-tile-contacts {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px 18px; margin-top: 4px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    color: #0f172a; text-decoration: none;
    font-family: inherit; font-size: 15px; font-weight: 700;
    transition: all 0.15s;
    cursor: pointer;
}
.home-tile-contacts:hover { background: rgba(255, 255, 255, 0.85); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1); }
.home-tile-contacts:active { transform: scale(0.985); }
.home-tile-contacts-emoji { font-size: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.home-tile-contacts-emoji svg { display: block; }
.home-tile-contacts-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.home-tile-contacts-text { font-size: 15px; font-weight: 700; color: #0F172A; }
.home-tile-contacts-sub { font-size: 11px; color: #64748B; font-weight: 500; }
.home-tile-contacts-arrow { font-size: 18px; color: #94a3b8; flex-shrink: 0; }

/* === Красивые секции периодов (без эмодзи) === */
.meal-set-section {
    border-radius: 16px !important;
    border: 2px solid #e2e8f0 !important;
    background: white !important;
    margin-bottom: 14px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.meal-set-section[data-meal-type="breakfast"] {
    border-color: #FCD34D !important;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
}
.meal-set-section[data-meal-type="breakfast"] .meal-set-type::before {
    content: ''; display: inline-block; width: 4px; height: 22px;
    background: #F59E0B; border-radius: 2px; vertical-align: middle; margin-right: 10px;
}

.meal-set-section[data-meal-type="lunch"] {
    border-color: #86EFAC !important;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%) !important;
}
.meal-set-section[data-meal-type="lunch"] .meal-set-type::before {
    content: ''; display: inline-block; width: 4px; height: 22px;
    background: #16A34A; border-radius: 2px; vertical-align: middle; margin-right: 10px;
}

.meal-set-section[data-meal-type="dinner"] {
    border-color: #C4B5FD !important;
    background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 100%) !important;
}
.meal-set-section[data-meal-type="dinner"] .meal-set-type::before {
    content: ''; display: inline-block; width: 4px; height: 22px;
    background: #7C3AED; border-radius: 2px; vertical-align: middle; margin-right: 10px;
}

.meal-set-header-row {
    padding: 16px 14px !important;
}

.meal-set-type {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center;
}

.meal-set-time {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 4px;
    padding-left: 14px;
}

/* Контент комплексов — белый фон чтобы выделить из цветной шапки */
.meal-set-grid {
    background: white;
    padding: 14px 12px !important;
}

/* === Стиппер количества (быстрый заказ) === */
.quick-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 4px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* ── Выбор подачи у блюд завтрака (modifier chips) ─────────────────────── */
.quick-modifiers-block {
    margin: 18px 0 10px;
    padding: 14px 14px 10px;
    background: linear-gradient(180deg, #fffbe9 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    box-shadow: 0 2px 0 rgba(253, 224, 71, 0.15);
}
.quick-modifiers-title {
    font-size: 14px;
    font-weight: 800;
    color: #7c2d12;
    margin-bottom: 2px;
}
.quick-modifiers-sub {
    font-size: 11px;
    color: #92400e;
    margin-bottom: 12px;
    line-height: 1.35;
}
.quick-mod-row {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(217, 119, 6, 0.25);
}
.quick-mod-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.quick-mod-dish {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.quick-mod-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}
.quick-mod-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-mod-chip {
    appearance: none;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.08s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    flex: 1 1 auto;
    min-width: 110px;
    text-align: center;
}
.quick-mod-chip:active { transform: scale(0.96); }
.quick-mod-chip:hover { border-color: #94a3b8; }
.quick-mod-chip.selected {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 3px 0 #064e3b, 0 4px 10px rgba(22, 163, 74, 0.35);
}
.quick-qty-label { font-weight: 700; color: #0f172a; font-size: 14px; }
.quick-qty-stepper { display: flex; align-items: center; gap: 6px; }
.quick-qty-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #0f172a;
    transition: transform 0.1s;
}
.quick-qty-btn:active { transform: scale(0.92); }
.quick-qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.quick-qty-hint {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin: 4px 0 8px;
}
.quick-total-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #0f172a; color: white;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 700;
}
.quick-total-amount { font-size: 22px; font-weight: 800; }

/* === Чипы дня — qty badge + минус-кнопка === */
.meal-chip.day-chip {
    position: relative;
    padding-right: 32px; /* место под бейдж справа */
}
.meal-chip-qty {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #16a34a;
    color: white;
    font-weight: 800;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(22,163,74,0.3);
}
.meal-chip-minus {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px; height: 22px;
    background: white;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.meal-chip-minus:active { transform: scale(0.9); }

/* Выбранный чип — лёгкий зелёный обвод */
.meal-chip.day-chip.selected {
    border-color: #86efac !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

/* Пульсация бэйджа количества при добавлении товара в корзину */
@keyframes cartBadgePulse {
    0%   { transform: scale(0.6); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart-badge-counter.pulse {
    animation: cartBadgePulse 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Конструктор обеда/ужина — карточка на главной === */
.meal-card.meal-card-constructor {
    border: 2px solid #FCD34D;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}
.meal-constructor-hint {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px dashed #FCD34D;
}

/* === Модалка-конструктор === */
.constructor-groups {
    margin: 14px 0;
    max-height: 50vh;
    overflow-y: auto;
}
.constructor-group {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.constructor-group.complete {
    border-color: #86EFAC;
    background: #f0fdf4;
}
.constructor-group-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-weight: 800; font-size: 14px; color: #0f172a;
    margin-bottom: 8px;
}
.constructor-group-meta {
    font-size: 11px; font-weight: 500; color: #64748b;
}
.constructor-options {
    display: flex; flex-direction: column; gap: 6px;
}
.constructor-option {
    display: flex; align-items: flex-start;
    background: white; border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 10px 12px;
    cursor: pointer;
    gap: 10px;
    transition: all 0.15s;
}
.constructor-option:hover { border-color: #cbd5e1; }
.constructor-option.selected {
    border-color: #f59e0b;
    background: #FFFBEB;
    box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}
.constructor-option-radio {
    font-size: 22px; line-height: 1;
    color: #cbd5e1;
    font-weight: 800;
}
.constructor-option.selected .constructor-option-radio { color: #f59e0b; }
.constructor-option-body { flex: 1; min-width: 0; }
.constructor-option-name {
    font-weight: 700; color: #0f172a; font-size: 14px;
}

/* Модификаторы (соус, заправка) */
.constructor-modifier {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.constructor-modifier-label {
    font-size: 11px; color: #64748b; font-weight: 600;
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.constructor-modifier-options { display: flex; gap: 6px; flex-wrap: wrap; }
.constructor-mod-btn {
    padding: 5px 12px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.15s;
}
.constructor-mod-btn:active { transform: scale(0.96); }
.constructor-mod-btn.selected {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}

/* === Плитка конструктора в планировщике === */
.constructor-plan-row {
    background: white;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.constructor-plan-row.has-pick {
    border-style: solid;
    border-color: #86EFAC;
    background: #f0fdf4;
}
.constructor-plan-info { flex: 1; min-width: 200px; }
.constructor-plan-title {
    font-weight: 800; color: #0f172a; font-size: 13px;
}
.constructor-plan-composition {
    font-size: 11px; color: #475569; margin-top: 3px; line-height: 1.4;
}
.constructor-plan-hint {
    font-size: 11px; color: #94a3b8; margin-top: 3px;
}
.constructor-plan-actions { display: flex; align-items: center; gap: 8px; }
.constructor-plan-stepper {
    display: flex; align-items: center; gap: 4px;
    background: white; border: 1px solid #cbd5e1;
    border-radius: 999px; padding: 2px;
}
.constructor-plan-btn {
    padding: 8px 14px;
    border: none;
    background: #0f172a;
    color: white;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.constructor-plan-btn:active { transform: scale(0.96); }

/* Меняем «Подробный состав» кнопку — на конструкторе она теперь «Все варианты» */
.meal-card-constructor .meal-card-comp-btn {
    background: white;
    border: 1px dashed #FCD34D;
    color: #92400E;
}

/* ==================== HERO-СЛАЙДЕР МЕНЮ ==================== */
.meal-hero-slider {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 0 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.15);
}
.meal-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.meal-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    cursor: pointer;
}
.meal-hero-slide.active { opacity: 1; }
.meal-hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.meal-hero-tint {
    position: absolute; inset: 0;
}
.meal-hero-text {
    position: absolute;
    left: 20px;
    bottom: 18px;
    right: 20px;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.meal-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.meal-hero-sub {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 4px;
}
.meal-hero-dots {
    position: absolute;
    bottom: 10px;
    right: 14px;
    display: flex;
    gap: 6px;
}
.meal-hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.meal-hero-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ==================== ФОТО В КАРТОЧКЕ КОМПЛЕКСА ==================== */
.meal-card { padding: 0 !important; overflow: hidden; }
.meal-card > .meal-card-top,
.meal-card > .meal-card-dishes,
.meal-card > .meal-card-comp-btn,
.meal-card > .meal-card-bottom { padding-left: 14px; padding-right: 14px; }
.meal-card > .meal-card-top { padding-top: 12px; }
.meal-card > .meal-card-bottom { padding-bottom: 12px; }

.meal-card-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    position: relative;
}
.meal-card-photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15,23,42,0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

/* Коллаж 2×2 для конструктора */
.meal-card-collage {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    position: relative;
    background: #f1f5f9;
}
.meal-card-collage-cell {
    background-size: cover;
    background-position: center;
}
.meal-card-collage-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245,158,11,0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

/* ==================== МИНИАТЮРА В ОПЦИИ КОНСТРУКТОРА ==================== */
.constructor-option-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* На мобильных слайдер чуть ниже */
@media (max-width: 480px) {
    .meal-hero-slider { height: 170px; }
    .meal-hero-title { font-size: 26px; }
}

/* ==================== ПЛАНИРОВЩИК — ШАГ 1 (выбор дней) ==================== */
.meal-plan-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.meal-plan-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B 0%, #16A34A 50%, #7C3AED 100%);
    border-radius: 999px;
    transition: width 0.4s;
}
.meal-plan-step-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.meal-preset-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.meal-preset-btn {
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.15s;
}
.meal-preset-btn:active { transform: scale(0.97); }
.meal-preset-btn:hover { border-color: #cbd5e1; }

.meal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.meal-day-pick {
    position: relative;
    aspect-ratio: 1 / 1.15;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    padding: 6px 2px;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px;
    transition: all 0.15s;
    font-family: inherit;
}
.meal-day-pick:active { transform: scale(0.94); }
.meal-day-pick-dow {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}
.meal-day-pick-num {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.meal-day-pick-mon {
    font-size: 9px;
    color: #94a3b8;
    text-transform: lowercase;
}
.meal-day-pick.weekend .meal-day-pick-dow { color: #ef4444; }
.meal-day-pick.today {
    border-color: #FCD34D;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}
.meal-day-pick-today-pill {
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%);
    background: #F59E0B;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.meal-day-pick.selected {
    border-color: #16A34A;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    box-shadow: 0 4px 12px rgba(22,163,74,0.2);
}
.meal-day-pick.selected .meal-day-pick-num { color: #14532D; }
.meal-day-pick.selected .meal-day-pick-dow { color: #16A34A; }
.meal-day-pick.selected::after {
    content: '✓';
    position: absolute;
    top: 4px; right: 6px;
    font-size: 12px;
    color: #16A34A;
    font-weight: 800;
}
.meal-dates-summary {
    margin: 14px 0 6px;
    font-size: 13px;
    color: #475569;
    text-align: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 10px;
}
.meal-dates-summary strong { color: #0f172a; font-size: 15px; }

/* ==================== ПЛАНИРОВЩИК — ШАГ 2 (карточки дней) ==================== */
.meal-plan-day-v2 {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.meal-plan-day-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FAFAF9 0%, #F5F5F4 100%);
    border-bottom: 1.5px solid #e2e8f0;
}
.meal-plan-day-date { display: flex; align-items: baseline; gap: 10px; }
.meal-plan-day-num {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}
.meal-plan-day-mon {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    margin-left: 4px;
}
.meal-plan-day-dow {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.meal-plan-day-total {
    font-size: 17px;
    font-weight: 800;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 999px;
    background: white;
}
.meal-plan-day-total.has-total {
    color: white;
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    box-shadow: 0 2px 6px rgba(22,163,74,0.3);
}

/* Период (Завтрак/Обед/Ужин) — цветная полоска слева */
.meal-plan-period {
    padding: 12px 16px 14px;
    border-left: 4px solid transparent;
    margin: 8px 12px;
    background: white;
    border-radius: 8px;
}
.meal-plan-period[data-period="breakfast"] { border-left-color: #F59E0B; }
.meal-plan-period[data-period="lunch"]     { border-left-color: #16A34A; }
.meal-plan-period[data-period="dinner"]    { border-left-color: #7C3AED; }
.meal-plan-period-label {
    display: flex; align-items: baseline; gap: 10px;
    margin-bottom: 8px;
}
.meal-plan-period-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}
.meal-plan-period-window {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* Чипы дня с миниатюрой фото */
.meal-chips-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.meal-chip.day-chip,
.meal-chip.apply-chip-big {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px 6px 6px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    min-height: 60px;
    transition: all 0.15s;
    text-align: left;
}
.meal-chip-thumb {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}
.meal-chip-text { flex: 1; min-width: 0; }
.meal-chip-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.meal-chip-price {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    margin-top: 2px;
}

/* Apply-All панель */
.apply-all-block {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.apply-all-block summary {
    font-weight: 800;
    cursor: pointer;
    color: #0f172a;
    list-style: none;
    user-select: none;
}
.apply-all-block summary::-webkit-details-marker { display: none; }
.apply-all-block summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 6px;
    font-size: 10px;
    transition: transform 0.2s;
}
.apply-all-block[open] summary::before { transform: rotate(90deg); }
.apply-all-inner { padding-top: 12px; }
.apply-all-section-big { margin-bottom: 14px; }
.apply-all-section-big[data-period="breakfast"] .apply-all-period-label-big { color: #B45309; }
.apply-all-section-big[data-period="lunch"]     .apply-all-period-label-big { color: #15803D; }
.apply-all-section-big[data-period="dinner"]    .apply-all-period-label-big { color: #6D28D9; }
.apply-all-period-label-big {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}
.apply-all-btn-master {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.apply-all-btn-master:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.meal-chip.apply-chip-big.selected {
    border-color: #f59e0b;
    background: #FFFBEB;
    box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

/* Плитка конструктора в планировщике — превью миниатюр выбранного состава */
.constructor-plan-thumbs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.constructor-plan-thumb {
    width: 36px; height: 36px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1.5px solid white;
}

/* Сумма итого */
.meal-plan-total-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}
.meal-plan-grand-total {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==================== ПЛАНИРОВЩИК — ШАГ 3 (подтверждение) ==================== */
.confirm-day-block {
    margin-bottom: 14px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.confirm-day-header {
    background: linear-gradient(135deg, #FAFAF9 0%, #F5F5F4 100%);
    padding: 10px 14px;
    font-weight: 800;
    color: #0f172a;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.confirm-line {
    display: flex; align-items: center;
    padding: 10px 14px;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
}
.confirm-line:last-child { border-bottom: none; }
.confirm-line[data-period="breakfast"] { border-left-color: #F59E0B; }
.confirm-line[data-period="lunch"]     { border-left-color: #16A34A; }
.confirm-line[data-period="dinner"]    { border-left-color: #7C3AED; }
.confirm-line-thumb {
    width: 44px; height: 44px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    flex-shrink: 0;
}
.confirm-line-body { flex: 1; min-width: 0; }
.confirm-line-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}
.confirm-line-qty {
    background: #16A34A;
    color: white;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 4px;
}
.confirm-line-composition {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}
.confirm-line-price {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

/* === Фиксы планировщика после первого просмотра === */

/* Пустая капсула суммы дня — приглушённый текст, без фона */
.meal-plan-day-total.no-total {
    background: transparent !important;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
}

/* Apply-All — убрать дефолтный маркер details в Safari/iOS */
.apply-all-block summary {
    -webkit-appearance: none;
    appearance: none;
}
.apply-all-block summary::-webkit-details-marker { display: none; }

/* Сообщение «закрыто» — компактная плашка */
.meal-row-unavail {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Чипы — не выходят за границы карточки периода */
.meal-plan-period {
    overflow: visible;
}
.meal-chip.day-chip {
    overflow: hidden;
    min-width: 0;
}
.meal-chip-text {
    overflow: hidden;
}
.meal-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== НОВАЯ СТРУКТУРА: КАРТОЧКИ БЛЮД В ПЛАНИРОВЩИКЕ ==================== */
/* Заменяем сжатые чипы на полноценные вертикальные карточки */

.meal-plan-period .meal-chips-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 380px) {
    .meal-plan-period .meal-chips-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.meal-day-card {
    display: block;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 0;
    min-height: 220px;
    position: relative;
}
.meal-day-card.selected {
    border-color: #16A34A;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    box-shadow: 0 4px 12px rgba(22,163,74,0.18);
}

.meal-day-card-photo {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%; /* квадрат через padding-hack (надёжнее aspect-ratio) */
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.meal-day-card-qty {
    position: absolute;
    top: 6px; right: 6px;
    background: #16A34A;
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(22,163,74,0.35);
    border: 1.5px solid white;
}

.meal-day-card-info {
    padding: 8px 8px 4px;
    text-align: center;
}
.meal-day-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 30px;
}
.meal-day-card-price {
    font-size: 13px;
    font-weight: 800;
    color: #16A34A;
    margin-top: 2px;
}

/* Кнопка «+ В заказ» когда qty=0 */
.meal-card-add-btn {
    margin: 6px 8px 8px;
    padding: 8px;
    background: #f1f5f9;
    border: 1.5px dashed #94a3b8;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}
.meal-card-add-btn:active { transform: scale(0.96); }
.meal-card-add-btn:hover { background: #e2e8f0; border-color: #64748b; }

/* Стиппер когда qty>0 */
.meal-card-stepper {
    margin: 6px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #16A34A;
    border-radius: 999px;
    padding: 3px;
}
.meal-card-stepper-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #16A34A;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.meal-card-stepper-btn:active { transform: scale(0.9); }
.meal-card-stepper-num {
    color: white;
    font-size: 15px;
    font-weight: 800;
    flex: 1;
    text-align: center;
}

/* Старые .meal-chip.day-chip больше не используются в планировщике — отключаем */
.meal-plan-period .meal-chip.day-chip { display: none; }

/* Apply-All — оставляем чипы как были (там селект «применить ко всем дням»),
   но компактнее */
.apply-all-block .meal-chips-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}


/* ==================== STEP 2 — КОМПАКТНЫЙ СПИСОК ДНЕЙ ==================== */
.meal-plan-day-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.meal-plan-day-compact:active { transform: scale(0.98); }
.meal-plan-day-compact:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15,23,42,0.08);
}
.day-compact-left {
    text-align: center;
    background: linear-gradient(135deg, #FAFAF9 0%, #F5F5F4 100%);
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 54px;
}
.day-compact-num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}
.day-compact-mon {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: lowercase;
}
.day-compact-info {
    flex: 1;
    min-width: 0;
}
.day-compact-dow {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}
.day-card-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.day-card-summary-line {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
    border-left: 3px solid;
    padding-left: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.day-card-summary-line[data-period="breakfast"] { border-left-color: #F59E0B; }
.day-card-summary-line[data-period="lunch"] { border-left-color: #16A34A; }
.day-card-summary-line[data-period="dinner"] { border-left-color: #7C3AED; }
.day-card-summary-empty {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}
.day-compact-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.day-compact-arrow {
    font-size: 20px;
    color: #94a3b8;
    font-weight: 800;
}

/* ==================== DAY PICKER — карусель блюд для одного дня ==================== */
.day-picker-header {
    padding-bottom: 14px;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 14px;
    text-align: center;
}
.day-picker-date {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.day-picker-num {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.day-picker-mon {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
}
.day-picker-dow {
    font-size: 16px;
    color: #475569;
    font-weight: 700;
}

.day-picker-sections {
    max-height: 60vh;
    overflow-y: auto;
}

.day-picker-section {
    background: white;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1.5px solid #e2e8f0;
    border-left: 4px solid transparent;
}
.day-picker-section[data-period="breakfast"] { border-left-color: #F59E0B; }
.day-picker-section[data-period="lunch"] { border-left-color: #16A34A; }
.day-picker-section[data-period="dinner"] { border-left-color: #7C3AED; }
.day-picker-section.closed { opacity: 0.6; }

.day-picker-section-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.day-picker-period-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}
.day-picker-period-window {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}
.day-picker-unavail {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.day-picker-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
}
.day-picker-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.day-picker-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 10px;
    text-align: center;
}
.day-picker-slide.picked .day-picker-slide-name { color: #16A34A; }

.day-picker-slide-photo {
    width: 100%;
    height: 0;
    padding-top: 66%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    background-color: #e2e8f0;
    margin-bottom: 10px;
}
.day-picker-slide-collage {
    width: 100%;
    height: 0;
    padding-top: 66%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}
.day-picker-slide-collage > div {
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    /* Положение через absolute не нужно — grid-cells заполняют сами */
    position: absolute;
}
.day-picker-slide-collage > div:nth-child(1) { top: 0; left: 0; width: 50%; height: 50%; border-bottom: 1px solid white; border-right: 1px solid white; }
.day-picker-slide-collage > div:nth-child(2) { top: 0; right: 0; width: 50%; height: 50%; border-bottom: 1px solid white; border-left: 1px solid white; }
.day-picker-slide-collage > div:nth-child(3) { bottom: 0; left: 0; width: 50%; height: 50%; border-top: 1px solid white; border-right: 1px solid white; }
.day-picker-slide-collage > div:nth-child(4) { bottom: 0; right: 0; width: 50%; height: 50%; border-top: 1px solid white; border-left: 1px solid white; }

.day-picker-slide-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.day-picker-slide-price {
    font-size: 18px;
    font-weight: 800;
    color: #16A34A;
    margin-bottom: 10px;
}

.day-picker-add-btn,
.day-picker-change-btn {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.day-picker-add-btn:active,
.day-picker-change-btn:active { transform: scale(0.97); }
.day-picker-change-btn {
    background: white;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
    margin-top: 8px;
    padding: 8px;
    font-size: 12px;
}
.day-picker-constructor-picked-label {
    font-size: 11px;
    color: #16A34A;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.day-picker-arrow {
    position: absolute;
    top: 35%;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1;
}
.day-picker-arrow.left { left: 8px; }
.day-picker-arrow.right { right: 8px; }
.day-picker-arrow:active { transform: scale(0.92); }

.day-picker-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.day-picker-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.day-picker-dot.active {
    background: #0f172a;
    width: 24px;
    border-radius: 4px;
}


/* Сегодняшний день в Step 1, когда окно заказа уже закрылось */
.meal-day-pick.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0 !important;
}
.meal-day-pick-closed-pill {
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%);
    background: #94a3b8;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Подсказка "1 / 3" над каруселью + увеличенные стрелки */
.day-picker-arrow {
    width: 40px !important;
    height: 40px !important;
    font-size: 26px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
}
.day-picker-arrow:hover { background: rgba(0,0,0,0.85) !important; }


/* ==================== ПЛАНИРОВЩИК — ПОЛНОЭКРАННАЯ МОДАЛКА ==================== */
.modal-overlay.meal-fullscreen-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: white;
}
.modal-overlay.meal-fullscreen-modal .modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: env(safe-area-inset-top, 20px) 16px env(safe-area-inset-bottom, 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none !important;
    box-sizing: border-box;
}
/* Кнопка закрытия и итог снизу теперь видны над safe-area */
.modal-overlay.meal-fullscreen-modal .modal-btn {
    position: sticky;
    bottom: env(safe-area-inset-bottom, 0);
}
/* День-пикер: лимит на высоту секций больше не нужен */
.modal-overlay.meal-fullscreen-modal .day-picker-sections {
    max-height: none !important;
    overflow-y: visible !important;
}
.modal-overlay.meal-fullscreen-modal .meal-plan-days {
    max-height: none !important;
    overflow-y: visible !important;
}

/* fallback для устройств без dvh */
@supports not (height: 100dvh) {
    .modal-overlay.meal-fullscreen-modal .modal {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh;
    }
}

/* ==================== ИСПРАВЛЕНИЯ ПОСЛЕ АУДИТА ==================== */

/* 1) Сетка дат: адаптивная, помещается на любой ширине без обрезок */
.modal-overlay.meal-fullscreen-modal .meal-days-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 4px !important;
}
.modal-overlay.meal-fullscreen-modal .meal-day-pick {
    padding: 4px 2px !important;
    aspect-ratio: 1 / 1.25 !important;
}
.modal-overlay.meal-fullscreen-modal .meal-day-pick-num {
    font-size: 18px !important;
}
.modal-overlay.meal-fullscreen-modal .meal-day-pick-dow {
    font-size: 9px !important;
}
.modal-overlay.meal-fullscreen-modal .meal-day-pick-mon {
    font-size: 8px !important;
}
.modal-overlay.meal-fullscreen-modal .meal-day-pick-today-pill,
.modal-overlay.meal-fullscreen-modal .meal-day-pick-closed-pill {
    font-size: 7px !important;
    padding: 1px 4px !important;
}

/* 2) Дубль цены: бейдж на фото в карточке завтрака показываем только если место позволяет —
       прячем его, чтобы оставить одну цену внизу карточки */
.meal-card-photo-badge { display: none; }

/* 3) Hero-плейсхолдер для конструктора (вместо коллажа 2×2) */
.day-picker-slide-hero {
    width: 100%;
    height: 0;
    padding-top: 66%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    background-color: #f1f5f9;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.day-picker-slide-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0.65) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 12px;
    gap: 6px;
}
.day-picker-slide-hero[data-period="lunch"] .day-picker-slide-hero-overlay {
    background: linear-gradient(135deg, rgba(22,163,74,0.35) 0%, rgba(22,163,74,0.65) 100%);
}
.day-picker-slide-hero[data-period="dinner"] .day-picker-slide-hero-overlay {
    background: linear-gradient(135deg, rgba(124,58,237,0.4) 0%, rgba(124,58,237,0.7) 100%);
}
.day-picker-slide-hero-icon {
    font-size: 42px;
    line-height: 1;
}
.day-picker-slide-hero-text {
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}


/* === Ненавязчивый баннер регистрации (вместо блокирующей модалки) === */
.login-banner {
    position: fixed;
    left: 12px; right: 12px;
    top: 12px;
    z-index: 600;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #F59E0B;
    border-radius: 14px;
    padding: 10px 12px 10px 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.15);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
}
.login-banner.show { transform: translateY(0); opacity: 1; }
.login-banner-text {
    flex: 1; min-width: 0;
    font-size: 13px;
    color: #78350F;
    line-height: 1.35;
}
.login-banner-text strong { color: #451A03; font-weight: 800; }
.login-banner-cta {
    background: #0f172a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.login-banner-cta:active { transform: scale(0.95); }
.login-banner-close {
    background: transparent;
    border: none;
    color: #78350F;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    flex-shrink: 0;
}
.login-banner-close:active { opacity: 0.6; }
@media (max-width: 380px) {
    .login-banner-text { font-size: 12px; }
}

/* === Cross-sell плашка снизу === */
.cross-sell-bar {
    position: fixed;
    left: 10px; right: 10px;
    bottom: 70px; /* над bottom-nav */
    z-index: 500;
    background: white;
    border-radius: 16px;
    box-shadow: 0 -8px 30px rgba(15,23,42,0.25);
    border: 1.5px solid #e2e8f0;
    padding: 12px 12px 10px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
}
.cross-sell-bar.show { transform: translateY(0); opacity: 1; }
.cross-sell-title {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.cross-sell-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.cross-sell-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 6px 6px;
    text-align: center;
    position: relative;
}
.cross-sell-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 4px;
}
.cross-sell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cross-sell-emoji { font-size: 32px; }
.cross-sell-name {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cross-sell-price {
    font-size: 12px;
    font-weight: 800;
    color: #16A34A;
    margin: 2px 0 4px;
}
.cross-sell-add {
    width: 100%;
    padding: 5px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}
.cross-sell-add:active { transform: scale(0.95); }
.cross-sell-close {
    position: absolute;
    top: 4px; right: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}
.cross-sell-close:active { color: #475569; }

/* === Soft-prompt push-уведомлений === */
.push-prompt {
    position: fixed;
    left: 16px; right: 16px;
    bottom: 80px;
    z-index: 550;
    background: white;
    border: 1.5px solid #7C3AED;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex; gap: 12px; align-items: flex-start;
    box-shadow: 0 8px 32px rgba(124,58,237,0.25);
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}
.push-prompt.show { transform: translateY(0); opacity: 1; }
.push-prompt-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.push-prompt-body { flex: 1; min-width: 0; }
.push-prompt-title {
    font-size: 15px; font-weight: 800; color: #0f172a;
    margin-bottom: 4px;
}
.push-prompt-text {
    font-size: 12px; color: #475569; line-height: 1.4;
    margin-bottom: 10px;
}
.push-prompt-actions { display: flex; gap: 8px; }
.push-prompt-no, .push-prompt-yes {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
}
.push-prompt-no {
    background: #f1f5f9; color: #64748b;
}
.push-prompt-yes {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: white;
}
.push-prompt-yes:active, .push-prompt-no:active { transform: scale(0.97); }

/* Комплексное меню — только СБП, плашка вместо переключателя */
.meal-pay-only-sbp {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 2px solid #16A34A;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(22,163,74,0.15);
}
.meal-pay-only-sbp-icon {
    font-size: 28px;
    background: white;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.meal-pay-only-sbp-text { flex: 1; min-width: 0; }
.meal-pay-only-sbp-title {
    font-size: 15px; font-weight: 800; color: #14532D;
}
.meal-pay-only-sbp-sub {
    font-size: 11px; color: #166534; margin-top: 2px; line-height: 1.4;
}
.meal-pay-only-sbp-check {
    font-size: 20px; font-weight: 800; color: white;
    background: #16A34A;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(22,163,74,0.4);
}

/* === Несколько составов конструктора (мультивыбор по семье) === */
.day-picker-constructor-records {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.constructor-record {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}
.constructor-record-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.constructor-record-num {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 999px;
}
.constructor-record-del {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.constructor-record-del:active { color: #dc2626; }
.constructor-record-comp {
    font-size: 12px;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
}
.constructor-record-bottom {
    display: flex; align-items: center; gap: 8px;
}
.constructor-record-bottom .meal-card-stepper { flex: 1; min-width: 100px; }
.day-picker-add-another {
    width: 100%;
    background: transparent;
    border: 1.5px dashed #94a3b8;
    color: #475569;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.day-picker-add-another:hover { border-color: #475569; color: #0f172a; }
.day-picker-add-another:active { transform: scale(0.98); }

/* === Чаевые повару === */
.tip-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FCD34D;
    border-radius: 14px;
    padding: 14px;
    margin: 14px 0;
    box-shadow: 0 2px 8px rgba(245,158,11,0.12);
}
.tip-icon {
    font-size: 32px;
    background: white;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tip-body { flex: 1; min-width: 0; }
.tip-title {
    font-size: 14px;
    font-weight: 800;
    color: #92400E;
}
.tip-sub {
    font-size: 11px;
    color: #B45309;
    margin: 2px 0 10px;
    line-height: 1.4;
}
.tip-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tip-preset {
    padding: 8px 14px;
    border: 1.5px solid #F59E0B;
    background: white;
    color: #92400E;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}
.tip-preset:active { transform: scale(0.95); }
.tip-preset.selected {
    background: #F59E0B;
    color: white;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}
.tip-current {
    margin-top: 8px;
    font-size: 12px;
    color: #92400E;
    font-weight: 600;
}
.tip-clear {
    color: #92400E;
    text-decoration: underline;
    margin-left: 4px;
}
