/* ─────────────────────────────────────────
   PRODUCT PAGE — BROKEN PLANET LAYOUT
   Large image left, vertical thumbs right,
   details panel on right column
───────────────────────────────────────── */

.product-page {
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

/* ── TOP SECTION: image + details ── */
.product-top {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: calc(100vh - var(--nav-h));
}

/* ── GALLERY: large image + vertical thumbs on right edge ── */
.gallery-col {
  display: grid;
  grid-template-columns: 1fr 88px;
}

.gallery-main {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px 32px;
  transition: opacity 0.25s ease;
}

/* Vertical thumbnail strip */
.gallery-thumbs {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 10px;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--bg);
  border-left: 1px solid var(--border);
  align-items: center;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb-btn {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid transparent;
  background: var(--bg-2);
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s;
  overflow: hidden;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-btn:hover { border-color: rgba(255,255,255,0.3); }
.thumb-btn.active { border-color: var(--white); }

/* ── DETAILS PANEL ── */
.details-col {
  padding: 48px 40px 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

.product-breadcrumb {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-breadcrumb a { transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--white); }

.product-drop-tag {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 46px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 14px;
}

.product-price {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--off-white);
}

.size-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.size-label-row span {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.size-guide-link {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.size-guide-link:hover { color: var(--white); }

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-btn {
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--grey);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.size-btn.selected { background: var(--white); border-color: var(--white); color: var(--bg); }

.size-btn.sold-out {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
}
.size-btn.sold-out::after {
  content: '';
  position: absolute;
  width: 65%;
  height: 1px;
  background: currentColor;
  transform: rotate(-40deg);
}

#add-btn {
  width: 100%;
  background: var(--white);
  color: var(--bg);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 18px;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#add-btn:hover { background: transparent; color: var(--white); }

.desc-label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}

.desc-text {
  font-size: 13px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.9;
  margin-bottom: 16px;
}

.desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.desc-list li {
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--white);
  font-weight: 700;
  padding-left: 18px;
  position: relative;
}
.desc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--grey-dim);
}

/* ── RELATED ── */
.related {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}

.related-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  background: none;
}

.related-grid .pcard { background: none; }

.pcard-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: none;
}

.pcard-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.5s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pcard-img .img-back { opacity: 0; }
.pcard:hover .img-front { opacity: 0; }
.pcard:hover .img-back  { opacity: 1; }
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-info {
  padding: 16px 0 0;
  border: none;
  text-align: center;
}

.pcard-cat { display: none; }

.pcard-name {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pcard-price {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .product-top { grid-template-columns: 1fr 360px; }
}

@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; min-height: auto; }
  .gallery-col { grid-template-columns: 1fr 72px; }
  .gallery-main { position: static; height: 70vw; min-height: 320px; }
  .gallery-thumbs { position: static; height: 70vw; min-height: 320px; }
  .details-col {
    position: static; height: auto;
    border-left: none; border-top: 1px solid var(--border);
    padding: 36px 20px 60px;
  }
  .related { padding: 60px 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gallery-col { grid-template-columns: 1fr 56px; }
  .thumb-btn { width: 44px; height: 56px; }
  .product-title { font-size: 30px; }
  .related-grid { gap: 32px 16px; }
}
