:root {
    --primary: #1a5f7a;
    --primary-dark: #134a61;
    --accent: #57c5b6;
    --bg: #f8fafb;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body.menu-app {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 2rem;
}

.menu-header {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    overflow: hidden;
}

.menu-header__cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.menu-header__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1rem 2rem;
    max-width: 640px;
    margin: 0 auto;
}

.menu-header__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
}

.menu-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.menu-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.menu-lang {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.menu-lang a {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
}

.menu-lang a.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
}

.menu-container {
    max-width: 640px;
    margin: -1.25rem auto 0;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.menu-events {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1rem;
}

.menu-events h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--primary);
}

.event-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.event-card:last-child { border-bottom: none; }

.event-card img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-card h3 {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
}

.event-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.category-section {
    margin-bottom: 1.25rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--accent);
}

.product-card {
    display: flex;
    gap: 0.85rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.product-card.unavailable {
    opacity: 0.65;
}

.product-card__img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

.product-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--muted);
}

.product-card__body { flex: 1; min-width: 0; }

.product-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.product-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-card__price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-size: 0.95rem;
}

.product-card__desc {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.45rem;
}

.product-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #e0f2f1;
    color: #0d5c54;
}

.badge-unavailable {
    display: inline-block;
    font-size: 0.7rem;
    color: #b45309;
    background: #fef3c7;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-top: 0.35rem;
}

/* Home - menu picker */
.home-hero {
    text-align: center;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.home-hero img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.menu-picker {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem;
}

.menu-picker-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.15s;
}

.menu-picker-card:active { transform: scale(0.98); }

.menu-picker-card__img {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--border);
}

.menu-picker-card__body { padding: 1rem; }

.menu-picker-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: var(--primary);
}

.menu-picker-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Chef widget */
.chef-widget {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem 0.6rem 0.35rem 0.35rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
}

.chef-widget__photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--accent);
}

.chef-widget__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: #fff;
}

.chef-widget__text {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text);
    max-width: 180px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card.js-product-card {
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

.product-card.js-product-card:active {
    transform: scale(0.99);
}

/* Modals */
body.menu-modal-open {
    overflow: hidden;
}

.menu-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.menu-modal[hidden] {
    display: none !important;
}

.menu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.menu-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--card);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
    animation: menuModalSlide 0.25s ease;
}

.menu-modal__dialog--chef {
    padding-bottom: 1.5rem;
}

@keyframes menuModalSlide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.menu-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.menu-modal__img-wrap {
    width: 100%;
    background: var(--border);
}

.menu-modal__img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.menu-modal__img--empty {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--muted);
}

.menu-modal__body {
    padding: 1rem 1.1rem 1.5rem;
}

.menu-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.menu-modal__head h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.menu-modal__price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-size: 1.05rem;
}

.menu-modal__desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--muted);
}

.menu-modal__section {
    margin-bottom: 1rem;
}

.menu-modal__section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
}

.menu-modal__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-modal__list li {
    padding: 0.35rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}

.menu-modal__list li:last-child {
    border-bottom: none;
}

.menu-modal__unavailable {
    color: #b45309;
    background: #fef3c7;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0;
}

.chef-modal__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.1rem 0.5rem;
}

.chef-modal__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.chef-modal__header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.chef-modal__message {
    padding: 0 1.1rem 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}
