/* ==========================================================================
   components.css — um bloco por componente (mesma ordem da página).
   Celular primeiro: as regras sem @media valem para o celular;
   os @media (min-width) ajustam para tablet e computador.
   ========================================================================== */

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(16, 13, 11, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(239, 154, 60, 0.28);
}
.brand__name em { font-style: italic; font-weight: 400; color: var(--accent); }

.header__nav { display: none; }

.cart-btn {
  position: relative; margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.9375rem;
  transition: background-color 0.2s;
}
.cart-btn:hover { background: var(--accent-hover); }
.cart-btn__label { display: none; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--text); color: var(--accent-ink);
  border: 2px solid var(--bg);
  font-size: 0.6875rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cart-btn__count.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

@media (min-width: 640px) {
  .cart-btn { width: auto; height: 44px; padding: 0 18px 0 16px; }
  .cart-btn__label { display: inline; }
  .cart-btn__count {
    position: static; border: 0;
    background: var(--accent-ink); color: var(--accent);
  }
}
@media (min-width: 900px) {
  .header__nav { display: flex; gap: 4px; margin-left: auto; }
  .header__nav a {
    padding: 8px 14px; border-radius: 999px;
    font-size: 0.9375rem; font-weight: 500; color: var(--text-2);
    transition: color 0.2s, background-color 0.2s;
  }
  .header__nav a:hover { color: var(--text); background: var(--surface); }
  .cart-btn { margin-left: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, calc(88svh - var(--header-h)), 680px);
  display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--surface); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 13, 11, 0.25) 0%, rgba(16, 13, 11, 0.5) 35%, rgba(16, 13, 11, 0.9) 72%, var(--bg) 100%);
}
.hero__content { padding-block: 56px 40px; }
.hero .eyebrow { letter-spacing: 0.14em; line-height: 1.7; }
.hero__copy { max-width: 600px; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(3.25rem, 14vw, 6rem);
  font-weight: 600; line-height: 0.95; letter-spacing: -0.03em;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__lead { margin-top: 18px; max-width: 46ch; font-size: 1.0625rem; color: var(--text-2); }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  list-style: none; margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 0.875rem; color: var(--text-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--accent); }

@media (min-width: 1024px) {
  .hero { min-height: clamp(560px, calc(86vh - var(--header-h)), 720px); align-items: center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(16, 13, 11, 0.95) 0%, rgba(16, 13, 11, 0.82) 34%, rgba(16, 13, 11, 0.3) 66%, rgba(16, 13, 11, 0.12) 100%),
      linear-gradient(180deg, transparent 72%, var(--bg) 100%);
  }
  .hero__content { padding-block: 80px; }
  .hero__lead { font-size: 1.125rem; }
}

/* ---------- Barra de categorias ---------- */
.catnav {
  position: sticky; top: var(--header-h); z-index: 30;
  height: var(--catnav-h);
  background: rgba(16, 13, 11, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.catnav__track {
  position: relative;
  height: 100%;
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* alinha com o conteúdo da página em telas largas */
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.catnav__track::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 40px; padding: 0 18px;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.875rem; font-weight: 600;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-current='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Busca ---------- */
.menu { padding-block: 28px 80px; }
.search { position: relative; }
.search__input {
  width: 100%; height: 54px;
  padding: 0 52px 0 52px;
  border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 16px; /* 16px evita zoom no iPhone */
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.search__input::placeholder { color: var(--muted); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input:hover { border-color: var(--line-strong); }
.search__input:focus { outline: none; border-color: rgba(239, 154, 60, 0.6); box-shadow: 0 0 0 4px rgba(239, 154, 60, 0.12); }
.search__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  display: flex; color: var(--muted); pointer-events: none;
}
.search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-2);
}
.search__clear:hover { color: var(--text); background: var(--surface-2); }
.menu__results { margin-top: 16px; font-size: 0.9375rem; color: var(--text-2); }

/* ---------- Seções do cardápio ---------- */
.menu-section { margin-top: 56px; }
.search + .menu__results[hidden] + .menu-section { margin-top: 40px; }
.menu-section--featured[hidden] + .menu-section { margin-top: 32px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(1.75rem, 5vw, 2.375rem); }
.section-head .eyebrow + h2 { margin-top: 8px; }
.section-head p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.section-head__count { flex: none; padding-bottom: 4px; font-size: 0.8125rem; color: var(--muted); }

@media (min-width: 1024px) {
  .menu { padding-block: 40px 104px; }
  .menu-section { margin-top: 72px; }
  .section-head { margin-bottom: 28px; }
}

/* Etiqueta sobre a foto ("Mais pedido", "Novo"...) */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px;
  border-radius: 999px;
  background: rgba(16, 13, 11, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 236, 214, 0.14);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text);
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Botão "+" (adicionar) */
.add-btn {
  position: relative; flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  transition: background-color 0.2s, transform 0.15s;
}
.add-btn:hover { background: var(--accent-hover); }
.add-btn:active { transform: scale(0.92); }

/* o card inteiro abre a janela do produto */
.card, .feature { cursor: pointer; }

/* ---------- Destaques (cards grandes) ---------- */
.feature-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.feature-rail::-webkit-scrollbar { display: none; }
/* celular: card em pé, foto ocupando a parte de cima e texto embaixo */
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.feature__media { position: absolute; inset: 0 0 auto 0; height: 68%; z-index: -2; overflow: hidden; }
.feature__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feature::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 22, 18, 0) 38%, rgba(26, 22, 18, 0.88) 58%, var(--surface) 68%);
}
.feature__body { padding: 20px; }
.feature__cat { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.feature__title { margin-top: 6px; font-size: 1.5rem; }
.feature__desc {
  margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feature__foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature__foot .price { font-size: 1.125rem; }

/* tablet e computador: 2 colunas, foto à esquerda e texto à direita */
@media (min-width: 768px) {
  .feature-rail {
    grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .feature {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    aspect-ratio: auto; min-height: 280px;
  }
  .feature::after { display: none; }
  .feature__media { position: relative; inset: auto; height: auto; z-index: auto; grid-column: 1; grid-row: 1; }
  .feature__img { position: absolute; inset: 0; }
  .feature__body {
    grid-column: 2; grid-row: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 24px;
  }
  .feature__desc { -webkit-line-clamp: 3; }
  .feature__foot { margin-top: 20px; }
}
@media (min-width: 1024px) {
  .feature-rail { gap: 24px; }
  .feature { min-height: 300px; }
  .feature__body { padding: 32px 28px; }
  .feature__title { font-size: 1.875rem; }
  .feature__desc { font-size: 0.9375rem; }
  .feature__foot .price { font-size: 1.3125rem; }
}

/* ---------- Cards do cardápio ---------- */
.grid { display: grid; gap: 12px; }

/* celular: linha com texto à esquerda e foto quadrada à direita */
.card {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.card__media {
  position: relative; grid-column: 2; grid-row: 1; align-self: start;
  aspect-ratio: 1; overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card__body { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.card__title { font-size: 1.125rem; line-height: 1.2; }
.card__meta { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.card__desc {
  margin-top: 6px; font-size: 0.875rem; line-height: 1.5; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__foot .price { font-size: 1.0625rem; }

/* etiqueta menor dentro da foto pequena */
.card .badge { top: 6px; left: 6px; height: 22px; padding: 0 8px; gap: 5px; font-size: 0.6875rem; }
.card .badge::before { width: 5px; height: 5px; }

/* tablet e computador: card em pé, foto grande em cima */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
  .card__media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; border-radius: 0; }
  .card__body { grid-column: 1; grid-row: 2; padding: 18px 20px 20px; }
  .card__title { font-size: 1.3125rem; }
  .card__foot { padding-top: 18px; }
  .card__foot .price { font-size: 1.1875rem; }
  .card .badge { top: 14px; left: 14px; height: 28px; padding: 0 11px; gap: 7px; font-size: 0.75rem; }
  .card .badge::before { width: 6px; height: 6px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); }
  .card:hover .card__img,
  .feature:hover .feature__img { transform: scale(1.04); }
}

/* Busca sem resultado */
.menu__empty {
  margin-top: 40px; padding: 48px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}
.menu__empty-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
}
.menu__empty h3 { margin-top: 18px; font-size: 1.5rem; }
.menu__empty p { margin-top: 8px; max-width: 38ch; color: var(--text-2); }
.menu__empty .btn { margin-top: 22px; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
}
.footer__grid { display: grid; gap: 40px; }
.footer__about { margin-top: 16px; max-width: 38ch; font-size: 0.9375rem; color: var(--muted); }
.footer h3 {
  margin-bottom: 16px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
}
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.7; color: var(--text-2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 0.875rem; font-weight: 700; color: var(--accent);
}
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform 0.2s; }

.hours { display: grid; gap: 8px; font-size: 0.9375rem; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.hours__row dt { display: inline-flex; align-items: center; gap: 8px; }
.hours__row dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.hours__row.is-today { color: var(--text); font-weight: 700; }
.today-tag {
  padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
}

.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.contact-list a > .icon {
  flex: none; width: 40px; height: 40px; padding: 10px;
  border-radius: 50%; background: var(--surface); color: var(--accent);
}
.contact-list small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); line-height: 1.3; }

.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.8125rem; color: var(--muted);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
}
@media (min-width: 1024px) {
  .footer { padding-block: 72px 32px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.15fr 1fr; gap: 56px; }
}

/* ---------- Carrinho (painel) ---------- */
.drawer {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: none;
  height: auto; max-height: 88dvh;
  margin: 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-deep); color: var(--text);
  overflow: hidden;
}
.drawer[open] { display: flex; animation: sheet-up 0.32s var(--ease); }
.drawer::backdrop { background: rgba(5, 4, 3, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer__panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 1.625rem; }
.drawer__sub { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.drawer__foot {
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.lines { list-style: none; }
.line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; }
.line__img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface); }
.line__name { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.line__opts, .line__obs { margin-top: 3px; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.line__obs { font-style: italic; }
.line__info .price { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--text-2); }

.stepper {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 2px;
  border-radius: 999px; border: 1px solid var(--line-strong);
}
.stepper button {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.stepper button:hover { color: var(--text); background: var(--surface-2); }
.stepper button[aria-disabled='true'] { opacity: 0.3; cursor: default; background: none; }
.stepper__n { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--lg { height: 52px; padding: 0 4px; }
.stepper--lg button { width: 42px; height: 42px; }
.stepper--lg .stepper__n { min-width: 26px; font-size: 1.0625rem; }

.sum-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 1rem; font-weight: 600; }
.sum-row .price { font-size: 1.375rem; }
.drawer__foot .btn { margin-top: 16px; }

.drawer__empty { padding: 48px 8px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.drawer__empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
}
.drawer__empty h3 { margin-top: 18px; font-size: 1.375rem; }
.drawer__empty p { margin-top: 8px; max-width: 30ch; color: var(--text-2); font-size: 0.9375rem; }
.drawer__empty .btn { margin-top: 22px; }

@media (min-width: 640px) {
  .drawer {
    inset: 0 0 0 auto;
    width: 420px; height: 100dvh; max-height: none;
    border-radius: 0; border-top: 0; border-left: 1px solid var(--line);
  }
  .drawer[open] { animation-name: slide-in; }
  .drawer__head { padding: 26px 24px 20px; }
  .drawer__body { padding: 4px 24px; }
  .drawer__foot { padding: 20px 24px 24px; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

/* ---------- Janela do produto ---------- */
/* celular: gaveta que sobe, com a foto rolando junto com as opções */
.psheet {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: none;
  height: auto; max-height: 94dvh;
  margin: 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--bg-deep); color: var(--text);
  overflow: hidden;
}
.psheet[open] { display: flex; animation: sheet-up 0.32s var(--ease); }
.psheet::backdrop { background: rgba(5, 4, 3, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.psheet__panel { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* barra do topo: transparente sobre a foto; sólida quando a pessoa rola */
.psheet__bar {
  position: sticky; top: 0; z-index: 2;
  height: 64px; margin-bottom: -64px; /* não empurra a foto para baixo */
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid transparent;
  pointer-events: none; /* transparente: não atrapalha o toque na foto */
  transition: background-color 0.2s, border-color 0.2s;
}
.psheet__bar.is-stuck {
  background: rgba(11, 9, 7, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  pointer-events: auto;
}
.psheet__bar-title {
  flex: 1; min-width: 0;
  font-weight: 700; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.psheet__bar.is-stuck .psheet__bar-title { opacity: 1; transform: none; }
.psheet__close {
  flex: none; margin-left: auto; pointer-events: auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 13, 11, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 236, 214, 0.16);
  color: var(--text);
  transition: background-color 0.2s;
}
.psheet__close:hover { background: rgba(16, 13, 11, 0.9); }
.psheet__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.psheet__scroll, .psheet__body, .drawer__body { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.psheet__media { aspect-ratio: 4 / 3; max-height: 40dvh; width: 100%; overflow: hidden; background: var(--surface); }
.psheet__media img { width: 100%; height: 100%; object-fit: cover; }
.psheet__body { padding: 22px 20px 28px; }
.psheet__title { margin-top: 8px; font-size: 1.875rem; }
.psheet__meta { margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.psheet__desc { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
.psheet__price { margin-top: 14px; font-size: 1.375rem; }

.opt-group { margin-top: 28px; }
.opt-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.opt-group__head h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.opt-group__head p { margin-top: 1px; font-size: 0.8125rem; color: var(--muted); }
.opt-tag {
  flex: none; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.opt-list { list-style: none; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 10px 2px 10px 14px;
  border-bottom: 1px solid var(--line);
}
.opt-list > li:last-child > .opt-row,
.opt-list > .opt-row:last-child { border-bottom: 0; }
.opt-row__text { display: flex; flex-direction: column; min-width: 0; }
.opt-row__name { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); transition: color 0.2s; }
.opt-row__price { margin-top: 1px; font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.opt-row.is-on .opt-row__name { color: var(--text); }
.opt-row.is-on .stepper { border-color: var(--accent); }
.opt-row.is-on .stepper__n { color: var(--accent); }
/* item marcado em "Retirar ingredientes" */
.opt-row.is-off .opt-row__name { color: var(--muted); text-decoration: line-through; }
.opt-row.is-off .opt-row__price { color: var(--muted); }

.opt-row--check { cursor: pointer; padding-right: 10px; }
.opt-row--check:has(.opt-check:checked) .opt-row__name { color: var(--text); }
.opt-check {
  -webkit-appearance: none; appearance: none;
  flex: none; width: 24px; height: 24px; margin: 0;
  border-radius: 7px; border: 1.5px solid var(--line-strong);
  background: transparent center / 16px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.opt-check:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1107' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.opt-obs {
  display: block; width: 100%; min-height: 92px; margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; /* 16px evita zoom no iPhone */
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.opt-obs::placeholder { color: var(--muted); }
.opt-obs:focus { outline: none; border-color: rgba(239, 154, 60, 0.6); box-shadow: 0 0 0 4px rgba(239, 154, 60, 0.12); }
.opt-obs__count { margin-top: 6px; text-align: right; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.psheet__foot {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.psheet__add { flex: 1; min-width: 0; justify-content: space-between; padding: 0 22px; }
.psheet__add .price__cur { color: inherit; opacity: 0.75; }

/* tablet: janela no centro, foto em cima */
@media (min-width: 768px) {
  .psheet {
    inset: 0; margin: auto;
    width: min(560px, calc(100% - 48px));
    max-height: min(88vh, 900px);
    border-radius: 24px; border: 1px solid var(--line-strong);
  }
  .psheet[open] { animation-name: pop; animation-duration: 0.26s; }
  .psheet__media { aspect-ratio: 16 / 10; max-height: none; }
  .psheet__body { padding: 26px 28px 30px; }
  .psheet__foot { padding: 16px 24px; }
}

/* computador: foto grande à esquerda, opções rolando à direita */
@media (min-width: 960px) {
  .psheet { width: min(980px, calc(100% - 64px)); height: min(660px, 88vh); max-height: none; }
  .psheet__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .psheet__scroll { display: contents; }
  .psheet__media { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
  .psheet__body { grid-column: 2; grid-row: 1; overflow-y: auto; overscroll-behavior: contain; padding: 64px 32px 32px; }
  .psheet__foot { grid-column: 2; grid-row: 2; padding: 16px 32px 20px; }
  /* a barra fica no alto da coluna da direita; a coluna rola por baixo dela */
  .psheet__bar {
    grid-column: 2; grid-row: 1; align-self: start;
    position: relative; margin: 0; padding: 0 16px 0 32px;
    background: var(--bg-deep); pointer-events: auto;
  }
}

/* ---------- Barra "Ver carrinho" (celular) ---------- */
.cartbar {
  position: fixed; z-index: 35;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  animation: rise 0.3s var(--ease);
}
.cartbar__btn {
  width: 100%; height: 58px; padding: 0 18px 0 12px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.cartbar__count {
  min-width: 34px; height: 34px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 10px; background: rgba(28, 17, 7, 0.14);
  font-variant-numeric: tabular-nums;
}
.cartbar__label { flex: 1; text-align: left; }
.cartbar__total .price__cur { color: inherit; opacity: 0.75; }
body.has-cartbar .footer { padding-bottom: 100px; }
@media (min-width: 768px) {
  .cartbar { display: none !important; }
  body.has-cartbar .footer { padding-bottom: 32px; }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Aviso rápido (toast) ---------- */
.toasts {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  pointer-events: none;
}
body.has-cartbar .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { body.has-cartbar .toasts { bottom: 28px; } }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 11px;
  border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--text-2); font-size: 0.875rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  animation: rise 0.25s var(--ease);
}
.toast strong { color: var(--text); }
.toast__icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; }
