.detail-wrap { padding-bottom: 65px; min-height: calc(100vh - 152px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 25px; color: var(--muted); font-size: .85rem; }
.crumbs a { color: var(--blue); font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span::before { content: '/'; margin-right: 12px; color: #777888; }
.detail-grid { display: grid; grid-template: "gallery tools" auto "gallery info" 1fr / minmax(0, 1fr) minmax(0, .91fr); gap: 12px clamp(24px, 5vw, 75px); align-items: start; }
.detail-gallery { grid-area: gallery; min-width: 0; }
.detail-tools { grid-area: tools; }
.detail-info { grid-area: info; min-width: 0; }
.gallery-main { position: relative; }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; touch-action: pan-y; }
.photo-open img { display: block; width: 100%; aspect-ratio: 1 / 1.15; max-height: 690px; object-fit: cover; border-radius: 12px; }
.pdf-detail .photo-open img { object-fit: contain; }
.gallery-arrow { position: absolute; z-index: 1; top: 50%; translate: 0 -50%; border: 0; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: #fffefa; color: #171d2c; box-shadow: 0 2px 9px #1114; }
.gallery-arrow::before { content: ''; width: 9px; height: 15px; background: currentColor; clip-path: polygon(0 13%, 20% 0, 100% 50%, 20% 100%, 0 87%, 60% 50%); }
.gallery-arrow.previous::before { transform: scaleX(-1); }
.gallery-arrow:hover { background: #e6edbd; }
.gallery-arrow.previous { left: 12px; }
.gallery-arrow.next { right: 12px; }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 20px; color: #fff; background: #171d2cdd; font-size: .82rem; pointer-events: none; }
.detail-thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 0; padding: 5px 3px; }
.detail-thumbs button { flex: 0 0 76px; min-width: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; }
.detail-thumbs button[aria-pressed=true] { outline: 2px solid var(--blue); outline-offset: 2px; }
.detail-thumbs img { width: 76px; height: 74px; object-fit: cover; border-radius: 7px; }
.detail-info > * + * { margin-top: 15px; }
.detail-info h1 { font: 400 clamp(2.25rem, 4vw, 4.5rem)/1.01 var(--serif); letter-spacing: -.06em; overflow-wrap: anywhere; }
.detail-buy-row, .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-actions .btn, #purchase .btn { gap: 7px; }
.detail-tools .detail-actions { justify-content: flex-end; gap: 4px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.detail-actions > :is(button,a) { display: grid; min-width: 76px; width: auto; min-height: 52px; height: auto; justify-items: center; align-content: center; gap: 4px; border: 0; border-radius: 10px; background: transparent; padding: 4px 6px; font: 700 .73rem/1.1 Arial,sans-serif; text-align: center; }
.detail-actions .ui-icon { width: 23px; height: 23px; color: var(--blue); }
.detail-actions > :is(button,a):hover { background: #edf0fc; }
.detail-price { font-size: clamp(1.95rem,3.55vw,3.05rem); }
.detail-buy-row { display: flex; align-items: stretch; gap: 5px; width: fit-content; max-width: 100%; background: #eceefe; border-radius: 12px; }
.detail-buy-row .btn { flex: 0 1 auto; min-height: 44px; border-radius: 10px; }
.detail-buy-row .detail-stepper { justify-content: space-around; min-height: 44px; background: #eceefe; border: 0; border-radius: 10px; padding: 0 2px; margin: 0; }
.detail-buy-row .detail-stepper button { background: transparent; border-color: transparent; color: var(--blue); width: 39px; height: 40px; }
.detail-buy-row .detail-stepper span { min-width: 1.4em; text-align: center; font-weight: 800; }
.detail-cart-link { background: #f7f8ff; color: var(--blue); }
.detail-cart-link:hover { background: var(--blue); color: #fff; }
.share-feedback { margin-top: 4px; }
.share-feedback:has(#share-status:empty):has(#share-manual[hidden]) { display: none; }
.related-products { margin-top: clamp(32px, 6vw, 68px); padding-top: 22px; border-top: 1px solid var(--line); }
.related-products h2 { font: 400 clamp(1.7rem, 3.2vw, 2.45rem)/1.15 var(--serif); margin-bottom: 17px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 3vw, 22px); }
.related-card { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.related-card img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 10px; background: var(--white); }
.related-gallery { position: relative; }
.related-gallery .card-photo { border-radius: 10px; aspect-ratio: 1.15; }
.related-arrow { position: absolute; top: 50%; left: 7px; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 100%; color: var(--blue); background: var(--white); }
.related-arrow[data-preview-step="1"] { left: auto; right: 7px; }
.related-arrow:hover { background: var(--lime); }
@media (hover: hover) {
  .related-arrow { opacity: 0; pointer-events: none; }
  .related-gallery:hover .related-arrow, .related-gallery:focus-within .related-arrow { opacity: 1; pointer-events: auto; }
}
.related-card strong { line-height: 1.25; overflow-wrap: anywhere; }
.related-card:hover strong, .related-price { color: var(--blue); }
.related-price { font-weight: 750; }
.detail-stepper { min-height: 46px; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.detail-stepper button { width: 36px; height: 36px; font-size: 1rem; }
.detail-block { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }
.detail-block h2 { font: 400 1.42rem/1.2 var(--serif); margin-bottom: 8px; }
.detail-block > p, .variant-note { color: #4a4b5a; white-space: pre-line; overflow-wrap: anywhere; }
.detail-block > p + p { margin-top: 7px; }
.spec-list, .spec-list dd { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; overflow-wrap: anywhere; }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 700; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; margin: 0; background: transparent; padding: 0; overflow: hidden; }
.lightbox::backdrop { background: rgb(12 15 23 / 76%); backdrop-filter: blur(3px); }
#light-stage { position: absolute; inset: 53px 8px 68px; overflow: hidden; touch-action: none; cursor: zoom-in; }
#light-stage.zoomed { cursor: grab; }
#light-stage.zoomed:active { cursor: grabbing; }
#light-stage img { position: absolute; top: 50%; left: 50%; width: auto; height: auto; max-width: none; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open], .lightbox[open]::backdrop { animation: lightbox-in .22s ease-out both; }
  @keyframes lightbox-in { from { opacity: 0; } }
}
.lightbox .light-close { position: absolute; z-index: 2; top: max(8px, env(safe-area-inset-top)); right: 12px; }
.light-controls { position: absolute; z-index: 2; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 5px; background: #171d2c; color: white; border-radius: 25px; padding: 4px 7px; white-space: nowrap; }
.light-controls button { border: 0; background: transparent; min-width: 40px; min-height: 42px; border-radius: 20px; color: white; }
.light-controls button:hover { background: #333c52; }
#light-count { padding: 0 7px; }
.page-main { min-height: calc(100vh - 152px); padding: 30px 0 58px; }
.page-main h1 { margin: 10px 0 22px; font: 400 clamp(2.25rem, 5vw, 4.55rem)/1.05 var(--serif); letter-spacing: -.05em; }
.page-intro { margin-bottom: 18px; }
.question-main { max-width: 680px; }
.question-main .stack { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(15px, 5vw, 28px); }
.question-main .contact-trap { display: none; }
.question-main > p { margin: 10px 0; }
.question-main .response { padding: 15px; background: var(--lime); border-radius: 10px; }
.support-main { max-width: 1010px; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: clamp(12px, 3vw, 24px); }
.support-context, .support-aside { padding: 13px 15px; background: #eeefe4; border-radius: 11px; }
.support-context { margin-bottom: 12px; overflow-wrap: anywhere; }
.support-aside h2, .support-main form h2, .support-history h2 { font: 400 1.46rem/1.2 var(--serif); }
.support-aside details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.support-aside details p { margin: 8px 0 0; font-size: .86rem; }
.support-aside summary { cursor: pointer; }
.support-aside > a { display: block; width: fit-content; margin-top: 10px; }
.support-history { margin-top: 20px; }
.custom-print-aside { padding: 14px; }
.custom-print-aside img { width: 100%; aspect-ratio: 1.48; height: auto; object-fit: cover; border-radius: 9px; margin-bottom: 14px; }
.custom-print-aside p { margin-top: 8px; }
.custom-print-intro { max-width: 62ch; font-size: 1.05rem; }
.print-examples { margin: 30px 0 34px; }
.print-examples h2 { font: 400 clamp(1.7rem,3.8vw,2.4rem)/1.15 var(--serif); margin-bottom: 5px; }
.print-examples-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.print-example { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 15px; background: var(--white); }
.print-example img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: #e7e8df; }
.print-example > div { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 7px; padding: 14px; }
.print-example h3 { font: 400 1.29rem/1.2 var(--serif); }
.print-example p { font-size: .9rem; }
.print-example a { margin-top: auto; padding-top: 5px; }
#print-request { scroll-margin-top: 20px; }
.favorite-list .card-options { margin-top: 12px; }
.favorite-list { margin-top: 20px; }

@media (max-width: 760px) {
  .detail-grid { grid-template: "tools" auto "gallery" auto "info" auto / minmax(0, 1fr); gap: 14px; }
  .photo-open img { max-height: 570px; aspect-ratio: 4 / 4.25; }
  .detail-wrap { padding-bottom: 42px; }
  .detail-thumbs button { flex-basis: 60px; }
  .detail-thumbs img { width: 60px; height: 60px; }
}
@media (max-width: 620px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 19px; }
  .support-layout { grid-template-columns: 1fr; }
  .print-examples-grid { grid-template-columns: 1fr; }
  .detail-actions { gap: 7px; }
  .detail-actions .btn { padding-inline: 9px; }
  .physical-detail .detail-wrap { padding-bottom: 96px; }
  .physical-detail #purchase { position: fixed; z-index: 58; bottom: calc(61px + env(safe-area-inset-bottom)); left: 0; right: 0; padding: 8px 14px; background: var(--white); border-top: 1px solid var(--line); }
  .detail-buy-row { flex-wrap: nowrap; margin-inline: auto; }
  .detail-buy-row > a { padding-inline: 12px; }
  .detail-stepper { flex-shrink: 0; gap: 7px; }
}
