/* ── JustOrder Menu Plugin ───────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500&display=swap');

:root {
    --jo-bg:           #ffffff;
    --jo-text:         #1a1a1a;
    --jo-text-muted:   #6b6b6b;
    --jo-heading-font: 'Playfair Display', Georgia, serif;
    --jo-body-font:    'Inter', system-ui, sans-serif;
    --jo-border:       #e0e0e0;
    --jo-veg-color:    #3a7d44;
    --jo-price-color:  #1a1a1a;
    --jo-label-color:  #9a9a9a;
    --jo-gap:          2rem;
}

.jo-menu {
    font-family:     var(--jo-body-font);
    color:           var(--jo-text);
    background:      var(--jo-bg);
    max-width:       960px;
    margin:          0 auto;
    padding:         2rem 1.5rem;
}

/* ── Two-column grid ─────────────────────────────────────────────────────── */

.jo-menu-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   var(--jo-gap) 3rem;
    align-items:           start;
}

@media ( max-width: 640px ) {
    .jo-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Category block ──────────────────────────────────────────────────────── */

.jo-category {
    break-inside: avoid;
}

.jo-category-title {
    font-family:   var(--jo-heading-font);
    font-size:     1.35rem;
    font-weight:   700;
    color:         var(--jo-text);
    margin:        0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--jo-text);
    letter-spacing: 0.01em;
}

/* ── Item rows ───────────────────────────────────────────────────────────── */

.jo-items {
    display:        flex;
    flex-direction: column;
    gap:            0;
}

.jo-item {
    padding:       0.65rem 0;
    border-bottom: 1px solid var(--jo-border);
}

.jo-item:last-child {
    border-bottom: none;
}

.jo-item-header {
    display:         flex;
    justify-content: space-between;
    align-items:     baseline;
    gap:             0.75rem;
}

.jo-item-name {
    font-size:   0.95rem;
    font-weight: 500;
    color:       var(--jo-text);
    flex:        1;
    line-height: 1.3;
}

.jo-item-desc {
    font-size:   0.8rem;
    color:       var(--jo-text-muted);
    margin:      0.2rem 0 0 0;
    line-height: 1.5;
}

/* ── Vegetarian tag ──────────────────────────────────────────────────────── */

.jo-veg {
    display:          inline-block;
    font-size:        0.65rem;
    font-weight:      600;
    color:            var(--jo-veg-color);
    border:           1px solid var(--jo-veg-color);
    border-radius:    3px;
    padding:          0 0.3em;
    margin-left:      0.35em;
    vertical-align:   middle;
    letter-spacing:   0.05em;
    line-height:      1.6;
}

/* ── Prices ──────────────────────────────────────────────────────────────── */

.jo-price {
    font-size:    0.95rem;
    font-weight:  500;
    color:        var(--jo-price-color);
    white-space:  nowrap;
    flex-shrink:  0;
}

.jo-price--dual {
    font-size: 0.82rem;
}

.jo-price-amount {
    font-weight: 500;
}

.jo-price-label {
    font-size:    0.7rem;
    color:        var(--jo-label-color);
    margin-left:  0.15em;
    font-weight:  400;
}

.jo-price-sep {
    color: var(--jo-border);
}

/* ── Sized items ─────────────────────────────────────────────────────────── */

.jo-sizes {
    margin-top: 0.35rem;
    display:    flex;
    flex-wrap:  wrap;
    gap:        0.4rem 1.25rem;
}

.jo-size-row {
    display:     flex;
    align-items: baseline;
    gap:         0.4rem;
    font-size:   0.82rem;
}

.jo-size-label {
    color:       var(--jo-text-muted);
    font-weight: 400;
}

.jo-size-prices {
    font-weight: 500;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.jo-empty {
    text-align:  center;
    color:       var(--jo-text-muted);
    font-style:  italic;
    padding:     3rem 0;
}
