/* Hallmark · shape: Poster store, a bill on the wall with the shelf as a price board · genre: playful · theme: Overprint (deal 2/3, seed cat-logo-adega-bar-c12a·58000a22·2026-11-28·r0) · job: buy · draw: manual
 * hero: Poster, the yellow bill on columns 1 to 8 with the live comanda crossing column 8 · nav: sticky bar, crown wordmark, three links and the comanda count · footer: a mast, the name across the width over the legal lines · imagery: none yet, the product built (the comanda) and type at scale · signature: the comanda slip that fills as you choose and leaves as the WhatsApp message · overprint: black stock, screen blend, pass 1 crown yellow, pass 2 bar red
 * axes: dark/grotesk-heavy/warm · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the user asked for animation so the press moves (lines rise, the slip drops, a stamp lands, rows reveal); each is one short transform and reduced motion turns it off */
/* Hallmark · brand: Castelo Beer from the marcas skill, black and crown yellow from the profile logo; the theme gives composition, type and the two-pass treatment only */
/* Hallmark · dismissed F4 · the hero's second action is a 2px outline on the yellow, not a fill; the comanda, the dock and the slip are one action shown in three places */
/* Hallmark · dismissed 25 · the bill text is one sentence in a numbered cell of a four-up row */
@import url("./tokens.css");
@import url("./base.css");

/* ---------------------------------------------------------------- base */
body { background: var(--color-paper); color: var(--color-ink); }
h1, h2, h3, h4 { font-weight: 900; font-stretch: var(--display-stretch); text-transform: uppercase; line-height: 1.02; }
h4 { margin: 0; font-family: var(--font-display); letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); padding: var(--space-sm) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; border: 0; border-radius: 0; padding: var(--space-sm) var(--space-lg);
  font: 600 var(--text-md)/1 var(--font-outlier); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear, transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--ghost { box-shadow: inset 0 0 0 2px var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-paper); }
.btn--ink { background: var(--color-on-pass); color: var(--color-accent); }
.btn--ink:hover { background: var(--color-paper-3); color: var(--color-ink); }
.btn--ghost-ink { box-shadow: inset 0 0 0 2px var(--color-on-pass); color: var(--color-on-pass); background: transparent; }
.btn--ghost-ink:hover { background: var(--color-on-pass); color: var(--color-accent); }
.pass-1 :focus-visible, .pass-2 :focus-visible { outline-color: var(--color-on-pass); }

.pass-1 { background: var(--color-accent); color: var(--color-accent-ink); mix-blend-mode: var(--blend); }
.pass-2 { background: var(--color-accent-2); color: var(--color-accent-2-ink); mix-blend-mode: var(--blend); }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--texture-opacity); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 200px; }

/* reveal: visible by default, hidden only once the script has said it runs */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__in { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-ink); }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.brand__name { font: 900 var(--text-lg)/1 var(--font-display); font-stretch: 140%; text-transform: uppercase; white-space: nowrap; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { font-weight: 600; text-decoration: none; padding-block: var(--space-xs); background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 2px no-repeat; transition: background-size var(--dur-short) var(--ease-out); }
.nav__links a:hover { background-size: 100% 2px; }
.nav__cart { gap: var(--space-sm); }
.nav__count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding-inline: var(--space-2xs); background: var(--color-on-pass); color: var(--color-accent); font: 900 var(--text-sm)/1 var(--font-display); }
.nav__count.bump { animation: bump var(--dur-long) var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; min-height: min(calc(100svh - var(--nav-h) - var(--space-xl) - var(--space-2xl)), 720px); }
.hero__poster { grid-column: 1 / 9; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: var(--space-lg); padding: var(--space-2xl) var(--space-4xl) var(--space-2xl) var(--space-2xl); }
.hero__title { font-size: min(4.8vw, 4.6rem); max-width: none; line-height: 1.02; color: var(--color-on-pass); }
.hero__title .line { display: block; overflow: clip; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__lede { font-size: var(--text-lead); line-height: 1.45; max-width: 38ch; color: var(--color-on-pass); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.js .hero__title .line > span { transform: translateY(108%); }
.js .is-ready .hero__title .line > span { transform: none; transition: transform 720ms var(--ease-out); }
.js .is-ready .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.js .is-ready .hero__title .line:nth-child(3) > span { transition-delay: 180ms; }

.slip {
  grid-column: 8 / 13; grid-row: 1; position: relative; z-index: var(--z-raised); justify-self: start; width: min(100%, 400px);
  background: var(--color-sheet); color: var(--color-sheet-ink); padding: var(--space-lg) var(--space-lg) var(--space-xl);
  border-top: var(--rule-bar) solid var(--color-sheet-ink); transform: rotate(-2.5deg);
}
.js .slip { opacity: 0; transform: translateY(60px) rotate(-7deg); }
.js .is-ready .slip { opacity: 1; transform: rotate(-2.5deg); transition: transform 900ms var(--ease-out) 240ms, opacity 400ms linear 240ms; }
.slip__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-sheet-ink); }
.slip__title { font: 900 var(--text-xl)/1 var(--font-display); font-stretch: 140%; text-transform: uppercase; }
.slip__no { font: 600 var(--text-sm)/1 var(--font-outlier); color: var(--color-sheet-muted); }
.slip__lines { list-style: none; margin: 0; padding: var(--space-sm) 0; min-height: 150px; display: grid; align-content: start; gap: var(--space-2xs); }
.slip__lines li { display: grid; grid-template-columns: 2.5ch minmax(0, 1fr) auto; gap: var(--space-xs); align-items: baseline; padding-block: var(--space-2xs); border-bottom: 1px dashed var(--color-sheet-rule); font-size: var(--text-sm); }
.slip__lines li.slip__empty { display: block; border: 0; color: var(--color-sheet-muted); font-size: var(--text-md); line-height: 1.5; max-width: 30ch; }
.slip__lines li.slip__more { display: block; border: 0; color: var(--color-sheet-muted); }
.slip__lines .q { font-weight: 700; }
.slip__lines .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip__lines li.is-new { animation: print var(--dur-long) var(--ease-out); }
@keyframes print { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; padding-block: var(--space-sm); border-top: 2px solid var(--color-sheet-ink); }
.slip__total strong { font: 900 var(--text-2xl)/1 var(--font-display); font-stretch: 130%; }
.slip__cta { width: 100%; margin-top: var(--space-sm); background: var(--color-sheet-ink); color: var(--color-accent); }
.slip__cta:hover { background: var(--color-accent-2); color: var(--color-accent-2-ink); }
.slip :focus-visible { outline-color: var(--color-sheet-ink); }
.stamp {
  position: absolute; right: calc(var(--space-lg) * -1); top: calc(var(--space-2xl) * -1); display: grid; justify-items: center;
  padding: var(--space-xs) var(--space-sm); border: 4px double var(--color-accent-2); color: var(--color-accent-2);
  font: 900 1.25rem/1 var(--font-display); font-stretch: 130%; text-transform: uppercase; transform: rotate(10deg); pointer-events: none;
}
.js .stamp { opacity: 0; transform: rotate(18deg) scale(1.9); }
.js .is-ready .stamp { opacity: 1; transform: rotate(10deg) scale(1); transition: transform 260ms var(--ease-in) 1100ms, opacity 120ms linear 1100ms; }

/* ------------------------------------------------------------- marquee */
.marquee { overflow: clip; border-block: var(--rule-bar) solid var(--color-paper); }
.marquee__track { display: flex; align-items: center; gap: var(--space-lg); width: max-content; padding-block: var(--space-md); animation: marquee 38s linear infinite; }
.marquee span { font: 900 clamp(1.5rem, 1.6vw + 1rem, 2.5rem)/1 var(--font-display); font-stretch: 140%; text-transform: uppercase; white-space: nowrap; color: var(--color-accent-2-ink); }
.marquee svg { width: 40px; height: 28px; flex: none; fill: var(--color-accent-2-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ------------------------------------------------- o da casa (destaque) */
.house { padding-block: var(--section-gap-s) var(--space-xl); }
.house__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.house__text { grid-column: 1 / 8; display: grid; gap: var(--space-lg); }
.house__name { font-size: var(--text-section); max-width: 16ch; }
.house__text .lead { color: var(--color-ink-2); }
.house__price { grid-column: 8 / 13; display: grid; gap: var(--space-xs); padding: var(--space-2xl) var(--space-xl); min-height: 300px; align-content: center; container-type: inline-size; min-width: 0; }
.house__figure { font: 900 3rem/0.95 var(--font-display); font-size: min(12cqi, 6.5rem); font-stretch: 140%; white-space: nowrap; min-width: 0; overflow: hidden; }
.house.has-pic .house__text { grid-column: 1 / 6; }
.house__pic { grid-column: 6 / 9; align-self: stretch; }
.house__picbtn { display: block; width: 100%; height: 100%; min-height: 300px; padding: 0; border: 0; background: var(--color-paper-2); cursor: zoom-in; }
.house__picbtn img { width: 100%; height: 100%; object-fit: cover; }
.house.has-pic .house__price { grid-column: 9 / 13; }
.house__was { font: 600 var(--text-lg)/1 var(--font-outlier); text-decoration: line-through; }
.house__unit { font: 600 var(--text-md)/1.2 var(--font-outlier); }

/* -------------------------------------------------------------- catálogo */
.catalog { padding-block: var(--section-gap-s) var(--section-gap); }
.catalog__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); padding-bottom: var(--space-xl); }
.search { display: flex; align-items: center; gap: var(--space-xs); width: min(100%, 380px); padding-inline: var(--space-md); box-shadow: inset 0 0 0 2px var(--color-ink-2); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--color-accent); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--color-ink-2); stroke-width: 2; }
.search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--color-ink); outline: none; }
.search input::placeholder { color: var(--color-muted); }

.catbar { position: sticky; top: var(--nav-h); z-index: var(--z-sticky); background: var(--color-paper); border-block: var(--rule-hair) solid var(--color-rule); }
.catbar__in { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; min-height: var(--catbar-h); align-items: center; }
.catbar__in::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: var(--space-xs) var(--space-md); border: 0; background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-rule); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear, box-shadow var(--dur-micro) linear; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--color-ink); }
.chip[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }

.catalog__loading, .catalog__none { padding-block: var(--space-2xl); color: var(--color-muted); font-size: var(--text-lead); }
.shelf { padding-top: var(--space-3xl); scroll-margin-top: calc(var(--nav-h) + var(--catbar-h) + var(--space-md)); }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-ink); }
.shelf__head h3 { font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); max-width: none; }
.shelf__count { color: var(--color-muted); font: 600 var(--text-sm)/1 var(--font-outlier); white-space: nowrap; }

/* price board: a ruled list when the shelf has no photographs */
.board { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--space-xl); row-gap: var(--space-xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); transition: background-color var(--dur-short) linear; }
.row:hover { background: var(--color-paper-2); }
.row__name { font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.625rem); line-height: 1.08; transition: transform var(--dur-short) var(--ease-out); }
.row:hover .row__name { transform: translateX(6px); }
.row__desc { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-2xs); }
.row__stock { font: 600 var(--text-sm)/1.2 var(--font-outlier); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.price { display: grid; justify-items: end; gap: var(--space-3xs); text-align: right; }
.price__now { font: 900 clamp(1.25rem, 0.8vw + 1rem, 1.75rem)/1 var(--font-display); font-stretch: 130%; white-space: nowrap; }
.price__was { color: var(--color-muted); font-size: var(--text-sm); text-decoration: line-through; white-space: nowrap; }
.price__promo { padding: var(--space-2xs) var(--space-xs); }
.row.is-out .row__name, .row.is-out .price { opacity: 0.5; }
.soldout { padding: var(--space-xs) var(--space-sm); font: 600 var(--text-sm)/1 var(--font-outlier); }

.add { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }
.stepper { display: inline-grid; grid-template-columns: 44px 3ch 44px; align-items: center; box-shadow: inset 0 0 0 2px var(--color-accent); }
.stepper button { min-height: 44px; border: 0; background: transparent; color: var(--color-ink); font: 700 var(--text-2xl)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.stepper button:hover:not(:disabled) { background: var(--color-accent); color: var(--color-accent-ink); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { text-align: center; font: 900 var(--text-md)/1 var(--font-display); }
.cell-action { min-width: 152px; display: flex; justify-content: flex-end; }

/* tiles: when a shelf has photographs */
.tiles { list-style: none; margin: 0; padding: var(--space-lg) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: var(--space-xl) var(--gap-columns); }
.tile { display: grid; grid-template-rows: auto 1fr; gap: var(--space-sm); }
.tile__pic { position: relative; aspect-ratio: 4 / 5; background: var(--color-paper-2); overflow: hidden; }
.tile__pic { display: block; width: 100%; padding: 0; border: 0; color: inherit; cursor: zoom-in; transition: box-shadow var(--dur-short) linear; }
.tile.is-nopic .tile__pic { cursor: pointer; }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile__pic { box-shadow: inset 0 0 0 3px var(--color-accent); }
.tile__type { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-md); text-align: center; font: 900 var(--text-xl)/1.02 var(--font-display); font-stretch: 125%; text-transform: uppercase; color: var(--color-ink-2); overflow-wrap: break-word; border: var(--rule-hair) solid var(--color-rule); }
.tile__type img { width: 72px; height: 72px; border-radius: 50%; opacity: 0.35; filter: grayscale(0.4); }
.tile__flag { position: absolute; left: 0; top: 0; z-index: 1; padding: var(--space-2xs) var(--space-xs); font: 600 var(--text-sm)/1.2 var(--font-outlier); }
.tile__body { display: grid; gap: var(--space-xs); align-content: start; }
.tile__name { font-size: var(--text-title); line-height: 1.08; }
.tile__link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-stretch: inherit; text-transform: inherit; text-align: left; letter-spacing: inherit; cursor: pointer; overflow-wrap: break-word; max-width: 100%; }
.tile__link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; text-decoration-color: var(--color-accent); }
.tile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-xs); }
.tile .price { justify-items: start; text-align: left; }
.tile.is-out .tile__pic img { filter: grayscale(1); opacity: 0.6; }

/* ---------------------------------------------------------------- steps */
.steps { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.steps__title { font-size: var(--text-section); padding-bottom: var(--space-xl); }
.steps__row { list-style: none; margin: 0; padding: var(--space-md) 0 0; border-top: var(--rule-bar) solid var(--color-ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.bill { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg); min-height: 300px; }
.bill__n { font: 900 clamp(4rem, 5vw + 1rem, 6.5rem)/0.9 var(--font-display); font-stretch: 150%; }
.bill__t { font: 900 var(--text-xl)/1 var(--font-display); font-stretch: 140%; text-transform: uppercase; margin-top: auto; }
.bill p:last-child { max-width: 30ch; }
.js .steps__row .reveal:nth-child(2) { transition-delay: 80ms; }
.js .steps__row .reveal:nth-child(3) { transition-delay: 160ms; }
.js .steps__row .reveal:nth-child(4) { transition-delay: 240ms; }

/* ------------------------------------------------------------- entrega */
.delivery { padding-block: var(--section-gap); }
.delivery__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.delivery__calc { grid-column: 1 / 8; display: grid; gap: var(--space-xl); }
.delivery__calc h2 { font-size: var(--text-section); }
.cepform { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-sm); }
.field { display: grid; gap: var(--space-2xs); flex: 1 1 180px; min-width: 0; }
.field--short { flex: 0 1 140px; }
.field > span { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 0; border-radius: 0; background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink-2); }
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--color-accent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.cepresult { min-height: 160px; container-type: inline-size; }
.cepresult .fig { font: 900 3rem/0.95 var(--font-display); font-size: min(12cqi, 6rem); font-stretch: 150%; color: var(--color-ink); white-space: nowrap; overflow: hidden; }
.cepresult .fig--free { color: var(--color-accent); }
.cepresult p { color: var(--color-ink-2); margin-top: var(--space-sm); max-width: 48ch; }
.cepresult .err { color: var(--color-ink); padding: var(--space-md); box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.cepresult .wait { color: var(--color-muted); }
.delivery__table { grid-column: 9 / 13; }
.rates { width: 100%; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-ink); }
.rates caption { text-align: left; font: 600 var(--text-sm)/1.2 var(--font-outlier); color: var(--color-ink-2); padding-bottom: var(--space-sm); caption-side: top; }
.rates th { text-align: left; font: 600 var(--text-sm)/1.2 var(--font-outlier); color: var(--color-muted); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rates td { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); }
.rates .num { text-align: right; }
.rates td.num { font: 900 var(--text-lg)/1 var(--font-display); font-stretch: 130%; }
.rates__note { color: var(--color-ink-2); margin-top: var(--space-md); font-size: var(--text-sm); }

/* ---------------------------------------------------------- onde fica */
.where { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.where__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.where__addr { grid-column: 1 / 9; font-size: clamp(2.25rem, 3.6vw + 1rem, 5rem); max-width: 14ch; }
.where__info { grid-column: 9 / 13; display: grid; gap: var(--space-lg); }
.where__info .lead { color: var(--color-ink-2); }
.where__hours { font: 600 var(--text-lg)/1.3 var(--font-outlier); }
.where__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* --------------------------------------------------------------- footer */
.foot { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-bar) solid var(--color-accent); }
.foot__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: end; }
.foot__mark { grid-column: 1 / -1; font: 900 min(8.2vw, 7.4rem)/0.9 var(--font-display); font-stretch: 140%; white-space: nowrap; text-transform: uppercase; color: var(--color-accent); overflow-wrap: break-word; min-width: 0; }
.foot__logo { grid-column: 1 / 3; width: 96px; height: 96px; border-radius: 50%; }
.foot__legal { grid-column: 3 / 10; display: grid; gap: var(--space-2xs); color: var(--color-ink-2); }
.foot__demo { color: var(--color-muted); }
.foot__admin { grid-column: 10 / 13; justify-self: end; color: var(--color-muted); font-size: var(--text-sm); }
.foot__admin:hover { color: var(--color-ink); }

/* ---------------------------------------------------------- mobile dock */
.dock { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky-nav); padding: var(--space-xs) var(--space-md) calc(var(--space-xs) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); }
.dock__btn { width: 100%; min-height: 56px; white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-inline: var(--space-md); border: 0; background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-outlier); text-transform: uppercase; cursor: pointer; }
.dock__sum { display: inline-flex; gap: var(--space-md); align-items: baseline; text-transform: none; }
.dock__sum strong { font: 900 var(--text-lg)/1 var(--font-display); font-stretch: 130%; }
.dock:not([hidden]) { animation: rise var(--dur-short) var(--ease-out); }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 60.001rem) { .dock { display: none; } }

/* ------------------------------------------------------- comanda drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-modal); }
.drawer__scrim { position: absolute; inset: 0; background: var(--color-scrim); animation: fade var(--dur-short) linear; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(100%, 520px); display: flex; flex-direction: column;
  background: var(--color-sheet); color: var(--color-sheet-ink); border-left: var(--rule-bar) solid var(--color-accent);
  animation: slide var(--dur-long) var(--ease-out); outline: none;
}
.drawer.is-closing .drawer__panel { animation: slideout var(--dur-short) var(--ease-in) forwards; }
.drawer.is-closing .drawer__scrim { animation: fade var(--dur-short) linear reverse forwards; }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideout { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: 2px solid var(--color-sheet-ink); }
.drawer__head h2 { font-size: var(--text-2xl); }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background-color var(--dur-micro) linear; }
.iconbtn:hover { background: var(--color-sheet-2); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.drawer :focus-visible { outline-color: var(--color-sheet-ink); }

.order { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.order__items, .order__body { padding-inline: var(--space-lg); }
.order { overflow-y: auto; overscroll-behavior: contain; }
.order__items { list-style: none; margin: 0; padding-block: var(--space-sm); }
.order__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); padding-block: var(--space-md); border-bottom: 1px dashed var(--color-sheet-rule); }
.order__items li.is-new { animation: print var(--dur-long) var(--ease-out); }
.order__items .it-main { display: flex; gap: var(--space-sm); align-items: flex-start; min-width: 0; }
.order__items .it-pic { width: 56px; height: 70px; object-fit: cover; flex: none; background: var(--color-sheet-2); }
.order__items .it-name { font: 900 var(--text-md)/1.1 var(--font-display); font-stretch: 125%; text-transform: uppercase; }
.order__items .it-desc { font-size: var(--text-sm); color: var(--color-sheet-muted); }
.order__items .it-total { font: 900 var(--text-md)/1 var(--font-display); font-stretch: 125%; text-align: right; }
.order__items .it-ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.order__items .it-warn { font-size: var(--text-sm); color: var(--color-sheet-muted); }
.drawer .stepper { box-shadow: inset 0 0 0 2px var(--color-sheet-ink); }
.drawer .stepper button { color: var(--color-sheet-ink); }
.drawer .stepper button:hover:not(:disabled) { background: var(--color-sheet-ink); color: var(--color-sheet); }
.linkbtn { border: 0; background: none; padding: var(--space-xs) 0; color: var(--color-sheet-muted); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.linkbtn:hover { color: var(--color-sheet-ink); }
.order__empty { padding: var(--space-xl) var(--space-lg); color: var(--color-sheet-muted); font-size: var(--text-lead); }

.order__body { display: grid; gap: var(--space-lg); padding-block: var(--space-lg); }
.group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-sm); min-width: 0; }
.group legend { padding: 0 0 var(--space-xs); font: 700 var(--text-lg)/1.2 var(--font-body); }
.drawer .field > span { color: var(--color-sheet-muted); }
.drawer .field input, .drawer .field textarea { color: var(--color-sheet-ink); box-shadow: inset 0 0 0 2px var(--color-sheet-rule); background: var(--color-sheet); }
.drawer .field input:focus, .drawer .field textarea:focus { box-shadow: inset 0 0 0 2px var(--color-sheet-ink); }
.drawer .field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.addr { font-size: var(--text-sm); color: var(--color-sheet-muted); min-height: 1.2em; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: inset 0 0 0 2px var(--color-sheet-ink); }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: grid; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-height: 48px; padding-inline: var(--space-xs); font: 600 var(--text-md)/1.1 var(--font-body); text-align: center; transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.seg input:checked + span { background: var(--color-sheet-ink); color: var(--color-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--color-sheet-ink); outline-offset: 2px; }
.seg label:hover input:not(:checked) + span { background: var(--color-sheet-2); }
.freight { font-size: var(--text-sm); color: var(--color-sheet-muted); min-height: 1.3em; }
.freight strong { color: var(--color-sheet-ink); }
.freight.is-bad { color: var(--color-sheet-ink); padding: var(--space-sm); box-shadow: inset 0 0 0 2px var(--color-accent-2); }

.order__foot { position: sticky; bottom: 0; margin-top: auto; padding: var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom)); background: var(--color-sheet); border-top: 2px solid var(--color-sheet-ink); display: grid; gap: var(--space-sm); }
.sum { margin: 0; display: grid; gap: var(--space-2xs); }
.sum > div { display: flex; justify-content: space-between; gap: var(--space-md); }
.sum dt { color: var(--color-sheet-muted); }
.sum dd { margin: 0; }
.sum__total { padding-top: var(--space-xs); }
.sum__total dt { color: var(--color-sheet-ink); font: 900 var(--text-lg)/1 var(--font-display); font-stretch: 125%; text-transform: uppercase; }
.sum__total dd { font: 900 var(--text-2xl)/1 var(--font-display); font-stretch: 130%; }
.order__error { color: var(--color-sheet-ink); font-size: var(--text-sm); font-weight: 600; }
.order__error:empty { display: none; }
.order__error:not(:empty) { padding: var(--space-sm); box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.btn--whats { width: 100%; min-height: 56px; white-space: nowrap; background: var(--color-sheet-ink); color: var(--color-sheet); font-size: var(--text-md); }
.btn--whats svg { width: 22px; height: 22px; fill: var(--color-whats); }
.btn--whats:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--whats:hover svg { fill: var(--color-accent-ink); }
.order__fine { font-size: var(--text-sm); color: var(--color-sheet-muted); }

/* ------------------------------------------------------- janela do produto */
.pview { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--space-lg); }
.pview__scrim { position: absolute; inset: 0; background: var(--color-scrim); animation: fade var(--dur-short) linear; }
.pview__panel { position: relative; width: min(100%, 980px); max-height: calc(100dvh - var(--space-xl)); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--color-sheet); color: var(--color-sheet-ink); border-top: var(--rule-bar) solid var(--color-accent); outline: none; animation: pop var(--dur-long) var(--ease-out); }
.pview.is-closing .pview__panel { animation: popout var(--dur-short) var(--ease-in) forwards; }
.pview.is-closing .pview__scrim { animation: fade var(--dur-short) linear reverse forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes popout { to { opacity: 0; transform: translateY(16px); } }
.pview__close { position: absolute; right: var(--space-xs); top: var(--space-xs); z-index: 2; background: var(--color-sheet); }
.pview__pic { position: relative; min-height: 420px; background: var(--color-sheet-2); display: grid; place-items: center; }
.pview__pic img { width: 100%; height: 100%; max-height: calc(100dvh - var(--space-xl)); object-fit: contain; }
.pview__pic .pview__logo { width: 120px; height: 120px; border-radius: 50%; opacity: 0.5; object-fit: cover; }
.pview__nopic { position: absolute; left: var(--space-md); bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-sheet-muted); }
.pview__info { display: grid; align-content: center; gap: var(--space-md); padding: var(--space-2xl) var(--space-xl); }
.pview__name { font-size: var(--text-3xl); max-width: none; }
.pview__desc { color: var(--color-sheet-muted); font-size: var(--text-lead); }
.pview__stock { font-weight: 700; }
.pview__price .price { justify-items: start; text-align: left; }
.pview__price .price__now { font-size: var(--text-3xl); font-variant-numeric: tabular-nums; }
.pview__buy .add { min-height: 52px; padding-inline: var(--space-xl); font-size: var(--text-md); }
.pview .stepper { box-shadow: inset 0 0 0 2px var(--color-sheet-ink); }
.pview .stepper button { color: var(--color-sheet-ink); }
.pview .stepper button:hover:not(:disabled) { background: var(--color-sheet-ink); color: var(--color-sheet); }
.pview .btn--primary { background: var(--color-sheet-ink); color: var(--color-accent); }
.pview .btn--primary:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.pview__cat { font-size: var(--text-sm); color: var(--color-sheet-muted); }
.pview__go { justify-self: start; }
.pview :focus-visible { outline-color: var(--color-sheet-ink); }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: var(--space-xl); z-index: var(--z-toast); padding: var(--space-sm) var(--space-lg); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; transform: translate(-50%, 200%); opacity: 0; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) linear; pointer-events: none; max-width: calc(100% - var(--space-xl)); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.flyer { position: fixed; left: 0; top: 0; z-index: var(--z-toast); width: 18px; height: 18px; background: var(--color-accent); pointer-events: none; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 75rem) {
  .slip { grid-column: 8 / 13; }
}
@media (max-width: 60rem) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__cart { margin-left: auto; }
  .hero { padding-top: var(--space-md); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero__poster { grid-column: 1; padding: var(--space-xl) var(--space-lg) var(--space-3xl); }
  .hero__title { font-size: min(9.4vw, 5rem); }
  .slip { grid-column: 1; grid-row: 2; justify-self: center; width: min(100% - var(--space-xl), 400px); margin-top: calc(var(--space-2xl) * -1); }
  .stamp { right: calc(var(--space-xs) * -1); top: auto; bottom: calc(var(--space-md) * -1); }
  .house__grid, .delivery__grid, .where__grid { grid-template-columns: minmax(0, 1fr); }
  .house__text, .house__price, .house__pic, .house.has-pic .house__text, .house.has-pic .house__price, .delivery__calc, .delivery__table, .where__addr, .where__info { grid-column: 1; }
  .house__picbtn { min-height: 0; aspect-ratio: 4 / 3; }
  .pview { padding: 0; place-items: end stretch; }
  .pview__panel { grid-template-columns: minmax(0, 1fr); max-height: 92dvh; }
  .pview__pic { min-height: 0; aspect-ratio: 1; }
  .pview.is-nopic .pview__pic { aspect-ratio: auto; min-height: 200px; }
  .pview__info { padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom)); }
  .pview__name { font-size: var(--text-2xl); }
  .house__price { min-height: 0; }
  .steps__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill { min-height: 220px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .cell-action { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
  .foot__logo, .foot__legal, .foot__admin { grid-column: 1 / -1; justify-self: start; }
  .foot { padding-bottom: calc(var(--space-3xl) + 56px); }
  .foot__mark { white-space: normal; font-size: 17vw; overflow-wrap: break-word; }
}
@media (max-width: 40rem) {
  .brand__name { font-size: var(--text-md); font-stretch: 125%; }
  .brand__logo { width: 40px; height: 40px; }
  .slip { padding-inline: var(--space-md); }
  .slip__title { font-size: var(--text-lg); }
  .slip__head, .slip__total { gap: var(--space-sm); white-space: nowrap; }
  .slip__total strong { font-size: var(--text-xl); }
  .nav__cart > span:first-child { display: none; }
  .hero__title { font-size: clamp(1.9rem, 9.6vw, 3rem); font-stretch: 118%; }
  .hero__poster { padding-inline: var(--space-md); }
  .steps__row { grid-template-columns: minmax(0, 1fr); }
  .bill { min-height: 0; }
  .bill__n { font-size: 3.5rem; }
  .row__name, .shelf__head h3, .house__name, .where__addr { font-stretch: 118%; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .drawer__panel { border-left: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-sm); }
  .tile__name { font-size: var(--text-md); font-stretch: 115%; }
  .tile__type img { width: 56px; height: 56px; }
  .tile__foot { flex-direction: column; align-items: stretch; }
  .tile__act > .add, .tile__act > .stepper { width: 100%; }
  .tile__act > .stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .tile .price__now { font-size: var(--text-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .slip, .js .stamp, .js .hero__title .line > span { opacity: 1; transform: none; }
  .js .slip { transform: rotate(-2.5deg); }
  .js .stamp { transform: rotate(10deg); }
  .marquee__track { animation: none; }
}
