/* A single scroll surface from the product overview to its full photo story. */
#product-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  height: 92dvh;
  max-height: 92dvh;
  border-radius: 16px;
  overscroll-behavior: contain;
  scroll-padding-top: 88px;
  scrollbar-width: thin;
  scrollbar-color: #aab2a0 var(--paper);
}
.product-detail-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  background: #fafaf7f5;
  backdrop-filter: blur(12px);
}
.detail-wordmark { flex-shrink: 0; font: 600 18px/1 "Times New Roman", serif; letter-spacing: -.8px; }
#detail-toolbar-title { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--muted); }
.product-detail-toolbar .dialog-close { position: static; flex: 0 0 40px; width: 40px; height: 40px; background: #eceee6; }
#product-dialog .dialog-body { grid-template-columns: 1.1fr 1fr; }
#product-dialog .dialog-visual { min-height: 500px; }
#product-dialog .dialog-info { padding: 44px 38px; }
#product-dialog .dialog-info h2 { margin-bottom: 14px; font-size: clamp(25px, 2.6vw, 34px); }
.product-summary { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-scroll-link { display: inline-flex; align-items: center; gap: 28px; margin-top: 27px; padding: 13px 20px; min-height: 46px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; }
.detail-scroll-link:hover { background: var(--green); }
.detail-scroll-link svg, .detail-scroll-cue svg { transform: rotate(90deg); }
#product-dialog .sample-note { margin-top: 22px; padding-top: 17px; }
.detail-scroll-cue { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .15em; color: var(--muted); }
.detail-scroll-cue svg { width: 16px; height: 16px; }
.product-story { padding: 0 56px 70px; outline: none; }
.story-intro { padding: 64px 0 46px; text-align: center; }
.story-intro h3 { margin: 14px 0 12px; font-size: clamp(27px, 3vw, 40px); line-height: 1.3; letter-spacing: -.06em; }
.story-intro > p:last-child { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.detail-shot { margin: 0 auto 72px; max-width: 740px; scroll-margin-top: 16px; outline: none; }
.detail-shot--landscape { max-width: 100%; }
.story-shot-heading { margin-bottom: 20px; }
.story-shot-heading h4 { margin: 10px 0 7px; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.05em; line-height: 1.3; }
.story-shot-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.story-photo { position: relative; overflow: hidden; border-radius: 10px; background: #eeece5; }
.story-photo > img { display: block; width: 100%; height: auto; }
.story-photo .lookbook-badge { top: 16px; left: 16px; }
.story-artwork, .story-finish { margin-top: 68px; }
.story-section-heading { margin-bottom: 25px; }
.story-section-heading h4 { margin: 10px 0 0; font-size: 27px; line-height: 1.35; letter-spacing: -.05em; }
.story-artwork-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 20px; }
.story-artwork-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.story-artwork-card { margin: 0; min-width: 0; }
.story-artwork-button { position: relative; display: grid; place-items: center; width: 100%; padding: 28px; border-radius: 8px; background: #ecefe5; overflow: hidden; aspect-ratio: 4 / 3; }
.story-artwork-button > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.story-artwork-grid[data-kind="pack"] .story-artwork-button { aspect-ratio: 3 / 4; padding: 24px; }
.story-artwork-grid[data-count="1"] .story-artwork-button { aspect-ratio: 16 / 9; }
.story-artwork-button .lookbook-expand { width: 32px; height: 32px; right: 12px; bottom: 12px; }
.story-artwork-card figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.story-artwork-button:hover { background: #e3e9da; }
.story-mockup { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #edf0e7; }
.story-mockup > .ms-stage { position: absolute; inset: 0; }
.story-finish-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.story-disclosure { padding-top: 24px; margin: 48px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.detail-end { padding: 36px 25px 45px; text-align: center; background: #eaf0e2; }
.detail-end p { margin: 0 0 15px; font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.detail-end button { min-height: 44px; padding: 10px 14px; font-size: 12px; }
.detail-end button span { margin-left: 12px; }
.detail-reveal { transition: opacity .6s ease, transform .6s ease; }
.detail-reveal.is-pending { opacity: 0; transform: translateY(24px); }
.detail-reveal:focus-within { opacity: 1; transform: none; }

@media (max-width: 760px) {
  #product-dialog { width: 100%; height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0; border-radius: 0; scroll-padding-top: 76px; }
  .product-detail-toolbar { height: 60px; padding: 0 18px; gap: 14px; }
  .detail-wordmark { font-size: 17px; }
  #detail-toolbar-title { font-size: 10px; }
  #product-dialog .dialog-visual { min-height: 0; aspect-ratio: 1.12; }
  #product-dialog .dialog-info { padding: 28px 24px 32px; }
  #product-dialog .dialog-info h2 { font-size: 27px; }
  .detail-scroll-link { width: 100%; justify-content: space-between; margin-top: 22px; }
  .detail-scroll-cue { padding: 20px; font-size: 8px; }
  .product-story { padding: 0 20px 44px; }
  .story-intro { padding: 44px 0 36px; }
  .story-intro h3 { font-size: 29px; }
  .story-intro > p:last-child { font-size: 12px; }
  .detail-shot { margin-bottom: 45px; }
  .story-shot-heading { margin-bottom: 17px; }
  .story-shot-heading h4 { font-size: 24px; }
  .story-photo { border-radius: 7px; }
  .story-artwork, .story-finish { margin-top: 44px; }
  .story-section-heading h4 { font-size: 24px; }
  .story-artwork-grid { gap: 20px 12px; }
  .story-artwork-button { padding: 14px; border-radius: 6px; }
  .story-artwork-grid[data-kind="pack"] .story-artwork-button { padding: 9px; }
  .story-artwork-button .lookbook-expand { width: 26px; height: 26px; right: 6px; bottom: 6px; }
  .story-artwork-button .lookbook-expand svg { width: 13px; height: 13px; }
  .story-artwork-card figcaption { font-size: 11px; margin-top: 10px; }
  .story-mockup { aspect-ratio: 1; }
  .story-disclosure { font-size: 10px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .detail-reveal, .detail-reveal.is-pending { transition: none; transform: none; opacity: 1; }
}
