@font-face {
  font-family: Chapa;
  src: url(assets/display.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cardapio;
  src: url(assets/body.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cardapio;
  src: url(assets/body-bold.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffaf5;
  --white: #fff;
  --ink: #231a17;
  --muted: #665951;
  --line: #ecdfd5;
  --red: #bc2421;
  --red-dark: #981716;
  --body: Cardapio, Arial, sans-serif;
  --display: Chapa, "Arial Narrow", Impact, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
p, h1, h2, h3, h4 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 9; background: white; padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { width: clamp(142px, 43vw, 184px); height: auto; }
.bag { display: flex; gap: 8px; align-items: center; min-height: 44px; background: transparent; border: 0; padding: 3px 0 3px 10px; font-size: .88rem; font-weight: 700; }
.bag span { min-width: 25px; min-height: 25px; display: grid; place-items: center; border-radius: 50px; background: #f8e8e2; color: var(--red-dark); padding: 1px 5px; }
.cover {
  position: relative;
  isolation: isolate;
  min-height: clamp(190px, 41vw, 369px);
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 15px;
  background: #21100d;
}
.cover img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 89%;
  height: 100%;
  object-position: 77% 55%;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #21100d 0%, #21100df5 21%, #21100db3 36%, #21100d4d 52%, transparent 67%);
}
.cover-title {
  width: max-content;
  max-width: 100%;
  padding: 15px clamp(16px, 4.8vw, 66px);
  color: #fff1df;
  font: 700 clamp(2.4rem, 9.3vw, 6.55rem)/.88 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px #1b0b08a6;
  -webkit-text-stroke: .009em currentColor;
}
.cover-title span { display: block; }
.cover-title span + span { margin-top: .085em; color: #ffac83; }
.store { padding: 17px 0 23px; display: flex; align-items: center; gap: 12px; }
.store-mark { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.store h2 { font-size: clamp(1.5rem, 5.1vw, 2.4rem); letter-spacing: -.055em; line-height: 1.1; }
.store p { margin-top: 4px; color: var(--muted); font-size: .8rem; }

.menu { scroll-margin-top: 12px; }
.menu-title { display: grid; gap: 12px; }
.menu-title h2, .category h3, .kitchen h2, .dialog-title h2 { letter-spacing: -.045em; line-height: 1.1; }
.menu-title h2 { font-size: clamp(1.6rem, 5.1vw, 2.45rem); }
.search { display: flex; position: relative; align-items: center; min-height: 46px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.search-icon { width: 13px; height: 13px; border: 1.8px solid var(--muted); border-radius: 100%; position: absolute; left: 15px; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: var(--muted); bottom: -2px; right: -4px; transform: rotate(45deg); }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; min-height: 46px; padding: 8px 12px 8px 40px; border-radius: inherit; }
.search input::placeholder { color: var(--muted); }
.categories {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  z-index: 2;
  top: 0;
  margin: 0 -4px;
  padding: 11px 4px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.categories::-webkit-scrollbar { display: none; }
.categories button { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--line); padding: 4px 12px; background: var(--white); color: var(--ink); border-radius: 9px; font-size: .8rem; font-weight: 700; }
.categories button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: white; }
.category { margin-block: 21px 28px; }
.category h3 { font-size: 1.25rem; margin: 0 0 11px; }
.product-grid { display: grid; gap: 10px; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(88px, 27vw, 118px);
  grid-template-rows: 1fr auto;
  column-gap: 12px;
  min-height: 131px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.product-copy { min-width: 0; padding: 2px 0 4px; }
.product h4 { font-size: 1rem; letter-spacing: -.028em; line-height: 1.18; }
.product p { margin-top: 6px; color: var(--muted); font-size: .79rem; line-height: 1.37; }
.product > img { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; background: #33211b; }
.product-bottom { grid-column: 1; align-self: end; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.price { color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.add { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: #faece7; color: var(--red-dark); font-size: 1.42rem; font-weight: 700; }
.add:hover, .add:active { background: var(--red); color: white; }
.empty { padding: 22px 0; color: var(--muted); }
.kitchen { margin-block: 38px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.kitchen img { width: 100%; height: auto; aspect-ratio: 2.1; }
.kitchen div { padding: 18px; }
.kitchen h2 { font-size: 1.45rem; }
.kitchen p { color: var(--muted); font-size: .89rem; margin-top: 6px; }
.store-location { text-decoration: underline; text-decoration-color: #b89989; text-underline-offset: 3px; }
.store-location:hover { color: var(--red-dark); }
.location {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  margin-block-start: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  scroll-margin-top: 12px;
}
.location-info { padding-inline: 5px; }
.location h2 { font-size: 1.35rem; letter-spacing: -.04em; line-height: 1.15; }
.location p { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.location-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--red-dark);
  font-size: .84rem;
  font-weight: 700;
}
.location-link:hover { text-decoration: underline; }
.location-map {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 9px;
  background: #f2ece5;
}
@media (min-width: 740px) {
  .location { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr); padding: 16px; }
  .location-info { padding-inline: 15px; }
}
.footer { margin-block: 24px 108px; display: flex; align-items: start; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
.footer a { color: var(--red-dark); font-weight: 700; white-space: nowrap; }

.cart-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 4; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #31130910; padding-bottom: env(safe-area-inset-bottom, 0px); }
.cart-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 67px; }
.cart-bar p { color: var(--muted); font-size: .76rem; }
.cart-bar strong { font-size: 1.02rem; }
.primary { min-height: 44px; padding: 8px 18px; background: var(--red); color: white; font-weight: 700; border: none; border-radius: 8px; }
.primary:hover { background: var(--red-dark); }
dialog { width: min(calc(100% - 20px), 520px); max-height: 85dvh; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #201106a1; }
.dialog-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.dialog-title h2 { font-size: 1.45rem; }
.close, .quantity button { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: #faece7; color: var(--red-dark); font-size: 1.3rem; }
.cart-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 8px; border-bottom: 1px solid var(--line); }
.cart-row p, .demo-note { color: var(--muted); font-size: .82rem; }
.quantity { display: flex; align-items: center; gap: 7px; }
.cart-total { display: flex; justify-content: space-between; padding: 15px 0 8px; font-weight: 700; }
@media (max-width: 359px) {
  .wrap { width: calc(100% - 24px); }
  .product { column-gap: 8px; }
}
@media (max-width: 600px) {
  dialog { position: fixed; margin: auto 0 0; width: 100%; max-width: none; inset-inline: 0; border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 740px) {
  .store { padding-block: 23px 32px; gap: 16px; }
  .store-mark { height: 61px; width: 61px; flex-basis: 61px; }
  .store p { font-size: .9rem; }
  .menu-title { grid-template-columns: 1fr minmax(280px, 360px); align-items: center; }
  .categories { padding-block: 14px; }
  .category { margin-block: 24px 35px; }
  .category h3 { font-size: 1.45rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .product { padding: 13px; min-height: 153px; }
  .product h4 { font-size: 1.08rem; }
  .product p { font-size: .86rem; }
  .kitchen { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .kitchen div { padding: 32px; }
  .kitchen h2 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
