/* Product photos share the same generous, uncropped presentation in both shops. */
.web-order.quick-order-open #product-page .product-media {
  width: min(100%, 540px);
  margin-inline: auto;
}
.web-order.quick-order-open #product-page .v21-main-photo {
  width: 100%;
  height: clamp(280px, 42dvh, 400px);
  min-height: 0;
  max-height: none;
}
#product-page .v21-main-photo { background: #f5f6f5; }
#product-page .variant-gallery { gap: 8px; padding-top: 10px; }
#product-page .variant-gallery-button,
.web-order.quick-order-open #product-page .variant-gallery-button {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
}
#product-page .variant-gallery-button.selected { border-color: #176144; }
#product-page .variant-gallery-button:focus-visible,
#product-page .v21-main-photo:focus-visible { outline: 3px solid #176144; outline-offset: 2px; }

/* Keep the price prominent without a large explanatory card. */
html .web-order #product-page .product-price-panel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 0;
  background: transparent;
  min-width: 0;
  max-width: 100%;
}
html .web-order #product-page .product-price-panel > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
html .web-order #product-page #personal-kg-reference { flex-basis: 100%; }
html .web-order #product-page .product-price-panel p,
html .web-order #product-page .product-price-panel .v17-private-badge { margin: 0; }

@media (max-width: 700px), (max-height: 520px) {
  .web-order.quick-order-open #product-page .product-layout,
  .web-order--product #product-page .product-layout { grid-template-columns: minmax(0, 1fr); }
  .web-order.quick-order-open #product-page :is(.product-media, .product-purchase),
  .web-order--product #product-page :is(.product-media, .product-purchase) { display: contents; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .product-heading { grid-column: 1; grid-row: 1; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .v21-main-photo {
    grid-column: 1; grid-row: 2; width: 100%; height: min(74vw, 340px);
    min-height: 180px; max-height: none; aspect-ratio: auto;
  }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .variant-gallery { grid-column: 1; grid-row: 3; margin: 0; padding-top: 2px; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .variant-gallery-button { width: 56px; height: 56px; min-width: 56px; min-height: 56px; flex-basis: 56px; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .product-price-panel { grid-column: 1; grid-row: 4; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .product-stock { grid-column: 1; grid-row: 5; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .variant-body { grid-column: 1; grid-row: 6; }
  .web-order:is(.quick-order-open, .web-order--product) #product-page .product-specifications { grid-column: 1; grid-row: 7; }
}

/* Compact purchase identity and controls, including empty status placeholders. */
html body.web-order #product-page .product-heading{margin:0;padding:0;min-width:0}
html body.web-order #product-page .product-heading h1{margin:0 0 4px;line-height:1.28;overflow-wrap:anywhere}
html body.web-order #product-page #variant-unit{margin:0;font-size:13px!important;line-height:1.4;color:#64748b}
html body.web-order #product-page .product-price-panel{margin:10px 0 12px;padding:0}
html body.web-order #product-page .product-stock:empty{display:none}
html body.web-order #product-page .product-stock:not(:empty){margin:8px 0}
html body.web-order #product-page .variant-body{margin-top:0;padding-top:0}
html body.web-order #product-page .quantity-control{margin:0 0 12px;padding:0;border:0;min-width:0}
html body.web-order #product-page .quantity-control legend{margin:0 0 6px;padding:0;font-size:14px;line-height:1.4}
html body.web-order #product-page .quantity-field{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
html body.web-order #product-page .quantity-field button{width:44px;min-width:44px;height:44px;min-height:44px;padding:4px;flex:0 0 44px}
html body.web-order #product-page #quantity-input{width:88px;min-width:0;max-width:34vw;height:44px;min-height:44px;padding:6px;text-align:center;font-size:16px!important}
html body.web-order #product-page #quantity-unit{margin-left:2px;overflow-wrap:anywhere}
@media(max-width:700px){
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout{row-gap:8px;padding:12px}
 html body.web-order #product-page .product-heading h1{font-size:20px;line-height:1.3}
 html body.web-order #product-page #product-display-price{font-size:24px;line-height:1.25}
 html body.web-order #product-page .product-price-panel{margin:2px 0 4px}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(.product-stock:empty) .variant-body{grid-row:5}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(.product-stock:empty) .product-specifications{grid-row:6}
}
