#commerce.collection-product {
  scroll-padding-block: 70px 24px;
  overscroll-behavior: contain;
}
#commerce.collection-product :is(button, select, summary, a):focus-visible {
  outline: 2px solid #e6f2ff;
  outline-offset: 2px;
}
#commerce.collection-product .pilot-photo-caption {
  margin: 8px 0 2px;
  color: #c2cfd6;
  font-size: 12px;
  letter-spacing: .02em;
}
#commerce .pilot-inline-guide {
  min-width: 0;
  padding: 10px 0 14px;
  border-block-end: 1px solid #5a6a76;
}
#commerce .pilot-inline-guide p {line-height: 1.5; color: #d1dce2;}
#commerce .pilot-fit-guide select {min-height: 44px;}
#commerce .pilot-selected-size th,
#commerce .pilot-selected-size td {background: #22353d;}
#commerce .product-primary-actions {position: static;}
#commerce .quastris-product-layout:has(.product-gallery.expanded) .product-gallery {grid-area: gallery;}
@media (max-width: 700px) and (orientation: portrait) {
  #commerce.collection-product,
  #commerce.collection-product #commerce-body {box-sizing: border-box;}
  #commerce.collection-product {width: calc(100vw - 16px);}
  #commerce .quastris-product-layout,
  #commerce .quastris-product-layout:has(.product-gallery.expanded) {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: 'summary' 'gallery' 'controls' 'info';
    gap: 14px;
  }
  #commerce .quastris-product-layout .product-gallery {width:100%; position: static;}
  #commerce .quastris-product-layout .main-photo {
    height: clamp(220px, 43dvh, 420px)!important;
    min-height: 0;
  }
  #commerce .quastris-product-layout .product-gallery.expanded .main-photo {height: 62dvh!important;}
  #commerce .product-summary h3 {font-size: 16px; line-height: 1.35;}
  #commerce.collection-product #commerce-body {
    padding: 12px max(12px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  }
}
@media (max-height:500px) and (orientation:landscape) {
  #commerce.collection-product {
    width: min(960px, calc(100vw - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right))));
    max-height: calc(100dvh - max(6px,env(safe-area-inset-top)) - max(6px,env(safe-area-inset-bottom)));
  }
  #commerce .quastris-product-layout .main-photo {height: clamp(140px,48dvh,250px)!important;}
}
