/* ================================================================
   Favorita Colchões – style.css
   Mobile-first · Sem JS · Hamburger via checkbox · Lightbox via :target
   ================================================================ */

/* ── Tokens ── */
:root {
  --blue:       #1a3d8f;
  --blue-dark:  #132d6e;
  --blue-light: #e8eef9;
  --gold:       #c9a44c;
  --dark:       #111827;
  --body:       #374151;
  --muted:      #6b7280;
  --white:      #ffffff;
  --bg-alt:     #f4f7fd;
  --border:     #e5e9f2;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(26,61,143,.09);
  --shadow-lg:  0 8px 40px rgba(26,61,143,.16);
  --trans:      .22s ease;
  --max-w:      1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Section header ── */
.section-header    { text-align: center; margin-bottom: 3rem; }
.section-title     { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--dark); line-height: 1.2; }
.section-subtitle  { margin-top: .625rem; font-size: 1.05rem; color: var(--muted); }

/* Eyebrow — pequena etiqueta acima do título, dá acabamento premium */
.section-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue);
  background: var(--blue-light);
  padding: .3rem .9rem; border-radius: 100px;
  margin-bottom: .9rem;
}
.section-eyebrow--light { color: var(--white); background: rgba(255,255,255,.15); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; line-height: 1;
  transition: all var(--trans); white-space: nowrap;
  cursor: pointer; border: 2px solid transparent;
}
.btn--primary  { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost    { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn--outline  { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--cta      { background: var(--gold); color: var(--dark); font-weight: 700; border-color: var(--gold); }
.btn--cta:hover { background: #b8932c; border-color: #b8932c; transform: translateY(-1px); }
.btn--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white); border-color: transparent;
}
.btn--instagram:hover { opacity: .88; transform: translateY(-1px); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; border-radius: 100px; box-shadow: 0 6px 20px rgba(201,164,76,.35); }
.btn--lg:hover { box-shadow: 0 10px 28px rgba(201,164,76,.5); }


/* ================================================================
   HEADER — hamburger via CSS checkbox (sem JS)
   ================================================================ */

/* Esconde o checkbox — é ativado via <label for="nav-toggle"> */
.nav-toggle { display: none; }

.header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(26,61,143,.07);
}
.header__bar {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: .875rem;
  flex-wrap: wrap; /* permite que o nav quebre para segunda linha no mobile */
}
.header__logo img { height: 62px; width: auto; object-fit: contain; }

/* Desktop nav */
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .125rem; }
.nav__link {
  display: block; padding: .5rem .875rem; border-radius: 6px;
  font-size: .88rem; font-weight: 500; color: var(--body);
  transition: all var(--trans);
}
.nav__link:hover { color: var(--blue); background: var(--blue-light); }

.header__cta { margin-left: .5rem; flex-shrink: 0; }

/* Hamburger label */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all var(--trans);
}

/* X quando checkbox marcado — ~ seleciona .header__bar como irmão do input */
.nav-toggle:checked ~ .header__bar .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle:checked ~ .header__bar .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle:checked ~ .header__bar .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }


/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 55%, #2558c2 100%);
  padding: 5rem 0 0; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.hero__inner {
  display: flex; align-items: center; gap: 3.5rem; position: relative; z-index: 1;
}
.hero__content { flex: 1; min-width: 0; }
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.13); color: rgba(255,255,255,.88);
  padding: .35rem 1rem; border-radius: 100px; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.2);
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900;
  color: var(--white); line-height: 1.12; margin-bottom: 1.1rem;
}
.hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,.78); max-width: 46ch; margin-bottom: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: var(--white); padding: .4rem .875rem; border-radius: 100px;
  font-size: .83rem; font-weight: 500;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Imagem do hero com badges flutuantes */
.hero__image {
  flex: 0 0 430px; max-width: 430px;
  position: relative; align-self: center;
}
.hero__image img {
  width: 100%; height: auto;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
/* Badges flutuantes sobre a imagem */
.hero__badge {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(8,20,60,.25);
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .95rem;
  animation: float 4s ease-in-out infinite;
}
.hero__badge strong { display: block; font-size: 1.25rem; font-weight: 900; color: var(--dark); line-height: 1; }
.hero__badge small  { display: block; font-size: .68rem; color: var(--muted); margin-top: .15rem; }
.hero__badge--rating { top: 1.5rem; left: -1.25rem; }
.hero__badge-star    { color: var(--gold); font-size: 1.6rem; line-height: 1; }
.hero__badge--pay {
  bottom: 1.5rem; right: -1rem;
  flex-direction: column; align-items: center; gap: 0;
  background: var(--gold); animation-delay: 2s;
}
.hero__badge--pay strong { color: var(--dark); font-size: 1.5rem; }
.hero__badge--pay small  { color: rgba(17,24,39,.7); font-weight: 600; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }

.hero__wave { position: relative; z-index: 1; line-height: 0; margin-top: 3rem; }
.hero__wave svg { width: 100%; display: block; }


/* ================================================================
   FAIXA DE ESTATÍSTICAS
   ================================================================ */
.stats { background: var(--white); padding: 2.75rem 0; border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .35rem; padding: .5rem 1rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__icon {
  color: var(--gold); font-size: 1.5rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: .15rem;
}
.stat__icon svg { color: var(--blue); }
.stat__num   { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--dark); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--muted); }


/* ================================================================
   TRUST / AVALIAÇÕES
   ================================================================ */
.trust {
  background: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 55%, #2558c2 100%);
  padding: 5rem 0;
}
.trust__grid { display: grid; grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: start; }
.trust__rating-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  backdrop-filter: blur(4px);
}
.trust__stars { font-size: 2rem; color: var(--gold); letter-spacing: 3px; line-height: 1; }
.star--dim { opacity: .35; }
.trust__score { font-size: 2.6rem; font-weight: 900; color: var(--white); margin-top: .5rem; line-height: 1; }
.trust__label { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.7); }
.trust__count { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .25rem; margin-bottom: 1.25rem; }
.trust__badges { display: flex; flex-direction: column; gap: .5rem; }
.trust__badge {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm);
  padding: .5rem .75rem; font-size: .85rem; font-weight: 500; color: var(--white);
}
.trust__badge svg { color: var(--gold); flex-shrink: 0; }
/* título da coluna de avaliações */
.trust__reviews-wrap .section-title { color: var(--white) !important; }
.trust__reviews { display: flex; flex-direction: column; gap: 1rem; }
.review {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}
.review__stars { color: var(--gold); font-size: .95rem; letter-spacing: 1px; margin-bottom: .5rem; }
.review__text  { color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.6; }
.review__author { margin-top: .625rem; font-size: .78rem; color: rgba(255,255,255,.5); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }


/* ================================================================
   PRODUTOS POR CATEGORIA — trilhos horizontais (scroll-snap, sem JS)
   ================================================================ */
.products { background: var(--bg-alt); padding: 5rem 0; }

.category { margin-bottom: 3.5rem; }
.category:last-of-type { margin-bottom: 0; }

.category__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.category__title { display: flex; align-items: center; gap: 1rem; }
.category__icon {
  flex-shrink: 0; width: 50px; height: 50px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); box-shadow: var(--shadow);
}
.category__title h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.category__title p  { font-size: .9rem; color: var(--muted); margin-top: .1rem; }
.category__hint {
  flex-shrink: 0; font-size: .8rem; font-weight: 600; color: var(--blue);
  background: var(--blue-light); padding: .35rem .85rem; border-radius: 100px;
}

/* Trilho horizontal com scroll-snap — deslize/arraste para ver os modelos */
.category__track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
  -webkit-overflow-scrolling: touch;
}
.category__track::-webkit-scrollbar { height: 8px; }
.category__track::-webkit-scrollbar-track { background: var(--border); border-radius: 100px; }
.category__track::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 100px; }

/* Card de produto */
.pcard {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.pcard__img {
  position: relative; aspect-ratio: 1/1; background: #f0f2f7; overflow: hidden;
}
.pcard__img img {
  width: 100%; height: 100%; object-fit: contain; padding: 1rem;
  transition: transform .4s ease;
}
.pcard:hover .pcard__img img { transform: scale(1.06); }
/* Cards largos p/ fichas de catálogo widescreen (categoria Colchões) */
.category--wide .pcard { flex-basis: 380px; }
.category--wide .pcard__img { aspect-ratio: 16 / 10; background: var(--white); }
.category--wide .pcard__img img { padding: .5rem; }

.pcard__info { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pcard__info h4 { font-size: 1.02rem; font-weight: 700; color: var(--dark); }
.pcard__info p  { font-size: .85rem; color: var(--muted); line-height: 1.5; flex: 1; }
.pcard__cta {
  margin-top: .5rem; font-size: .85rem; font-weight: 700; color: var(--blue);
  transition: gap var(--trans);
}
.pcard:hover .pcard__cta { color: var(--blue-dark); }

/* CTA geral da seção de produtos */
.products__cta {
  margin-top: 3.5rem; text-align: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.products__cta p { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 1.25rem; }


/* ================================================================
   VIDEO
   ================================================================ */
.video-section {
  background: linear-gradient(140deg, var(--blue-dark), var(--blue));
  padding: 5rem 0;
}
.video-section__inner { text-align: center; }
.video-section .section-title    { color: var(--white); }
.video-section .section-subtitle { color: rgba(255,255,255,.7); }
.video-wrap {
  max-width: 760px; margin: 2.5rem auto 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.video-wrap video { width: 100%; display: block; }


/* ================================================================
   FEATURES / DIFERENCIAIS
   ================================================================ */
.features { background: var(--white); padding: 5rem 0; }
.features__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.feature {
  text-align: center; padding: 2rem 1.25rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: all var(--trans);
}
.feature:hover { border-color: var(--blue-light); background: var(--bg-alt); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon {
  width: 62px; height: 62px; margin: 0 auto 1.25rem;
  background: var(--blue-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.feature h3 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; line-height: 1.3; }
.feature p  { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* CTA de orçamento nos diferenciais */
.features__cta { text-align: center; margin-top: 3rem; }
.features__cta-note { margin-top: .875rem; font-size: .85rem; color: var(--muted); }


/* ================================================================
   LOCALIZAÇÃO
   ================================================================ */
.location { background: var(--bg-alt); padding: 5rem 0; }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.location__info { display: flex; flex-direction: column; gap: 1.75rem; }
.location__row  { display: flex; gap: 1rem; align-items: flex-start; }
.location__icon {
  flex-shrink: 0; width: 44px; height: 44px; background: var(--blue-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.location__label   { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.location__address { font-size: .95rem; color: var(--body); line-height: 1.7; }
.location__tel     { font-size: 1.3rem; font-weight: 800; color: var(--blue); transition: opacity var(--trans); }
.location__tel:hover { opacity: .75; }
.location__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.location__map { height: 400px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ================================================================
   SOCIAL / INSTAGRAM
   ================================================================ */
.social { background: var(--white); padding: 5rem 0; }
.social__inner { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: center; }
.social__text .section-title { text-align: left; }
.social__text p { color: var(--body); margin: .875rem 0 1.5rem; font-size: 1rem; }
.social__card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.social__card-header { display: flex; gap: .875rem; align-items: center; margin-bottom: .875rem; }
.social__avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border); background: var(--white); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 4px;
}
.social__avatar img { width: 100%; height: 100%; object-fit: contain; }
.social__card-header strong { display: block; font-size: .9rem; font-weight: 700; color: var(--dark); }
.social__card-header span   { font-size: .8rem; color: var(--muted); margin-top: 2px; display: block; }
.social__card > p { font-size: .88rem; color: var(--body); margin-bottom: 1.25rem; }


/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--white); color: var(--body); padding: 4rem 0 0; border-top: 1px solid var(--border); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer__col--brand img { /* sem filtro — logo preta sobre fundo branco */ }

.footer__tagline {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer__address {
  margin-top: .875rem;
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: normal;
}

.footer__heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.footer__nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a {
  font-size: .9rem;
  color: var(--body);
  transition: color var(--trans);
}
.footer__nav a:hover { color: var(--blue); }

.footer__contact { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: .625rem; }
.footer__contact svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.footer__contact a,
.footer__contact span { font-size: .88rem; color: var(--body); transition: color var(--trans); line-height: 1.4; }
.footer__contact a:hover { color: var(--blue); }

.footer__map-link {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  transition: opacity var(--trans);
}
.footer__map-link:hover { opacity: .7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem 0;
}
.footer__bottom p { font-size: .78rem; color: var(--muted); }
.footer__ortobom  { font-size: .78rem; color: var(--muted); }

/* ================================================================
   WHATSAPP FLUTUANTE
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: .625rem;
  background: #25D366;
  color: var(--white);
  padding: .75rem 1.25rem .75rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  font-size: .88rem;
  font-weight: 700;
  transition: transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}
.whatsapp-float__label { white-space: nowrap; }


/* ================================================================
   LIGHTBOX — abre via CSS :target, fecha via href="#top" (sem JS)
   ================================================================ */
.lightbox {
  display: none; /* escondido por padrão */
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,12,30,.92);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
/* Abre quando o ID do lightbox é o fragmento da URL */
.lightbox:target { display: flex; }

/* Fundo clicável que fecha (link para #top) */
.lightbox__backdrop { position: absolute; inset: 0; cursor: default; }

/* Caixa de conteúdo fica acima do backdrop */
.lightbox__box {
  position: relative; z-index: 1;
  text-align: center; max-width: min(90vw, 880px);
}
.lightbox__close {
  position: absolute; top: -2.5rem; right: 0;
  color: var(--white); padding: .4rem .6rem;
  background: rgba(255,255,255,.12); border-radius: var(--radius-sm);
  transition: background var(--trans); line-height: 0; display: inline-flex;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__box img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox__caption { color: rgba(255,255,255,.6); margin-top: .875rem; font-size: .9rem; }

/* Setas de navegação (injetadas via script.js) — trocam de produto no modal */
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; line-height: 0; padding-bottom: .18rem; cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav:active { transform: translateY(-50%) scale(.92); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
@media (min-width: 720px) {
  .lightbox__nav--prev { left: 2rem; }
  .lightbox__nav--next { right: 2rem; }
}

/* Ancora invisível — destino dos botões "fechar" para limpar :target */
#top { position: absolute; top: 0; }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Mobile nav — aparece como bloco expandido dentro do header sticky */
  .hamburger { display: flex; margin-left: auto; }
  .header__cta { display: none; }

  .nav {
    display: none;
    order: 10;          /* quebra para linha abaixo no flex-wrap */
    width: calc(100% + 2.5rem); /* sangra além do padding do container */
    margin-inline: -1.25rem;
    padding: .75rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--white);
  }
  /* Abre quando checkbox marcado */
  .nav-toggle:checked ~ .header__bar .nav { display: block; }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__link  { padding: .75rem 1rem; font-size: 1rem; }

  /* Hero */
  .hero { padding-top: 3.5rem; }
  .hero__inner { flex-direction: column; gap: 2.5rem; text-align: center; }
  .hero__image { flex: none; max-width: min(100%, 420px); width: 100%; align-self: auto; margin-inline: auto; }
  .hero__badge--rating { left: 0; }
  .hero__badge--pay { right: 0; }
  .hero__chips { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__wave { margin-top: 1.5rem; }

  /* Stats — 2x2 no tablet */
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }

  .trust__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .location__grid { grid-template-columns: 1fr; }
  .location__map  { height: 320px; }
  .social__inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .social__text .section-title { text-align: center; }
  .social__text p { text-align: center; }
  .social__text { display: flex; flex-direction: column; align-items: center; }
  .social__card { max-width: 400px; margin-inline: auto; }
}

@media (max-width: 540px) {
  .features__grid   { grid-template-columns: 1fr 1fr; }
  .hero__actions    { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .footer__grid     { grid-template-columns: 1fr; }
  .footer__col--brand { grid-column: span 1; }
  .location__actions { flex-direction: column; }
  .location__actions .btn { justify-content: center; }

  /* Produtos: cards um pouco menores para caber melhor no swipe */
  .pcard { flex-basis: 78%; }
  .category--wide .pcard { flex-basis: 88%; }
  .category__head { flex-wrap: wrap; }

  /* No mobile, o botão WhatsApp fica menor e só o ícone */
  .whatsapp-float__label { display: none; }
  .whatsapp-float { padding: .875rem; border-radius: 50%; bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 380px) {
  .features__grid { grid-template-columns: 1fr; }
  .pcard { flex-basis: 85%; }
}
