.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.pdp-main-img {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pdp-thumbs {
  display: flex; gap: 12px; margin-top: 14px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.pdp-thumb {
  flex: 0 0 auto;
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid var(--line); background: var(--bg-soft);
}
.pdp-thumb.active { border-color: var(--accent); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: 1.9rem; margin: 6px 0 10px; }
.pdp-rating { color: var(--accent); font-size: 0.85rem; margin-bottom: 20px; }
.pdp-rating span { color: var(--ink-soft); font-weight: 400; }

.pdp-price-block { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.pdp-price { font-size: 2rem; font-weight: 800; display: block; }
.pdp-desc { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; }

.pdp-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.pdp-specs div { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; }
.pdp-specs span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 3px; }
.pdp-specs strong { font-size: 0.9rem; }

.pdp-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.qty-select {
  display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty-select span { padding: 0 16px; font-weight: 700; font-size: 0.9rem; }
.qty-btn { width: 38px; height: 44px; border: none; background: var(--bg-soft); font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.pdp-buy { flex: 1; }
.pdp-fav {
  position: static; top: auto; right: auto;
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); flex-shrink: 0;
}

.pdp-trust { display: flex; flex-direction: column; gap: 12px; }
.pdp-trust div { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--ink-soft); }
.pdp-trust svg { color: var(--accent-deep); flex-shrink: 0; }

@media (max-width: 980px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* Lightbox de la galería */
.pdp-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.88); padding: 5vh 4vw;
}
.pdp-lightbox[hidden] { display: none; }
.pdp-lightbox img {
  max-width: 100%; max-height: 90vh; object-fit: contain;
  border-radius: 8px; user-select: none;
}
.pdp-lb-close, .pdp-lb-nav {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff;
  border: none; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.15s;
}
.pdp-lb-close:hover, .pdp-lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.pdp-lb-close { top: 4vh; right: 4vw; width: 44px; height: 44px; font-size: 1.8rem; }
.pdp-lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; }
.pdp-lb-prev { left: 2vw; }
.pdp-lb-next { right: 2vw; }
.pdp-lb-count {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .pdp-lb-nav { width: 40px; height: 40px; font-size: 1.7rem; }
  .pdp-lb-close { width: 38px; height: 38px; font-size: 1.5rem; }
}
