/* =========================================================
   Mr Ribs — Menu page
   ========================================================= */

.breadcrumb {
    max-width: var(--maxw); margin: 0 auto; padding: 8.5rem 1.5rem 0;
    font-size: .82rem; letter-spacing: .08em; color: var(--cream-dim);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { margin: 0 .5rem; opacity: .5; }
.breadcrumb strong { color: var(--cream); font-weight: 500; }

.menu-hero { text-align: center; padding: 2.5rem 1.5rem 1rem; }
.menu-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--cream); }
.menu-hero p { font-family: var(--f-serif); font-size: 1.2rem; color: var(--cream-dim); margin-top: .4rem; }

/* Category tabs */
.category-menu {
    max-width: var(--maxw); margin: 2rem auto; padding: 0 1.5rem;
    display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
}
.category-menu a {
    padding: .65rem 1.4rem; border: 1px solid var(--line); border-radius: 50px;
    font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--cream-dim);
    transition: all .3s;
}
.category-menu a:hover { border-color: var(--gold); color: var(--gold-soft); }
.category-menu a.active { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }

/* Dishes */
.container { max-width: var(--maxw); margin: 0 auto 4rem; padding: 0 1.5rem; }
.dishes-section { margin-bottom: 3.5rem; }
.dishes-section h2 {
    font-size: 1.7rem; color: var(--gold-soft); margin-bottom: 1.8rem;
    display: flex; align-items: center; gap: 1rem;
}
.dishes-section h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.dishes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.dish {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.2rem; border: 1px dashed rgba(255,255,255,.08);
    border-radius: 4px; transition: border-color .3s;
}
.dish:hover { border-color: var(--gold); }
.dish-name { font-family: var(--f-serif); font-size: 1.1rem; font-weight: 600; color: var(--cream); margin-bottom: .8rem; }
.dish-img { width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.dish-img img { max-width: 100%; max-height: 180px; object-fit: contain; }
.dish-img:empty { display: none; margin: 0; }
.dish-price { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.dish-description { font-size: .9rem; color: var(--cream-dim); margin-top: .25rem; max-width: 90%; }

.menu-note {
    text-align: center; color: var(--cream-dim); font-size: .85rem;
    letter-spacing: .12em; text-transform: uppercase; margin-top: 1rem;
}

.back-link { display: inline-flex; margin-top: 1rem; }

@media (max-width: 1024px) {
    .dishes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dishes-grid { grid-template-columns: 1fr; }
}

/* ── Migrado do <style> inline de menu.php ─────────────────────────── */
.subsection-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold, #c9a84c);
    margin: 2.5rem 0 1rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(201,168,76,.25);
}
/* Image placeholder */
.dish-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(201,168,76,.15);
    border-radius: 4px;
    margin-bottom: .8rem;
    font-size: 2.2rem;
    color: rgba(201,168,76,.25);
    transition: border-color .3s;
}
.dish:hover .dish-placeholder { border-color: rgba(201,168,76,.35); }
.dish-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: .8rem;
}
/* Info */
.dish-name {
    font-family: var(--f-serif, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream, #e8dcc8);
    line-height: 1.3;
    margin-bottom: .3rem;
}
.dish-name-en {
    display: block;
    font-size: .8rem;
    color: var(--gold, #c9a84c);
    font-style: italic;
    margin-bottom: .4rem;
}
.dish-desc {
    font-size: .82rem;
    color: rgba(232,220,200,.78);
    line-height: 1.5;
    margin-bottom: .3rem;
}
.dish-notes {
    display: block;
    font-size: .75rem;
    color: rgba(201,168,76,.8);
    font-style: italic;
    margin-bottom: .3rem;
}
.diet-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    margin-top: .2rem;
    margin-right: .3rem;
}
.dish-price {
    font-family: var(--f-display, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold, #c9a84c);
    margin-top: .6rem;
}
.category-menu a {
    border-color: rgba(201,168,76,.5) !important;
    color: #e8dcc8 !important;
    font-weight: 600 !important;
}
.category-menu a:hover {
    border-color: #c9a84c !important;
    color: #c9a84c !important;
    background: transparent !important;
}
.menu-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(232,220,200,.4);
    font-style: italic;
}

/* ── Migrado dos atributos style="" inline de menu.php ─────────────── */
.diet-badge-vegan       { background: #E8F5E9; color: #2E7D32; }
.diet-badge-vegetariano { background: #F1F8E9; color: #558B2F; }
.diet-badge-peixe       { background: #E1F5FE; color: #0277BD; }

.section-subtitle-en {
    font-size: .9rem;
    opacity: .6;
    margin-top: .3rem;
}

.dish-price-ask {
    font-size: .82rem;
    opacity: .5;
}

/* Cor de destaque por família — vinda da BD, aplicada via custom property
   (o valor em si é dinâmico, mas a propriedade CSS fica definida aqui). */
.category-menu a.active {
    background: var(--fam-color, var(--gold));
    border-color: var(--fam-color, var(--gold));
    color: #0f0f0f;
}
