/* Container geral com tipo */
.foak-banner-container {
  margin: 2rem 0;
}

/* Título do grupo */
.foak-banner-titulo-grupo {
  width: 100%;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

/* Banner individual */
.foak-amazon-banner {
  box-sizing: border-box;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  color: #000;
}

/* Imagem */
.foak-amazon-banner img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Título do produto */
.foak-amazon-titulo-produto {
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0.5rem 0;
}
.foak-amazon-titulo-produto.cima {
  margin-bottom: 0.25rem;
}

/* Botão */
.foak-amazon-botao {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foak-amazon-botao a {
  display: block;
  width: fit-content;
  min-width: 100px;
  background: #ff9800;
  color: #fff !important;
  text-align: center;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  text-decoration: none !important;
  transition: filter 0.2s ease;
  font-weight: 600;
}

.foak-amazon-botao a:hover {
  filter: brightness(1.15);
}

/* Tipo: full (flexível no desktop) */
.tipo-full {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tipo-full .foak-amazon-banner {
  flex: 1 1 300px;
  max-width: 300px;
  min-width: 220px;
  width: 100%;
}

/* Tipo: grid-2x2 (usando flex com quebra) */
.tipo-grid-2x2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.tipo-grid-2x2 .foak-amazon-banner {
  flex: 1 0 45%;
  max-width: 45%;
  min-width: 10px;
  gap: 0;
}

/* Tipo: carrossel */
/* Tipo: carrossel */
.tipo-carrossel {
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1rem; /* ajuda a suavizar o snap */
  gap: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

/* Cada banner dentro do carrossel */
.tipo-carrossel .foak-amazon-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  scroll-behavior: smooth;
}

.foak-amazon-imagem-produto {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foak-amazon-imagem-footer {
  display: flex;
  flex-flow: column wrap;
  gap: 10px;
}

.tipo-full .foak-amazon-banner,
.tipo-grid-2x2 .foak-amazon-banner {
  display: flex;
  flex-flow: column wrap;
}

@media (min-width: 769px) {
  .tipo-carrossel {
    justify-content: center;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .tipo-full .foak-amazon-banner,
  .tipo-grid-2x2 .foak-amazon-banner {
    max-width: 100%;
    flex: 1 0 45%;
  }
}

html.theme-dark .foak-amazon-banner {
  background-color: #1e1e1e !important;
  color: #ffffff;
}
