/* GlobalProductDetail v1: one public product layout for every Shirtgigant project. */
body.product-detail-view {
  background: #f5f7fa;
}

body.product-detail-view main.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.product-detail {
  padding: clamp(18px, 2.4vw, 38px) 0 56px;
}

.product-detail .wrap {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.product-detail .pd-page-heading {
  max-width: 920px;
  margin: 0 0 18px;
}

.product-detail .breadcrumbs {
  margin-bottom: 8px;
}

.product-detail .pd-title {
  margin: 0;
  color: #172033;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.product-detail .pd-article-number {
  margin-top: 7px;
  color: #64748b;
  font-size: .84rem;
  font-weight: 750;
}

.product-detail .pd-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .84fr);
  gap: 24px;
  align-items: start;
}

.product-detail .pd-card {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .09);
}

.product-detail .pd-card-media {
  display: grid;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.product-detail .pd-card-media .pd-media-inner {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-detail .product-render,
.product-detail .pd-static-main {
  position: relative;
  width: min(100%, 650px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
}

.product-detail .product-render {
  aspect-ratio: 5 / 6;
}

.product-detail .product-render img.base,
.product-detail .pd-static-main > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.product-detail .product-render img.logo {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

.product-detail .pd-static-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-detail .pd-static-main {
  display: grid;
  width: 100%;
  height: clamp(390px, 47vw, 650px);
  place-items: center;
}

.product-detail .pd-main-lightbox-trigger {
  cursor: zoom-in;
}

.product-detail .pd-main-lightbox-trigger:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -4px;
}

.product-detail .pd-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.product-detail .pd-gallery-nav--prev { left: 12px; }
.product-detail .pd-gallery-nav--next { right: 12px; }
.product-detail .pd-gallery-nav[hidden] { display: none; }

.product-detail .pd-static-thumbs,
.product-detail .pd-image-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  min-width: 0;
}

.product-detail .pd-static-thumb,
.product-detail .pd-swatch {
  min-width: 0;
  min-height: 84px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-detail .pd-static-thumb {
  display: grid;
  width: auto;
  grid-template-rows: 58px auto;
  gap: 4px;
  place-items: center;
}

.product-detail .pd-swatch {
  display: grid;
  grid-template-rows: 54px auto;
  gap: 4px;
  align-items: center;
  justify-items: center;
}

.product-detail .pd-static-thumb img,
.product-detail .pd-swatch img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.product-detail .pd-static-thumb span,
.product-detail .pd-swatch-label {
  width: 100%;
  overflow: hidden;
  color: #475569;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail .pd-static-thumb:hover,
.product-detail .pd-static-thumb.is-active,
.product-detail .pd-swatch:hover,
.product-detail .pd-swatch.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  transform: translateY(-1px);
}

.product-detail .pd-image-thumbs {
  min-width: 0;
  padding: 2px 0 0;
}

.product-detail .pd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
}

.product-detail .pd-section-label,
.product-detail .pd-label {
  color: #586579;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.product-detail .pd-card-buy {
  position: sticky;
  top: 92px;
  width: 100%;
  padding: 16px;
}

.product-detail .pd-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail .pd-buy-price-row {
  padding: 14px;
  border: 1px solid #eee8d7;
  border-radius: 12px;
  background: linear-gradient(135deg, #eefaf8, #fff7e9);
}

.product-detail .pd-price-main {
  display: block;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
}

.product-detail .pd-price-tax-hint {
  display: block;
  margin-top: 7px;
  color: #657187;
  font-size: .76rem;
  font-weight: 700;
}

.product-detail .pd-order-variants {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-detail .pd-order-variant-select,
.product-detail .pd-select,
.product-detail .pd-qty-input {
  width: 100%;
  min-height: 46px;
  padding: .65rem .75rem;
  border: 1px solid #cfd6df;
  border-radius: 9px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-weight: 650;
}

.product-detail .pd-order-variant-select:focus,
.product-detail .pd-select:focus,
.product-detail .pd-qty-input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.product-detail .pd-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-detail .pd-stock-hint {
  min-height: 1.1em;
  color: #657187;
  font-size: .76rem;
  font-weight: 650;
}

.product-detail .pd-qty-row {
  display: grid;
  grid-template-columns: minmax(94px, .36fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.product-detail .pd-field-qty { max-width: none; }

.product-detail .pd-field-backprint {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}

.product-detail .pd-checkbox-label {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: .82rem;
  font-weight: 700;
}

.product-detail .pd-checkbox-label input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.product-detail .pd-stock-panel {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #d9eee7;
  border-left: 4px solid #0f9f6e;
  border-radius: 10px;
  background: #effbf6;
}

.product-detail .pd-stock-panel.is-backorder {
  border-color: #fed7aa;
  border-left-color: #f97316;
  background: #fff7ed;
}

.product-detail .pd-stock-kicker {
  display: block;
  color: #64748b;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.product-detail .pd-stock-panel strong {
  display: block;
  color: #172033;
  font-size: .98rem;
}

.product-detail .pd-stock-panel p {
  margin: 0;
  color: #526074;
  font-size: .8rem;
  line-height: 1.35;
  font-weight: 650;
}

.product-detail .pd-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: .84rem;
}

.product-detail .pd-subtotal-row strong {
  color: #334155;
  font-size: 1rem;
}

.product-detail .pd-actions { margin: 0; }

.product-detail .pd-btn-add {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .85rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: .95rem;
  font-weight: 850;
  text-align: center;
}

.product-detail .pd-btn-add:hover { filter: brightness(.91); }
.product-detail .pd-btn-add:disabled { cursor: not-allowed;filter: grayscale(.4);opacity: .58; }

.product-detail .pd-support-card--inline {
  padding: 12px 0 0;
  border-top: 1px solid #e5e9ef;
}

.product-detail .pd-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-detail .pd-trust-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  background: #fff;
}

.product-detail .pd-trust-grid strong,
.product-detail .pd-trust-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.product-detail .pd-trust-grid strong {
  color: #273449;
  font-size: .82rem;
}

.product-detail .pd-trust-grid span {
  margin-top: 3px;
  color: #667085;
  font-size: .73rem;
  line-height: 1.3;
}

.product-detail .pd-detail-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .84fr);
  gap: 24px;
  margin: 16px 0;
}

.product-detail .pd-volume {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.product-detail .pd-volume summary,
.product-detail .pd-desc-collapsible > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #263246;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.product-detail .pd-volume summary::after,
.product-detail .pd-desc-collapsible > summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.2rem;
}

.product-detail .pd-volume[open] summary::after,
.product-detail .pd-desc-collapsible[open] > summary::after { content: "−"; }
.product-detail summary::-webkit-details-marker { display: none; }

.product-detail .pd-volume-table {
  width: 100%;
  max-width: none;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.product-detail .pd-volume-note { margin: 10px 14px 14px; }
.product-detail .pd-desc-row { margin: 0; }
.product-detail .pd-card-desc { margin: 0;padding: 0;overflow: hidden; }
.product-detail .pd-card-desc .product-description,
.product-detail .pd-card-desc .pd-manufacturer { margin: 0;padding: 0 18px 18px; }
.product-detail .pd-card-desc .pd-manufacturer-top { padding-top: 4px; }

body.pd-lightbox-open { overflow: hidden; }

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background: rgba(8, 13, 27, .91);
  backdrop-filter: blur(8px);
}

.pd-lightbox.is-open { display: flex; }
.pd-lightbox-figure { display: grid;width: min(100%, 1400px);height: calc(100svh - 88px);margin: 0;grid-template-rows: minmax(0, 1fr) auto;gap: 10px;place-items: center; }
.pd-lightbox-render { position: relative;width: min(calc(100vw - 130px), 1100px);height: min(calc(100svh - 130px), 900px);overflow: hidden;border-radius: 14px;background: #fff; }
.pd-lightbox-img { display: block;width: 100%;height: 100%;object-fit: contain; }
.pd-lightbox-logo { position: absolute;object-fit: contain;pointer-events: none; }
.pd-lightbox-caption { min-height: 20px;color: #fff;font-weight: 750; }
.pd-lightbox-close,
.pd-lightbox-nav { position: fixed;z-index: 100000;display: grid;width: 44px;height: 44px;place-items: center;border: 1px solid rgba(255,255,255,.3);border-radius: 50%;background: rgba(15,23,42,.86);color: #fff;cursor: pointer; }
.pd-lightbox-close { top: 20px;right: 20px;font-size: 28px; }
.pd-lightbox-nav { top: 50%;font-size: 32px;transform: translateY(-50%); }
.pd-lightbox-nav--prev { left: 20px; }
.pd-lightbox-nav--next { right: 20px; }
.pd-lightbox-nav[hidden] { display: none; }

@media (max-width: 920px) {
  .product-detail .pd-top-grid,
  .product-detail .pd-detail-info-grid { grid-template-columns: 1fr; }
  .product-detail .pd-card-buy { position: static; }
  .product-detail .pd-detail-info-spacer { display: none; }
}

@media (max-width: 640px) {
  .product-detail { padding: 12px 0 34px; }
  .product-detail .wrap { padding: 0 10px; }
  .product-detail .pd-title { font-size: clamp(1.75rem, 10vw, 2.35rem); }
  .product-detail .pd-top-grid { gap: 12px; }
  .product-detail .pd-card { border-radius: 14px; }
  .product-detail .pd-card-media,
  .product-detail .pd-card-buy { padding: 10px; }
  .product-detail .pd-static-main { height: min(110vw, 510px); }
  .product-detail .pd-static-thumbs,
  .product-detail .pd-image-thumbs-grid { grid-template-columns: repeat(4, minmax(0, 1fr));gap: 6px; }
  .product-detail .pd-static-thumb,
  .product-detail .pd-swatch { min-height: 74px;padding: 4px; }
  .product-detail .pd-static-thumb,
  .product-detail .pd-swatch { grid-template-rows: 48px auto; }
  .product-detail .pd-static-thumb img,
  .product-detail .pd-swatch img { height: 48px; }
  .product-detail .pd-qty-row { grid-template-columns: 92px minmax(0,1fr); }
  .product-detail .pd-trust-grid { grid-template-columns: 1fr; }
  .product-detail .pd-trust-grid > div { padding: 9px 10px; }
  .pd-lightbox { padding: 14px; }
  .pd-lightbox-figure { height: calc(100svh - 28px); }
  .pd-lightbox-render { width: calc(100vw - 28px);height: calc(100svh - 88px); }
  .pd-lightbox-close { top: 10px;right: 10px; }
  .pd-lightbox-nav--prev { left: 8px; }
  .pd-lightbox-nav--next { right: 8px; }
}

@media (max-width: 390px) {
  .product-detail .pd-static-thumbs,
  .product-detail .pd-image-thumbs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail .pd-qty-row { grid-template-columns: 1fr; }
}
