/* ==========================================================================
   Natal Tem — estilos (mobile-first)
   ========================================================================== */

/* Montserrat hospedada no próprio site (fonte variável 400–800, licença OFL) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca (do logotipo) */
  --azul: #00a3dc;
  --azul-700: #0a6e9c;      /* botões e links: contraste AA com branco */
  --azul-50: #eaf7fd;
  --laranja: #f2791e;
  --laranja-700: #b35205;   /* texto laranja sobre branco */
  --laranja-50: #fff3ea;

  --ink: #152033;
  --muted: #566174;
  --line: #e5e9ef;
  --soft: #f6f8fb;
  --white: #fff;
  --wa: #128c4a;
  --wa-hover: #0e753d;

  --v-primaria: var(--azul-700); /* sobrescrita por vitrine */

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 32, 51, .06), 0 6px 20px rgba(21, 32, 51, .06);
  --shadow-lg: 0 18px 50px rgba(21, 32, 51, .16);
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-700); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.text-center { text-align: center; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 9px 16px; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--v-primaria); color: #fff; }
.btn--primary:hover { filter: brightness(.92); }
.btn--outline { border-color: var(--azul-700); color: var(--azul-700); background: #fff; }
.btn--outline:hover { background: var(--azul-50); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: var(--wa-hover); }
.btn--muted, .btn:disabled, .btn.is-disabled {
  background: var(--soft); color: #8a93a3; border-color: var(--line); cursor: not-allowed; filter: none;
}
.btn.is-added { background: #fff; color: var(--v-primaria); border-color: var(--v-primaria); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--soft); color: var(--ink);
}
.icon-btn:hover { background: var(--line); }
.icon-btn .i { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; font-size: .88rem; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--laranja-700); margin-bottom: .6em;
}
.badge {
  position: absolute; display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; line-height: 1.4; background: #fff; color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.badge--draft { top: 12px; left: 12px; background: var(--laranja-50); color: var(--laranja-700); }
.badge--order { top: 12px; left: 12px; background: var(--laranja-50); color: var(--laranja-700); }
.badge--off { top: 12px; left: 12px; background: var(--ink); color: #fff; }
.badge--count { bottom: 12px; right: 12px; background: rgba(21,32,51,.72); color: #fff; box-shadow: none; }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--v-primaria); color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em;
}
.avatar--lg { width: 96px; height: 96px; font-size: 1.9rem; }
.avatar--xl { width: 76px; height: 76px; font-size: 1.6rem; border: 4px solid #fff; box-shadow: var(--shadow); }

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--soft); }
.section-head { margin-bottom: 28px; }
.section-head--center { text-align: center; }
.section-title { font-size: clamp(1.55rem, 5.5vw, 2.2rem); font-weight: 800; }
.section-title--sm { font-size: 1.35rem; }
.filter-note { margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* ---------- Header do site ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { display: none; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.site-nav a:not(.btn):hover { color: var(--azul-700); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 48px; overflow: hidden; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2rem, 8.4vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.hero__title .hl { color: var(--azul-700); }
.hero__lead { margin: 18px 0 28px; font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__art { display: none; }

/* Ilustração do celular */
.hero__art { position: relative; justify-self: center; width: 300px; height: 400px; }
.hero__art::before {
  content: ""; position: absolute; inset: 30px -20px 10px 10px; border-radius: 48px;
  background: linear-gradient(145deg, var(--azul-50), var(--laranja-50));
}
.phone {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-3deg);
  width: 220px; height: 390px; padding: 18px 14px; border-radius: 34px;
  background: #fff; border: 8px solid var(--ink); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.phone__top { display: flex; align-items: center; gap: 10px; }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--azul); }
.phone__lines { display: grid; gap: 6px; flex: 1; }
.phone__lines i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.phone__lines i:first-child { width: 80%; background: #cfd6e0; }
.phone__lines i:last-child { width: 55%; }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.phone__grid span { border-radius: 12px; background: var(--soft); position: relative; }
.phone__grid span::after { content: ""; position: absolute; left: 8px; right: 30%; bottom: 8px; height: 6px; border-radius: 3px; background: #d7dde6; }
.phone__grid span:nth-child(1) { background: #e3f4fb; }
.phone__grid span:nth-child(4) { background: #fdebdd; }
.phone__cta { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--wa); color: #fff; }
.phone__cta i { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.55); }
.bubble {
  position: absolute; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--laranja); box-shadow: var(--shadow);
}
.bubble--tem { right: -6px; top: 40px; padding: 10px 18px; border-radius: 16px 16px 16px 4px; font-size: 1.15rem; transform: rotate(6deg); }
.bubble--bag { left: -4px; bottom: 60px; width: 56px; height: 56px; border-radius: 50%; background: var(--azul-700); }
.bubble--bag .i { width: 26px; height: 26px; }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cat-tile:hover { border-color: var(--azul); box-shadow: var(--shadow); }
.cat-tile.is-active { border-color: var(--azul-700); background: var(--azul-50); }
.cat-tile__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px;
  border-radius: 12px; background: var(--laranja-50); color: var(--laranja-700);
}
.cat-tile__icon .i { width: 24px; height: 24px; }
.cat-tile__name { font-weight: 700; }
.cat-tile__count { font-size: .82rem; color: var(--muted); }

/* ---------- Vitrines (home) ---------- */
.vitrines-grid { display: grid; gap: 20px; }
.biz-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.biz-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.biz-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.biz-card__media > img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--v-primaria) 14%, #fff) 0 30%, transparent 31%),
    radial-gradient(circle at 85% 90%, var(--laranja-50) 0 28%, transparent 29%),
    var(--soft);
}
.biz-card__fallback img { width: 120px; height: 120px; object-fit: contain; border-radius: 50%; background: #fff; }
.biz-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.biz-card__cat { margin: 0; font-size: .78rem; font-weight: 700; color: var(--laranja-700); text-transform: uppercase; letter-spacing: .08em; }
.biz-card__title { font-size: 1.3rem; font-weight: 800; }
.biz-card__title a { color: var(--ink); text-decoration: none; }
.biz-card__title a::after { content: ""; position: absolute; inset: 0; } /* card inteiro clicável */
.biz-card__desc { color: var(--muted); margin: 0; }
.biz-card__meta { margin: 0; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.biz-card__link { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--azul-700); display: inline-flex; align-items: center; gap: 6px; }
.biz-card:hover .biz-card__link .i { transform: translateX(3px); }
.biz-card__link .i { transition: transform .15s; }

.join-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  border: 2px dashed #cfe6f2; background: linear-gradient(160deg, var(--azul-50), #fff 70%);
}
.join-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--azul-700); box-shadow: var(--shadow); }
.join-card__icon .i { width: 28px; height: 28px; }
.join-card__title { font-size: 1.2rem; font-weight: 800; }
.join-card p { color: var(--muted); margin: 0 0 8px; }

.empty-note { padding: 28px; border-radius: var(--radius); background: var(--soft); }
.empty-note h3 { font-size: 1.25rem; margin: 10px 0; }
.empty-note p { color: var(--muted); }
.empty-note__icon { color: var(--laranja); }
.empty-note__icon .i { width: 32px; height: 32px; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 18px; }
.about__text { font-size: 1.05rem; color: var(--muted); max-width: 40em; }
.about__lead { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.about__punch strong { color: var(--laranja-700); }

/* ---------- Como funciona ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--azul-50); color: var(--azul-700); font-weight: 800; font-size: 1.1rem;
}
.step__num--wa { background: #e5f5ec; color: var(--wa); }
.step__num--wa .i { width: 22px; height: 22px; }
.step__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- Faixa "participe" ---------- */
.join-band {
  display: grid; gap: 24px; padding: 32px 24px; border-radius: 24px;
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.join-band::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 130px; height: 130px;
  border-radius: 40px; background: var(--laranja); opacity: .9; transform: rotate(18deg);
}
.join-band > * { position: relative; z-index: 1; }
.join-band .section-title { color: #fff; margin-bottom: 12px; }
.join-band p { color: #cfd6e2; max-width: 34em; }
.join-band__note { font-weight: 700; color: #fff !important; }

/* ---------- Rodapé do site ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: .92rem; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__logo img { height: 64px; width: auto; }
.site-footer__brand p { margin-top: 10px; color: var(--muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; align-content: flex-start; }
.site-footer__nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-footer__nav a:hover { color: var(--azul-700); text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem;
}

/* ---------- Páginas de texto ---------- */
.prose h2 { font-size: 1.15rem; margin: 1.8em 0 .6em; }
.prose p { color: #3a4557; }

/* ==========================================================================
   Vitrine
   ========================================================================== */
.vt-bar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.vt-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.vt-bar__brand { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.vt-bar__brand strong { color: var(--ink); }
.vt-bar__brand:hover strong { color: var(--azul-700); }
.vt-bar__bag {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--soft); color: var(--ink);
}
.vt-bar__bag .i { width: 22px; height: 22px; }
.vt-bar__count, .bag-bar__count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--laranja); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.vt-bar__count:empty, .vt-bar__count[data-zero] { display: none; }

.draft-banner { background: var(--laranja-50); color: #6b3303; font-size: .86rem; padding: 10px 0; border-bottom: 1px solid #f7d8bf; }

.showcase-head { padding-bottom: 8px; }
.showcase-head__cover { width: 100%; height: clamp(170px, 42vw, 380px); overflow: hidden; background: var(--soft); }
.showcase-head__cover img { width: 100%; height: 100%; object-fit: cover; }
.showcase-head__inner { padding-top: 28px; }
.has-cover .showcase-head__inner { padding-top: 0; position: relative; }
.has-cover .showcase-head__id > :first-child { margin-top: -38px; }
.showcase-head__id { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.showcase-head__logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); background: #fff; }
.has-cover .showcase-head__id { align-items: flex-end; }
.showcase-head__cat { margin: 0 0 2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--v-primaria); }
.showcase-head__title { font-size: clamp(1.6rem, 6.5vw, 2.4rem); font-weight: 800; }
.showcase-head__about { color: var(--muted); max-width: 42em; font-size: 1.02rem; }
.showcase-head__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px !important; font-size: .9rem; color: var(--muted); }
.showcase-head__meta li { display: flex; align-items: center; gap: 6px; }

.showcase-head__name { flex: 1; min-width: 0; }
.showcase-head__contact { display: flex; gap: 8px; flex: none; align-self: center; }
.has-cover .showcase-head__contact { align-self: flex-end; }

/* Contatos discretos ao lado do título */
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-size: .86rem; font-weight: 700; text-decoration: none;
}
.contact-btn .i { width: 20px; height: 20px; }
.contact-btn:hover { border-color: var(--ink); }
.contact-btn--wa { color: var(--wa); border-color: color-mix(in srgb, var(--wa) 35%, #fff); }
.contact-btn--wa:hover { background: #eef8f2; border-color: var(--wa); }
.contact-btn__label { display: none; }

/* Passo a passo: 1 → 2 → 3 */
.order-steps { margin-bottom: 28px; padding: 16px; border-radius: var(--radius); background: var(--soft); }
.order-steps__list { display: flex; align-items: flex-start; }
.order-steps__item {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.order-steps__item + .order-steps__item::before {
  content: ""; position: absolute; left: -9px; top: 9px; width: 10px; height: 10px;
  border-top: 2px solid #b7c0cc; border-right: 2px solid #b7c0cc; transform: rotate(45deg);
}
.order-steps__num {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--v-primaria); color: #fff; font-weight: 800; font-size: .9rem;
}
.order-steps__note {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.45; color: var(--muted);
}
.order-steps__note .i { margin-top: 1px; color: var(--muted); }

.section--catalog { padding-top: 12px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.catalog-count { margin: 0; font-size: .86rem; color: var(--muted); }

.catalog-tools {
  position: sticky; top: 56px; z-index: 20; display: grid; gap: 12px;
  margin: 0 calc(var(--gutter) * -1) 16px; padding: 12px var(--gutter);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
}
.search { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__input {
  width: 100%; height: 50px; padding: 0 48px 0 46px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--soft); font-size: 1rem;
}
.search__input:focus { outline: none; border-color: var(--v-primaria); background: #fff; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--azul-50);
  font-size: .86rem; line-height: 1.5; color: #1d3a4d;
}
.notice .i { color: var(--azul-700); margin-top: 2px; }
.notice--inline { margin-bottom: 20px; }

/* Grade de produtos: 1 coluna no celular (fotos grandes) */
.product-grid, .service-grid { display: grid; gap: 20px; }
.product-card, .service-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.product-card[hidden], .service-card[hidden] { display: none; }
.product-card__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card__media:hover img { transform: scale(1.03); }
.img-placeholder {
  display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; height: 100%;
  color: #9aa4b3; font-size: .82rem; font-weight: 600;
  background: repeating-linear-gradient(135deg, var(--soft) 0 14px, #eef2f6 14px 28px);
}
.img-placeholder .i { width: 40px; height: 40px; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.product-card__title { font-size: 1.08rem; font-weight: 700; }
.product-card__title button { padding: 0; border: 0; background: none; text-align: left; font-weight: inherit; }
.product-card__title button:hover { color: var(--v-primaria); }
.product-card__desc { margin: 0; font-size: .9rem; color: var(--muted); }
.product-card__vars { margin: 0; font-size: .8rem; color: var(--muted); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
/* Produto já na sacola: borda + selo, para a pessoa não se perder */
.product-card { transition: border-color .2s, box-shadow .2s; }
.product-card.in-bag { border-color: var(--v-primaria); box-shadow: 0 0 0 1px var(--v-primaria); }
.badge--inbag {
  top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--v-primaria); color: #fff;
}
.badge--inbag .i { width: 14px; height: 14px; }
.product-dialog__inbag {
  display: flex; gap: 8px; align-items: flex-start; margin: 0;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: .86rem; line-height: 1.45;
  background: color-mix(in srgb, var(--v-primaria) 8%, #fff); color: var(--ink);
}
.product-dialog__inbag .i { color: var(--v-primaria); margin-top: 2px; }
.is-unavailable .product-card__media img { filter: grayscale(.8); opacity: .7; }

.price { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--ink); line-height: 1.2; }
.price small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.price--ask { font-size: .86rem; font-weight: 700; color: var(--muted); }
.price--lg { font-size: 1.5rem; }

.service-card__media { aspect-ratio: 3 / 2; background: var(--soft); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.service-card__title { font-size: 1.15rem; font-weight: 800; }
.service-card__desc { margin: 0; color: var(--muted); font-size: .94rem; }
.service-card__obs { margin: 0; font-size: .84rem; color: var(--muted); display: flex; gap: 6px; }
.service-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }

.catalog-empty { text-align: center; padding: 40px 0; color: var(--muted); }

.vt-footer { margin-top: 32px; padding: 32px 0 120px; background: var(--soft); font-size: .9rem; text-align: center; }
.vt-footer__small { font-size: .8rem; color: var(--muted); max-width: 40em; margin-left: auto; margin-right: auto; }
.vt-footer a { color: var(--muted); }

/* ---------- Diálogos (bottom sheet no celular) ---------- */
.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(21, 32, 51, .5); }
.sheet[open] { animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close-form { position: sticky; top: 0; z-index: 3; height: 0; }
.sheet__close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
body.has-dialog { overflow: hidden; }

/* Produto */
.product-dialog__grid { display: grid; }
.gallery { position: relative; background: var(--soft); }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 1 / 1;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { flex: 0 0 100%; scroll-snap-align: center; }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); box-shadow: var(--shadow); display: none; }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; justify-content: center; }
.gallery__thumbs:empty { display: none; }
.gallery__thumbs button { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; opacity: .65; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--v-primaria); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-dialog__info { padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.product-dialog__status { margin: 0; font-size: .78rem; font-weight: 700; color: var(--laranja-700); text-transform: uppercase; letter-spacing: .06em; }
.product-dialog__status:empty { display: none; }
.product-dialog__title { font-size: 1.45rem; font-weight: 800; padding-right: 40px; }
.product-dialog__desc { color: var(--muted); font-size: .96rem; white-space: pre-line; }
.product-dialog__obs { margin: 0; font-size: .86rem; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--laranja); }

.variations { display: grid; gap: 18px; }
.variations:empty { display: none; }
.var-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.var-group legend, .field label { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.var-group legend .req { color: var(--laranja-700); font-weight: 600; font-size: .8rem; }
.var-options { display: flex; flex-wrap: wrap; gap: 8px; }
.var-option { position: relative; }
.var-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.var-option span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 9px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 600; background: #fff;
}
.var-option span small { font-weight: 600; color: var(--muted); }
.var-option input:checked + span { border-color: var(--v-primaria); background: color-mix(in srgb, var(--v-primaria) 8%, #fff); box-shadow: inset 0 0 0 1px var(--v-primaria); }
.var-option input:focus-visible + span { outline: 3px solid var(--laranja); outline-offset: 2px; }

/* Opções com quantidade própria (produto com um único grupo de opções) */
.var-list { display: grid; gap: 8px; }
.var-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.var-row.is-selected { border-color: var(--v-primaria); background: color-mix(in srgb, var(--v-primaria) 6%, #fff); }
.var-row__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.var-row__name { font-weight: 600; font-size: .92rem; }
.var-row__price { font-size: .82rem; color: var(--muted); }
.var-row .qty { background: #fff; }
.var-row .qty__val { min-width: 26px; text-align: center; font-weight: 700; }
.var-row.is-selected .qty__val { color: var(--v-primaria); }

.field { display: grid; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--v-primaria); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-primaria) 18%, transparent); }
.field small { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.product-dialog__buy {
  display: flex; gap: 10px; align-items: stretch; margin-top: 6px;
  position: sticky; bottom: 0; padding: 12px 0 4px; background: #fff;
}
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; flex: none; }
.qty__btn { width: 44px; height: 48px; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty__btn:hover { background: var(--soft); }
.qty__input { width: 36px; border: 0; text-align: center; font-weight: 700; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm .qty__btn { width: 36px; height: 36px; }
.qty--sm .qty__input, .qty--sm .qty__val { width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.form-error { margin: 0; color: #b42318; font-size: .88rem; font-weight: 600; }

/* Sacola */
.cart { display: flex; flex-direction: column; }
.cart[open] { display: flex; }
.cart__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 14px 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.cart__title { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cart__body { padding: 16px 20px 24px; }
.cart__empty { text-align: center; padding: 40px 0; color: var(--muted); }
.cart__empty-icon .i { width: 44px; height: 44px; color: #c3cad5; margin-bottom: 10px; }
.cart__items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--soft); display: grid; place-items: center; color: #aab3c0; }
.cart-item__name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.cart-item__var { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-item__price { font-size: .86rem; text-align: right; }
.cart-item__price strong { display: block; font-size: .95rem; }
.cart-item__price span { color: var(--muted); font-size: .78rem; }
.cart-item__remove { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.cart-item__remove:hover { background: var(--soft); color: #b42318; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-weight: 700; }
.cart__total strong { font-size: 1.3rem; }
.cart__total-note { font-size: .8rem; color: var(--muted); margin: 0; }
.order-form { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-form__intro { margin: 0; font-size: .88rem; color: var(--muted); }
.cart__links { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
.cart__links a { color: var(--muted); }

/* Barra fixa da sacola */
.bag-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0));
}
.bag-bar[hidden] { display: none; }
.bag-bar__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin: 0 auto;
  min-height: 56px; padding: 8px 20px 8px 10px; border: 0; border-radius: 999px;
  background: var(--v-primaria); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg);
}
.bag-bar__icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18); }
.bag-bar__icon .i { width: 22px; height: 22px; }
.bag-bar__count { top: -4px; right: -6px; }
.bag-bar__label { flex: 1; text-align: left; }

.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: var(--shadow-lg);
}
.wa-float .i { width: 30px; height: 30px; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: sheet-up .2s ease-out;
}
.toast[hidden] { display: none; }
.toast .i { color: #7ee2a8; }
.toast__action { border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: .84rem; }

/* ---------- Chat "Quero minha vitrine" ---------- */
.join-chat { height: 80dvh; }
.join-chat[open] { display: flex; flex-direction: column; }
.join-chat__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.join-chat__head > div { flex: 1; }
.join-chat__title { font-size: 1.05rem; font-weight: 800; }
.join-chat__sub { margin: 0; font-size: .78rem; color: var(--muted); }
.join-chat__body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 18px 16px; background: var(--soft);
}
.chat-msg {
  max-width: 82%; margin: 0; padding: 10px 14px; font-size: .95rem; line-height: 1.45;
  border-radius: 18px; animation: sheet-up .2s ease-out;
}
.chat-msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(21,32,51,.08); }
.chat-msg--user { align-self: flex-end; background: var(--azul-700); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg.is-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b7c0cc; animation: typing 1s infinite ease-in-out; }
.chat-msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.join-chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; background: #fff; border-top: 1px solid var(--line); }
.join-chat__form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.join-chat__quick:not([hidden]) + .join-chat__form { border-top: 0; }
.join-chat__form input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--soft);
}
.join-chat__form input:focus { outline: none; border-color: var(--azul-700); background: #fff; }
.join-chat__send {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 0; border-radius: 50%; background: var(--azul-700); color: #fff;
}
.join-chat__send .i { width: 22px; height: 22px; }
.join-chat__done { display: grid; gap: 4px; justify-items: center; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 520px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .site-header__inner { height: 80px; }
  .brand img { height: 60px; }
  .site-nav a:not(.btn) { display: inline; }
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 1.25fr 1fr; }
  .hero__art { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .join-band { grid-template-columns: 1fr auto; align-items: center; padding: 48px; }
  .about { grid-template-columns: 1fr 1.4fr; gap: 48px; }
  .site-footer__inner { grid-template-columns: 1fr 1.2fr; }
  .site-footer__nav { justify-content: flex-end; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }

  .vitrines-grid { grid-template-columns: repeat(2, 1fr); }
  .vitrines-grid--empty { grid-template-columns: 1.6fr 1fr; }
  /* Uma única vitrine: card largo em destaque + convite ao lado */
  .vitrines-grid--1 { grid-template-columns: 2fr 1fr; }
  .biz-card--wide { flex-direction: row; }
  .biz-card--wide .biz-card__media { flex: 1.1; aspect-ratio: auto; min-height: 320px; }
  .biz-card--wide .biz-card__body { flex: 1; padding: 32px; justify-content: center; }
  .biz-card--wide .biz-card__title { font-size: 1.7rem; }
  .biz-card--wide .biz-card__link { margin-top: 12px; }

  .catalog-tools { grid-template-columns: minmax(260px, 380px) 1fr; align-items: center; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .catalog-tools .chips { margin: 0; padding: 2px; }
  .contact-btn__label { display: inline; }
  .contact-btn--wa { width: auto; padding: 0 16px 0 12px; }
  .order-steps { padding: 16px 20px; }
  .order-steps__list { gap: 56px; }
  .order-steps__item { flex: 0 1 auto; flex-direction: row; align-items: center; text-align: left; gap: 10px; font-size: .92rem; }
  .order-steps__item + .order-steps__item::before { left: -34px; top: 10px; }
  .section--catalog { padding-top: 16px; }
  .showcase-head__name { flex: 0 1 auto; }
  .showcase-head__contact { margin-left: 12px; }

  /* Diálogos centralizados */
  .sheet { width: min(960px, calc(100% - 48px)); max-height: 88vh; margin: auto; border-radius: 22px; }
  .product-dialog__grid { grid-template-columns: 1.1fr 1fr; }
  .gallery__nav { display: grid; }
  .product-dialog__info { padding: 32px; }
  .sheet--side { width: 440px; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 22px 0 0 22px; }
  .sheet--side[open] { animation: sheet-left .25s ease-out; }
  @keyframes sheet-left { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .bag-bar { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; }
  .bag-bar__btn { width: auto; }
  .toast { bottom: 100px; }
  .vt-footer { padding-bottom: 48px; }
  .join-chat { width: 400px; height: min(620px, calc(100dvh - 48px)); margin: auto 24px 24px auto; border-radius: 22px; }
}

@media (min-width: 1000px) {
  .vitrines-grid--2, .vitrines-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .service-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

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