/* ============================================================
   Estofados São Jerônimo — estilos
   Linha neutra: branco, cinzas e preto. A cor fica por conta
   das fotos dos estofados. Tokens centralizados no :root.
   ============================================================ */
:root {
  --bg: #ffffff;
  --soft: #f5f4f2;
  --img-bg: #efedea;
  --ink: #151515;
  --ink-2: #3a3a3a;
  --muted: #727272;
  --line: #e7e5e1;

  --wa: #1faf55;
  --wa-dark: #178f45;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .22);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .35);

  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; }
h3, h4 { font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.kicker { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.3em; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--sm { padding: .6em 1em; font-size: .86rem; }
.btn--lg { padding: 1em 1.5em; font-size: .98rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--soft); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 6px; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #e9e9e9; font-size: .8rem; padding-top: env(safe-area-inset-top, 0px); }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar__inner > span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 760px) {
  .topbar__inner { justify-content: center; }
  .topbar__mid, .topbar__end { display: none !important; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo__name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; }
.logo__tag { font-size: .62rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo--light { color: #fff; }
.logo--light .logo__tag { color: #9a9a9a; }
.logo__img { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain; }
@media (max-width: 480px) { .logo__img { height: 36px; max-width: 150px; } }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { position: relative; padding: 8px 12px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__wa { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; font-size: .88rem; font-weight: 600; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 700; border: 2px solid #fff;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }

@media (max-width: 1100px) { .nav a:not(.btn) { padding: 8px 8px; font-size: .86rem; } .nav a:not(.btn)::after { left: 8px; right: 8px; } }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .header__wa { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 8px 20px 24px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 15px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__wa { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 480px) {
  .cart-btn__label { display: none; }
  .logo__name { font-size: 1.25rem; }
}

/* ---------- Vitrine (hero) ---------- */
.hero {
  position: relative; margin-top: 20px; border-radius: var(--r-lg); overflow: hidden;
  height: clamp(460px, 72vh, 660px); background: var(--img-bg); color: #fff; isolation: isolate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 50%, rgba(0, 0, 0, 0) 80%),
              linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 45%);
}
.hero__content { position: absolute; left: clamp(24px, 5vw, 64px); bottom: clamp(28px, 6vw, 64px); right: 24px; max-width: 620px; }
.hero__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 14px 0 16px; }
.hero p { font-size: clamp(1rem, 1.4vw, 1.12rem); opacity: .9; max-width: 32em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__price {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  background: #fff; color: var(--ink); border-radius: var(--r); padding: 14px 18px; line-height: 1.2;
}
.hero__price small { display: block; font-size: .75rem; color: var(--muted); }
.hero__price strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 560px; margin-top: 12px; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .1) 100%); }
  .hero__content { left: 20px; right: 20px; bottom: 24px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__price { top: 16px; bottom: auto; right: 16px; padding: 10px 14px; }
  .hero__price strong { font-size: 1.2rem; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--soft); }
.section--line { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: clamp(24px, 4vw, 40px); }
.lead { font-size: 1.05rem; color: var(--ink-2); }

/* ---------- Catálogo ---------- */
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.catalog-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }

.filters { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex-shrink: 0; padding: 12px 14px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent;
  font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s;
}
.filter:hover { color: var(--ink); }
.filter[aria-selected="true"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.filter .n { margin-left: 6px; font-size: .78em; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .filters { margin-inline: -20px; padding-inline: 12px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 44px 24px; }
.card { display: flex; flex-direction: column; animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / .86; padding: 0; border: 0;
  border-radius: var(--r); overflow: hidden; background: var(--img-bg);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute; top: 12px; left: 12px; padding: .35em .7em; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .03em;
}
.card__view {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: .7em; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .84rem; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease);
}
.card:hover .card__view, .card__media:focus-visible .card__view { opacity: 1; transform: none; }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.card__meta { font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.card__title { font-size: 1.08rem; font-weight: 600; }
.card__title a { color: inherit; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin: 8px 0 16px; }
.price small { font-size: .8rem; color: var(--muted); }
.price strong { font-size: 1.4rem; font-weight: 700; letter-spacing: -.015em; }
.price .inst { width: 100%; font-size: .8rem; color: var(--muted); }
.card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-width: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg);
  font-weight: 600; font-size: .84rem; transition: border-color .2s, background .2s;
}
.btn-add:hover { border-color: var(--ink); }
.btn-add.is-added { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-add__txt { display: none; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .card__media { aspect-ratio: 1 / 1; }
  .card__badge { top: 8px; left: 8px; font-size: .62rem; }
  .card__view, .card__meta, .price .inst { display: none; }
  .card__body { padding-top: 10px; }
  .card__title { font-size: .95rem; line-height: 1.25; }
  .price { margin: 4px 0 12px; }
  .price small { font-size: .72rem; width: 100%; }
  .price strong { font-size: 1.15rem; }
  .card__actions { grid-template-columns: 1fr; gap: 6px; }
  .card__actions .btn, .btn-add { padding: .7em .4em; font-size: .78rem; }
  .btn-add__txt { display: inline; }
}

/* esqueleto enquanto o catálogo carrega */
.card--skeleton { gap: 10px; animation: none; }
.card--skeleton span { display: block; aspect-ratio: 1 / .86; border-radius: var(--r); }
.card--skeleton i { display: block; height: 14px; border-radius: 4px; }
.card--skeleton i:last-child { width: 45%; height: 20px; }
.card--skeleton span, .card--skeleton i { background: linear-gradient(90deg, var(--img-bg) 25%, var(--soft) 50%, var(--img-bg) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* fallback quando imagem não carrega */
.media.is-broken, .card__media.is-broken { background: var(--img-bg); }
.is-broken img { visibility: hidden; }

/* ---------- Reforma ---------- */
.reforma { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.reforma h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 16px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.checklist .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; }
.reforma__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.caption { display: block; margin-top: 10px; text-align: center; color: var(--muted); font-size: .8rem; }

.ba { position: relative; aspect-ratio: 4 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--img-bg); user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__img--before { filter: grayscale(.8) sepia(.35) contrast(.8) brightness(.8) blur(.4px); }
.ba__img--before.is-real { filter: none; }
.ba__tag { position: absolute; top: 14px; padding: .35em .75em; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ba__tag--l { left: 14px; background: rgba(0, 0, 0, .6); color: #fff; }
.ba__tag--r { right: 14px; background: #fff; color: var(--ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: var(--shadow); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; border: 6px solid transparent; transform: translateY(-50%); }
.ba__handle span::before { left: 8px; border-right-color: var(--ink); }
.ba__handle span::after { right: 8px; border-left-color: var(--ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
@media (max-width: 900px) { .reforma { grid-template-columns: 1fr; } .reforma__media { max-width: 520px; width: 100%; margin-inline: auto; } }
@media (max-width: 520px) { .reforma__ctas .btn { flex: 1 1 100%; } }

/* ---------- Como comprar ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { display: flex; gap: 16px; padding-top: 20px; border-top: 1px solid var(--ink); }
.steps li > span { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.steps h3 { font-size: 1rem; margin-bottom: 6px; }
.steps p { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Depoimentos ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 10px; }
.rating strong { font-size: 1.6rem; font-weight: 700; }
.rating small { color: var(--muted); font-size: .85rem; }
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 15px; height: 15px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial { margin: 0; padding: 24px; background: var(--soft); border-radius: var(--r); display: flex; flex-direction: column; gap: 16px; }
.testimonial blockquote { margin: 0; font-size: 1rem; color: var(--ink-2); flex: 1; }
.testimonial figcaption { font-size: .85rem; color: var(--muted); }
.testimonial figcaption strong { color: var(--ink); }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap .section-title { margin-bottom: 10px; }
.faq-wrap .btn { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 46em; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: #b9b9b9; margin-top: 8px; }
@media (max-width: 520px) { .cta-band .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a9a9a9; padding: 8px 0 calc(96px + env(safe-area-inset-bottom, 0px)); } /* espaço para o botão flutuante do WhatsApp */
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 40px; padding-top: 48px; }
.footer__about { margin-top: 16px; max-width: 30em; font-size: .9rem; }
.footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ic { margin-top: 3px; color: #fff; }
.footer__bottom { position: relative; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: #7d7d7d; }
.footer__grid::before, .footer__bottom::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid #2c2c2c; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease), bottom .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
body.has-cart-bar .wa-float { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Barra do orçamento (mobile) ---------- */
.cart-bar {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border: 0; border-radius: var(--r);
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem;
  animation: slideUp .4s var(--ease);
}
.cart-bar > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cart-bar__go { text-decoration: underline; text-underline-offset: 3px; }
@keyframes slideUp { from { transform: translateY(120%); } }
@media (max-width: 760px) { .cart-bar:not([hidden]) { display: flex; } }
@media (min-width: 761px) { body.has-cart-bar .wa-float { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Dialogs (gaveta + zoom) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: #fff; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
body.no-scroll { overflow: hidden; }


.opt-group { border: 0; margin: 0; padding: 0; }
.opt-group--block { display: block; }
.opt-group legend, .opt-label { font-weight: 600; font-size: .86rem; margin-bottom: 10px; padding: 0; display: flex; gap: 8px; align-items: baseline; }
.opt-group legend small, .opt-label small { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: .6em .95em; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  font-size: .86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip small { opacity: .65; font-size: .8em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); }
.textarea { width: 100%; min-height: 70px; resize: vertical; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: .9rem; }
.textarea:focus, .field input:focus { outline: none; border-color: var(--ink); }


.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); box-shadow: var(--shadow-lg); }
.drawer[open] { animation: drawerIn .3s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer__inner { height: 100%; display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(22px + env(safe-area-inset-top, 0px)) 22px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 4px; }
.drawer__head small { font-size: .82rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--soft); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total > span { color: var(--muted); font-size: .9rem; }
.drawer__total strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.drawer__total strong small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.drawer .link-btn { justify-self: center; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; }
.field span { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.field input { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: .9rem; }

.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--img-bg); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: .95rem; }
.cart-item__opts { font-size: .8rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.cart-item__price { font-weight: 600; font-size: .9rem; }
.cart-item__price small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.qty button { width: 30px; height: 30px; border: 0; background: none; display: grid; place-items: center; }
.qty button:hover { background: var(--soft); }
.qty button .ic { width: 14px; height: 14px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .88rem; }
.cart-item__rm { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.cart-item__rm:hover { color: var(--ink); background: var(--soft); }

.empty { text-align: center; padding: 56px 12px; color: var(--muted); }
.empty__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.empty__icon .ic { width: 26px; height: 26px; }
.empty h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 16px; right: 16px; top: calc(var(--header-h) + 14px + env(safe-area-inset-top, 0px));
  width: fit-content; margin-inline: auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--r);
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem;
  animation: toastIn .3s var(--ease);
}
.toast button { border: 0; background: rgba(255, 255, 255, .14); color: #fff; padding: .45em .8em; border-radius: 6px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.toast button:hover { background: rgba(255, 255, 255, .24); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ============================================================
   v2 — vitrine, busca, depoimentos e página de produto
   ============================================================ */

/* banner de promoção (painel → Loja) */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 20px; background: var(--soft); color: var(--ink); font-size: .9rem; text-align: center;
  border-bottom: 1px solid var(--line);
}
.promo strong { font-weight: 700; }
.promo span { color: var(--ink-2); }
.promo .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.promo:hover .ic { transform: translateX(3px); }

/* busca no catálogo */
.catalog-head { flex-wrap: wrap; }
.busca { position: relative; flex: 0 1 340px; min-width: 0; }
.busca .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.busca input {
  width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: .92rem;
}
.busca input:focus { outline: none; border-color: var(--ink); }
@media (max-width: 640px) { .busca { flex: 1 1 100%; } }
.vazio-busca { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.vazio-busca p + p { margin-top: -10px; color: var(--ink-2); }

/* Loja sem WhatsApp: aviso discreto no lugar dos botões */
.aviso-contato { font-size: .85rem; color: var(--muted); text-align: center; }
main > .aviso-contato { padding-block: 10px; border-bottom: 1px solid var(--line); }

.section--destaques { padding-bottom: 0; }

/* extras do card */
.card__fotos {
  position: absolute; top: 12px; right: 12px; padding: .3em .6em; border-radius: 6px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .68rem; font-weight: 600;
}
.card__entrega { font-size: .78rem; color: var(--muted); margin: -8px 0 14px; }
.card__entrega.is-pronta { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .card__fotos { display: none; }
  .card__entrega { margin: -6px 0 10px; font-size: .72rem; }
}

/* depoimentos */
.testimonial__foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--img-bg); }
.testimonial figcaption span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.insta-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: .95rem; color: var(--ink-2); }
.insta-cta:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Página de produto ---------- */
.pdp-wrap { padding-block: 20px clamp(48px, 7vw, 80px); }
.migalhas { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.migalhas a:hover { color: var(--ink); text-decoration: underline; }
.migalhas [aria-current] { color: var(--ink); }

.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pdp__midia { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.pdp__info { display: grid; gap: 20px; }
.pdp__info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: -8px; }
.pdp__desc { color: var(--ink-2); font-size: 1.02rem; }
.pdp__info .price { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp__info .price strong { font-size: 2rem; }
.pdp__entrega { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); margin-top: -6px; }
.pdp__entrega.is-pronta { font-weight: 600; color: var(--ink); }
.pdp__opcoes { display: grid; gap: 20px; }
.pdp__acoes { display: grid; gap: 10px; }
.pdp__compartilhar { justify-self: center; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pdp__compartilhar:hover { text-decoration: underline; }
.pdp__garantias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__garantias li { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--soft); border-radius: var(--r); }
.pdp__garantias strong { display: block; font-size: .88rem; }
.pdp__garantias small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.pdp__garantias .ic { width: 22px; height: 22px; color: var(--ink); }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__midia { display: contents; }
  .galeria { order: 1; }
  .pdp__info { order: 2; }
  .pdp__garantias { order: 3; }
}
@media (max-width: 560px) {
  .pdp__garantias { grid-template-columns: 1fr; gap: 8px; }
  .pdp__garantias li { padding: 12px 14px; }
}

/* galeria: desliza no celular, miniaturas no computador */
.galeria { position: relative; display: grid; gap: 12px; }
.galeria__trilho {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--r-lg); background: var(--img-bg); aspect-ratio: 1 / .9;
}
.galeria__trilho::-webkit-scrollbar { display: none; }
.galeria__slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; }
.galeria__slide img { width: 100%; height: 100%; object-fit: cover; }
.galeria__badge { top: 16px; left: 16px; }
.galeria__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.galeria__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--img-bg); aspect-ratio: 1; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.galeria__thumbs button:hover { opacity: 1; }
.galeria__thumbs button[aria-selected="true"] { border-color: var(--ink); opacity: 1; }
.galeria__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.galeria__pontos { display: none; justify-content: center; gap: 6px; }
.galeria__pontos span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.galeria__pontos span.is-ativo { background: var(--ink); width: 18px; border-radius: 4px; }
@media (max-width: 900px) {
  .galeria__trilho { margin-inline: -20px; border-radius: 0; aspect-ratio: 1 / 1; }
  .galeria__thumbs { display: none; }
  .galeria__pontos { display: flex; }
  .galeria__badge { left: 0; }
}

/* esqueleto enquanto carrega */
.pdp--esqueleto span { display: block; aspect-ratio: 1 / .9; border-radius: var(--r-lg); }
.pdp--esqueleto div { display: grid; gap: 14px; align-content: start; }
.pdp--esqueleto i { display: block; height: 18px; border-radius: 4px; }
.pdp--esqueleto i:first-child { height: 44px; width: 80%; }
.pdp--esqueleto i:last-child { width: 40%; height: 30px; }
.pdp--esqueleto span, .pdp--esqueleto i { background: linear-gradient(90deg, var(--img-bg) 25%, var(--soft) 50%, var(--img-bg) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }

.nao-encontrado { text-align: center; padding: 72px 16px; display: grid; gap: 14px; justify-items: center; }
.nao-encontrado h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.nao-encontrado__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* zoom das fotos */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #0d0d0d; color: #fff; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #0d0d0d; }
.lightbox__img { max-width: 92vw; max-height: 86dvh; object-fit: contain; cursor: zoom-in; transition: transform .25s var(--ease); user-select: none; }
.lightbox__img.is-zoom { transform: scale(2.2); cursor: zoom-out; }
.lightbox .icon-btn { position: absolute; z-index: 2; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__fechar { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__nav--ant { left: 16px; }
.lightbox__nav--prox { right: 16px; }
.lightbox__contador { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 20px; font-size: .9rem; opacity: .8; }
.lightbox__dica { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; opacity: .55; font-size: .8rem; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
.footer__credito strong { color: #c9c9c9; font-weight: 600; }
