.product-detail {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: var(--space-xl);
  align-items: start;
  width: 100%;
}

/* Galería */
.product-detail__gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-sm);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.product-detail__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-detail__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: linear-gradient(135deg, #1e4a35, #2a6347);
  flex-shrink: 0;
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__thumb--active {
  border-color: var(--accent);
}

.product-detail__thumb-video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cream);
}

.product-detail__main-media {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1e4a35, #2a6347);
}

.product-detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

video.product-detail__main-img {
  object-fit: contain;
  background: #000;
}

.product-detail__placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Info */
.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-detail__info h1 {
  font-size: var(--text-xl);
  margin-top: 0.25rem;
}

/* Estrellas */
.stars { display: flex; gap: 2px; }
.star { color: var(--border); font-size: 1rem; }
.star--on { color: #F4A823; }

.product-detail__stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-detail__stars-count {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Precio */
.product-detail__pricing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.product-detail__price {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.product-detail__original {
  font-size: var(--text-base);
  color: var(--muted);
  text-decoration: line-through;
}

.product-detail__badge {
  background: var(--cta);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Stock */
.product-detail__stock {
  color: #E63946;
  font-size: var(--text-sm);
  font-weight: 700;
  max-width: none;
}

.product-detail__stock--agotado { color: var(--muted); }

.product-detail__qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 0.5rem;
}

.product-detail__stock-info {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Qty */
.product-detail__qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

.product-detail__qty button {
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1;
  transition: color 0.2s;
}

.product-detail__qty button:hover { color: var(--accent); }

/* Botones */
.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.product-detail__btn-cart {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--cream);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.875rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  text-align: center;
}

.product-detail__btn-cart:hover { background: rgba(82,183,136,0.1); }

.product-detail__btn-buy {
  width: 100%;
  background: var(--cta);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  padding: 0.875rem;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  text-align: center;
}

.product-detail__btn-buy:hover { opacity: 0.88; }

.product-detail__btn-addi {
  width: 100%;
  background: #2C6BED;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.875rem;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  text-align: center;
}

.product-detail__btn-addi:hover { opacity: 0.88; }

/* Trust */
.product-detail__trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.product-detail__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.product-detail__trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Por qué elegirnos */
.product-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md);
  background: rgba(82,183,136,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-why__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--cream);
  max-width: none;
  margin-bottom: 0.25rem;
}

.product-why__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* Reseñas */
.product-resenas {
  width: 100%;
}

.product-resenas h2 { margin-bottom: var(--space-md); }

.product-resenas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.resena {
  background: rgba(82,183,136,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resena__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resena__nombre {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--cream);
}

.resena__texto {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

/* Relacionados */
.product-detail__relacionados {
  width: 100%;
}

.product-detail__relacionados h2 { margin-bottom: var(--space-md); }

/* Responsive */
@media (max-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-detail__gallery {
    position: static;
  }
  .product-why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-detail__gallery {
    grid-template-columns: 1fr;
  }
  .product-detail__thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
  .product-why {
    grid-template-columns: 1fr;
  }
}