/* ===========================================================
   PRODUCT DETAIL PAGE (Light Edition)
   =========================================================== */

.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: var(--space-6) 0 var(--space-9); align-items: start; }
@media (max-width: 880px) { .pdp-layout { grid-template-columns: 1fr; gap: var(--space-6); } }

.pdp-gallery { position: sticky; top: 90px; align-self: start; min-width: 0; }
@media (max-width: 880px) { .pdp-gallery { position: static; } }

.pdp-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 560px;
  background: var(--parchment);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}
.pdp-main-image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.pdp-badge-row { position: absolute; top: var(--space-4); left: var(--space-4); display: flex; gap: 8px; z-index: 2; }

/* Hover-zoom: desktop only, follows pointer */
@media (hover: hover) and (pointer: fine) {
  .pdp-main-image.zoom-active img {
    transform: scale(2.2);
  }
}

.pdp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s var(--ease-soft);
}
.pdp-gallery-arrow:hover { background: var(--cream); border-color: var(--gold); color: var(--gold-deep); }
.pdp-gallery-arrow.prev { left: var(--space-3); }
.pdp-gallery-arrow.prev svg { transform: rotate(180deg); }
.pdp-gallery-arrow.next { right: var(--space-3); }
.pdp-gallery-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.pdp-gallery-arrow[hidden] { display: none; }

.pdp-gallery-counter {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(29,30,35,0.78);
  color: var(--bone-on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 12px;
  z-index: 4;
}

.pdp-thumb-strip {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  padding-bottom: 4px;
}
.pdp-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--parchment);
  opacity: 0.7;
  transition: all 0.2s var(--ease-soft);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.active { border-color: var(--gold); opacity: 1; }

/* Lightbox (full-screen zoom on click, mobile-friendly) */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(29,30,35,0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.pdp-lightbox.open { display: flex; }
.pdp-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.pdp-lightbox img.zoomed { cursor: zoom-out; transform: scale(1.8); }
.pdp-lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,252,247,0.15);
  color: var(--bone-on-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pdp-lightbox-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pdp-lightbox .pdp-gallery-arrow {
  background: rgba(255,252,247,0.12);
  border-color: rgba(255,252,247,0.25);
  color: var(--bone-on-dark);
}
.pdp-lightbox .pdp-gallery-arrow:hover { background: rgba(255,252,247,0.22); color: var(--gold-pale); }

.pdp-info { padding-top: var(--space-2); min-width: 0; }
.pdp-cat-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.pdp-info h1 { font-size: clamp(26px, 3.2vw, 36px); margin: var(--space-3) 0 var(--space-4); }

.pdp-price-row { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.pdp-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--ink); }
.pdp-price-original { font-family: var(--font-mono); font-size: 17px; color: var(--ink-faint); text-decoration: line-through; }
.pdp-save-badge { font-family: var(--font-mono); font-size: 11px; background: var(--gold-pale); color: var(--gold-deep); padding: 3px 8px; border-radius: 3px; }
.pdp-stock { font-size: 12.5px; font-family: var(--font-mono); display: flex; align-items: center; gap: 6px; }
.pdp-stock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.pdp-stock.out .dot { background: var(--error); }
.pdp-stock.out { color: var(--ink-faint); }

.pdp-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); white-space: pre-line; }

.pdp-qty-row { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.pdp-qty-row .qty-stepper { transform: scale(1.15); transform-origin: left center; }

.pdp-actions { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.pdp-actions .btn { flex: 0 0 auto; padding: 10px 22px; font-size: 13.5px; width: auto; }
.pdp-actions .icon-btn { border: 1px solid var(--line); width: 40px; height: 40px; flex-shrink: 0; }
.pdp-wishlist-btn svg { transition: fill 0.2s, stroke 0.2s; }
.pdp-wishlist-btn.active { border-color: var(--error); color: var(--error); }
.pdp-wishlist-btn.active svg { fill: var(--error); stroke: var(--error); }

.pdp-meta-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.pdp-meta-row { display: flex; justify-content: space-between; font-size: 13px; padding: var(--space-2) 0; border-bottom: 1px dashed var(--line); }
.pdp-meta-row .k { color: var(--ink-soft); }
.pdp-meta-row .v { font-family: var(--font-mono); }

.pdp-trust { display: flex; flex-direction: column; gap: var(--space-3); }
.pdp-trust-item { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--ink-soft); }
.pdp-trust-item svg { width: 18px; height: 18px; stroke: var(--gold-deep); fill: none; stroke-width: 1.6; flex-shrink: 0; }

.related-section { border-top: 1px solid var(--line); background: var(--parchment); }
