.commerce-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 72px; padding-block: 12px; }
.commerce-main { padding-block: 28px 64px; }
.commerce-main h1 { font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.04em; }
.commerce-back { display: inline-block; margin-bottom: 20px; color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.detail-visual img, .detail-swatch { width: 100%; aspect-ratio: 1.28; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.detail-visual figcaption, .detail-gallery figcaption, .commerce-note { margin-top: 10px; color: var(--subtle); font-size: .875rem; line-height: 1.55; }
.commerce-note:empty { display: none; }
.detail-description { margin-top: 12px; line-height: 1.6; }
.detail-price { margin: 16px 0; font-size: 1.05rem; font-weight: 700; }
.detail-buy .color-picker-code { margin-top: 12px; }
.detail-buy-actions { display: flex; align-items: end; gap: 12px; margin-top: 8px; }
.detail-buy-actions label { width: 5.75rem; }
.detail-buy-actions .primary { min-height: 44px; }
.detail-buy input, .checkout-panel input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  background: white;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}
.detail-introduction { margin-top: clamp(36px, 6vw, 72px); padding-block: 24px; border-top: 1px solid var(--line); }
.detail-introduction h2, .checkout-panel h2 { font-size: 1.35rem; }
.detail-introduction > p { max-width: 65ch; margin-top: 12px; line-height: 1.7; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 16px; margin-top: 20px; }
.detail-gallery img { height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.kit-colors { margin-top: 28px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.kit-colors summary { padding: 16px; cursor: pointer; font-weight: 700; }
.kit-colors summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.kit-color-count { float: inline-end; margin-inline-start: 8px; color: var(--subtle); font-size: .875rem; font-weight: 600; }
.kit-colors-body { border-top: 1px solid var(--line); padding: 0 16px 20px; }
.kit-color-series { margin-top: 20px; }
.kit-color-series h2 { font-size: 1rem; letter-spacing: 0; }
.kit-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.kit-color-grid li { text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.kit-color-chip { display: block; height: 28px; margin-bottom: 4px; border: 1px solid #0002; border-radius: 4px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 24px; }
.checkout-panel { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 6px; background: white; }
.checkout-panel .primary { margin-top: 20px; }
.delivery-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.delivery-wide { grid-column: 1 / -1; }
.checkout-items { list-style: none; padding: 0; }
.checkout-items li, .checkout-totals > div { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-block: 10px; }
.checkout-items li + li, .checkout-totals { border-top: 1px solid var(--line); }
.checkout-items li strong, .checkout-totals dd { text-align: end; }
.checkout-items details p { font-size: .875rem; margin-top: 5px; }
.checkout-totals { margin-bottom: 0; }
.checkout-totals dd { margin: 0; }
.checkout-totals > div:last-child { font-weight: 750; }
@media (max-width: 720px) {
  .product-detail-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .delivery-fields { grid-template-columns: minmax(0, 1fr); }
}

.commerce-header { border-bottom: 1px solid var(--line); }
.commerce-main h1 { font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.detail-buy { padding-top: clamp(0px,2vw,24px); }
.detail-cart:not([hidden]) { display: inline-block; }
.kit-color-grid a { display: block; padding: 2px; border-radius: 4px; }
.kit-color-grid a:hover { background: var(--blue-tint); text-decoration: underline; }
.delivery-preview summary { cursor: pointer; font-weight: 650; font-size: 1.1rem; }
.detail-buy .detail-price { color: var(--subtle); }
.checkout-panel .checkout-items { margin-bottom: 0; }
