/* ===============================
      PRODUTO
=============================== */

.produto {
  background-color: #fff;
}

.produto-content {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.produto-imagem img {
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 350px;
}

.produto-info {
  flex: 1;
}

.produto-info h2 {
  font-family: "Gupter", serif;
  font-size: 1.8em;
  margin-bottom: 10px;
}

.produto-info h3 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #555;
}

.preco {
  font-family: "Gupter", serif;
  font-size: 1.8em;
  font-weight: bold;
  color: #0078d4;
  margin-bottom: 15px;
}

.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Descrição do produto */
.descricao {
  padding: 40px 20px;
  border-radius: 8px;
}

.descricao h4 {
  font-family: "Gupter", serif;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 0;
}

/* Autor do produto */
.autor {
  background-color: #f5f5f5;
  padding: 40px 20px;
}

.autor-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.autor-info {
  flex: 1 1 0;
  order: 1;
}

.autor-info h5 {
  font-size: 1.8em;
  font-family: "Gupter", serif;
  margin-top: 0;
  margin-bottom: 0;
}

.autor-info p {
  line-height: 1.6;
}

.autor-imagem {
  flex: 0 0 300px;
  text-align: right;
  order: 2;
}

.autor-imagem img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
}

/* Versão móvel: imagem acima do texto */
@media (max-width: 768px) {
  .produto-content {
    flex-direction: column;
    align-items: center;
  }

  .autor-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .autor-info {
    order: 2;
  }

  .autor-imagem {
    order: 1;
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    text-align: center;
  }

  .autor-imagem img {
    width: 200px;
    height: 200px;
  }
}

/* Outros Títulos (Carrossel) */
.outros-titulos {
  background-color: #fff;
  padding: 40px 20px;
}

.outros-titulos h4 {
  font-family: "Gupter", serif;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 0;
}

.carrossel-container {
  position: relative;
  overflow: hidden;
}

.carrossel {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 20px 0;
}

.carrossel::-webkit-scrollbar {
  display: none;
}

.carrossel-item {
  flex: 0 0 25%;
  box-sizing: border-box;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
  max-width: 230px;
}

.carrossel-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.carrossel-item h5 {
  font-family: "Gupter", serif;
  font-size: 1.2em;
  margin: 10px 0;
}

.carrossel-item p {
  margin: 10px 0;
}

/* Botões do carrossel */
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.carrossel-btn:hover {
  background-color: initial;
  color: initial;
}

.carrossel-btn img {
  width: 48px;
  height: 48px;
  display: block;
}

.carrossel-btn.esquerda {
  left: 5px;
}

.carrossel-btn.direita {
  right: 5px;
}

.ver-todos-container {
  display: flex;
}

.ver-todos-link {
  font-family: "Gupter", serif;
  font-size: 1.2em;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

/* Responsividade Carrossel */
@media (max-width: 768px) {
  .carrossel-item {
    flex: 0 0 70%;
    max-width: 200px;
  }

  .carrossel-container {
    padding: 0 10px;
  }

  .carrossel-btn {
    display: none !important;
  }

}