/* Estilos para la página de detalle de producto */

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.product-detail-content {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sección de imagen del producto */
.product-image-section {
  flex: 1;
  max-width: 400px;
}

.product-main-image {
  width: 100%;
  text-align: center;
}

.main-product-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Imagen placeholder */
.placeholder-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #999;
}

.placeholder-image i {
  font-size: 4rem;
  margin-bottom: 10px;
}

/* Sección de información del producto */
.product-info-section {
  flex: 1;
  padding-left: 20px;
}

.shipping-info {
  margin-bottom: 20px;
}

.shipping-info p {
  color: #f47b20;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

/* Especificaciones del producto */
.product-specifications {
  margin-bottom: 30px;
}

.product-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Items de especificaciones */
.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.spec-label {
  font-weight: 500;
  color: #666;
}

.spec-value {
  color: #333;
  font-weight: 400;
}

/* Sección de acciones del producto */
.product-actions {
  margin-top: 30px;
}

.price-section {
  margin-bottom: 20px;
}

.product-price-detail {
  font-size: 32px;
  font-weight: 700;
  color: #f47b20;
}

.action-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Botón de añadir al carrito */
.btn-add-to-cart {
  background-color: white;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-add-to-cart:hover {
  background-color: #e06a10;
  transform: scale(1.05);
}

/* Botón de comprar ahora */
.btn-buy-now {
  background-color: #f47b20;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 500;
  text-decoration: none;
}

.btn-buy-now:hover {
  background-color: #e06a10;
}

/* NUEVO: Sección de productos relacionados */
.related-products-section {
  margin-top: 50px;
}

.related-products-section h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* NUEVO: Tarjetas de productos relacionados */
.related-product-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.related-product-image {
  text-align: center;
  margin-bottom: 10px;
}

.related-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 4px;
}

.related-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #999;
}

.related-placeholder i {
  font-size: 2rem;
}

.related-product-info h4 {
  font-size: 14px;
  color: #333;
  margin: 0 0 5px 0;
  text-align: center;
}

.related-price {
  font-size: 16px;
  font-weight: 600;
  color: #f47b20;
  text-align: center;
  margin: 0;
}

/* NUEVO: Media queries para responsividad */
@media (max-width: 768px) {
  .product-detail-content {
    flex-direction: column;
    padding: 20px;
  }

  .product-info-section {
    padding-left: 0;
    padding-top: 20px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-price {
    font-size: 28px;
  }

  .action-buttons {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .product-detail-container {
    padding: 20px 15px;
  }

  .product-detail-content {
    padding: 15px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-price {
    font-size: 24px;
  }

  .spec-item {
    flex-direction: column;
    gap: 5px;
  }

  .spec-label {
    font-weight: 600;
  }

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