/* Local gallery sizing only; the original template styles remain unchanged. */
#product-gallery .product-detail-photo {
  object-fit: contain;
}
#product-gallery .product-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#product-detail .product-capacity {
  min-width: 5.5rem;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--primary-color);
}
#product-detail .product-capacity[aria-pressed="false"] {
  background: transparent;
  border-color: var(--bg-dark-1);
}
#product-detail .product-icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}
#product-detail .product-quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(64px, 96px) 44px;
  align-items: center;
  gap: .5rem;
}
#product-detail .product-quantity-control input { min-width: 0; }
#product-detail .product-quantity-control button:disabled { opacity: .5; }
#product-detail button:focus-visible,
#product-detail [role="tab"]:focus-visible {
  outline: 2px solid var(--bg-dark-1);
  outline-offset: 2px;
}
#product-gallery .product-thumbnail[aria-pressed="true"] { outline: 2px solid var(--bg-dark-1); }
#product-detail .product-image-dialog {
  width: min(95vw, 1200px);
  max-width: 95vw;
  max-height: 95vh;
  border: 0;
}
#product-detail .product-image-dialog::backdrop { background: rgba(0, 0, 0, .65); }
#product-detail .product-zoom-stage {
  height: 65vh;
  overflow: auto;
  display: grid;
  place-items: center;
}
#product-detail .product-zoom-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
#product-detail .product-zoom-stage.is-zoomed { display: block; }
#product-detail .product-zoom-stage.is-zoomed img { max-width: none; max-height: none; }
#product-detail .nav-tabs .nav-link { color: inherit; }
#product-detail .product-information-panel { overflow-wrap: anywhere; }
#product-detail .table-responsive th,
#product-detail .table-responsive td { min-width: 8rem; }
#product-detail :is(h1, #selected-model, #selected-family) { overflow-wrap: anywhere; }
#product-detail :is(#selected-model, #selected-capacity, #selected-rated-power) { direction: ltr; unicode-bidi: isolate; }
#product-detail .product-capacity { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 993px) {
  #product-detail :is(#product-rfq, .quote-links .btn-main, .nav-tabs .nav-link) { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  #product-detail .table-responsive { overscroll-behavior-inline: contain; }
}
