/* =========================================================
   ADEGA DINIZ – TEMA RACIONAIS / SITE PRINCIPAL
   CSS PRINCIPAL (FRONT) – ATUALIZADO
   ---------------------------------------------------------
   - Fundo com capa da adega
   - Hero / topo
   - Promoções do dia (carrossel horizontal)
   - Destaques do estoque (slider)
   - Tabela de preços
   - Responsivo para celular
   - Ajuste de imagens para NÃO cortar (contain)
   ========================================================= */

/* ===== RESET BÁSICO ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  background: #000;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* =========================================================
   FUNDO – CAPA ADEGA DINIZ
   ========================================================= */
.page-bg {
  position: fixed;
  inset: 0;
  background: url("bg-adega-diniz.png") center center/cover no-repeat fixed;
  /* escurece a imagem pra texto ficar legível */
  filter: brightness(0.25);
  z-index: -2;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.97));
  z-index: -1;
}

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  /* menos espaço em cima pra card encostar no topo */
  padding: 6px 16px 30px;
}

/* =========================================================
   TOPO / NAV
   ========================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* topo bem colado, pouco espaço embaixo */
  padding: 4px 10px 2px;
  margin-bottom: 4px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.city {
  font-size: 0.75rem;
  color: #e0e0e0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #f5f5f5;
  text-decoration: none;
  transition: all .25s ease;
}

.nav-link:hover {
  border-color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  transform: translateY(-1px);
}

.btn-whats {
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: linear-gradient(135deg, #ffffff, #dcdcdc);
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
  transition: all .3s ease;
}

.btn-whats:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
}

/* =========================================================
   CARDS ESTILO “VIDRO” (USADOS EM ALGUNS BLOCOS)
   ========================================================= */
.card-glass {
  position: relative;
  background: rgba(0, 0, 0, 0.86);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  padding: 18px 18px 20px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.card-glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.card-glass:hover::before {
  opacity: 1;
}

/* =========================================================
   HERO (CABEÇALHO DA ADEGA)
   ========================================================= */
.hero {
  /* quase sem espaço em cima pro card ficar colado no topo */
  margin-top: 2px;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 780px;
  animation: fadeInUp .6s ease-out;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.hero-title-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.95);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.hero-title-anim {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  animation: glowText 2.6s ease-in-out infinite alternate;
}

.hero-sub {
  margin: 4px 0 10px;
  font-size: 0.9rem;
  color: #dedede;
}

.hero-info {
  list-style: none;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.hero-info li {
  margin-bottom: 2px;
}

.btn-primary {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: linear-gradient(135deg, #ffffff, #dcdcdc);
  color: #000000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  transition: all .3s ease;
  animation: btnPulse 3.5s ease-in-out infinite alternate;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
}

/* =========================================================
   SEÇÕES / TÍTULOS
   ========================================================= */
.section-promos,
.section-products,
.section-pricelist {
  margin-bottom: 26px;
}

.section-header {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Título com sublinhado animado */
.anim-title {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.anim-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #ffffff;
  animation: underlineGrow 3s ease-in-out infinite;
}

/* =========================================================
   PROMOÇÕES DO DIA (CARROSSEL HORIZONTAL)
   ========================================================= */
.promos-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  /* arrasta com o dedo no celular */
  padding-bottom: 4px;
  scrollbar-width: none;
  /* Firefox */
}

.promos-track::-webkit-scrollbar {
  display: none;
  /* Chrome etc */
}

/* Card base de promoção */
.promo-card {
  position: relative;
  min-width: 210px;
  max-width: 240px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 16px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.promo-card::before {
  /* gradiente leve que aparece no hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.promo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.95);
}

.promo-card:hover::before {
  opacity: 1;
}

.promo-img-wrap {
  width: 60px;
  flex-shrink: 0;
}

/* IMAGEM DE PROMO – NÃO CORTA, APENAS ENCAIXA */
.promo-img,
.promo-img.placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  /* mostra latinha/foto inteira */
  background: #000;
  /* bordas pretas nas sobras */
}

/* Texto da promo */
.promo-info {
  display: flex;
  flex-direction: column;
}

.promo-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.promo-text {
  font-size: 0.8rem;
  color: #e0e0e0;
}

/* =========================================================
   DESTAQUES DO ESTOQUE (SLIDER)
   ========================================================= */
.section-products .slider-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

/* faixa que desliza com o dedo */
.product-slider {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 4px 0 6px;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

/* Card do produto */
.product-card {
  position: relative;
  min-width: 210px;
  max-width: 230px;
  text-align: center;
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.86);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.product-card::before {
  /* gradiente de destaque no hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 1);
  background: rgba(0, 0, 0, 0.96);
}

.product-card:hover::before {
  opacity: 1;
}

/* IMAGEM DO PRODUTO – NÃO CORTAR, APENAS ENCAIXAR */
.product-img,
.product-img.placeholder {
  width: 100%;
  max-width: 180px;
  /* largura máxima do card */
  height: 160px;
  /* altura fixa pra todos iguais */
  border-radius: 14px;
  object-fit: contain;
  /* mostra a garrafa/lata inteira */
  margin-bottom: 8px;
  background: #000;
  /* fundo preto nas bordas */
}

/* Nome, detalhe e preço no card */
.product-card h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pdesc {
  font-size: 0.78rem;
  color: #d0d0d0;
  margin-bottom: 6px;
}

.pprice {
  font-size: 0.9rem;
}

/* Setas do slider (desktop) */
.slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all .25s ease;
}

.slider-arrow:hover {
  background: linear-gradient(135deg, #ffffff, #dcdcdc);
  color: #000000;
  transform: translateY(-1px) scale(1.05);
}

.slider-arrow.left {
  margin-right: 4px;
}

.slider-arrow.right {
  margin-left: 4px;
}

/* =========================================================
   TABELA DE PREÇOS
   ========================================================= */
.pricelist-container {
  overflow-x: auto;
  /* se apertar em celular, vira scroll horizontal */
}

.pricelist {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.pricelist th,
.pricelist td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricelist th {
  text-align: left;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.pricelist tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.pricelist tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

/* linha de categoria (Cerveja, Destilado, etc.) */
.pricelist tr.cat-row td {
  background: #111;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.no-data {
  font-size: 0.85rem;
  color: #e0e0e0;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  text-align: center;
  color: #cccccc;
}

/* =========================================================
   ANIMAÇÕES GERAIS
   ========================================================= */
.anim-card {
  animation: fadeInUp .5s ease-out;
}

.anim-table {
  animation: fadeInUp .6s ease-out;
}

.anim-footer {
  animation: fadeIn .6s ease-out;
}

.anim-bounce {
  animation: bounceSoft 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes glowText {
  0% {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    letter-spacing: 0;
  }

  100% {
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
    letter-spacing: 0.05em;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
  }

  100% {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
  }
}

@keyframes btnPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  }

  100% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 28px rgba(0, 0, 0, 1);
  }
}

@keyframes underlineGrow {
  0% {
    width: 0;
  }

  50% {
    width: 100%;
  }

  100% {
    width: 0;
  }
}

@keyframes bounceSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

/* =========================================================
   RESPONSIVO – CELULAR / TABLET
   ========================================================= */
@media (max-width:768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .page-wrap {
    padding: 4px 10px 24px;
  }

  .card-glass {
    padding: 14px;
  }

  .hero-text {
    padding: 0;
  }

  /* card um pouco menor pra deslizar fácil com o dedo */
  .product-card {
    min-width: 190px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
  }
}

@media (max-width:520px) {
  .topnav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-whats {
    width: 100%;
    text-align: center;
  }

  .logo-main {
    font-size: 0.9rem;
  }

  .hero-title-wrap {
    align-items: flex-start;
  }

  .hero-title-icon {
    width: 52px;
    height: 52px;
  }

  .promos-track {
    padding-bottom: 6px;
  }
}