:root {
  --primary: #111;
  --secondary: #f5f5f5;
  --accent: #de4099;
  --tercer: #de4099;
  --text: #333;
  --light-text: #777;
  --border: #e0e0e0;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fafafa;
  color: var(--text);
  line-height: 1.6;
}

/* Contenedor principal */
.producto-premium {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Grid principal */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

/* Galería premium */
.gallery-premium {
  position: relative;
  height: 700px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.main-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
  transform-origin: center center;
}

.thumbnail-scroller {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 2rem;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thumbnail:hover, .thumbnail.active {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.zoom-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  transition: var(--transition);
}

.zoom-icon:hover {
  transform: scale(1.1);
  background: var(--accent);
  color: white;
}

/* Detalles premium */
.details-premium {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  line-height: 1.2;
}

.product-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.original-price {
  text-decoration: line-through;
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 400;
}

.product-description {
  color: var(--light-text);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.product-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.meta-item i {
  color: var(--accent);
}

/* Selector de cantidad premium */
.quantity-selector-premium {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.quantity-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn:hover {
  background: var(--accent);
  color: white;
}

.quantity-input {
  width: 80px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  background: transparent;
}

/* Botones de acción */
.action-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-premium {
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 200px;
}

.btn-cart {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-cart:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-wishlist {
  background: transparent;
  color: #333; /* Color de texto oscuro */
  border: 2px solid #ddd; /* Borde gris */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Estilo cuando no está activo (no favorito) */
.btn-wishlist:not(.active) i {
  color: #333; /* Color oscuro para el corazón hueco */
}

/* Estilo cuando está activo (favorito) */
.btn-wishlist.active {
  border-color: #ff4757; /* Borde rojo cuando es favorito */
}

.btn-wishlist.active i {
  color: #ff4757; /* Corazón rojo relleno */
  animation: heartbeat 0.5s ease-in-out;
}
.btn-share {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-share:hover {
  background-color: #e0e0e0;
}
.share-circle-container {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 10;
}

/* Botón circular de compartir */
.share-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-circle:hover {
  background-color: #f5f5f5;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Asegúrate que el contenedor principal tenga posición relativa */
.producto-premium {
  position: relative;
}
/* Efecto hover */
.btn-wishlist:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animación de latido */
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Efecto de pulso al hacer hover sobre favorito */
.btn-wishlist.active:hover i {
  animation: heartbeat 1.5s infinite;
}

.btn-buy {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.btn-buy:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
}

/* Sección de características */
.features-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(58, 134, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

/* Productos recomendados premium */
.recommended-premium {
  margin: 5rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

.recommended-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.recommended-card {
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 240px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.recommended-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.recommended-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.recommended-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: var(--secondary);
  padding: 2rem;
}

.recommended-details {
  padding: 1.5rem;
}

.recommended-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommended-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.recommended-actions {
  display: flex;
  gap: 0.5rem;
}

.recommended-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recommended-btn-primary {
 display: inline-block;
 text-align: center;
 padding: 12px 30px;
 background-color: transparent;
 color: var(--tercer);
 border: 2px solid var(--tercer);
 border-radius: 30px;
 font-weight: 600;
 transition: all 0.3s ease
 }
a {
     all: unset; /* Esto resetea todos los estilos por defecto */
     cursor: pointer; /* Vuelve a poner el cursor tipo enlace */
     color: inherit;  /* Hereda el color del padre */
     text-decoration: none; /* Quita el subrayado */
      }

.recommended-btn-primary:hover {
  background: linear-gradient(to right, var(--color-secundario) , var(--color-primario));
   color: #ffffff;
        }

.recommended-btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.recommended-btn-secondary:hover {
  border-color: var(--primary);
}

/* Modal de zoom */
.zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zoom-modal.active {
  opacity: 1;
  pointer-events: all;
}

.zoom-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.zoom-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-zoom {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Estilos mejorados para selectores de variantes */
.variantes-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
}

.selector-container {
  margin-bottom: 1.5rem;
}

.selector-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
}

.tallas-wrapper, .colores-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.talla-btn {
  min-width: 50px;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.color-option:hover {
  transform: translateY(-3px);
}

.color-option.active {
  border-color: #3a86ff;
  background-color: #f0f7ff;
}

.color-sample {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.color-option.active .color-sample {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.3);
}

.color-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: #333;
  text-transform: capitalize;
}

.talla-btn:hover, .color-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.talla-btn.active, .color-option.active {
  border-color: #a855f7;
  background-color: #f3e8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.stock-container {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
  display: flex;
  align-items: center;
}

.stock-label {
  font-weight: 500;
  margin-right: 0.5rem;
  color: #555;
}

.stock-value {
  font-weight: 600;
  color: #2e7d32;
  font-size: 1.1rem;
}
.btn-outline-primary:hover .fa-heart {
    color: #dc3545; /* Rojo cuando se pasa el mouse */
}

.btn-danger .fa-heart {
    color: white;
}
button[disabled], .btn-disabled {
    background-color: #e0e0e0 !important;
    color: #888 !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed;
    box-shadow: none !important;
    pointer-events: none;
    transform: none !important;
}

/* Animación al añadir/quitar de favoritos */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.fa-heart {
    transition: all 0.3s ease;
}

.added-to-favorites {
    animation: heartBeat 0.7s;
    color: #dc3545;
}
.copy-notification {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 34px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.copy-notification.success {
  background: #4CAF50;
}
.recommended-grid::-webkit-scrollbar {
  display: none;
}
.copy-notification.error {
  background: #f44336;
}

/* Responsive */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .gallery-premium {
    height: 500px;
  }
}
@media (max-width: 1200px) {
  .share-circle-container{
    top: 530px;
    right: 30px;
  }
  }
@media (max-width: 768px) {
  .gallery-premium {
    height: 400px;
  }

  .recommended-card {
    flex: 0 0 auto;
    min-width: 210px;
    max-width: 200px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}
   .share-circle-container{
    top: 420px;
    right: 30px;
  }
  .details-premium {
    padding: 2rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .color-sample {
    width: 40px;
    height: 40px;
  }

  .talla-btn {
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .gallery-premium {
    height: 300px;
    padding: 1rem;
  }
  .share-circle-container{
    top: 320px;
    right: 30px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .product-title {
    font-size: 1.8rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .color-sample {
    width: 35px;
    height: 35px;
  }

  .color-label {
    font-size: 0.75rem;
  }
}