/* Detalhes do Produto */
.product-details {
  padding: 40px 0;
  background-color: #fff;
}

.product-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Galeria de Imagens */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image:hover img {
  transform: scale(1.05);
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #ffcc00;
  transform: scale(1.05);
}

/* Informações do Produto */
.product-info-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.product-title-detail {
  font-size: 28px;
  color: #222;
  margin: 0;
  line-height: 1.3;
}

.product-rating-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: #ffcc00;
  font-size: 18px;
}

.rating-text {
  color: #666;
  font-size: 14px;
}

.product-price-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.current-price-detail {
  font-size: 32px;
  font-weight: bold;
  color: #0066ff;
}

.old-price-detail {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}

.discount-badge {
  background-color: #ff4757;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.product-description h3 {
  color: #222;
  margin-bottom: 15px;
  font-size: 20px;
}

.product-description p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #666;
}

.product-features i {
  color: #28a745;
  font-size: 14px;
}

/* Opções do Produto */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-group label {
  font-weight: bold;
  color: #222;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background-color: #ffcc00;
  color: #222;
}

.qty-btn:first-child {
  border-radius: 5px 0 0 5px;
}

.qty-btn:last-child {
  border-radius: 0 5px 5px 0;
}

#quantity {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  outline: none;
  font-size: 16px;
}

.personalization-select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.personalization-select:focus {
  border-color: #ffcc00;
}

/* Ações do Produto */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.add-to-cart-detail,
.buy-now,
.add-to-wishlist,
.whatsapp-contact {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.add-to-cart-detail {
  background-color: #222;
  color: white;
}

.add-to-cart-detail:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.buy-now {
  background-color: #0066ff;
  color: white;
}

.buy-now:hover {
  background-color: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.add-to-wishlist {
  background: linear-gradient(135deg, #ff4757, #e84118);
  color: white;
}

.add-to-wishlist:hover {
  background: linear-gradient(135deg, #e84118, #ff4757);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.whatsapp-contact {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.whatsapp-contact:hover {
  background: linear-gradient(135deg, #128C7E, #25D366);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}


/* Estilos para a seção de quantidade */
.quantity-section {
  margin: 20px 0;
}

.quantity-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.quantity-selector {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background-color: #e0e0e0;
}

#quantity {
  width: 50px;
  height: 30px;
  text-align: center;
  margin: 0 5px;
  border: 1px solid #ddd;
}

/* Estilos para o calculador de frete */
.shipping-calculator {
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.shipping-calculator h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.shipping-form {
  display: flex;
  gap: 10px;
}

#cep {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.calculate-shipping-btn {
  padding: 8px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.calculate-shipping-btn:hover {
  background-color: #45a049;
}

.shipping-results {
  margin-top: 15px;
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.shipping-option:last-child {
  border-bottom: none;
}

.shipping-option.free {
  color: #4CAF50;
}

.shipping-error {
  color: #f44336;
  margin: 10px 0 0;
}





/* Informações de Entrega */
.shipping-info {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.shipping-info h4 {
  color: #222;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipping-calculator {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.cep-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

.calculate-shipping {
  padding: 10px 20px;
  background-color: #ffcc00;
  color: #222;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculate-shipping:hover {
  background-color: #ffd941;
  transform: translateY(-2px);
}

.shipping-options p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #666;
}

.shipping-options i {
  color: #28a745;
}

/* Produtos Relacionados */
.related-products {
  padding: 50px 30px;
  background-color: #f8f9fa;
}

.related-products .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.related-products .products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsividade */
@media (max-width: 768px) {
  .product-details-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-image {
    height: 300px;
  }

  .product-title-detail {
    font-size: 24px;
  }

  .current-price-detail {
    font-size: 28px;
  }

  .product-actions {
    gap: 10px;
  }

  .add-to-cart-detail,
  .buy-now,
  .add-to-wishlist,
  .whatsapp-contact {
    padding: 12px 20px;
    font-size: 14px;
  }

  .shipping-calculator {
    flex-direction: column;
  }

  .related-products .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .thumbnail-images {
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-price-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .current-price-detail {
    font-size: 24px;
  }

  .old-price-detail {
    font-size: 18px;
  }

  .related-products .products-container {
    grid-template-columns: 1fr;
  }
}