/* Catálogo público — mobile-first, tema escuro "café" por padrão.
   As cores-base vêm do tema da loja (variáveis em :root, geradas por App\Support\Color);
   os tons abaixo são derivados delas, então temas claros continuam legíveis. */
:root {
  --bg-elevated: color-mix(in srgb, var(--surface) 45%, var(--bg));
  --surface-hover: color-mix(in srgb, var(--ink) 6%, var(--surface));
  --border: color-mix(in srgb, var(--ink) 15%, var(--surface));
  --ink-2: color-mix(in srgb, var(--ink) 78%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 60%, var(--bg));
  --line: var(--border);
  --tint: color-mix(in srgb, var(--ink) 6%, transparent);
  --brand-hover: color-mix(in srgb, var(--brand) 78%, #ffffff);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, var(--surface));
  --overlay: rgba(0, 0, 0, .68);
  --focus: color-mix(in srgb, var(--brand) 75%, #ffffff);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px;
  --bottom-nav: 68px;
  --gutter: 16px;
  --content: 1240px;
  --ok: var(--success);
  --warn: var(--warning);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 72px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 .9375rem/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; color: var(--ink); }
h1 { font-size: 2rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
p { margin: 0; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }

/* Botões ----------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .14s var(--ease), border-color .14s var(--ease), transform .14s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { min-height: 44px; background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--tint); }
.btn-whatsapp { min-height: 50px; background: var(--whatsapp); color: var(--on-whatsapp); }
.btn-whatsapp:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-brand) transparent var(--on-brand) var(--on-brand); animation: spin .8s linear infinite; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.linkbtn.danger { color: var(--danger); }

/* Campos ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-weight: 600; font-size: .875rem; color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field .err, .err { font-size: .8125rem; color: var(--danger); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink); font: inherit; transition: border-color .14s, box-shadow .14s; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input.is-valid { border-color: var(--success); }
.input:disabled { background: var(--tint); color: var(--muted); cursor: not-allowed; }

/* Cabeçalho --------------------------------------------------------------- */
.staffbar { background: #FFF3CD; color: #5C3D00; font-size: .875rem; padding: 8px var(--gutter); text-align: center; }
.staffbar a { font-weight: 700; }
.topnav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--border); }
.topnav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 12px; }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-heading); font-weight: 750; font-size: 1rem; min-width: 0; }
.brandmark img, .brandmark-mono { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: var(--surface); flex: none; }
.brandmark-mono { display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; }
.brandmark span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.topstatus { display: none; }
.topsearch { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; height: 44px; color: var(--muted); }
.topsearch input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; outline: none; min-width: 0; }
.topsearch input::placeholder { color: var(--muted); }
.topsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); }
.cartbtn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); flex: none; }
.cartbtn-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
@media (max-width: 599px) { .brandmark span:last-child { display: none; } .topsearch { max-width: none; } }
@media (min-width: 900px) {
  .status.topstatus { display: inline-flex; }
  .storebar .status { display: none; }
}

/* Estado da loja ---------------------------------------------------------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8125rem; padding: 6px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status small { font-weight: 500; font-size: .8125rem; opacity: .9; }
.status-open { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.status-closed { background: var(--surface); color: var(--ink-2); border-color: var(--border); }
.status-paused, .status-unavailable { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip .icon { width: 16px; height: 16px; color: var(--brand); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning) 32%, transparent); color: var(--ink); }
.notice .icon { color: var(--warning); margin-top: 2px; }
.notice strong { display: block; }

/* Carrossel de banners (banner principal + banners do topo/meio) ------------
   Um slide por vez, empilhados na mesma célula da grade: a altura é a do maior
   slide (nada "pula" na troca) e a proporção vem do ::before do visor. */
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.carousel { margin-top: 16px; }
.section > .carousel { margin-top: 0; }
.carousel-viewport { position: relative; display: grid; border-radius: var(--r-hero); overflow: hidden; isolation: isolate; background: var(--surface); touch-action: pan-y;
  box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 18px 40px -24px rgba(0,0,0,.6); }
.carousel-viewport::before { content: ""; grid-area: 1 / 1; aspect-ratio: 5 / 4; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity 0s linear .7s, visibility 0s linear .7s;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 38%, transparent) 0, transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--brand) 26%, var(--surface)), var(--surface)); }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s var(--ease), visibility 0s; } /* o que sai fica opaco por baixo até o novo cobrir */
.slide-media { position: absolute; inset: 0; z-index: -2; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.slide.is-active .slide-media img { transform: none; }
.focal-left .slide-media img { object-position: 0% 50%; }
.focal-right .slide-media img { object-position: 100% 50%; }
.focal-top .slide-media img { object-position: 50% 0%; }
.focal-bottom .slide-media img { object-position: 50% 100%; }
.slide.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,7,5,0) 22%, rgba(10,7,5,.5) 52%, rgba(10,7,5,.9) 100%); }
.slide-body { padding: 20px 20px 22px; max-width: 640px; }
.slide-title { font: 800 clamp(1.5rem, 6.2vw, 2.25rem)/1.05 var(--font-heading); letter-spacing: -.035em; color: var(--ink); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-desc { margin-top: 8px; color: var(--ink-2); max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide.has-image .slide-title { color: #FFF7ED; }
.slide.has-image .slide-desc { color: rgba(255,247,237,.86); }
.slide.has-image .eyebrow { color: color-mix(in srgb, var(--accent) 35%, #FFF7ED); }
.slide-cta { position: static; margin-top: 14px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.slide-cta::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* o slide inteiro leva ao destino */
.slide-cta .icon { width: 18px; height: 18px; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.carousel-lead { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; }
.carousel-dots { display: flex; align-items: center; flex-wrap: wrap; }
.carousel-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 12px; }
.carousel-dot > span { display: block; width: 8px; height: 8px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--ink) 30%, transparent); transition: width .3s var(--ease), background .3s var(--ease); }
.carousel-dot:hover > span { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.carousel-dot[aria-current="true"] > span { width: 30px; background: color-mix(in srgb, var(--brand) 32%, transparent); }
.carousel-dot > span > i { display: none; height: 100%; width: 100%; background: var(--brand); border-radius: inherit; }
.carousel-dot[aria-current="true"] > span > i { display: block; }
.carousel-buttons { display: flex; gap: 6px; flex: none; }
.carousel-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .14s var(--ease); }
.carousel-btn:hover { background: var(--surface-hover); }
.carousel-btn .icon { width: 18px; height: 18px; }
@media (min-width: 600px) {
  .carousel-viewport::before { aspect-ratio: 2 / 1; }
  .slide { align-items: center; }
  .slide.has-image::before { background: linear-gradient(90deg, rgba(10,7,5,.88) 0%, rgba(10,7,5,.62) 36%, rgba(10,7,5,.08) 72%); }
  .slide-body { padding: 28px 32px; max-width: 560px; }
  .slide-title { font-size: clamp(1.75rem, 4vw, 3.25rem); }
}
@media (min-width: 900px) {
  .carousel-viewport::before { aspect-ratio: 3 / 1; }
  .slide-body { padding: 36px 48px; max-width: 700px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-media img { transform: none; }
}
.storebar { display: flex; align-items: center; gap: 12px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.storebar::-webkit-scrollbar { display: none; }
.storebar .storelogo { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; background: var(--surface); border: 1px solid var(--border); flex: none; }
.storebar .storelogo.mono { display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 800 1.2rem var(--font-heading); }
.storebar-name { flex: none; }
.storebar-name strong { display: block; font-family: var(--font-heading); font-size: 1rem; white-space: nowrap; }
.storebar-name span { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.storebar .chip, .storebar .status { flex: none; }
.storenotice { margin-top: 12px; }

/* Seções ----------------------------------------------------------------- */
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.375rem; }
.section-head a { font-weight: 700; font-size: .875rem; color: var(--brand); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 12px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* Stories: círculos 1:1 com anel no degradê da loja e respiro interno ----- */
.stories { --story: 66px; --story-w: 80px; }
@media (min-width: 900px) { .stories { --story: 74px; --story-w: 96px; } }
.stories-strip { position: relative; }
.stories-rail { list-style: none; display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.stories-rail::-webkit-scrollbar { display: none; }
.stories-rail > li { flex: none; scroll-snap-align: start; }
/* Poucos stories: a faixa fica centralizada; muitos: começa na esquerda e rola. */
.stories-rail > li:first-child { margin-left: auto; }
.stories-rail > li:last-child { margin-right: auto; }
.story { width: var(--story-w); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.story-ring { width: var(--story); height: var(--story); flex: none; border-radius: 50%; padding: 3px; transition: transform .18s var(--ease);
  background: conic-gradient(from 210deg, var(--brand), var(--accent), var(--brand)); }
.story-thumb { display: block; width: 100%; height: 100%; border-radius: 50%; padding: 3px; background: var(--bg); }
.story-thumb img, .story-ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.story-title { max-width: 100%; font-size: .75rem; font-weight: 600; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.story.seen .story-ring { padding: 2px; background: color-mix(in srgb, var(--ink) 24%, var(--bg)); }
.story.seen .story-thumb { padding: 4px; }
.story.seen .story-title { color: var(--muted); font-weight: 500; }
.story:hover .story-ring { transform: scale(1.04); }
.story:active .story-ring { transform: scale(.95); }
.story:focus-visible { outline: none; }
.story:focus-visible .story-ring { outline: 3px solid var(--focus); outline-offset: 3px; }
.strip-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .strip-arrow { position: absolute; z-index: 2; top: calc(var(--story) / 2 + 6px); transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink); box-shadow: var(--shadow-float); cursor: pointer; }
  .strip-arrow:hover { background: var(--surface-hover); }
  .strip-arrow.prev { left: -10px; }
  .strip-arrow.next { right: -10px; }
}

/* Atalhos de categoria */
.catcard { width: 96px; text-decoration: none; text-align: center; }
.catcard-img { width: 96px; height: 96px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font: 800 1.6rem var(--font-heading); color: var(--brand); transition: border-color .14s; }
.catcard:hover .catcard-img { border-color: var(--brand); }
.catcard-img img { width: 100%; height: 100%; object-fit: cover; }
.catcard-label { display: block; margin-top: 8px; font-weight: 600; font-size: .8125rem; line-height: 1.25; color: var(--ink-2); }

/* Chips de categoria (cardápio) */
.cattabs { position: sticky; top: var(--nav-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); margin-top: 12px; }
.cattabs .rail { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
.cattab { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap; color: var(--ink-2); transition: background .14s, color .14s; }
.cattab:hover { background: var(--surface-hover); color: var(--ink); }
.cattab[aria-current="true"], .cattab.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.menu-head { margin-top: 32px; margin-bottom: 0; }
.menu-cat { padding-top: 24px; }
.menu-cat > h2 { font-size: 1.5rem; }
.menu-cat > p { color: var(--muted); margin-top: 4px; }
.menu-sub { font-size: 1.05rem; font-weight: 650; margin: 20px 0 10px; color: var(--ink-2); }

/* Cartões de produto ------------------------------------------------------ */
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; transition: border-color .14s, background .14s; }
.pcard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.pcard-link { text-decoration: none; display: flex; flex-direction: column; flex: 1; border-radius: inherit; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; border-radius: 15px 15px 0 0; overflow: hidden; background: var(--bg-elevated); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-mono, .ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(80% 90% at 30% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--bg-elevated); color: color-mix(in srgb, var(--brand) 70%, var(--ink)); font: 800 2rem var(--font-heading); }
.pcard-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-name { font: 650 .95rem/1.3 var(--font-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.pcard-desc { font-size: .8125rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { margin-top: auto; padding-top: 8px; padding-right: 50px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-height: 44px; }
.price-from { width: 100%; font-size: .75rem; color: var(--muted); font-weight: 600; }
.price-now { font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.price-old { font-size: .8125rem; color: var(--muted); text-decoration: line-through; }
.pcard-add { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; transition: background .14s, transform .14s; }
.pcard-add:hover { background: var(--brand-hover); }
.pcard-add:active { transform: scale(.94); }
.pcard-add .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.badge-promo { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.badge-new { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.pcard.is-off .pcard-media img, .pcard.is-off .pcard-mono { filter: grayscale(1); opacity: .45; }
.pcard-off { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: center; align-items: center; gap: 6px; text-align: center; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); border: 1px solid var(--border); font-size: .75rem; font-weight: 700; padding: 6px 8px; border-radius: 10px; }
.pcard-off::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: none; }
.shelf .pcard { width: 172px; }
@media (min-width: 600px) { .shelf .pcard { width: 220px; } }

/* Modo lista */
[data-view="list"] .pgrid { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { [data-view="list"] .pgrid { grid-template-columns: 1fr 1fr; } }
[data-view="list"] .pgrid .pcard-link { flex-direction: row-reverse; align-items: stretch; }
[data-view="list"] .pgrid .pcard-media { width: 120px; aspect-ratio: auto; min-height: 120px; flex: none; border-radius: 0 15px 15px 0; }
[data-view="list"] .pgrid .pcard-body { padding: 14px; min-width: 0; }
[data-view="list"] .pgrid .pcard-price { padding-right: 0; }
[data-view="list"] .pgrid .pcard-add { right: 8px; bottom: 8px; width: 40px; height: 40px; }
[data-view="list"] .pgrid .badges { left: auto; right: 8px; max-width: 104px; justify-content: flex-end; }
[data-view="list"] .pgrid .pcard-off { font-size: .7rem; padding: 4px 6px; }

/* Informações de atendimento -------------------------------------------- */
.infogrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .infogrid { grid-template-columns: 1fr 1fr; } }
.infocard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.infocard h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.infocard h3 .icon { color: var(--brand); }
.infocard p { color: var(--ink-2); }
.infocard p + p { margin-top: 6px; }
.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .875rem; color: var(--ink-2); }
.infolist li:last-child { border-bottom: 0; }
.infolist li.today { font-weight: 700; color: var(--ink); }

/* Produto (página) ----------------------------------------------------- */
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); margin: 16px 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.productpage .cfg { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.productpage .cfg-media { border-radius: 19px 19px 0 0; overflow: hidden; }
@media (min-width: 900px) {
  .productpage .cfg { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; }
  .productpage .cfg-media { position: sticky; top: calc(var(--nav-h) + 16px); border-radius: 19px 0 0 19px; }
  .productpage .cfg-legend { top: var(--nav-h); }
}

/* Configurador (modal e página) ----------------------------------------- */
.cfg-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg-elevated); }
.cfg-gallery::-webkit-scrollbar { display: none; }
.cfg-gallery img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.cfg-media-empty { aspect-ratio: 16 / 7; display: grid; place-items: center; background: radial-gradient(70% 90% at 30% 20%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%), var(--bg-elevated); font: 800 3rem var(--font-heading); color: color-mix(in srgb, var(--brand) 70%, var(--ink)); }
.cfg-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.cfg-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.cfg-dots span.on { background: var(--brand); }
.cfg-head { padding: 18px 20px 6px; }
.cfg-head .badges { position: static; margin-bottom: 8px; }
.cfg-head h1, .cfg-head h2 { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 750; letter-spacing: -.02em; }
.cfg-desc { color: var(--ink-2); margin-top: 8px; white-space: pre-line; }
.cfg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.cfg-price .price-now { font-size: 1.35rem; }
.cfg-price small { width: 100%; font-size: .8125rem; color: var(--muted); }
.cfg-alert { margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warning) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.cfg-group { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.cfg-legend { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.cfg-legend strong { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 650; }
.cfg-legend small { color: var(--muted); font-size: .8125rem; }
.cfg-tag { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; }
.cfg-tag.done { background: color-mix(in srgb, var(--success) 18%, var(--surface)); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.cfg-tag.optional { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.cfg-group.invalid .cfg-legend { box-shadow: inset 4px 0 0 var(--danger); }
.cfg-error { color: var(--danger); font-weight: 700; font-size: .8125rem; padding: 8px 20px 0; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; min-height: 56px; transition: background .14s; }
.opt:last-child { border-bottom: 0; }
.opt:hover { background: var(--surface-hover); }
.opt input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 0; }
.opt-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.opt-text { flex: 1; min-width: 0; }
.opt-text strong { font-weight: 600; display: block; }
.opt-text small { color: var(--muted); font-size: .8125rem; }
.opt-price { font-weight: 700; font-size: .875rem; white-space: nowrap; color: var(--ink-2); }
.opt.is-off { opacity: .5; cursor: not-allowed; }
.opt:has(input:checked) { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.cfg-note { padding: 18px 20px 6px; }
.cfg-foot { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-elevated); border-top: 1px solid var(--border); margin-top: 12px; }
.cfg-foot .btn { flex: 1; justify-content: space-between; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; height: 48px; flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--brand); border-radius: 10px; }
.stepper button[disabled] { color: var(--muted); cursor: not-allowed; opacity: .6; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }
.stepper-sm { height: 40px; }
.stepper-sm button { width: 38px; height: 38px; }

/* Modal: folha inferior no celular, diálogo no computador */
.sheet-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 60; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-elevated); border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-modal); }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 600px; max-height: 88vh; border-radius: 20px; border-bottom: 1px solid var(--border); } }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.sheet-loading { padding: 60px 20px; text-align: center; color: var(--muted); }
.sheet-enter { transition: transform .22s var(--ease), opacity .22s; }
.sheet-leave { transition: transform .14s ease-in, opacity .14s; }
.sheet-enter-start { transform: translateY(40px); opacity: 0; }
@media (min-width: 720px) { .sheet-enter-start { transform: translate(-50%, -46%); } }

/* Navegação inferior (celular) ------------------------------------------- */
.bottomnav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); }
.bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .75rem; font-weight: 600; color: var(--muted); }
.bottomnav a .icon { width: 22px; height: 22px; }
.bottomnav a[aria-current="page"] { color: var(--brand); }
.bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.bottomnav .navcount { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 800; display: grid; place-items: center; }
body.has-bottomnav { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .bottomnav { display: none; } body.has-bottomnav { padding-bottom: 0; } }

/* Barra do carrinho e avisos ------------------------------------------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom) + 10px); z-index: 40; padding: 0 12px; pointer-events: none; }
@media (min-width: 900px) { .cartbar { bottom: 20px; } }
.cartbar-inner { pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 8px; height: 56px; border-radius: 16px; background: var(--brand); color: var(--on-brand); text-decoration: none; box-shadow: var(--shadow-float); font-weight: 800; }
.cartbar-count { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-brand) 14%, transparent); }
.cartbar-label { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom) + 78px); transform: translateX(-50%); z-index: 70; background: var(--surface-hover); color: var(--ink); border: 1px solid var(--border); padding: 12px 18px; border-radius: 12px; font-weight: 600; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-float); width: max-content; max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast { bottom: 92px; } }
.toast a { color: var(--brand); font-weight: 700; white-space: nowrap; flex: none; }
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav) + 12px); z-index: 80; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-modal); font-size: .875rem; }
.consent a { color: var(--brand); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* Pop-up */
.popup { position: fixed; inset: 0; z-index: 75; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 6, 5, .5); }
.popup-card { position: relative; width: 100%; max-height: min(78dvh, 640px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-elevated); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.35); padding-bottom: env(safe-area-inset-bottom); }
.popup-media { aspect-ratio: 2 / 1; background: var(--surface); }
.popup-media img { width: 100%; height: 100%; object-fit: cover; }
.popup-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,7,5,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.popup-close::after { content: ""; position: absolute; inset: -4px; } /* área de toque de 48 px */
.popup-close:hover { background: rgba(10,7,5,.75); }
.popup-body { padding: 20px 20px 16px; }
.popup-body.no-media { padding-top: 26px; padding-right: 60px; }
.popup-offer { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 10px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .85rem; letter-spacing: .01em; }
.popup-body h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.popup-body > p { color: var(--ink-2); margin-top: 8px; white-space: pre-line; }
.popup-body .popup-terms { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--tint); color: var(--muted); font-size: .8125rem; line-height: 1.4; white-space: normal; }
.popup-terms .icon { width: 16px; height: 16px; margin-top: 1px; }
.popup-actions { display: grid; gap: 4px; margin-top: 16px; }
.popup-enter { transition: opacity .22s var(--ease); }
.popup-enter .popup-card { transition: transform .32s var(--ease); }
.popup-enter-start { opacity: 0; }
.popup-enter-start .popup-card { transform: translateY(40px); }
.popup-leave { transition: opacity .16s ease-in; }
@media (min-width: 600px) {
  .popup { align-items: center; padding: 24px; }
  .popup-card { width: min(440px, 100%); border-bottom: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-modal); padding-bottom: 0; }
  .popup-enter-start .popup-card { transform: translateY(12px) scale(.98); }
  .popup-body { padding: 22px 24px 20px; }
}

/* Notificações de interesse ---------------------------------------------
   Números reais (ver App\Support\Interest). Um aviso por vez, sem empilhar e sem deslocar a página. */
.interest-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); }
.ix { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.ix::after { content: ""; position: absolute; inset: -6px; } /* área de toque de 44 px */
.ix:hover { background: var(--tint); color: var(--ink); }
.ix .icon { width: 16px; height: 16px; }
.itoast { position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left)); width: max-content; max-width: min(340px, calc(100vw - 24px)); pointer-events: none; }
.itoast-card { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px 4px 6px 6px; border-radius: 16px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-float); }
.itoast-link { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 2px; color: var(--ink); text-decoration: none; }
.itoast-thumb { width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.itoast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.itoast-text { display: grid; min-width: 0; line-height: 1.3; }
.itoast-text b { font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itoast-text span { font-size: .78rem; color: var(--ink-2); }
.islot { min-height: 54px; margin: 8px 0 2px; display: flex; align-items: center; } /* altura reservada para 2 linhas: nada se desloca */
@media (min-width: 600px) { .islot { min-height: 46px; } }
.section + .islot, .storenotice + .islot, .storebar + .islot { margin-top: 24px; }
.islot-live { min-width: 0; max-width: 100%; }
.islot-pill { display: flex; align-items: center; gap: 10px; max-width: 100%; min-height: 36px; padding: 4px 2px 4px 14px; border-radius: 18px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); font-size: .8125rem; }
.islot-link { min-width: 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.islot-link b { color: var(--ink); font-weight: 700; }
.islot-link:hover b { text-decoration: underline; text-underline-offset: 2px; }
.interest-note { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .875rem; color: var(--ink-2); animation: ifade .4s var(--ease) both; }
.ifade-enter, .ifade-leave { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.ifade-start { opacity: 0; transform: translateY(-6px); }
@keyframes ifade { from { opacity: 0; } }

/* Stories em tela cheia: 9:16 no computador, tela inteira no celular */
.storyview { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 20px; background: rgba(8,6,5,.94); color: #fff; }
.storyview-frame { position: relative; width: 100vw; height: 100dvh; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (min-width: 600px) and (min-height: 540px) {
  .storyview-frame { width: auto; height: min(92dvh, 860px); aspect-ratio: 9 / 16; border-radius: 20px; box-shadow: var(--shadow-modal); }
}
.storyview-frame::before, .storyview-frame::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.storyview-frame::before { top: 0; height: 120px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.storyview-frame::after { bottom: 0; height: 140px; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.storyview-media { position: absolute; inset: 0; display: grid; place-items: center; }
.storyview-media > * { grid-area: 1 / 1; }
.storyview-media img, .storyview-media video { width: 100%; height: 100%; object-fit: contain; }
.storyview-media .storyview-backdrop { object-fit: cover; filter: blur(28px) brightness(.55); transform: scale(1.15); }
.storyview-media > :not(.storyview-backdrop) { position: relative; z-index: 1; }
.storyview-bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 3; display: flex; gap: 4px; }
.storyview-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.storyview-bars i { display: block; height: 100%; width: 0; background: #fff; }
.storyview-top { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 12px; right: 8px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.storyview-who { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: .9375rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.storyview-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storyview-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--brand), var(--accent), var(--brand)); }
.storyview-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #000; }
.storyview-actions { display: flex; gap: 4px; flex: none; }
.storyview-actions button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; }
.storyview-actions button:hover { background: rgba(0,0,0,.55); }
.storyview-nav { position: absolute; inset: 80px 0 100px; z-index: 2; display: grid; grid-template-columns: 1fr 2fr; }
.storyview-nav button { border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.storyview-cta { position: absolute; z-index: 3; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }
.storyview-cta:active { transform: translateX(-50%) scale(.98); }
.storyview-side { display: none; }
@media (min-width: 900px) {
  .storyview-side { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
  .storyview-side:hover { background: rgba(255,255,255,.26); }
  .storyview-side[disabled] { visibility: hidden; }
}

/* Carrinho e finalização ------------------------------------------------ */
.pagehead { padding: 24px 0 4px; }
.pagehead h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
.pagehead p { color: var(--ink-2); margin-top: 6px; }
.steps { display: flex; gap: 6px; margin: 16px 0 20px; padding: 0; list-style: none; }
.steps li { flex: 1; font-size: .75rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--border); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--brand); }
.checkout { display: grid; gap: 18px; padding-bottom: 40px; }
@media (min-width: 920px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .summary { position: sticky; top: calc(var(--nav-h) + 16px); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
@media (min-width: 600px) { .panel { padding: 22px; } }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line:first-of-type { padding-top: 0; }
.line:last-of-type { border-bottom: 0; }
.line-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg-elevated); display: grid; place-items: center; font: 800 1.3rem var(--font-heading); color: var(--brand); }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-top strong { font-family: var(--font-heading); font-weight: 650; }
.line-detail { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.line-msg { font-size: .8125rem; font-weight: 700; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.line-msg.error { color: var(--danger); }
.line-msg.warn { color: var(--warning); }
.line-msg .icon { width: 16px; height: 16px; margin-top: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elevated); font-weight: 700; cursor: pointer; text-align: center; padding: 6px; color: var(--ink-2); transition: border-color .14s, background .14s; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.formgrid { display: grid; gap: 14px; }
@media (min-width: 560px) { .formgrid.two { grid-template-columns: 1fr 1fr; } .formgrid .span2 { grid-column: 1 / -1; } }
.totals { list-style: none; padding: 0; margin: 0; }
.totals li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; color: var(--ink-2); }
.totals li.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.totals li.total span:last-child { color: var(--brand); }
.totals .discount { color: var(--success); }
.totals .fee-hint { display: block; font-size: .75rem; color: var(--muted); }
.coupon { display: flex; gap: 8px; }
.coupon .input { text-transform: uppercase; }
.errors { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); font-weight: 600; font-size: .875rem; }
.errors ul { margin: 0; padding-left: 18px; }
.callout { padding: 14px 16px; border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.callout .icon { color: var(--brand); margin-top: 2px; }
.callout.warn .icon { color: var(--warning); }
.message-preview { white-space: pre-wrap; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 14px; max-height: 340px; overflow: auto; color: var(--ink-2); }
.handoff { text-align: center; padding: 8px 0 4px; }
.handoff .seal { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--whatsapp) 16%, var(--surface)); color: var(--whatsapp); }
.handoff .seal .icon { width: 32px; height: 32px; }
.handoff h2 { font-size: 1.5rem; margin: 0; }
.handoff p { color: var(--ink-2); margin: 8px auto 0; max-width: 44ch; }
.badge-ref { display: inline-block; font: 750 1rem var(--font-heading); padding: 6px 14px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); margin-top: 12px; }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state > .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--muted); }
.empty-state h2 { font-size: 1.375rem; }
.empty-state p { color: var(--muted); margin: 8px auto 18px; max-width: 42ch; }

/* Barra de listagem: ordenação, filtros e modo de exibição */
.toolbar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "sort filters view"; gap: 10px 12px; align-items: center; margin: 16px 0 4px; }
.toolbar-sort { grid-area: sort; position: relative; display: flex; align-items: center; }
.toolbar-sort .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.toolbar-sort .select { min-height: 40px; padding: 6px 14px 6px 36px; border-radius: 999px; font-weight: 600; font-size: .875rem; width: auto; background: var(--surface); }
.toolbar-filters { grid-area: filters; display: flex; gap: 8px; align-items: center; min-width: 0; }
.toolbar .viewtoggle { grid-area: view; }
.filterchip { position: relative; flex: none; }
.filterchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.filterchip span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .875rem; cursor: pointer; color: var(--ink-2); }
.filterchip input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.filterchip input:checked + span::before { content: "✓"; }
.filterchip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.viewtoggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex: none; }
.viewtoggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 40px; justify-content: center; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: .875rem; cursor: pointer; }
.viewtoggle button .icon { width: 17px; height: 17px; }
.viewtoggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
@media (max-width: 640px) {
  .toolbar { grid-template-columns: 1fr auto; grid-template-areas: "sort view" "filters filters"; }
  .toolbar-sort .select { width: 100%; }
  .toolbar-filters { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .toolbar-filters::-webkit-scrollbar { display: none; }
}
@media (max-width: 420px) { .viewtoggle button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .viewtoggle button { padding: 0 11px; } }
.menusearch { display: flex; gap: 8px; margin-top: 14px; }
.menusearch .input { padding-left: 42px; }
.menusearch .wrapicon { position: relative; flex: 1; }
.menusearch .wrapicon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Esqueleto de carregamento */
.pcard.skeleton { pointer-events: none; }
.pcard.skeleton .pcard-media { background: var(--bg-elevated); }
.sk-line { display: block; height: 12px; border-radius: 6px; background: var(--surface-hover); width: 80%; }
.sk-line.short { width: 55%; }
.sk-line.price { width: 35%; height: 16px; margin-top: auto; }
.pcard.skeleton .pcard-media, .sk-line { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 7%, transparent), transparent); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
[data-view="list"] .pgrid .pcard.skeleton { flex-direction: row-reverse; }
[data-view="list"] .pgrid .pcard.skeleton .pcard-media { width: 120px; min-height: 120px; aspect-ratio: auto; border-radius: 0 15px 15px 0; }
[data-view="list"] .pgrid .pcard.skeleton .pcard-body { flex: 1; padding: 14px; }
.listing-error { margin-top: 12px; }
.listing-error > .icon { color: var(--warning); }

/* Endereço por CEP */
.cep-row { display: flex; gap: 8px; align-items: center; }
.cep-row .cep-input { max-width: 180px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cep-status { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; font-size: .8125rem; color: var(--muted); min-height: 1.3em; }
.cep-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: .45em; background: var(--border); }
.cep-status.is-loading::before { display: none; }
.cep-status.is-found { color: var(--success); font-weight: 600; }
.cep-status.is-found::before { background: var(--success); }
.cep-status.is-not_found, .cep-status.is-unavailable { color: var(--warning); font-weight: 600; }
.cep-status.is-not_found::before, .cep-status.is-unavailable::before { background: var(--warning); }
.cep-status.is-invalid { color: var(--danger); font-weight: 600; }
.cep-status.is-invalid::before { background: var(--danger); }
.spinner { flex: none; width: 14px; height: 14px; margin-top: .2em; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn.small { font-size: .8125rem; align-self: flex-start; }
.autofill { display: inline-block; margin-left: 4px; font-size: .6875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); vertical-align: 1px; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 15; top: calc(100% - 4px); left: 0; right: 0; max-height: 240px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-float); }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo-list li:hover, .combo-list li.active { background: var(--brand-soft); }
.combo-list li.active { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Pedidos neste aparelho */
.orderlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ordercard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.ordercard header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ordercard h2 { font-size: 1.05rem; }
.ordercard .meta { color: var(--muted); font-size: .8125rem; }
.ordercard ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .875rem; }
.ordercard .total { font-weight: 800; color: var(--brand); }
.ordercard .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Página de conteúdo */
.prose { max-width: 72ch; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(18px, 4vw, 36px); margin-bottom: 40px; color: var(--ink-2); }
.prose h1 { margin-bottom: 18px; }
.prose h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; line-height: 1.65; }
.prose a { color: var(--brand); }
.prose strong { color: var(--ink); }

/* Rodapé */
.footer { margin-top: 56px; padding: 32px 0 40px; background: var(--bg-elevated); border-top: 1px solid var(--border); font-size: .875rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } .footer-note { grid-column: 1 / -1; } }
.footer-name { font: 750 1.15rem var(--font-heading); display: block; margin-bottom: 10px; color: var(--ink); }
.footer p { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.footer .icon { width: 16px; height: 16px; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a, .social a { text-decoration: none; font-weight: 600; display: inline-flex; min-height: 36px; align-items: center; }
.footer-links a:hover, .social a:hover { text-decoration: underline; color: var(--ink); }
.social { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.footer-note { color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--border); padding-top: 16px; }
body:has(.cartbar:not([style*="none"])) .footer { padding-bottom: 96px; }

/* Indisponível */
.standalone { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.standalone h1 { margin: 14px 0 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
