* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

/* =========================
   BANNER TOPO
========================= */

.banner-topo {
  width: 100%;
  display: block;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  background: #c40000;
}

/* =========================
   HEADER
========================= */

header {

  background:
    linear-gradient(
      135deg,
      #b30000,
      #d40000,
      #ff2d2d
    );

  color: white;

  text-align: center;

  padding: 22px 16px;

  position: relative;

  overflow: hidden;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.14);

}

header h1 {
  margin: 0;
  font-size: 26px;
  text-shadow:
  0 4px 12px rgba(0,0,0,0.18);

}

header p {

  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.92;

}

/* =========================
   ABAS / CATEGORIAS
========================= */

.abas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  overflow-x: auto;

  padding: 12px;

  background: white;

  position: sticky;
  top: 0;

  z-index: 20;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.abas::-webkit-scrollbar {
  height: 5px;
}

.abas::-webkit-scrollbar-thumb {
  background: #d3d3d3;
  border-radius: 999px;
}

.abas button {
  border: none;

  padding: 12px 16px;

  border-radius: 999px;

  background: #e8e8e8;
  color: #222;

  font-weight: bold;
  font-size: 14px;

  cursor: pointer;

  white-space: nowrap;

  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}

.abas button:hover {

  transform:
    translateY(-2px)
    scale(1.02);

}

.abas button.ativo {

  background: linear-gradient(
    135deg,
    #c40000,
    #ff2d2d
  );

  color: white;

  box-shadow:
    0 8px 20px rgba(196,0,0,0.24);

  transform: scale(1.03);

}

/* =========================
   CONTAINER
========================= */

.container {
  width: 100%;
  max-width: 820px;

  margin: 0 auto;

  padding: 16px;
}

/* =========================
   TÍTULO CATEGORIA
========================= */

.titulo-categoria {
  text-align: center;

  margin: 8px 0 14px;

  font-size: 22px;
  color: #c40000;
}

/* =========================
   CARROSSEL
========================= */

.carrossel {
  position: relative;
  width: 100%;
}

.pagina {
  width: 100%;

  max-height: 82vh;

  object-fit: contain;

  display: block;

  border-radius: 12px;

  background: rgb(0, 0, 0);

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);

  cursor: zoom-in;

  opacity: 1;

  transition:
  opacity 0.35s ease,
  transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
  filter 0.35s ease;
}

.pagina.trocando {

  opacity: 0;

  transform:
    scale(0.985)
    translateY(4px);

  filter: blur(4px);

}

/* =========================
   LOADING IMAGEM
========================= */

.pagina.carregando {
  filter: blur(8px);
  opacity: 0.45;
  transform: scale(0.985);
}

.carrossel::before {
  content: "Carregando oferta...";

  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background: rgba(255, 255, 255, 0.92);
  color: #c40000;

  padding: 10px 16px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: bold;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);

  opacity: 0;
  pointer-events: none;

  z-index: 4;

  transition: opacity 0.2s ease;
}

.carrossel.carregando::before {
  opacity: 1;
}

/* =========================
   SETAS
========================= */

.seta {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.65);

  color: white;
  font-size: 26px;

  cursor: pointer;

  z-index: 5;

  transition:
    background 0.2s,
    transform 0.2s;
}

.seta:hover {
  background: rgba(0, 0, 0, 0.85);
}

.seta.desativada {
  opacity: 0.35;
  cursor: not-allowed;
}

.seta-esquerda {
  left: 10px;
}

.seta-direita {
  right: 10px;
}

/* =========================
   CONTADOR
========================= */

.contador {
  text-align: center;

  margin-top: 12px;

  font-size: 15px;
  font-weight: bold;

  color: #444;
}

/* =========================
   DICA SWIPE
========================= */

.dica-swipe {

  text-align: center;

  font-size: 12px;

  color: #777;

  margin-top: 8px;
  margin-bottom: 6px;

  opacity: 0.9;

  animation: swipePulse 2s infinite;

}

@keyframes swipePulse {

  0% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.45;
  }

}

@media (min-width: 701px) {

  .dica-swipe {
    display: none;
  }

}

/* =========================
   MINIATURAS
========================= */

.miniaturas {

  display: flex;

  gap: 10px;

  justify-content: center;

  overflow-x: auto;

  padding: 14px 4px 8px;

  scroll-snap-type: x mandatory;

  scrollbar-width: thin;

}

.miniaturas::-webkit-scrollbar {

  height: 6px;

}

.miniaturas::-webkit-scrollbar-thumb {

  background: rgba(0,0,0,0.18);

  border-radius: 999px;

}

.miniaturas img {

  width: 72px;
  height: 72px;

  flex-shrink: 0;

  object-fit: cover;

  border-radius: 10px;

  cursor: pointer;

  opacity: 0.55;

  border: 2px solid transparent;

  scroll-snap-align: center;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.08);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}

.miniaturas img:hover {

  transform: translateY(-2px);

}

.miniaturas img.ativa {

  opacity: 1;

  border-color: #c40000;

  transform: scale(1.06);

  box-shadow:
    0 10px 24px rgba(196,0,0,0.22);

}

/* =========================
   SEM OFERTAS
========================= */

.sem-ofertas {
  display: none;

  background: white;

  border-radius: 14px;

  padding: 40px 24px;

  text-align: center;

  margin-top: 18px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.sem-ofertas-icone {
  font-size: 56px;
  margin-bottom: 14px;
}

.sem-ofertas h3 {
  margin: 0 0 12px;

  color: #c40000;

  font-size: 24px;
}

.sem-ofertas p {
  margin: 0;

  color: #666;

  line-height: 1.6;

  font-size: 15px;

  .sem-ofertas-botao {
  display: inline-block;

  margin-top: 22px;

  background: linear-gradient(
    135deg,
    #25d366,
    #1ebe5d
  );

  color: white;

  text-decoration: none;

  padding: 13px 18px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: bold;

  box-shadow:
    0 8px 22px rgba(37, 211, 102, 0.28);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.sem-ofertas-botao:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.34);
}
}

/* =========================
   AÇÕES
========================= */

.acoes {
  display: flex;

  gap: 10px;

  justify-content: center;

  flex-wrap: wrap;

  margin: 18px 0 8px;
}

.acoes button,
.acoes a {
  border: none;

  text-decoration: none;

  padding: 12px 16px;

  border-radius: 999px;

  font-weight: bold;
  font-size: 14px;

  cursor: pointer;
}

.btn-compartilhar {

  background: linear-gradient(
    135deg,
    #c40000,
    #ff2d2d
  );

  color: white;

  box-shadow:
    0 6px 18px rgba(196,0,0,0.28);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;

}

.btn-compartilhar:hover {

  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(196,0,0,0.34);

}

/* =========================
   TEXTOS LEGAIS
========================= */

.textos-legais {
  margin-top: 14px;

  padding: 0 12px;

  max-width: 680px;

  margin-left: auto;
  margin-right: auto;

  text-align: center;

  font-size: 9px;
  line-height: 1.35;

  color: #8a8a8a;
}

.textos-legais p {
  margin: 0 0 3px;
}

.textos-legais p:last-child {
  margin-bottom: 0;
}

.textos-legais strong {
  color: #666;
  font-weight: 600;
}

/* =========================
   GRUPO FLUTUANTE
========================= */

/* =========================
   GRUPO FLUTUANTE
========================= */

.grupo-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.grupo-flutuante-conteudo {
  position: relative;
  background: white;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  animation: pulseGrupo 2s infinite;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.grupo-flutuante-fechar {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #222;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.grupo-flutuante-titulo {
  font-size: 18px;
  font-weight: bold;
  color: #c40000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.grupo-flutuante-subtitulo {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}

.grupo-flutuante-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 240px;
  background: #25d366;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: bold;
  white-space: nowrap;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.grupo-flutuante-botao:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.grupo-flutuante-mini {
  display: none;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #c40000,
    #ff2d2d
  );

  color: white;
  padding: 0 18px;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(196,0,0,0.32);
  font-weight: bold;
}

.grupo-mini-icone {
  font-size: 22px;
  line-height: 1;
}

.grupo-mini-texto {
  font-size: 14px;
  line-height: 1;
}

/* ESTADO MINIMIZADO */

.grupo-flutuante.minimizado {
  width: auto;
}

.grupo-flutuante.minimizado .grupo-flutuante-conteudo,
.grupo-flutuante.minimizado .grupo-flutuante-fechar {
  display: none;
}

.grupo-flutuante.minimizado .grupo-flutuante-mini {
  display: flex;

  align-items: center;
  justify-content: center;

  animation: pulseGrupo 2s infinite;
}

@keyframes pulseGrupo {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  .grupo-flutuante {
    left: auto;
    right: 14px;
    bottom: 14px;

    width: 300px;
    max-width: calc(100% - 28px);
  }

  .grupo-flutuante-conteudo {
    padding: 16px;
  }

  .grupo-flutuante-titulo {
    font-size: 16px;
  }

  .grupo-flutuante-subtitulo {
    font-size: 13px;
  }

  footer {
    padding-bottom: 140px;
  }

  .grupo-flutuante.minimizado + footer,
  footer {
    padding-bottom: 90px;
  }
}

/* =========================
   MODAL ZOOM
========================= */

.modal-zoom {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.94);

  z-index: 9999;

  overflow: hidden;

  padding: 80px 20px 30px;

  touch-action: none;
}

.modal-zoom.ativo {
  display: flex;

  justify-content: center;
  align-items: center;
}

.modal-zoom img {
  max-width: 100%;
  max-height: 85vh;

  object-fit: contain;

  border-radius: 10px;

  transform-origin: center center;

  transition:
  transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);

  cursor: grab;

  user-select: none;
  -webkit-user-drag: none;
}

/* =========================
   CONTROLES ZOOM
========================= */

.zoom-controles {
  position: fixed;

  top: 16px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 8px;

  z-index: 10000;
}

.zoom-controles button {
  border: none;

  background: white;
  color: #222;

  padding: 10px 14px;

  border-radius: 999px;

  font-weight: bold;

  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fechar-zoom {
  position: fixed;

  top: 16px;
  right: 16px;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: white;
  color: #222;

  font-size: 22px;
  font-weight: bold;

  cursor: pointer;

  z-index: 10001;
}

/* =========================
   FOOTER
========================= */

footer {
  background: white;

  margin-top: 50px;

  padding: 42px 20px 30px;

  border-top: 1px solid #e5e5e5;
}

.footer-container {
  max-width: 900px;

  margin: 0 auto;

  text-align: center;
}

.footer-logo {
  width: 220px;

  max-width: 80%;

  margin-bottom: 24px;
}

.footer-divisor {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 14px;

  margin-bottom: 26px;
}

.footer-linha {
  width: 100%;
  max-width: 220px;
  height: 1px;

  background: #d9d9d9;
}

.footer-bolinha {
  width: 10px;
  height: 10px;

  background: #c40000;

  border-radius: 50%;

  flex-shrink: 0;
}

.footer-redes {
  display: flex;

  justify-content: center;

  gap: 16px;

  margin-bottom: 26px;

  flex-wrap: wrap;
}

.footer-redes a {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  background: #c40000;

  display: flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition:
    transform 0.2s,
    background 0.2s;
}

.footer-redes a:hover {
  transform: translateY(-3px) scale(1.05);

  background: #a80000;
}

.footer-redes i {
  font-size: 24px;

  color: white;

  display: flex;

  align-items: center;
  justify-content: center;
}

.footer-texto {
  color: #555;

  font-size: 14px;

  line-height: 1.6;
}

.footer-texto strong {
  color: #c40000;
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 700px) {

  .abas {
    justify-content: flex-start;
  }

  .grupo-flutuante {
    left: auto;
    right: 14px;
    bottom: 14px;

    width: 300px;
    max-width: calc(100% - 28px);
  }

  .grupo-flutuante-conteudo {
    padding: 16px;
  }

  .grupo-flutuante-titulo {
    font-size: 16px;
  }

  .grupo-flutuante-subtitulo {
    font-size: 13px;
  }

  .miniaturas img {
    width: 58px;
    height: 58px;
  }

  .zoom-controles {
    left: 12px;
    right: 12px;

    transform: none;

    justify-content: center;

    flex-wrap: wrap;
  }

  .zoom-controles button {
    font-size: 12px;

    padding: 9px 12px;
  }

  footer {
    padding-bottom: 190px;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-redes a {
    width: 48px;
    height: 48px;
  }

}

/* =========================
   BOTÃO TOPO
========================= */

.btn-topo {

  position: fixed;

  right: 18px;
  bottom: 18px;

  width: 54px;
  height: 54px;

  border: none;
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #c40000,
    #ff2d2d
  );

  color: white;

  font-size: 24px;
  font-weight: bold;

  display: flex;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  z-index: 998;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(20px)
    scale(0.92);

  box-shadow:
    0 10px 28px rgba(196,0,0,0.32);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    box-shadow 0.2s ease;

}

.btn-topo:hover {

  transform:
    translateY(-2px)
    scale(1);

  box-shadow:
    0 14px 32px rgba(196,0,0,0.38);

}

.btn-topo.visivel {

  opacity: 1;
  visibility: visible;

  transform:
    translateY(0)
    scale(1);

}

@media (max-width: 700px) {

  .grupo-flutuante {
    left: 50%;
    right: auto;
    bottom: 14px;

    width: 300px;
    max-width: calc(100% - 28px);

    transform: translateX(-50%);
  }

  .grupo-flutuante.minimizado {
    width: auto;
  }

  .btn-topo {

    left: 50%;
    right: auto;

    bottom: 88px;

    width: 50px;
    height: 50px;

    transform:
      translateX(-50%)
      translateY(20px)
      scale(0.92);

  }

  .btn-topo.visivel {

    transform:
      translateX(-50%)
      translateY(0)
      scale(1);

  }

}
