/* ==========================================================
   DISH PREVIEW MODAL — Meal on the Way
   Opens when a dish image / eye button is clicked.
   Shared by: This Week's Menu (week-menu.show) + Full Menu (customer.vendor.show)
   ========================================================== */

.dish-modal {
    position: relative;
    font-family: var(--font-body, 'Instrument Sans', sans-serif);
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-height: 90vh;
}

.dish-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    color: var(--motw-red, #C42127);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, transform 0.15s ease;
}

.dish-modal-close:hover {
    background: #fff;
    transform: scale(1.06);
}

.dish-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Image — square on the right, centered inside a full-height cream column so it always
   stays a clean square regardless of how tall the text column is. Cream backdrop also keeps
   transparent PNGs clean (no checkerboard). */
.dish-modal-img {
    order: 2;
    flex-shrink: 0;
    width: clamp(220px, 42%, 320px);
    align-self: stretch;
    background: var(--motw-cream, #FCEEE0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dish-modal-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.dish-modal-body {
    padding: 1.1rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.dish-modal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.dish-modal-title {
    font-family: var(--font-heading, 'Sailor', sans-serif);
    text-transform: uppercase;
    color: var(--motw-red, #C42127);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin: 0;
}

.dish-modal-price {
    font-family: var(--font-heading, 'Sailor', sans-serif);
    color: var(--motw-green-dark, #5B8E2A);
    font-size: 1.6rem;
    white-space: nowrap;
}

.dish-modal-desc {
    color: #6B5448;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

/* Macros */
.dish-macros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dish-macro {
    background: var(--motw-cream, #FCEEE0);
    border-radius: 12px;
    padding: 0.6rem 0.4rem;
    text-align: center;
}

.dish-macro-value {
    font-family: var(--font-heading, 'Sailor', sans-serif);
    color: var(--motw-red, #C42127);
    font-size: 1.15rem;
    line-height: 1;
}

.dish-macro-label {
    color: #8A7A6E;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.35rem;
    font-weight: 600;
}

/* Tags */
.dish-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.dish-tag {
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.dish-tag--cat {
    background: #FDEBD9;
    color: var(--motw-orange-dark, #E08A1B);
}

.dish-tag--diet {
    background: #E7F2DA;
    color: var(--motw-green-dark, #5B8E2A);
}

/* ── MOBILE — stack: square image on top, text below ── */
@media (max-width: 640px) {
    .dish-modal {
        flex-direction: column;
        max-height: 92vh;
    }
    .dish-modal-img {
        order: -1;
        align-self: auto;
        width: 100%;
    }
}
