/* ════════════════════════════════════════
   PRODUCT DETAIL — limpio y ligero
════════════════════════════════════════ */

.product-wrapper {
  padding-bottom: var(--sp-16);
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Back button ── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 var(--sp-4) var(--page-pad);
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: .78rem;
  font-weight: 600;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.btn-back:hover { color: var(--color-text); border-color: var(--color-border-hover); }

/* ── Two-column layout ── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  padding: 0 var(--page-pad) var(--sp-8);
  align-items: start;
}

/* ── Galería ── */
.product-image-container {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: transparent;
}

.product-gallery {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

/* Thumbs fuera de la galería — separados del área 1:1 */
.product-image-container > .slider-thumbs {
  margin-top: var(--sp-3);
  padding: 0;
}

/* Hotspots — solo visibles al hover del container */
.hotspot {
  position: absolute;
  width: 24px; height: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.product-image-container:hover .hotspot { opacity: 1; }

.hotspot-ring {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(139,92,246,.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.hotspot-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  position: relative; z-index: 1;
  transition: transform var(--t-fast);
}
.hotspot:hover .hotspot-dot, .hotspot.active .hotspot-dot { transform: scale(1.4); }

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: .8; }
  50%       { transform: scale(1.6); opacity: .15; }
}

.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  z-index: 20;
}
.hotspot:hover .hotspot-tooltip, .hotspot.active .hotspot-tooltip {
  opacity: 1; visibility: visible;
}
.tooltip-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--color-accent); margin-bottom: var(--sp-1);
}
.tooltip-desc { font-size: .72rem; color: var(--color-text-muted); line-height: 1.5; }

/* ── Info column ── */
.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}

.product-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-accent);
}

.product-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--color-text);
}

/* Rating */
.product-rating { display: flex; align-items: center; gap: var(--sp-2); }
.rating-value   { font-size: .85rem; font-weight: 700; }
.rating-link    { font-size: .82rem; color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.rating-link:hover { color: var(--color-accent); }

/* Price */
.product-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-text);
  line-height: 1;
  display: flex; align-items: baseline; gap: var(--sp-3);
}
.price-compare {
  font-size: 1.1rem; font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: .8rem; font-weight: 800;
  background: var(--color-danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Scarcity */
.scarcity-msg {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .82rem; font-weight: 700; color: var(--color-danger);
}

/* Description */
.product-desc {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ── Size selector ── */
.selector-group { display: flex; flex-direction: column; gap: var(--sp-3); }
.selector-label-row { display: flex; align-items: center; justify-content: space-between; }
.selector-label { font-size: .82rem; color: var(--color-text-muted); font-weight: 500; }
.size-guide-link { font-size: .75rem; color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.size-guide-link:hover { color: var(--color-accent); }
.size-options { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.size-btn {
  width: 48px; height: 48px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  font-size: .85rem; font-weight: 600;
  transition: all var(--t-fast);
}
.size-btn:hover { border-color: var(--color-border-hover); color: var(--color-text); }
.size-btn.active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }

/* ── Add to Cart ── */
.btn-add-cart {
  width: 100%; padding: 1rem;
  background: var(--color-accent); color: #000;
  font-size: .9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-add-cart:hover:not(:disabled) {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-add-cart:disabled { opacity: .6; cursor: not-allowed; }
.btn-add-cart--success { background: var(--color-success) !important; color: #fff; }

/* Trust */
.trust-micro {
  font-size: .75rem; color: var(--color-text-muted);
  text-align: center; line-height: 1.8;
}

/* ── Specs ── */
.product-specs {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.specs-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--color-text-muted);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-key {
  padding: var(--sp-3) var(--sp-5);
  font-size: .78rem; font-weight: 600; color: var(--color-text-muted);
  width: 40%; vertical-align: top;
}
.specs-val {
  padding: var(--sp-3) var(--sp-5);
  font-size: .82rem; color: var(--color-text);
}

/* ── Sticky CTA (mobile) ── */
.sticky-cta {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-sticky-cta-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-3) var(--sp-5);
  z-index: var(--z-sticky);
  align-items: center; gap: var(--sp-4);
  transform: translateY(100%); transition: transform var(--t-slow);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sticky-cta-name  { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-price { font-size: .85rem; color: var(--color-accent); font-weight: 700; }
.btn-add-cart--sticky { width: auto; padding: .75rem 1.4rem; font-size: .82rem; white-space: nowrap; flex-shrink: 0; }

/* ── Cross-sell ── */
.cross-sell-section {
  padding: var(--sp-10) var(--page-pad);
  border-top: 1px solid var(--color-border);
  max-width: 1300px; margin: 0 auto;
}
.section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: var(--sp-6); }
.cross-sell-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.cs-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--sp-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  text-align: center; cursor: pointer;
  transition: border-color var(--t-slow), transform var(--t-slow);
}
.cs-card:hover { border-color: var(--color-border-hover); transform: translateY(-3px); }
.cs-img { width: 80px; height: 80px; object-fit: contain; mix-blend-mode: var(--img-blend); }
.cs-title { font-size: .82rem; font-weight: 500; line-height: 1.3; }
.cs-price { font-size: .82rem; font-weight: 700; color: var(--color-accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .product-image-container { position: static; }
  .cross-sell-grid { grid-template-columns: repeat(2,1fr); }
  .sticky-cta { display: flex; }
}
