/* =============================================
   VESCOPLAST — layout responsivo consolidado
   ============================================= */

:root {
  --brand-50: #effcf6;
  --brand-100: #d9f8e7;
  --brand-500: #0d9b58;
  --brand-600: #087c47;
  --brand-700: #06633a;
  --brand-900: #073b27;
  --header-height: 73px;
  --app-height: 100vh;
  --page-gutter: clamp(1rem, 3vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(13, 155, 88, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

p,
li,
td,
th,
span,
a {
  overflow-wrap: anywhere;
}

/* Header e navegação mobile */
#main-header {
  min-height: var(--header-height);
}

.header-inner {
  min-height: var(--header-height);
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--brand-900);
  cursor: pointer;
}

.mobile-menu-button:not([hidden]) {
  display: inline-flex;
}

.mobile-menu {
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.99);
  padding: 0.65rem var(--page-gutter) 1rem;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  color: #334155;
  font-size: 0.925rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: var(--brand-50);
  color: var(--brand-700);
}

.mobile-menu a i {
  width: 1.25rem;
  color: var(--brand-600);
  text-align: center;
}

/* Hero carousel */
.hero-section {
  position: relative;
  height: clamp(560px, calc(var(--app-height) - var(--header-height)), 680px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-bg,
.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-bg {
  filter: brightness(0.65);
  transition: filter 0.25s ease;
}

.hero-slide-video {
  opacity: 0.25;
  filter: blur(3px);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding-top: clamp(3.25rem, 8vw, 7rem) !important;
  padding-bottom: clamp(4.5rem, 9vw, 7rem) !important;
}

.hero-slide-content > div,
.product-card,
.tab-content,
.tab-content > div,
.grid > * {
  min-width: 0;
}

.hero-dots {
  position: absolute;
  z-index: 10;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.active {
  width: 1.9rem;
  background: #fff;
}

.hero-progress {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.88);
  animation: progressBar 4.5s linear infinite;
}

@keyframes progressBar {
  from { width: 0; }
  to { width: 100%; }
}

/* Botões */
.btn-primary,
.btn-ghost,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: 0.75rem;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.btn-primary {
  padding: 1rem 1.5rem;
  background: #fff;
  color: var(--brand-700);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-ghost {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-whatsapp {
  padding: 0.75rem 1rem;
  background: #25d366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  transition: transform 0.2s, background-color 0.2s;
}

/* Cards e conteúdos */
.product-card {
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card img {
  width: 100%;
}

.tab-btn {
  min-height: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab-btn.active {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 4px 15px rgba(8, 124, 71, 0.3);
}

.tab-content {
  display: none;
  min-width: 0;
}

.tab-content.active {
  display: block;
}

.tabs-scroll {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.color-slideshow {
  position: relative;
  overflow: hidden;
}

.color-track {
  display: flex;
  width: max-content;
  animation: slideColors 12s linear infinite;
}

.color-slide-img {
  width: 120px;
  min-width: 120px;
  height: 120px;
  margin-right: 0.75rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

@keyframes slideColors {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stretch-banner {
  width: 100%;
  height: clamp(180px, 28vw, 220px);
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  object-fit: cover;
}

/* Tabelas: mantêm os dados legíveis sem estourar a página */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::after {
  content: "Deslize para o lado para ver toda a tabela";
  display: none;
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

th {
  background: var(--brand-900);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

tr:nth-child(even) td {
  background: #f8fafc;
}

/* Selos */
.mobile-badges-row {
  display: none;
}

/* Grade Instagram */
.instagram-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* CTA */
.cta-button {
  max-width: 100%;
  white-space: normal;
}

/* WhatsApp flutuante */
#whatsapp-float {
  position: fixed;
  z-index: 50;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  width: 3.75rem;
  height: 3.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 1.75rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.75rem);
  width: max-content;
  max-width: min(180px, 60vw);
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.25rem);
  transition: opacity 0.2s, transform 0.2s;
}

#whatsapp-float.is-pulsing {
  animation: whatsappPulse 0.55s ease;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .mobile-menu-button,
  .mobile-menu {
    display: none !important;
  }
}

/* Smartphones e tablets menores */
@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    min-height: var(--header-height);
    padding: 0.7rem 1rem !important;
    gap: 0.5rem;
  }

  .header-instagram {
    display: none !important;
  }

  .hero-section {
    height: clamp(570px, calc(var(--app-height) - var(--header-height)), 640px);
    min-height: 570px;
  }

  .hero-slide-bg {
    filter: brightness(0.46) !important;
  }

  .hero-slide-content {
    padding: 3.25rem 1rem 5rem !important;
  }

  .hero-slide-content h1 {
    max-width: 18ch;
    font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    line-height: 1.06 !important;
  }

  .hero-slide-content p {
    max-width: 38rem;
    font-size: clamp(0.9rem, 3.8vw, 1rem) !important;
    line-height: 1.55 !important;
  }

  .hero-selos,
  .hero-selo-item {
    display: none !important;
  }

  .mobile-badges-row {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
  }

  .m-badge-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem;
    border: 1px solid #e6eef4;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
  }

  .m-badge-icon {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    color: #fff;
    font-size: 0.9rem;
  }

  .bg-frete { background: #84cc16; }
  .bg-preco { background: var(--brand-600); }

  .m-badge-text {
    min-width: 0;
    color: var(--brand-900);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
  }

  .tabs-scroll {
    width: calc(100vw - 2rem);
    max-width: none;
    margin-inline: calc(50% - 50vw + 1rem);
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.15rem 0.15rem 0.65rem;
    scroll-padding-inline: 0.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    scroll-snap-align: start;
  }

  .table-scroll::after {
    display: block;
  }

  .stretch-banner {
    height: 190px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
  }

  .instagram-grid > div {
    min-height: 145px;
    padding: 1rem !important;
  }

  .cta-button {
    width: 100%;
    padding-inline: 1rem !important;
  }
}

/* Smartphones estreitos */
@media (max-width: 479px) {
  .hero-section {
    height: 600px;
    min-height: 600px;
  }

  .hero-slide-content {
    padding-top: 2.75rem !important;
  }

  .hero-slide-content .mb-5 {
    margin-bottom: 0.85rem !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.65rem !important;
  }

  .hero-slide-content .mt-5 {
    margin-top: 0.85rem !important;
  }

  .hero-slide-content .mt-8 {
    margin-top: 1.25rem !important;
  }

  .hero-slide-content .btn-primary,
  .hero-slide-content .btn-ghost {
    width: 100%;
    padding: 0.82rem 0.95rem;
    font-size: 0.9rem;
  }

  .mobile-badges-row {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .instagram-grid > div {
    aspect-ratio: 16 / 9;
  }

  #whatsapp-float {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.55rem;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    height: clamp(590px, calc(var(--app-height) - var(--header-height)), 660px);
  }

  .hero-slide-content h1 {
    max-width: 16ch;
  }

  .hero-selos {
    right: 1rem !important;
    bottom: 2.5rem !important;
    top: auto !important;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .hero-selos {
    right: 1.25rem;
    bottom: 3rem;
    top: auto;
    flex-direction: column;
  }

  .hero-selo-item {
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.825rem;
  }

  .instagram-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Celular deitado ou telas baixas */
@media (max-height: 600px) and (orientation: landscape) and (max-width: 900px) {
  .hero-section {
    height: 500px;
    min-height: 500px;
  }

  .hero-slide-content {
    padding-top: 2rem !important;
    padding-bottom: 3.5rem !important;
  }

  .hero-slide-content h1 {
    max-width: 24ch;
    font-size: 1.75rem !important;
  }

  .hero-slide-content p {
    margin-top: 0.65rem !important;
    font-size: 0.85rem !important;
  }

  .hero-slide-content .mt-8 {
    margin-top: 1rem !important;
  }

  .hero-slide-content .btn-primary,
  .hero-slide-content .btn-ghost {
    padding: 0.7rem 1rem;
  }
}

/* Interações apenas onde hover realmente existe */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background: #ecfdf5;
  }

  .btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
  }

  .btn-whatsapp:hover {
    transform: translateY(-1px);
    background: #1daf57;
  }

  .product-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-100);
    box-shadow: 0 18px 50px rgba(8, 124, 71, 0.12);
  }

  #whatsapp-float:hover {
    transform: scale(1.1);
    background: #1daf57;
  }

  #whatsapp-float:hover::before,
  #whatsapp-float:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Acessibilidade: reduz animações */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #main-header,
  #whatsapp-float,
  .hero-dots,
  .hero-progress,
  .mobile-menu-button,
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================================
   CORREÇÃO FINAL — SELOS DO HERO VISÍVEIS NO RESPONSIVO
   Mantém Frete Grátis e Preço de Fábrica dentro do banner.
   ========================================================= */
@media (max-width: 767px) {
  .hero-section {
    height: clamp(670px, calc(var(--app-height) - var(--header-height)), 760px);
    min-height: 670px;
  }

  .hero-slide-content {
    padding: 2.75rem 1rem 11rem !important;
  }

  .hero-selos {
    position: absolute !important;
    z-index: 12 !important;
    top: auto !important;
    right: 1rem !important;
    bottom: 3.25rem !important;
    left: 1rem !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem !important;
    width: auto !important;
  }

  .hero-selo-item {
    display: flex !important;
    min-width: 0;
    align-items: center;
    gap: 0.55rem !important;
    padding: 0.65rem !important;
    border-radius: 0.8rem !important;
  }

  .hero-selo-item > span {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 0.6rem !important;
    font-size: 0.85rem !important;
  }

  .hero-selo-item p {
    min-width: 0;
    margin: 0;
    font-size: 0.7rem !important;
    line-height: 1.15 !important;
  }

  .hero-dots {
    bottom: 1.25rem;
  }

  /* Evita duplicar os mesmos selos abaixo do banner. */
  .mobile-badges-row {
    display: none !important;
  }
}

@media (max-width: 379px) {
  .hero-section {
    height: 700px;
    min-height: 700px;
  }

  .hero-slide-content {
    padding-bottom: 10.75rem !important;
  }

  .hero-selos {
    right: 0.75rem !important;
    left: 0.75rem !important;
    gap: 0.45rem !important;
  }

  .hero-selo-item {
    gap: 0.4rem !important;
    padding: 0.55rem !important;
  }

  .hero-selo-item > span {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    font-size: 0.75rem !important;
  }

  .hero-selo-item p {
    font-size: 0.63rem !important;
  }
}

/* =========================================================
   OTIMIZADOR RESPONSIVO — BASTIDORES + CTA FINAL
   A densidade é definida em main.js de acordo com largura e
   altura úteis do navegador: comfortable, compact ou ultra-compact.
   ========================================================= */
.instagram-section,
.cta-section {
  min-width: 0;
}

.instagram-card {
  min-width: 0;
}

@media (max-width: 767px) {
  .instagram-section {
    padding: clamp(1.75rem, 7vw, 3rem) 1rem !important;
  }

  .instagram-header {
    gap: 0.8rem !important;
  }

  .instagram-eyebrow,
  .cta-eyebrow {
    font-size: clamp(0.58rem, 2.5vw, 0.72rem) !important;
    line-height: 1.2;
    letter-spacing: 0.11em !important;
  }

  .instagram-title {
    max-width: 24ch;
    margin-top: 0.45rem !important;
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.02 !important;
  }

  .instagram-follow {
    width: 100%;
    min-height: 40px;
    padding: 0.62rem 0.9rem !important;
    border-radius: 0.65rem !important;
    font-size: clamp(0.72rem, 3vw, 0.85rem) !important;
  }

  .instagram-follow i {
    font-size: 0.9rem !important;
  }

  /* Mantém 2 × 2 até em celulares estreitos. */
  .instagram-grid,
  html[data-density="compact"] .instagram-grid,
  html[data-density="ultra-compact"] .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(0.42rem, 2vw, 0.65rem) !important;
    margin-top: clamp(0.8rem, 4vw, 1.25rem) !important;
  }

  .instagram-grid > .instagram-card {
    aspect-ratio: auto !important;
    min-height: clamp(94px, 28vw, 124px) !important;
    padding: clamp(0.6rem, 2.8vw, 0.85rem) !important;
    border-radius: clamp(0.65rem, 3vw, 0.9rem) !important;
  }

  .instagram-card > .flex > span {
    width: clamp(28px, 8vw, 36px) !important;
    height: clamp(28px, 8vw, 36px) !important;
    border-radius: 0.5rem !important;
    font-size: clamp(0.72rem, 3vw, 0.95rem) !important;
  }

  .instagram-card p.font-black {
    overflow-wrap: anywhere;
    font-size: clamp(0.63rem, 2.75vw, 0.78rem) !important;
    line-height: 1.12 !important;
  }

  .instagram-card p.text-xs {
    margin-top: 0.2rem !important;
    overflow-wrap: anywhere;
    font-size: clamp(0.52rem, 2.25vw, 0.64rem) !important;
    line-height: 1.15 !important;
  }

  .cta-section {
    padding: 0 1rem max(2rem, env(safe-area-inset-bottom)) !important;
  }

  .cta-panel {
    padding: clamp(1rem, 5vw, 1.5rem) !important;
    border-radius: clamp(1rem, 4vw, 1.35rem) !important;
  }

  .cta-panel > .grid {
    gap: clamp(0.75rem, 3.5vw, 1.1rem) !important;
  }

  .cta-title {
    max-width: 22ch;
    margin-top: 0.4rem !important;
    font-size: clamp(1.3rem, 6vw, 1.75rem) !important;
    line-height: 1.02 !important;
  }

  .cta-copy {
    margin-top: 0.55rem !important;
    font-size: clamp(0.7rem, 3vw, 0.86rem) !important;
    line-height: 1.35 !important;
  }

  .cta-button {
    min-height: 42px;
    gap: 0.5rem !important;
    padding: 0.68rem 0.8rem !important;
    border-radius: 0.65rem !important;
    font-size: clamp(0.68rem, 2.9vw, 0.82rem) !important;
    line-height: 1.2 !important;
  }

  .cta-button i {
    font-size: 1rem !important;
  }

  /* O CTA já oferece WhatsApp; esconder o flutuante evita sobreposição. */
  #whatsapp-float.is-cta-visible {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.82);
  }
}

/* Modo compacto: aparelhos estreitos ou com pouca altura útil. */
@media (max-width: 767px) {
  html[data-density="compact"] .instagram-section {
    padding-top: 1.45rem !important;
    padding-bottom: 1.45rem !important;
  }

  html[data-density="compact"] .instagram-grid > .instagram-card {
    min-height: 92px !important;
  }

  html[data-density="compact"] .cta-panel {
    padding: 1rem !important;
  }
}

/* Modo ultracompacto: celulares muito estreitos/baixos. */
@media (max-width: 767px) {
  html[data-density="ultra-compact"] .instagram-section {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
  }

  html[data-density="ultra-compact"] .instagram-header {
    gap: 0.55rem !important;
  }

  html[data-density="ultra-compact"] .instagram-title {
    font-size: 1.22rem !important;
  }

  html[data-density="ultra-compact"] .instagram-follow {
    min-height: 36px;
    padding-block: 0.5rem !important;
  }

  html[data-density="ultra-compact"] .instagram-grid {
    margin-top: 0.65rem !important;
    gap: 0.38rem !important;
  }

  html[data-density="ultra-compact"] .instagram-grid > .instagram-card {
    min-height: 82px !important;
    padding: 0.52rem !important;
  }

  html[data-density="ultra-compact"] .instagram-card > .flex > span {
    width: 27px !important;
    height: 27px !important;
    font-size: 0.7rem !important;
  }

  html[data-density="ultra-compact"] .instagram-card p.font-black {
    font-size: 0.59rem !important;
  }

  html[data-density="ultra-compact"] .instagram-card p.text-xs {
    font-size: 0.49rem !important;
  }

  html[data-density="ultra-compact"] .cta-section {
    padding-inline: 0.75rem !important;
    padding-bottom: 1.25rem !important;
  }

  html[data-density="ultra-compact"] .cta-panel {
    padding: 0.85rem !important;
    border-radius: 0.9rem !important;
  }

  html[data-density="ultra-compact"] .cta-title {
    font-size: 1.18rem !important;
  }

  html[data-density="ultra-compact"] .cta-copy {
    margin-top: 0.4rem !important;
    font-size: 0.67rem !important;
  }

  html[data-density="ultra-compact"] .cta-button {
    min-height: 38px;
    padding-block: 0.55rem !important;
    font-size: 0.66rem !important;
  }
}

/* =========================================================
   IMAGENS LOCAIS DOS BANNERS
   O HTML aponta para a pasta ./Imagens no mesmo nível do index.
   ========================================================= */
.hero-slide-bg {
  filter: brightness(0.88) saturate(1.04) !important;
  object-position: center center;
}

.hero-slide-overlay {
  opacity: 0.58;
}

.hero-slide-content h1,
.hero-slide-content p,
.hero-slide-content .mb-5 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.46);
}

@media (max-width: 767px) {
  .hero-slide-bg {
    filter: brightness(0.8) saturate(1.03) !important;
  }

  .hero-slide-overlay {
    opacity: 0.52;
  }
}

/* =========================================================
   SLIDE 1 — PRESERVA O PREÇO IMPRESSO NA IMAGEM
   O conteúdo textual fica no lado direito no desktop, deixando
   a etiqueta e o preço do lado esquerdo completamente livres.
   ========================================================= */
@media (min-width: 768px) {
  #slide-0 .hero-slide-overlay {
    opacity: 1;
    background: linear-gradient(
      90deg,
      rgba(7, 59, 39, 0.04) 0%,
      rgba(7, 59, 39, 0.08) 43%,
      rgba(7, 59, 39, 0.62) 58%,
      rgba(7, 59, 39, 0.82) 100%
    ) !important;
  }

  #slide-0 .hero-slide-content {
    display: flex;
    justify-content: flex-end;
    padding-right: clamp(8.5rem, 12vw, 12rem) !important;
  }

  #slide-0 .hero-slide-content > div {
    width: min(35rem, 47vw);
    max-width: 35rem;
    margin-left: auto;
  }
}

/* Em tablets, reduz o recuo para não encostar nos selos laterais. */
@media (min-width: 768px) and (max-width: 1023px) {
  #slide-0 .hero-slide-content {
    padding-right: 8.75rem !important;
  }

  #slide-0 .hero-slide-content > div {
    width: min(31rem, 55vw);
  }
}

/* No celular, usa a parte direita da foto e mantém o preço fora
   da área principal do texto, sem alterar os outros slides. */
@media (max-width: 767px) {
  #slide-0 .hero-slide-bg {
    object-position: 72% center;
  }

  #slide-0 .hero-slide-overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(7, 59, 39, 0.34) 0%,
      rgba(7, 59, 39, 0.62) 52%,
      rgba(7, 59, 39, 0.84) 100%
    ) !important;
  }
}


/* =========================================================
   HERO — AJUSTE GERAL DOS 5 BANNERS
   - mostra o banner inteiro
   - evita texto em cima da etiqueta/preço
   - padroniza uma área segura de texto
   ========================================================= */
.hero-slide {
  background: linear-gradient(135deg, #d9e7e0 0%, #eef4f1 100%);
}

.hero-slide-bg {
  object-fit: contain;
  object-position: center center;
}

.hero-slide-overlay {
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(7, 59, 39, 0.14) 0%,
    rgba(7, 59, 39, 0.14) 44%,
    rgba(7, 59, 39, 0.26) 62%,
    rgba(7, 59, 39, 0.52) 100%
  ) !important;
}

.hero-slide-content {
  display: flex;
  align-items: center;
}

.hero-slide-content > div {
  width: min(33rem, 100%);
  max-width: min(33rem, calc(100vw - 16rem));
  margin-left: auto;
  margin-right: clamp(7rem, 11vw, 11rem);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(7, 59, 39, 0.42), rgba(7, 59, 39, 0.24));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-slide-content .mb-5 {
  margin-bottom: 1rem !important;
}

.hero-slide-content .mt-5 {
  margin-top: 1rem !important;
}

.hero-slide-content .mt-8 {
  margin-top: 1.4rem !important;
}

.hero-slide-content h1 {
  max-width: 12ch;
}

.hero-slide-content p {
  max-width: 28rem;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .hero-slide-content > div {
    max-width: min(30rem, calc(100vw - 13.5rem));
    margin-right: 6.5rem;
    padding: 1rem 1.1rem;
  }

  .hero-slide-content h1 {
    font-size: clamp(2rem, 4.4vw, 3rem) !important;
  }

  .hero-slide-content p {
    font-size: 1rem !important;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: clamp(610px, calc(var(--app-height) - var(--header-height)), 700px);
    min-height: 610px;
  }

  .hero-slide-bg {
    object-fit: contain;
    object-position: center center;
    filter: brightness(0.92) saturate(1.02) !important;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 59, 39, 0.24) 0%,
      rgba(7, 59, 39, 0.30) 30%,
      rgba(7, 59, 39, 0.62) 60%,
      rgba(7, 59, 39, 0.86) 100%
    ) !important;
  }

  .hero-slide-content {
    align-items: flex-start;
    padding-top: 2.1rem !important;
    padding-bottom: 4.8rem !important;
  }

  .hero-slide-content > div {
    max-width: min(22rem, calc(100vw - 2rem));
    margin-inline: auto;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, rgba(7, 59, 39, 0.50), rgba(7, 59, 39, 0.34));
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.18);
  }

  .hero-slide-content h1 {
    max-width: 11ch;
  }

  .hero-slide-content p {
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .hero-section {
    height: 630px;
    min-height: 630px;
  }

  .hero-slide-content {
    padding-top: 1.55rem !important;
  }

  .hero-slide-content > div {
    max-width: calc(100vw - 1.25rem);
    padding: 0.88rem 0.9rem;
  }

  .hero-slide-content h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
  }

  .hero-slide-content p {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }
}


/* =========================================================
   HERO FINAL — IMAGEM PREENCHENDO A TELA + CONTEÚDO FORA DELA
   A arte ocupa toda a largura sem faixas laterais. O texto e os
   botões ficam em uma barra inferior própria, sem cobrir produto,
   preço ou informações já existentes no banner.
   ========================================================= */
:root {
  --hero-info-height: 132px;
}

.hero-section {
  height: clamp(600px, calc(var(--app-height) - var(--header-height)), 720px);
  min-height: 600px;
  background: #fff;
}

.hero-slide {
  display: block;
  background: #fff;
}

.hero-slide-bg,
.hero-slide-video {
  top: 0;
  bottom: auto;
  width: 100%;
  height: calc(100% - var(--hero-info-height));
  object-fit: cover;
  object-position: center center;
}

.hero-slide-bg {
  filter: brightness(0.94) saturate(1.02) !important;
}

.hero-slide-overlay {
  top: 0;
  bottom: auto;
  height: calc(100% - var(--hero-info-height));
  opacity: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(7, 59, 39, 0.06) 0%,
    rgba(7, 59, 39, 0.02) 50%,
    rgba(7, 59, 39, 0.10) 100%
  ) !important;
}

.hero-slide-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 12;
  display: flex;
  width: 100%;
  height: var(--hero-info-height);
  min-height: var(--hero-info-height);
  align-items: center;
  padding: 0 clamp(7.5rem, 11vw, 10rem) 0 var(--page-gutter) !important;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.08);
}

.hero-slide-content > div {
  display: grid;
  width: min(100%, 80rem);
  max-width: 80rem;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-slide-content .mb-5 {
  display: none !important;
}

.hero-slide-content h1 {
  max-width: 24ch;
  margin: 0 !important;
  color: var(--brand-900) !important;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem) !important;
  line-height: 1.08 !important;
  text-shadow: none !important;
}

.hero-slide-content h1 span {
  color: var(--brand-600) !important;
}

.hero-slide-content p {
  display: none !important;
}

.hero-slide-content .mt-8 {
  display: flex;
  flex: 0 0 auto;
  margin: 0 !important;
  gap: 0.7rem;
}

.hero-slide-content .btn-primary,
.hero-slide-content .btn-ghost {
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero-slide-content .btn-primary {
  border: 1px solid #dbe5e0;
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: none;
}

.hero-slide-content .btn-ghost {
  border: 1px solid var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}

.hero-dots {
  bottom: calc(var(--hero-info-height) + 1rem);
}

.hero-progress {
  bottom: var(--hero-info-height);
}

.hero-selos {
  top: auto !important;
  right: 1rem !important;
  bottom: calc(var(--hero-info-height) + 1rem) !important;
}

/* Remove por completo as regras antigas de posicionamento exclusivo do slide 1. */
#slide-0 .hero-slide-content,
#slide-1 .hero-slide-content,
#slide-2 .hero-slide-content,
#slide-3 .hero-slide-content,
#slide-4 .hero-slide-content {
  justify-content: initial;
}

#slide-0 .hero-slide-content > div,
#slide-1 .hero-slide-content > div,
#slide-2 .hero-slide-content > div,
#slide-3 .hero-slide-content > div,
#slide-4 .hero-slide-content > div {
  width: min(100%, 80rem);
  max-width: 80rem;
  margin: 0 auto;
}

#slide-0 .hero-slide-bg,
#slide-1 .hero-slide-bg,
#slide-2 .hero-slide-bg,
#slide-3 .hero-slide-bg,
#slide-4 .hero-slide-bg {
  object-position: center center;
}

@media (max-width: 1023px) {
  :root {
    --hero-info-height: 146px;
  }

  .hero-slide-content {
    padding-right: var(--page-gutter) !important;
  }

  .hero-slide-content > div {
    gap: 1rem;
  }

  .hero-slide-content h1 {
    font-size: clamp(1.3rem, 3vw, 1.85rem) !important;
  }

  .hero-selos {
    right: 0.75rem !important;
  }
}

@media (max-width: 767px) {
  :root {
    --hero-info-height: 190px;
  }

  .hero-section {
    height: 630px;
    min-height: 630px;
  }

  .hero-slide-bg {
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.92) saturate(1.02) !important;
  }

  .hero-slide-overlay {
    background: rgba(7, 59, 39, 0.06) !important;
  }

  .hero-slide-content {
    height: var(--hero-info-height);
    min-height: var(--hero-info-height);
    align-items: center;
    padding: 0.9rem 1rem !important;
  }

  .hero-slide-content > div {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-slide-content h1 {
    max-width: none;
    font-size: clamp(1.25rem, 6vw, 1.65rem) !important;
    text-align: center;
  }

  .hero-slide-content .mt-8 {
    width: 100%;
    gap: 0.6rem;
  }

  .hero-slide-content .btn-primary,
  .hero-slide-content .btn-ghost {
    width: 50%;
    min-width: 0;
    white-space: normal;
  }

  .hero-dots {
    bottom: calc(var(--hero-info-height) + 0.7rem);
  }

  .hero-progress {
    bottom: var(--hero-info-height);
  }
}

@media (max-width: 479px) {
  :root {
    --hero-info-height: 205px;
  }

  .hero-section {
    height: 620px;
    min-height: 620px;
  }

  .hero-slide-content {
    padding: 0.8rem 0.75rem !important;
  }

  .hero-slide-content .mt-8 {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-slide-content .btn-primary,
  .hero-slide-content .btn-ghost {
    width: 100%;
    min-height: 43px;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
}


/* =========================================================
   AJUSTE AUTOMÁTICO PELA PROPORÇÃO REAL DE CADA BANNER
   O JS define --hero-media-height usando naturalWidth/naturalHeight.
   Isso evita cortes, distorções e faixas laterais.
   ========================================================= */
:root {
  --hero-media-height: 56.25vw;
  --hero-info-height: 94px;
}

.hero-section {
  height: calc(var(--hero-media-height) + var(--hero-info-height)) !important;
  min-height: 0 !important;
  transition: height 0.28s ease;
  background: #eef4f1;
}

.hero-slide-bg,
.hero-slide-video {
  top: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: var(--hero-media-height) !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #eef4f1;
}

.hero-slide-overlay {
  top: 0 !important;
  bottom: auto !important;
  height: var(--hero-media-height) !important;
  background: rgba(7, 59, 39, 0.05) !important;
}

.hero-slide-content {
  height: var(--hero-info-height) !important;
  min-height: var(--hero-info-height) !important;
}

.hero-dots {
  bottom: calc(var(--hero-info-height) + 0.75rem) !important;
}

.hero-progress {
  bottom: var(--hero-info-height) !important;
}

.hero-selos {
  bottom: calc(var(--hero-info-height) + 1rem) !important;
}

@media (max-width: 1023px) {
  :root {
    --hero-info-height: 116px;
  }
}

@media (max-width: 767px) {
  :root {
    --hero-info-height: 170px;
  }

  .hero-section {
    height: calc(var(--hero-media-height) + var(--hero-info-height)) !important;
    min-height: 0 !important;
  }

  .hero-slide-bg,
  .hero-slide-video {
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 479px) {
  :root {
    --hero-info-height: 190px;
  }

  .hero-section {
    height: calc(var(--hero-media-height) + var(--hero-info-height)) !important;
    min-height: 0 !important;
  }
}


/* =========================================================
   CORREÇÃO FINAL MOBILE
   No celular, nenhuma informação pode ficar sobre a foto.
   Os selos voltam para a faixa abaixo do banner.
   ========================================================= */
@media (max-width: 767px) {
  .hero-selos,
  .hero-selo-item {
    display: none !important;
  }

  .mobile-badges-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
    padding: 0.75rem 1rem 0.25rem !important;
    background: #ffffff !important;
    border-bottom: 0 !important;
  }

  .m-badge-card {
    min-height: 56px;
    padding: 0.7rem 0.75rem !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06) !important;
  }

  .m-badge-text {
    font-size: 0.74rem !important;
    line-height: 1.12 !important;
  }

  .hero-section {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 479px) {
  .mobile-badges-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
    padding: 0.7rem 0.75rem 0.1rem !important;
  }

  .m-badge-card {
    padding: 0.62rem 0.65rem !important;
  }

  .m-badge-icon {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
  }

  .m-badge-text {
    font-size: 0.7rem !important;
  }
}


/* =========================================================
   IDENTIDADE VESCOPLAST — LOGO OFICIAL
   ========================================================= */
.brand-logo-wrap {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #fff;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-wrap--footer {
  background: transparent;
}

@media (max-width: 767px) {
  .brand-logo-wrap {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 0.65rem;
  }
}
