/* 商品详情，主图与商品规格分栏，介绍使用原生可折叠面板。 */
.product-wrap {
  padding-bottom: 18px;
}
.product-wrap .crumb {
  padding: 18px 0 24px;
}
.pdp {
  --gallery-max-width: 384px;
  display: grid;
  grid-template-columns: min(42%, var(--gallery-max-width)) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 0 0 44px;
}
.gal {
  min-width: 0;
}
.gal .main {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid #edf0f3;
  background: #fff;
}
.gal .main > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gal .zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
}
.product-image-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px 16px;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.product-image-preview[open] {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.product-image-preview::backdrop {
  background: rgba(13, 20, 37, 0.92);
}
.product-image-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
}
.product-image-stage > img {
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.product-image-stage.is-zoomed > img {
  cursor: grab;
  touch-action: none;
}
.product-image-stage.is-dragging > img {
  cursor: grabbing;
}
.product-image-preview form {
  position: absolute;
  top: 12px;
  right: 12px;
}
.product-image-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}
.product-image-close:hover {
  background: var(--grey);
}
.product-image-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
body:has(.product-image-preview[open]) {
  overflow: hidden;
}
.gal .thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.gal .thumbs .list {
  display: flex;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 3px 2px 6px;
}
.gallery-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 66px;
  padding: 4px;
  border: 1px solid #e5e9ee;
  border-radius: 3px;
  background: #fff;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-thumb[aria-pressed="true"] {
  border-color: var(--navy);
  box-shadow: 0 2px 0 #dce2ea;
}
.gallery-arrow {
  flex: 0 0 24px;
  width: 24px;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 26px;
}
.info {
  min-width: 0;
}
.product-collection {
  margin: 8px 0 12px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.info h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}
.product-sku {
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.product-spec {
  padding: 20px 0;
  border-bottom: 1px solid #edf0f3;
}
.product-spec:first-of-type {
  padding-top: 12px;
}
.product-spec h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.spec-number {
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 36px;
}
.colour-option {
  flex: 0 0 64px;
  width: 64px;
  padding: 4px;
  border: 1px solid #e4e8ed;
  border-radius: 3px;
  background: #fff;
}
.colour-option img {
  width: 54px;
  height: 62px;
  object-fit: contain;
}
.colour-option[aria-pressed="true"] {
  border-color: var(--navy);
  box-shadow: 0 2px 0 #dce2ea;
}
.product-size-content {
  margin-left: 36px;
}
.product-size-content > .product-text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
}
.size-label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
  color: #555;
  font-size: 12px;
}
.size-label strong {
  font-weight: 600;
}
.sizegrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  max-width: 518px;
}
.sizegrid button {
  min-width: 0;
  height: 50px;
  padding: 0 5px;
  border: 1px solid #e7ebef;
  border-radius: 0;
  background: #f6f8fa;
  color: #222;
  font-size: 12px;
  font-weight: 400;
}
.sizegrid button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.sizegrid button:disabled {
  color: #a6aab0;
  background: linear-gradient(to top right, #f6f8fa 49%, #cfd4db 50%, #f6f8fa 51%);
  cursor: not-allowed;
}
.sizegrid button[data-s="One size"] {
  grid-column: span 2;
}
.product-spec-copy {
  margin-left: 36px;
  font-size: 12px;
  line-height: 1.9;
  color: #444;
}
.product-spec-copy strong {
  font-weight: 600;
  color: var(--navy);
  margin-right: 5px;
}
.product-spec:last-of-type {
  border-bottom: 0;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}
.product-action.inquiry {
  background: #c6a65c;
  border-color: #c6a65c;
}
.product-action:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.product-accordion {
  margin: 12px 0 0;
  border-top: 1px solid #cbd2dc;
}
.product-panel {
  border-bottom: 1px solid #cbd2dc;
}
.product-panel summary {
  position: relative;
  display: block;
  padding: 18px 52px 18px 22px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.product-panel summary::-webkit-details-marker {
  display: none;
}
.product-panel summary::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 24px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
}
.product-panel[open] summary::after {
  top: 26px;
  transform: rotate(225deg);
}
.product-panel-body {
  padding: 12px 22px 26px;
  color: #4d5055;
  font-size: 12px;
  line-height: 1.9;
}
.product-panel-body p + p {
  margin-top: 12px;
}
.product-panel-body ul {
  list-style: disc;
  padding-left: 30px;
  margin-top: 10px;
}
.product-panel-body li {
  margin: 7px 0;
  padding-left: 1px;
}
.product-text-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.also {
  padding: 46px 0 34px;
}
@media (max-width: 1000px) {
  .pdp {
    gap: 28px;
  }
  .product-action {
    padding-inline: 18px;
  }
}
@media (max-width: 800px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 30px;
  }
  .gal {
    width: min(100%, var(--gallery-max-width));
    margin: 0 auto;
  }
  .product-collection {
    margin-top: 0;
  }
  .info h1 {
    font-size: 26px;
  }
}
@media (max-width: 480px) {
  .sizegrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 320px;
  }
  .product-wrap .crumb {
    padding: 14px 0 20px;
  }
  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .product-action {
    width: 100%;
  }
  .product-panel summary {
    font-size: 12px;
    padding-left: 14px;
  }
  .product-panel-body {
    padding: 10px 14px 22px;
  }
  .product-panel-body ul {
    padding-left: 22px;
  }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .sizegrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 320px;
  }
}
