.product-page-wrap {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 48px;
}

.product-exit-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.product-exit-nav .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  color: var(--muted);
  font-size: .86rem;
}

.product-breadcrumbs a { color: inherit; }
.product-breadcrumbs a:hover { color: var(--red); }

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.detail-media {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.detail-media .product-view-media {
  width: 100%;
  height: min(720px, calc(100svh - 132px));
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.detail-media .product-view-media::after { display: none; }
.detail-media .media-photo-main { object-fit: contain; object-position: center; }
.detail-media .gallery-arrow { width: 44px; height: 52px; background: rgba(11, 11, 13, .75); }

.detail-body {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.product-view-header h1,
.detail-body > h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 2.5vw, 2.65rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.detail-body > p { margin: 0; color: var(--soft); line-height: 1.65; }
.detail-body .meta-row { align-items: flex-start; }
.detail-body .size-table-wrap { scroll-margin-top: 110px; }
.product-offer-notice { padding: 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--red); border-radius: 10px; background: var(--panel-2); }
.product-offer-notice p { margin: 8px 0 12px; color: var(--soft); line-height: 1.55; }
.detail-body .detail-actions { position: static; margin: 0; padding: 0; background: none; }
.detail-body .detail-actions .cta-button { min-height: 48px; width: 100%; }

.product-service-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-service-links .ghost-button { margin-left: auto; }
.product-page-wrap .recently-viewed { padding: 28px 0; }
.related-products h2 { margin-bottom: 18px; font-size: 1.45rem; }

@media (max-width: 1000px) {
  .detail-content { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  .detail-media { position: static; }
  .detail-media .product-view-media { height: min(65svh, 600px); }
}

@media (max-width: 560px) {
  .product-page-wrap { width: calc(100% - 24px); }
  .product-breadcrumbs { padding: 16px 0; font-size: .75rem; gap: 6px; }
  .detail-content { gap: 22px; }
  .detail-media .product-view-media { height: min(58svh, 500px); min-height: 270px; border-radius: 12px; }
  .product-view-header h1, .detail-body > h1 { font-size: 1.8rem; }
  .product-service-links { gap: 14px; font-size: .85rem; }
  .product-service-links .ghost-button { width: 100%; margin: 0; text-align: center; }
}
