/* Camada Pizzaria Roma sobre style.css + polish.css (base herdada da Best Burger). */
:root { --font-geist-sans: "Geist"; --font-geist-mono: "Geist Mono"; --green: #1f8a3b; --cheese: #ffd98a; }
[hidden] { display: none !important; }

/* logo tem fundo preto: recorta em círculo */
.brand-logo, footer img { border-radius: 50%; object-fit: cover; aspect-ratio: 1; height: auto; }
.brand-logo { width: 128px; outline: 1px solid #ffffff1a; outline-offset: -1px; }
footer img { width: 140px; }

/* ---------- hero: a foto tem fundo preto, então ela "sai" do fundo da página ---------- */
.hero { background: #000; min-height: min(900px, 100svh); }
.hero-photo {
  left: auto; right: 0; width: min(58%, 760px); object-position: center 62%;
  -webkit-mask-image: linear-gradient(90deg, #0000 0, #000 35%); mask-image: linear-gradient(90deg, #0000 0, #000 35%);
}
.hero-shade {
  background:
    linear-gradient(#0000 70%, #000 100%);
}
.hero h1 { text-transform: none; }
.hero h1 .script {
  font-family: "Pacifico", cursive; font-weight: 400; letter-spacing: 0;
  color: var(--red-bright); display: inline-block; margin-top: .06em; padding-right: .1em;
}
.hero-copy { text-wrap: pretty; }
.hero-actions .icon { flex: none; }
.hero-facts {
  display: flex; gap: 0; margin: 28px 0 0; padding: 0; list-style: none;
  border-top: 1px solid #ffffff1f; max-width: 520px;
}
.hero-facts li { flex: 1; display: grid; gap: 2px; padding: 14px 14px 0 0; }
.hero-facts li + li { padding-left: 14px; border-left: 1px solid #ffffff1f; }
.hero-facts b { font-size: 14px; font-weight: 900; color: var(--cheese); }
.hero-facts span { font-size: 12px; color: #ffffffa6; }

/* celular: foto em cima, texto embaixo — nada cobre a pizza */
@media (width <= 760px) {
  .hero { min-height: 0; }
  .brand-logo { width: 104px; }
  .hero-photo { width: 100%; height: 56svh; min-height: 380px; object-position: center 70%; -webkit-mask-image: none; mask-image: none; }
  .hero-shade { bottom: auto; height: max(56svh, 380px); background: linear-gradient(#0000 0, #0000 28svh, #000 100%); }
  .hero-content { margin-top: max(36svh, 250px); margin-bottom: 96px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero h1 br { display: none; }
  .hero h1 .script { margin-left: .12em; }
  .hero-copy { margin-block: 12px 18px; }
  .hero-facts { margin-top: 22px; }
  .hero-facts li { padding-right: 8px; }
  .hero-facts li + li { padding-left: 10px; }
  .hero-facts b { font-size: 13px; }
  .hero-facts span { font-size: 11px; }
}

/* faixa com as cores da Itália */
.trust-strip { box-shadow: inset 0 -4px 0 var(--green); }

/* ---------- botões de tamanho P/M/G ---------- */
.size-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.size-buy button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 4px;
  color: #fff; background: #ffffff0f; border: 1px solid #ffffff2e; border-radius: 10px; cursor: pointer;
  transition-property: transform, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.size-buy button b { font-size: 15px; font-weight: 900; line-height: 1.1; }
.size-buy button span { background: none; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #ffffffc7; font-variant-numeric: tabular-nums; }
.size-buy button:active { transform: scale(.96); }
.size-buy button.added { background: var(--green); border-color: var(--green); }
.size-buy button:focus-visible { outline: 3px solid #ffdc64; outline-offset: 2px; }
@media (hover: hover) { .size-buy button:hover { background: var(--red); border-color: var(--red); } }

.menu-group { margin-bottom: 48px; scroll-margin-top: 80px; }
.food-card img { outline: 1px solid #ffffff1a; outline-offset: -1px; }

/* celular: card compacto estilo app de delivery — foto quadrada ao lado, tamanhos embaixo */
@media (width <= 560px) {
  .menu-list { gap: 12px; }
  .menu-card {
    display: grid; grid-template-columns: 88px 1fr; grid-template-areas: "img name" "img desc" "buy buy";
    column-gap: 14px; padding: 12px; border-radius: 16px;
  }
  .menu-card .food-card-body { display: contents; }
  .menu-card img { grid-area: img; width: 88px; height: 88px; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
  .menu-card .food-card-body h3 { grid-area: name; align-self: end; margin: 2px 0 4px; font-size: 16px; }
  .menu-card .food-card-body p { grid-area: desc; align-self: start; margin: 0; font-size: 13px; -webkit-line-clamp: 2; }
  .menu-card .size-buy { grid-area: buy; margin-top: 12px; }
  .size-buy button span { font-size: 11.5px; }
}

/* ---------- carrinho: alvos de toque de 44px ---------- */
.quantity button { width: 44px; height: 44px; font-size: 20px; touch-action: manipulation; }
.quantity span { min-width: 28px; font-size: 14px; }
.cart-lines p { font-size: 12px; }
.cart-line-extras li { font-size: 11px; }
.remove-line {
  grid-column: 1 / -1; justify-self: start; margin: -6px 0 0 -8px; padding: 10px 8px; min-height: 40px;
  background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  transition: color 150ms ease-out;
}
@media (hover: hover) { .remove-line:hover { color: var(--red); } }
@media (width <= 760px) {
  .cart-lines article { row-gap: 6px; }
  .cart-lines > article > strong { grid-row: 2; grid-column: 2; text-align: right; }
  .remove-line { grid-row: 2; grid-column: 1; margin: 0 0 0 -8px; }
}

/* contador do carrinho "pula" quando entra item */
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
[data-count].bump { animation: bump 320ms ease-out; }
@media (prefers-reduced-motion: reduce) { [data-count].bump { animation: none; } }

/* ---------- janela de sabor da bebida (usa a mesma casca do modal de adicionais) ---------- */
.flavor-options { display: grid; gap: 8px; margin-top: 18px; }
.flavor-options button {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  font-size: 16px; font-weight: 800; text-align: left;
  transition-property: transform, border-color, background-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.flavor-options button span { color: var(--red); font-size: 22px; font-weight: 400; }
.flavor-options button:active { transform: scale(.98); }
.flavor-options button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (hover: hover) { .flavor-options button:hover { border-color: var(--red); background: #d919200a; } }

/* ---------- notificação "Adicionado ao carrinho" ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 28px; width: min(420px, 100% - 20px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  color: #fff; background: #151212; border: 1px solid #ffffff26; border-radius: 16px;
  box-shadow: 0 1px 2px #0006, 0 16px 40px #0000008c;
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity 150ms ease-in, transform 150ms ease-in, visibility 0s linear 150ms; /* saída curta */
}
.toast.show {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 220ms ease-out, transform 220ms ease-out, visibility 0s;
}
.toast-check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); }
.toast-check .icon { width: 20px; height: 20px; color: #fff; stroke-width: 2.6px; }
.toast b { display: block; font-size: 14px; font-weight: 900; white-space: nowrap; }
.toast small { display: block; color: #ffffffb3; font-size: 12px; line-height: 1.35; }
.toast > div { min-width: 0; }
.toast button {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: transform 150ms ease-out;
}
.toast button:active { transform: scale(.96); }
.toast button:focus-visible { outline: 3px solid #ffdc64; outline-offset: 2px; }
/* celular: acima da barra de ações fixa */
@media (width <= 760px) {
  .toast { bottom: 92px; gap: 10px; }
  .toast b { font-size: 13px; }
  .toast button { padding: 0 12px; font-size: 12px; }
}
