.product-page {
  background: var(--ivory);
  color: var(--ink);
  --detail-rule: color-mix(in srgb, var(--sage) 30%, var(--ivory));
}
.dg-wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.dg-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dg-skip:focus { position: fixed; top: 10px; left: 10px; z-index: 12; background: white; padding: 10px 16px; }
.dg-crumb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-block: clamp(18px, 2.1vw, 34px); color: var(--muted); font-size: var(--type-ui); }
.dg-crumb [aria-hidden] { color: var(--control-line); }
.dg-crumb a:hover { text-decoration: underline; text-underline-offset: .22em; }
.dg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  grid-template-areas: "title title" "gallery copy";
  align-items: start;
  gap: clamp(20px, 2.5vw, 42px) clamp(30px, 4.8vw, 74px);
  padding-bottom: clamp(46px, 6vw, 94px);
}
.dg-title-block {
  grid-area: title;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 28px;
  padding-bottom: clamp(16px, 1.8vw, 28px);
  border-bottom: 1px solid var(--detail-rule);
}
.dg-title-block h1 {
  max-width: 42ch;
  margin: 0;
  font: 400 var(--type-product-title)/1.08 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
:lang(zh-CN) .dg-title-block h1 { line-height: 1.22; letter-spacing: .005em; }
.set-count { white-space: nowrap; }
.dg-style { display: grid; flex-shrink: 0; text-align: end; }
.dg-code-label { color: var(--muted); font: 500 var(--type-meta)/1.45 var(--sans); }
.dg-style strong { color: var(--sage); font: 600 var(--type-body)/1.4 var(--sans); letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.dg-gallery { grid-area: gallery; min-width: 0; }
.dg-stage { display: grid; place-items: center; position: relative; aspect-ratio: 1; width: 100%; container-type: size; background: color-mix(in srgb, var(--sage-wash) 55%, var(--ivory)); overflow: hidden; border-radius: var(--photo-radius); cursor: zoom-in; }
.dg-stage > img { display: block; width: min(100cqw, calc(100cqh * var(--photo-ratio, 1))); height: auto; max-width: 100%; max-height: 100cqh; border-radius: inherit; }
.dg-zoom { display: inline-flex; position: absolute; align-items: center; gap: 8px; right: 14px; bottom: 14px; padding: 9px 15px; border: 1px solid var(--detail-rule); border-radius: 99px; color: var(--ink); background: var(--ivory); line-height: 1.3; font-size: var(--type-ui); font-weight: 550; }
.dg-stage:hover .dg-zoom, .dg-stage:focus-visible .dg-zoom { background: white; }
.dg-thumbs { display: flex; gap: 7px; overflow-x: auto; padding: 5px 3px; margin: 8px -3px 0; scrollbar-width: thin; }
.dg-thumb { flex: 0 0 clamp(55px, 6vw, 78px); aspect-ratio: 1; padding: 3px; border: 1px solid transparent; border-radius: calc(var(--thumbnail-radius) + 4px); }
.dg-thumb[aria-current] { border-color: var(--sage); background: var(--sage-wash); }
.dg-thumb:hover { border-color: var(--control-line); }
.dg-thumb:focus-visible { outline-offset: -2px; }
.dg-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: var(--thumbnail-radius); }

.dg-copy { grid-area: copy; min-width: 0; }
.dg-intro { color: var(--ink); max-width: 50ch; margin: 0; font: 400 var(--type-body)/1.65 var(--sans); }
.dg-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .32em; font: 550 var(--type-ui)/1.4 var(--sans); }
.dg-text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.dg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 18px; margin-top: clamp(14px, 1.45vw, 24px); }
.dg-inquiry { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--deep); color: var(--ivory); font: 600 var(--type-ui)/1.45 var(--sans); }
.dg-inquiry:hover, .dg-inquiry:focus-visible { background: var(--accent-hover); }
.dg-specs { margin-top: clamp(22px, 2.3vw, 36px); border-top: 2px solid var(--deep); padding-top: 15px; }
.dg-specs h2 { font: 400 var(--type-collection-title)/1.15 var(--serif); letter-spacing: -.02em; }
.dg-spec-grid { display: grid; gap: 20px; margin-top: 19px; }
.dg-spec-column h3 { padding-bottom: 7px; border-bottom: 1px solid var(--detail-rule); color: var(--sage); font: 600 var(--type-ui)/1.45 var(--sans); }
.dg-spec-column dl { margin: 0; font-variant-numeric: tabular-nums; }
.dg-spec-column dl div { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 14px; padding-block: 8px; border-bottom: 1px solid var(--detail-rule); }
.dg-spec-column dt { color: var(--muted); font: 500 var(--type-ui)/1.5 var(--sans); }
.dg-spec-column dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font: 400 var(--type-body)/1.45 var(--sans); }
.dg-related { padding-block: clamp(36px, 4.8vw, 76px); background: color-mix(in srgb, var(--sage-wash) 66%, var(--ivory)); border-top: 1px solid var(--detail-rule); }
.dg-related-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: clamp(18px, 2vw, 32px); }
.dg-related h2 { margin: 0; font: 400 var(--type-section-title)/1.13 var(--serif); letter-spacing: -.03em; }
.dg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 30px); }
.dg-cards a { display: block; }
.dg-card-photo { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--photo-radius); }
.dg-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s; }
@media (hover: hover) { .dg-cards a:hover img { transform: scale(1.035); } }
.dg-card-copy { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--detail-rule); }
.dg-cards h3 { margin: 0; font: 550 var(--type-card-title)/1.28 var(--sans); letter-spacing: -.015em; }
:lang(zh-CN) .dg-cards h3 { line-height: 1.4; letter-spacing: 0; }
.dg-card-code { margin: .35em 0 0; color: var(--muted); font: 500 var(--type-meta)/1.45 var(--sans); font-variant-numeric: tabular-nums; }
.dg-dialog { padding: 0; border: 0; background: transparent; color: white; width: max-content; max-width: 96vw; max-height: 96dvh; overflow: auto; }
.dg-dialog::backdrop { background: rgba(14, 25, 34, .96); }
.dg-toolbar, .dg-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 5px; }
.dg-toolbar span { font-size: var(--type-meta); }
.dg-dialog form { margin: 0; }
.dg-dialog button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; font: inherit; font-size: var(--type-ui); min-height: 42px; background: transparent; color: inherit; cursor: pointer; padding: 6px; }
.dg-dialog button:hover { text-decoration: underline; text-underline-offset: 4px; }
.dg-toolbar button { min-height: 44px; padding-inline: 14px; border-radius: 12px; border-color: rgb(255 255 255 / 32%); background: rgb(255 255 255 / 8%); }
.dg-toolbar button:hover { background: rgb(255 255 255 / 16%); }
.dg-dialog button:focus-visible { outline: 2px solid white; outline-offset: -2px; }
.dg-dialog button:disabled { opacity: .45; cursor: default; text-decoration: none; }
.dg-close { width: 14px; height: 14px; position: relative; }
.dg-close::before, .dg-close::after { content: ""; position: absolute; left: 0; top: 6px; background: currentColor; width: 100%; height: 2px; border-radius: 2px; transform: rotate(45deg); }
.dg-close::after { transform: rotate(-45deg); }
.dg-large { width: auto; height: auto; max-width: 92vw; max-height: min(75dvh, 1200px); object-fit: contain; display: block; margin: auto; border-radius: var(--photo-radius); }
body:has(.dg-dialog[open]) { overflow: hidden; }
@media (min-width: 48.01em) {
  .dg-layout:not(:has(.dg-specs)) {
    grid-template-areas: "gallery title" "gallery copy";
    grid-template-rows: auto 1fr;
  }
  .dg-layout:not(:has(.dg-specs)) .dg-title-block { flex-direction: column-reverse; align-items: start; }
  .dg-layout:not(:has(.dg-specs)) .dg-style { text-align: start; }
}
@media (max-width: 48em) {
  .dg-crumb { padding-block: 13px; }
  .dg-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "gallery" "copy"; gap: 20px; }
  .dg-title-block { align-items: start; flex-direction: column; gap: 9px; padding-bottom: 14px; }
  .dg-style { display: flex; align-items: baseline; gap: .5em; }
  .dg-stage { max-height: 68svh; }
  .dg-intro { max-width: 58ch; }
  .dg-specs { margin-top: 25px; }
}
@media (max-width: 540px) {
  .dg-related-top { flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
  .dg-cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dg-cards article { padding-block: 10px; border-bottom: 1px solid var(--detail-rule); }
  .dg-cards a { display: grid; grid-template-columns: clamp(85px, 28vw, 145px) minmax(0, 1fr); align-items: center; column-gap: 18px; }
  .dg-card-photo { aspect-ratio: 1.2; }
  .dg-card-copy { margin: 0; padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-card-photo img { transition: none; }
}


