.product-gallery { min-width:0; width:100%; max-width:100%; }
.product-variant-picker { min-width:0; margin:0; padding:16px; border:1px solid #c8d4bc; border-radius:8px; }
.product-variant-picker legend { padding:0 8px; font-weight:700; }
.product-variant-picker button,.product-variant-picker select {
  min-height:44px; max-width:100%; padding:8px 14px; border:1px solid #879888;
  border-radius:6px; background:#f4f4ea; color:#173a2c; font:inherit; cursor:pointer;
}
.product-variant-picker button { margin:0 8px 8px 0; }
.product-variant-picker button[aria-pressed="true"] { background:#173a2c; color:#fff; }
.product-variant-picker :is(button,select):focus-visible { outline:3px solid #52733d; outline-offset:3px; }
.product-variant-stats { margin:12px 0 0; }
.product-variant-stats dt { color:#4b5f4a; font-size:.875rem; }
.product-variant-stats dd { margin:4px 0 0; font-weight:700; }
.product-variant-message { margin:8px 0 0; }
.product-variant-picker [hidden] { display:none; }
.product-page .wrap { max-width:1760px; padding-inline:clamp(16px,4vw,68px); }
.product-page .product { grid-template-columns:minmax(0,1fr); gap:clamp(18px,2.7vw,40px); }
.product-intro, #product-overview { width:100%; min-width:0; }
.product-page #product:hover { transform:none; box-shadow:none; }
#product #name .subtitle {
  display:block; margin:10px 0 0; font-weight:500; letter-spacing:normal;
  text-transform:none;
}
#product-overview {
  margin:0;
  padding:clamp(20px,3.3vw,46px);
  border:1px solid #c8d4bc;
  border-radius:8px;
  background:#f8faef;
}
#product-overview[hidden] { display:none; }
#product-overview h2 { margin:0 0 16px; font-size:clamp(23px,2.5vw,38px); }
#overview-text { max-width:76ch; font-size:clamp(16px,1.35vw,20px); line-height:1.65; }
#overview-text p { margin:0; }
#overview-text p + p { margin-top:.9em; }
.gallery-stage { position:relative; overflow:hidden; touch-action:pan-y; }
.product-gallery .gallery-visual {
  position:relative; isolation:isolate; display:grid; place-items:center;
  width:100%; height:clamp(260px,52vw,680px); min-height:0;
  background:#142820;
}
.product-gallery .gallery-visual[role] { cursor:zoom-in; }
.product-gallery .gallery-visual > img {
  position:absolute; inset:0; width:100%; height:100%; min-height:0; object-fit:contain;
}
.model-media-gallery { grid-column:1/-1; }
.gallery-visual:focus-visible,.gallery-thumb:focus-visible,.gallery-close:focus-visible,.gallery-step:focus-visible { outline:3px solid #d9b651; outline-offset:3px; }
.gallery-visual:focus-visible { outline-offset:-4px; z-index:1; }
.gallery-zoom-hint { position:absolute; right:14px; bottom:14px; z-index:2; pointer-events:none; padding:8px 10px; border-radius:5px; background:#173a2ce8; color:#fff; font:700 13px Manrope,sans-serif; }
.gallery-thumbs { position:relative; display:flex; gap:10px; overflow-x:auto; padding:8px 4px 12px; scrollbar-width:thin; overscroll-behavior-inline:contain; }
.gallery-thumbs[hidden] { display:none; }
.product-gallery [hidden], .gallery-dialog [hidden], .catalog-card-gallery [hidden] { display:none !important; }
.gallery-dialog-inner { touch-action:pan-y; }
.gallery-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0; }
.gallery-controls .gallery-current-caption { margin:0; min-height:44px; align-content:center; overflow-wrap:anywhere; }
.gallery-all {
  flex:none;
  min-height:44px; border:1px solid #879888; border-radius:6px;
  background:#f4f4ea; color:#173a2c; font:inherit; font-weight:700; cursor:pointer;
}
.gallery-all:hover { background:#deefa6; }
.gallery-all { padding:8px 16px; white-space:nowrap; }
.gallery-sheet { padding:16px clamp(16px,4vw,48px) 28px; }
.gallery-sheet h2 { margin:8px 48px 16px 0; font-size:clamp(24px, 3vw, 36px); }
.gallery-sheet-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); gap:12px; }
.gallery-sheet-grid button { padding:0; border:1px solid #879888; color:#fff; background:#173a2c; text-align:left; border-radius:6px; overflow:hidden; cursor:pointer; }
.gallery-sheet-grid img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.gallery-sheet-grid span { display:block; padding:8px; overflow-wrap:anywhere; }
.gallery-sheet-status:empty { display:none; }
.gallery-sheet-more { margin-top:16px; }
.gallery-thumb { flex:0 0 clamp(92px,10vw,156px); aspect-ratio:4/3; padding:0; border:2px solid transparent; background:#e1e7db; border-radius:4px; overflow:hidden; cursor:pointer; }
.gallery-thumb[aria-pressed="true"] { border-color:#52733d; }
.gallery-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.gallery-dialog { width:min(1200px,96vw); max-width:none; max-height:95vh; padding:0; border:0; border-radius:8px; background:#101b14; color:#fff; }
.gallery-dialog::backdrop { background:#06110ce8; }
.gallery-dialog-inner { display:grid; gap:12px; padding:55px 16px 18px; position:relative; }
.gallery-dialog img { display:block; width:100%; max-height:76vh; object-fit:contain; }
.gallery-close,.gallery-step { border:1px solid #ffffff80; border-radius:50%; background:#13251dcc; color:#fff; width:44px; height:44px; cursor:pointer; font-size:24px; line-height:1; }
.gallery-close { position:absolute; top:8px; right:12px; z-index:1; }
.gallery-caption { grid-column:1/-1; text-align:center; margin:0; font-size:13px; line-height:1.4; color:#e2e9df; }
.gallery-step {
  position:absolute; z-index:3; top:50%; translate:0 -50%; display:grid; place-items:center;
  width:clamp(44px,5vw,66px); height:clamp(44px,5vw,66px); padding:0;
  font-size:clamp(30px,4vw,48px); line-height:1; transition:background-color .18s,color .18s;
}
.gallery-prev { inset-inline-start:clamp(6px,1.3vw,20px); }
.gallery-next { inset-inline-end:clamp(6px,1.3vw,20px); }
.gallery-step:is(:hover,:focus-visible) { background:#deefa6; color:#142820; }
body[data-category] .products .product-image { height:auto; aspect-ratio:4/3; background:#142820; }
body[data-category] .products .product-image img {
  position:absolute; inset:0; object-fit:contain; transform:none; transition:none;
}
.catalog-photo-count {
  position:absolute; z-index:2; bottom:12px; right:12px; padding:5px 10px;
  border-radius:4px; background:#13251deb; color:#fff; pointer-events:none;
  font-size:13px; font-variant-numeric:tabular-nums;
}
@media(max-width:600px) {
  .product-gallery .gallery-visual { height:clamp(250px,82vw,450px); }
  .gallery-controls { flex-direction:column; align-items:flex-start; gap:4px; }
  .gallery-controls .gallery-current-caption { min-height:36px; }
  .gallery-dialog-inner { padding:52px 6px 14px; }
  .gallery-dialog img { max-height:70vh; }
}

.product-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.product-jumps [hidden], .product-jumps[hidden] { display: none; }
.product-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b8cbb2;
  border-radius: 6px;
  color: #234632;
  background: #f6f8ef;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.product-jumps a:is(:hover, :focus-visible) { background: #e8efdd; border-color: #789a72; }
.product-page :is(#product-overview, #details, #model-media) { scroll-margin-top: 24px; }
.product-page .product-variant-picker { background: #f6f8ef; }
.product-page .product-gallery { scroll-margin-block: 16px 80px; }
@media (max-width: 600px) {
  .product-page .product-variant-picker { padding: 8px 12px; }
  .product-page .product-variant-picker button { margin-inline-end: 4px; padding-inline: 8px; }
  .product-page #product .gallery-visual { height: auto; aspect-ratio: 8/5; }
  .product-page .gallery-controls { flex-direction: row; align-items: center; gap: 8px; }
  .product-page .gallery-all { padding-inline: 12px; }
  .product-page .gallery-zoom-hint { display: none; }
  .product-page .product-jumps a { padding-inline: 8px; }
}
