.product-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.product-page .breadcrumbs a { padding: 6px 0; }
.product-page .product-layout {
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.product-page .gallery-stage {
  border-radius: 16px;
  background-color: var(--soft);
  isolation: isolate;
}
.gallery-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fffefaeb;
  color: #242521;
  font: 23px/1 system-ui, sans-serif;
  pointer-events: none;
}
.product-page .gallery-thumb { opacity: .72; }
.product-page .gallery-thumb.is-active { opacity: 1; }
.product-page .product-buy { padding: 4px 0 0; }
.product-buy .eyebrow { margin-bottom: 10px; }
.product-page .product-buy h1 { margin: 0 0 10px; }
.product-page .product-buy .price {
  margin: 0 0 24px;
  font: 500 clamp(18px, 1.6vw, 24px)/1.25 system-ui, sans-serif;
  letter-spacing: -.035em;
}
.product-config {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.config-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px 1rem;
  margin-bottom: 15px;
}
.config-heading h2 { margin: 0; font-size: 1.13rem; letter-spacing: -.025em; }
.config-heading a, .detail-share { font-size: .83rem; text-decoration: underline; text-underline-offset: .25em; }
.product-config .field { gap: 6px; }
.product-config input {
  min-height: 48px;
  width: 100%;
  padding-inline: 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.product-config .calc-box {
  background: transparent;
  padding: 15px 0;
  margin: 14px 0 0;
  align-items: baseline;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
}
.product-config .calc-box > :last-child { text-align: right; }
.product-config .calc-box span { color: var(--muted); }
.product-config .calc-total { font-size: clamp(21px, 2.15vw, 32px); }
.product-config .btn { min-height: 50px; }
.product-story { border-block: 1px solid var(--line); margin-top: 24px; }
.product-story summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}
.product-story summary::-webkit-details-marker { display: none; }
.product-story summary::after { content: '+'; font-size: 20px; font-weight: 400; }
.product-story[open] summary::after { content: '−'; }
.product-story p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.detail-share {
  min-height: 44px;
  padding: 4px 0;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.product-page .product-help-blocks { border-top: 1px solid var(--line); padding-top: 24px; }
.product-page .help-card { min-height: 0; }
.product-page .help-card h3 { margin-bottom: 8px; }
@media(min-width: 901px) {
  .product-page .product-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); }
  .product-page .gallery-stage { height: clamp(380px, 42vw, 660px); }
}
@media(max-width: 900px) {
  .product-page .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-page .product-buy { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .product-page .gallery-thumb { transition: opacity 150ms, border-color 150ms; }
  .product-page .gallery-expand { transition: transform 180ms ease; }
  @media (hover: hover) {
    .gallery-slide:hover .gallery-expand { transform: scale(1.07); }
  }
}
#lightbox:not([open]) { display: none; }
.product-share-row .detail-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.measure-dialog-content { line-height: 1.55; }
.measure-dialog-content .video-embed { max-width: 100%; max-height: 45svh; margin: 16px auto; }
.measure-dialog-content .illustration-grid { margin-top: 16px; }
.guide-full-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
@media(max-width: 700px) {
  .product-page .gallery-stage {
    align-self: center;
    width: 100vw;
    max-width: none;
    height: 50vh;
    height: 50svh;
    border-radius: 0;
  }
  .product-page .gallery-slide img { object-fit: cover; object-position: center; }
  .product-page .product-gallery { overflow: visible; }
}
#lightbox[open] #lightboxImage { object-fit: contain; max-width: 100%; max-height: 100%; }
.product-share-row .detail-share {
  display: inline-flex; align-items:center; justify-content:center; min-height:48px;
  padding:10px 20px; margin:12px 0; border:1px solid #aac9b3; border-radius:999px;
  background:#e4f2e7; color:#174833; text-decoration:none; font-weight:650;
}
.product-share-row .detail-share:hover {background:#d5e9d9}
@media(max-width:700px){
  .product-page .gallery-stage { margin-inline:calc((100% - 100vw) / 2); align-self:start; }
}

.detail-track,.viewer-track {
  display:flex; width:100%; height:100%; overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.detail-track::-webkit-scrollbar,.viewer-track::-webkit-scrollbar { display:none; }
.detail-slide,.viewer-slide {
  position:relative; flex:0 0 100%; width:100%; height:100%; min-width:0;
  scroll-snap-align:center; overflow:hidden;
}
.detail-slide { display:block; cursor:zoom-in; }
.detail-slide img,.viewer-slide img {
  width:100%; height:100%; display:block; object-fit:contain;
  -webkit-user-drag:none; user-select:none;
}
.product-gallery[data-light="evening"] .detail-slide img,
#lightbox[data-light="evening"] .viewer-slide img { filter:brightness(.69) saturate(.85) sepia(.13); }
.gallery-tools,.light-switch,.photo-dots,.size-presets,.shade-picker>div {
  display:flex; align-items:center; flex-wrap:wrap;
}
.gallery-tools { justify-content:space-between; gap:8px; }
.light-switch { margin-left:auto; background:var(--soft); border-radius:30px; padding:3px; }
.light-switch button,.size-presets button,.share-options button,.share-options a {
  appearance:none; color:inherit; font:inherit; cursor:pointer;
}
.light-switch button {
  background:transparent; border:0; padding:6px 12px; min-height:36px; border-radius:30px; font-size:.85rem;
}
.light-switch button[aria-pressed=true] { color:var(--paper); background:var(--ink); }
.photo-dots button {
  border:0; padding:0; display:grid; place-items:center; width:26px; height:40px;
  color:var(--ink); background:transparent; cursor:pointer;
}
.photo-dots button::before { content:''; width:7px; height:7px; background:currentColor; opacity:.35; border-radius:10px; }
.photo-dots button[aria-pressed=true]::before { width:17px; opacity:1; }
.viewer-track { position:absolute; inset:0; }
.viewer-track[data-zoomed] { overflow-x:hidden; }
#lightbox .viewer-slide img { max-width:100%; max-height:100%; touch-action:auto; cursor:zoom-in; }
#lightbox .viewer-track[data-zoomed] img { cursor:grab; }
#lightbox .lb-close,#lightbox .lb-nav,.viewer-dots { z-index:1; }
.viewer-dots { position:absolute; bottom:max(10px,env(safe-area-inset-bottom)); inset-inline:0; justify-content:center; pointer-events:none; }
.viewer-dots button { color:#fff; pointer-events:auto; filter:drop-shadow(0 0 2px #222); }
.size-presets { gap:6px; margin:0 0 14px; }
.size-presets button { border:1px solid var(--line); border-radius:24px; background:transparent; min-height:40px; padding:5px 10px; font-size:13px; }
.size-presets button[aria-pressed=true] { border-color:var(--ink); background:var(--soft); }
.shade-picker { border:0; margin:0 0 18px; padding:0; }
.shade-picker legend { padding:0 0 8px; font-size:.91rem; }
.shade-picker>div { gap:7px; }
.shade-picker a { padding:2px; border:2px solid transparent; border-radius:50%; }
.shade-picker a[aria-current=page] { border-color:var(--ink); }
.shade-picker img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.detail-wa { display:flex; align-items:center; justify-content:center; border-radius:30px; min-height:46px; margin-top:8px; background:var(--soft); font-weight:600; }
.product-buy .breadcrumbs { margin-top:20px; margin-bottom:0; }
.size-presets[hidden],.light-switch[hidden] { display:none; }
@media(max-width:700px) {
  .product-page { padding-top:0; }
  .detail-slide img { object-fit:cover; }

}
@media(prefers-reduced-motion:no-preference) {
  .detail-slide img { transition:filter .3s; }
}
.viewer-zoom {
  position:absolute; z-index:1; top:max(14px,env(safe-area-inset-top)); left:14px;
  min-width:48px; min-height:44px; border:1px solid #ffffff75; border-radius:24px;
  color:white; background:#171b18c4; font:600 15px system-ui; cursor:pointer;
}
