.shop-product-page { padding-block: clamp(1.3rem, 3.4vw, 3rem) clamp(3rem, 6vw, 6rem); }
.shop-detail-back {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.65rem;
  margin-bottom: clamp(1rem, 2vw, 1.85rem); color: var(--text-muted); font-size: .95rem; font-weight: 650;
}
.shop-detail-back span { font-size: 1.25rem; line-height: 1; }
.shop-detail-back:hover, .shop-detail-service:hover { color: var(--white); text-decoration: underline; text-underline-offset: .18em; }
.shop-detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(1.6rem, 5vw, 5.4rem); }
.shop-detail-layout:has([data-product-gallery][hidden]) { grid-template-columns: minmax(0, 48rem); }
.shop-detail-stage {
  overflow: hidden; aspect-ratio: 1.48; border: 1px solid var(--stroke); border-radius: .75rem; background: var(--surface-deep);
}
.shop-detail-stage a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shop-detail-photo { width: 100%; height: 100%; padding: clamp(1.25rem, 3vw, 3rem); object-fit: contain; }
.shop-detail-stage--service { background: var(--surface-soft); }
.shop-detail-stage--service img { padding: 0; object-fit: cover; }
.shop-detail-thumbs { display: flex; flex-wrap: wrap; gap: .62rem; margin-top: .85rem; }
.shop-detail-thumbs a { display: block; width: 4.8rem; height: 3.65rem; padding: .22rem; border: 2px solid var(--stroke); border-radius: .42rem; background: var(--surface-deep); }
.shop-detail-thumbs a[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-detail-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.shop-detail-summary { align-self: center; min-width: 0; }
.shop-detail-category { color: var(--text-muted); font-size: .92rem; font-weight: 600; }
.shop-detail-summary h1 { margin: .55rem 0 0; font-size: clamp(2.05rem, 3.6vw, 3.85rem); line-height: 1.04; letter-spacing: -.05em; overflow-wrap: anywhere; }
.shop-detail-price { margin: 1.05rem 0 0; color: var(--text); font-size: clamp(1.55rem, 2.55vw, 2.3rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-detail-configuration { margin-top: 1.45rem; }
.shop-detail-configuration h2, .shop-detail-actions label { display: block; margin: 0 0 .44rem; color: var(--text-muted); font-size: .88rem; font-weight: 650; line-height: 1.3; }
.shop-detail-options { display: flex; flex-wrap: wrap; gap: .46rem; }
.shop-detail-options a {
  display: inline-flex; align-items: center; min-height: 2.7rem; padding: .48rem .77rem;
  border: 1px solid var(--stroke); border-radius: .4rem; color: var(--text-muted); background: var(--surface-soft); font-size: .9rem; line-height: 1.35;
}
.shop-detail-options a:hover { color: var(--text); border-color: var(--control-line); }
.shop-detail-options a[aria-current="page"] { color: var(--text); border-color: var(--accent); background: var(--surface-slate); font-weight: 650; }
.shop-detail-purchase { margin-top: clamp(1.3rem, 2.6vw, 2.1rem); padding-top: 1.35rem; border-top: 1px solid var(--stroke); }
.shop-detail-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.shop-detail-stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--control-line); border-radius: .45rem; }
.shop-detail-stepper button, .shop-detail-stepper input { width: 2.65rem; height: 2.85rem; padding: 0; border: 0; color: var(--text); background: transparent; text-align: center; }
.shop-detail-stepper input { width: 2.05rem; appearance: textfield; font-variant-numeric: tabular-nums; }
.shop-detail-stepper input::-webkit-inner-spin-button, .shop-detail-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.shop-detail-stepper button:disabled { opacity: .45; cursor: default; }
.shop-detail-stepper button:hover:not(:disabled) { background: var(--surface-raised); }
.shop-detail-stepper :focus-visible { outline-offset: -3px; }
.shop-detail-actions .shop-add { flex: 1 1 10rem; min-height: 3rem; }
.shop-detail-help { margin-top: .82rem; color: var(--text-muted); font-size: .91rem; line-height: 1.5; }
.shop-detail-specifications { margin-top: clamp(2.4rem, 5vw, 4.6rem); }
.shop-detail-specifications h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 2.6vw, 2.55rem); letter-spacing: -.04em; }
.shop-detail-spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 5vw, 5.4rem); margin: 0; padding: 0; list-style: none; }
.shop-detail-spec-list li { min-width: 0; padding: .85rem 0; border-top: 1px solid var(--stroke); color: var(--text-muted); line-height: 1.45; overflow-wrap: anywhere; }
.shop-detail-service { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; margin-top: .65rem; color: var(--action); font-weight: 650; }
@media (max-width: 760px) {
  .shop-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 1.55rem; }
  .shop-detail-stage { max-height: 26rem; }
  .shop-detail-spec-list { grid-template-columns: minmax(0, 1fr); }
}
@media (scripting: none) { .shop-detail-actions [data-product-quantity] { display: none; } }
