/* 2026-10-25 QA fix: 360px/product overflow and 768px header collision.
   Presentation only; do not alter native attributes or order form. */
@media (min-width:768px) and (max-width:991px) {
  #header .header-bottom__row {
    display:flex;
    flex-wrap:wrap!important;
    align-items:center;
    column-gap:12px;
    row-gap:10px;
  }
  #header .header-bottom__logo,
  #header .lst-catalog-dropdown,
  #header .lst-header-actions {flex:0 0 auto; min-width:0}
  #header .lst-catalog-dropdown{margin-left:0}
  #header .lst-header-actions{margin-left:auto}
  #header #_desktop_ps_searchbar {
    order:4!important;
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    min-width:0;
  }
  #header #_desktop_ps_searchbar .ps-searchbar__form,
  #header #_desktop_ps_searchbar .ps-searchbar__input {width:100%;max-width:100%;min-width:0}
}
@media (max-width:767px) {
  #product:has(.lst-order-host) #wrapper > .container,
  #product:has(.lst-order-host) #wrapper > .container-md {
    box-sizing:border-box;
    width:100%;max-width:100%;min-width:0;
    padding-left:12px;padding-right:12px;
  }
  #product:has(.lst-order-host) .product__container {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    width:100%;max-width:100%;min-width:0;
  }
  #product:has(.lst-order-host) .product__left,
  #product:has(.lst-order-host) .product__right,
  #product:has(.lst-order-host) .product__images,
  #product:has(.lst-order-host) .product__carousel,
  #product:has(.lst-order-host) .lst-metal-colors,
  #product:has(.lst-order-host) .lst-order-form,
  #product:has(.lst-order-host) .lst-order-host--compact {
    box-sizing:border-box;
    min-width:0;max-width:100%;width:100%;
  }
  #product:has(.lst-order-host) .product__images picture,
  #product:has(.lst-order-host) .product__images picture img,
  #product:has(.lst-order-host) .product__images .carousel-item img {
    display:block;max-width:100%;height:auto;
  }
  #product:has(.lst-order-host) .lst-metal-colors-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;width:100%;min-width:0;max-width:100%;
  }
  #product:has(.lst-order-host) .lst-metal-color {
    min-width:0;width:100%;max-width:100%;
    white-space:normal;overflow-wrap:anywhere;
    font-size:12px;line-height:1.35;
    padding:6px;min-height:44px;
  }
  #product:has(.lst-order-host) .lst-metal-color-sample{flex:0 0 18px;width:18px}
  #product:has(.lst-order-host) .lst-order-host--compact .lst-order-grid,
  #product:has(.lst-order-host) .lst-order-host--compact .lst-order-actions {
    min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr);
  }
  #product:has(.lst-order-host) .lst-order-field,
  #product:has(.lst-order-host) .lst-order-field input,
  #product:has(.lst-order-host) .lst-order-field select,
  #product:has(.lst-order-host) .lst-order-field textarea,
  #product:has(.lst-order-host) .lst-order-actions button,
  #product:has(.lst-order-host) .lst-product-tab-panel {
    box-sizing:border-box;min-width:0;max-width:100%;
  }
  #product:has(.lst-order-host) .lst-order-field input,
  #product:has(.lst-order-host) .lst-order-field select,
  #product:has(.lst-order-host) .lst-order-field textarea,
  #product:has(.lst-order-host) .lst-order-actions button {width:100%}
  #product:has(.lst-order-host) .lst-order-actions button,
  #product:has(.lst-order-host) .lst-product-tab-panel {overflow-wrap:anywhere}
  #product:has(.lst-order-host) .lst-product-tab-nav {
    width:100%;max-width:100%;min-width:0;
    overflow-x:auto;overscroll-behavior-x:contain;
  }
  #product:has(.lst-order-host) .lst-feature-grid {grid-template-columns:minmax(0,1fr)}
  #product:has(.lst-order-host) .breadcrumb {max-width:100%;min-width:0;overflow-x:auto;white-space:nowrap}
}
