

.product-detail {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-gallery {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-gallery:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.carousel-item {
  height: 450px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.product-info {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.product-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-code {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 1rem;
}

.old-price {
  font-size: 1.3rem;
  color: #6c757d;
  text-decoration: line-through;
}

.discount-badge {
  background: var(--danger-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 1rem;
}

.product-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.product-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 0.8rem;
}

.stock-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.stock-badge {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.availability {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success-color);
}

.delivery {
  background: rgba(52, 152, 219, 0.15);
  color: var(--accent-color);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.btn-favorite {
  background: white;
  border: 2px solid var(--danger-color);
  color: var(--danger-color);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-favorite:hover {
  background: var(--danger-color);
  color: white;
  transform: translateY(-3px);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eaeaea;
  padding-top: 1.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-icon {
  margin-right: 8px;
  color: var(--primary-color);
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.stars {
  color: #ffd700;
  margin-right: 10px;
}

.rating-count {
  color: #6c757d;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .product-title {
    font-size: 1.8rem;
  }

  .current-price {
    font-size: 1.7rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-cart,
  .btn-whatsapp,
  .btn-favorite {
    justify-content: center;
  }

  .product-meta {
    flex-direction: column;
    gap: 10px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-info {
  animation: fadeIn 0.8s ease;
}

.product-gallery {
  animation: fadeIn 0.8s ease 0.2s both;
}
#toast-container-d {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  /* para que quede arriba de todo */
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* espacio entre mensajes */
}
.btn-add-cartD.added {
  background: #28a745;
  color: #fff;
}

.cart-counter-badgeD.active {
  background: #ffc107;
  /* amarillo cuando está agregado */
}
