/* GBB-LIVE-20261026-DISPLAY-02
 * Explicit desktop tracks: the former tablet grid was still active at
 * 1025–1366px, and the catalogue's width:100% consumed the search track.
 * Keep this compatibility layer in the child theme, never in WoodMart.
 */
@media (min-width: 1025px) {
 .whb-header .whb-general-header {position:relative;z-index:2;}
 .whb-header .whb-general-header-inner {
  display:grid;
  grid-template-columns:92px minmax(0,1fr) auto;
  grid-template-rows:minmax(0,1fr);
  align-items:center;
  gap:18px;
 }
 .whb-header .whb-general-header-inner > .whb-visible-lg {
  min-width:0;
  width:auto;
  margin:0;
 }
 .whb-header .whb-general-header-inner > .whb-col-center {
  display:flex;
  align-items:center;
  gap:12px;
 }
 .whb-header .whb-general-header-inner > .whb-col-right {
  justify-content:flex-end;
 }
 .whb-header .whb-general-header .site-logo {
  display:flex;
  align-items:center;
  height:76px;
  min-height:0;
  padding-inline:0;
 }
 .whb-header .whb-general-header .site-logo .wd-logo {height:76px;}
 .whb-header .whb-general-header .site-logo img {
  width:76px;
  height:76px;
  max-height:76px;
  padding:0;
  object-fit:contain;
 }
 body.gbb-header-compact .whb-header .whb-general-header .site-logo,
 body.gbb-header-compact .whb-header .whb-general-header .site-logo .wd-logo {height:56px;}
 body.gbb-header-compact .whb-header .whb-general-header .site-logo img {height:56px;max-height:56px;}
 .whb-header .whb-general-header .gbb-mega-header {
  flex:0 0 150px;
  width:150px;
  min-width:150px;
  padding:0;
 }
 .whb-header .whb-gbb_product_search {
  display:block;
  position:relative;
  flex:1 1 0%;
  width:auto;
  min-width:0;
  padding:0;
 }
 .whb-header .whb-gbb_product_search .wd-search-results-wrapper {
  width:100%;
  min-width:0;
 }
 .whb-header .whb-gbb_product_search .searchform {
  display:flex;
  align-items:center;
  flex:1 1 0%;
  width:100%;
  min-width:0;
  height:46px;
 }
 .whb-header .whb-gbb_product_search .searchform > input.s {
  flex:1 1 0%;
  width:0;
  min-width:0;
  height:46px;
  padding:0 16px !important;
 }
 .whb-header .whb-gbb_product_search .wd-search-cat {
  flex:0 0 auto;
  height:46px;
 }
 .whb-header .whb-gbb_product_search .wd-search-cat-btn {
  display:flex;
  align-items:center;
  height:46px;
 }
 .whb-header .whb-gbb_product_search .searchform > .searchsubmit {
  position:relative;
  inset:auto;
  flex:0 0 48px;
  width:48px;
  min-width:48px;
  height:46px;
  padding:0;
 }
 .whb-header .whb-general-header :is(.whb-gbb_account,.whb-gbb_cart) > a {
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  height:46px;
  padding:0;
 }
}
@media (min-width:1025px) and (max-width:1199px) {
 .whb-header .whb-gbb_product_search .wd-search-cat {display:none;}
 .whb-header .whb-gbb_product_search .searchform {--wd-search-cat-w:0px;}
}

/* The quick-view gallery inherits the full bottle's intrinsic aspect ratio.
 * On phones that put price/quantity/buy below the modal's visible area. */
@media (max-width:767px) {
 .popup-quick-view .woocommerce-product-gallery__image {
  height:clamp(178px,28dvh,238px);
  padding-bottom:48px;
  margin:0;
 }
 .popup-quick-view .woocommerce-product-gallery__image img {
  display:block;
  width:100% !important;
  height:100% !important;
  max-height:190px;
  object-fit:contain;
 }
 .popup-quick-view .product-images .view-details-btn {
  position:absolute;
  inset:auto 0 0;
  width:100%;
  min-height:40px;
  margin:0;
  opacity:1 !important;
  visibility:visible;
  transform:none !important;
 }
}
