/* Costaneiras — cardápio do salão (complementa pedidos.css) */
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.c-qr-btn { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.c-layout { max-width: 860px; padding-block: 30px 80px; }

.casa { margin-bottom: 44px; }
.casa > h2 { font-size: 27px; color: var(--brown-d); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--brown); }
.casa-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.casa-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.casa-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--brown); margin-bottom: 10px; }
.casa-card p { font-size: 15px; color: var(--muted); }
.casa-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.casa-card th, .casa-card td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--beige); }
.casa-card thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.casa-card tbody th { font-weight: 500; color: var(--muted); }
.casa-card td { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.casa-card td small { display: block; font-weight: 500; color: var(--muted); }
.casa-card tr:last-child > * { border-bottom: 0; }

.sizes.view span { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 6px 8px; border-radius: 12px; background: var(--beige); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sizes.view span b { font-size: 15px; color: var(--red); }

.qr-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(44, 24, 12, .6); }
.qr-card { width: min(380px, 100%); background: var(--white); border-radius: 20px; padding: 26px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.qr-card h2 { font-size: 24px; color: var(--brown-d); }
.qr-card p { font-size: 14px; color: var(--muted); }
.qr-img { width: 240px; max-width: 100%; aspect-ratio: 1; }
.qr-img svg { width: 100%; height: 100%; display: block; }
.qr-url { word-break: break-all; font-size: 12px !important; }

@media (max-width: 700px) { .casa-grid { grid-template-columns: 1fr; } .sizes.view span { flex: 1; } }
@media print {
  .p-top, .p-hero, .cats, .casa, .menu, .tricolor { display: none !important; }
  .qr-modal { position: static; background: none; }
  .qr-card button { display: none; }
}

.c-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.c-foot button { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }

/* Seções lado a lado */
.cats-in button { flex: none; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 700; color: var(--brown-d); white-space: nowrap; }
.cats-in button.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.groups-h { font-size: 27px; color: var(--brown-d); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--brown); }
.groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.group-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 130px; padding: 14px; border: 0; border-radius: 16px; background: var(--brown); color: #fff; text-align: left; }
.group-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.group-tile.has-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(44, 24, 12, .9), rgba(44, 24, 12, .15)); }
.group-tile b { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.group-tile span { font-size: 13px; opacity: .85; }
.group-tile:hover { filter: brightness(1.08); }
.c-back { margin-bottom: 18px; border: 0; background: none; padding: 6px 0; font-weight: 700; font-size: 15px; color: var(--brown); }
.c-back:hover { text-decoration: underline; }
@media (max-width: 700px) { .groups-grid { grid-template-columns: repeat(2, 1fr); } .group-tile { min-height: 110px; } .group-tile b { font-size: 18px; } }
.groups { margin-bottom: 40px; }
.sizes.view span em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brown-d); }

/* v31 — "Na casa" no topo com fotos passando ao fundo; seções em faixas compridas (como no delivery) */
.casa { margin-bottom: 34px; }
.casa-card.has-bg { position: relative; isolation: isolate; overflow: hidden; border: 0; background: var(--brown-d); color: #fff; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.casa-bg { position: absolute; inset: 0; z-index: -2; }
.casa-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 6s ease-out; }
.casa-bg img.on { opacity: 1; transform: scale(1); }
.casa-card.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(32, 18, 9, .92) 0%, rgba(32, 18, 9, .72) 55%, rgba(32, 18, 9, .35) 100%); }
.casa-card.has-bg h3 { color: #fff; font-size: 17px; }
.casa-card.has-bg p { color: #f3e6d2; }
.casa-card.has-bg table { color: #fff; }
.casa-card.has-bg th, .casa-card.has-bg td { border-bottom-color: rgba(255, 255, 255, .18); }
.casa-card.has-bg thead th, .casa-card.has-bg tbody th, .casa-card.has-bg td small { color: #ecdcc4; }
.casa-grid { grid-template-columns: 1.35fr 1fr; }
@media (prefers-reduced-motion: reduce) { .casa-bg img { transition: none; transform: none; } }

.groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group-tile { min-height: 0; height: 112px; justify-content: center; padding: 0 22px; }
.group-tile.has-img::after { background: linear-gradient(to right, rgba(44, 24, 12, .85), rgba(44, 24, 12, .4) 55%, rgba(44, 24, 12, .05)); }
.group-tile b { font-size: 27px; }
.group-tile span { font-size: 13.5px; }
.group-tile img { transition: transform .35s; }
.group-tile:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .groups-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .group-tile { height: 100px; }
  .group-tile b { font-size: 25px; }
  .casa-card.has-bg { min-height: 170px; }
  .casa-grid { grid-template-columns: minmax(0, 1fr); }
}

/* v32 — faixas das seções com várias fotos passando ao fundo */
.gt-imgs { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.group-tile .gt-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: auto; opacity: 0; transform: scale(1.05); transition: opacity 1.2s ease, transform 5s ease-out; }
.group-tile .gt-imgs img.on { opacity: 1; transform: scale(1); }
.group-tile:hover .gt-imgs img.on { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .group-tile .gt-imgs img { transition: none; transform: none; } }

/* v39 — abas dentro das seções com subdivisões (Pizzas: tradicionais / apimentadas / doces) */
.sub-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 22px; padding: 4px; border-radius: 999px; background: var(--beige); scrollbar-width: none; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs button { flex: 1 0 auto; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 15px; font-weight: 800; color: var(--brown-d); white-space: nowrap; cursor: pointer; }
.sub-tabs button small { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sub-tabs button[aria-selected="true"] { background: var(--brown); color: #fff; box-shadow: 0 2px 8px rgba(44, 24, 12, .2); }
.sub-tabs button[aria-selected="true"] small { color: #ecdcc4; }
@media (max-width: 560px) { .sub-tabs { border-radius: 16px; gap: 4px; } .sub-tabs button { flex: 1 1 auto; padding: 9px 10px; font-size: 14px; } .sub-tabs button small { margin-left: 2px; } }
@media (max-width: 360px) { .sub-tabs button { padding: 8px 8px; font-size: 12.5px; } .sub-tabs button small { font-size: 11px; } }

/* v45 — Pizzas: tamanhos e preços uma vez, no topo da lista de sabores */
.pz-head { display: grid; gap: 8px; margin: 12px 0 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); }
.pz-head p { font-weight: 800; color: var(--brown-d); font-size: 15px; }
.pz-head .sizes.view { display: flex; gap: 8px; }
.pz-head .sizes.view span { flex: 1; }
.pz-head small { font-size: 12.5px; color: var(--muted); }
.pz-head .sizes.view { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pz-head .sizes.view span { min-width: 0; padding: 10px 6px; font-size: 14px; font-weight: 700; color: var(--brown-d); white-space: nowrap; }
.pz-head .sizes.view span b { font-size: 18px; }
.pz-head .sizes.view span small { font-weight: 500; color: var(--muted); }
@media (min-width: 700px) { .pz-head .sizes.view { max-width: 520px; } }
