/* One layout for archives, search results, filtered selections and universe pages.
   The additional context wins over older theme rules that force three columns. */
html body.bqc-catalogue:not(.single-product) main ul.products,
html body.bqc-catalogue.single-product div.product.product .related.products ul.products,
html body.bqc-catalogue.single-product div.product.product .upsells.products ul.products{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;width:100%!important;margin:24px 0!important;padding:0!important;list-style:none!important;
}
html body.bqc-catalogue main ul.products::before,
html body.bqc-catalogue main ul.products::after{content:none!important;display:none!important}
html body.bqc-catalogue main ul.products li.product,
html body.bqc-catalogue.single-product div.product.product ul.products li.product{
 width:auto!important;max-width:100%!important;min-width:0!important;float:none!important;clear:none!important;margin:0!important;padding:14px!important;display:flex!important;flex-direction:column!important;border:1px solid #e1ddd4!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;box-sizing:border-box!important;
}
html body.bqc-catalogue main ul.products li.product>a.woocommerce-loop-product__link{display:flex!important;flex-direction:column!important;flex:1;min-width:0;text-decoration:none}
html body.bqc-catalogue main ul.products li.product a img[class],
html body.bqc-catalogue.single-product div.product.product ul.products li.product a img[class]{
 display:block!important;width:100%!important;height:172px!important;max-width:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:scale-down!important;object-position:center!important;margin:0 0 12px!important;padding:8px!important;background:#fff!important;border-radius:5px!important;transform:none!important;box-sizing:border-box!important;
}
html body.bqc-catalogue main ul.products li.product a img.bc-catalogue-ambiance:not(.bqc-native-image){object-fit:cover!important;padding:0!important}
html body.bqc-catalogue main ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:650!important;line-height:1.45!important;margin:0 0 8px!important;padding:0!important;color:#303329!important;overflow-wrap:anywhere}
html body.bqc-catalogue main ul.products li.product .bc-sku{font-size:11px!important;line-height:1.5!important;color:#7b7d71!important;overflow-wrap:anywhere}
html body.bqc-catalogue main ul.products li.product .price{font-size:16px!important;line-height:1.45!important;margin:10px 0 0!important;margin-top:auto!important;padding-top:10px!important;color:#754629!important}
html body.bqc-catalogue main ul.products li.product .price small{font-size:11px!important;line-height:1.5!important}
html body.bqc-catalogue main ul.products li.product .button{align-self:flex-start!important;max-width:100%!important;margin:14px 0 0!important;padding:10px 12px!important;min-height:42px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;box-sizing:border-box!important}
html body.bqc-catalogue main ul.products li.product .screen-reader-text{position:absolute!important}

/* The same restraint applies to a low resolution photograph on its product page. */
html body.bqc-catalogue.single-product div.product.product .woocommerce-product-gallery__image img.wp-post-image.bqc-native-image{
 width:100%!important;max-width:100%!important;height:240px!important;max-height:240px!important;aspect-ratio:auto!important;object-fit:scale-down!important;object-position:center!important;padding:20px!important;background:#fff!important;box-sizing:border-box!important;
}
html body.bqc-catalogue.single-product .woocommerce-product-gallery__image:has(img.bqc-native-image) .zoomImg{display:none!important}
body.bqc-catalogue .pswp__img{object-fit:scale-down!important}

/* Compact filters, keeping their existing labels, fields and behavior. */
html body.bqc-catalogue main .bcs26-panel{padding:22px!important;border-radius:12px!important;margin:22px 0!important;background:#f8f5ef!important}
html body.bqc-catalogue main .bcs26-heading{margin-bottom:14px!important;gap:18px!important}
html body.bqc-catalogue main .bcs26-heading h2{font-size:25px!important;line-height:1.2!important;margin:6px 0 9px!important}
html body.bqc-catalogue main .bcs26-heading p:not(.bcs26-eyebrow){font-size:13px!important;line-height:1.6!important;margin:0!important}
html body.bqc-catalogue main .bcs26-shortcuts{margin:12px 0 18px!important;gap:8px!important}
html body.bqc-catalogue main .bcs26-shortcuts a{font-size:12px!important;padding:7px 11px!important}
html body.bqc-catalogue main .bcs26-grid{gap:12px 16px!important}
html body.bqc-catalogue main .bcs26-form label{font-size:12px!important;line-height:1.5!important;gap:5px!important}
html body.bqc-catalogue main .bcs26-form select,
html body.bqc-catalogue main .bcs26-form input{font-size:14px!important;min-height:42px!important;padding:8px 10px!important;border-radius:6px!important;background:#fff!important}
html body.bqc-catalogue main .bcm-catalogue-filters{padding:20px!important;gap:12px 16px!important;background:#f8f5ef!important;border-color:#e0d6c7!important}
html body.bqc-catalogue main .bcm-catalogue-filters label{font-size:12px!important}
html body.bqc-catalogue main .bcm-catalogue-filters input,
html body.bqc-catalogue main .bcm-catalogue-filters select{min-height:42px!important;font-size:14px!important}
html body.bqc-catalogue main .bcm-filter-heading h2{font-size:25px!important}

@media(min-width:1360px){
 html body.bqc-catalogue:not(.single-product) main ul.products,
 html body.bqc-catalogue.single-product div.product.product .related.products ul.products,
 html body.bqc-catalogue.single-product div.product.product .upsells.products ul.products{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 html body.bqc-catalogue main .bcs26-grid,html body.bqc-catalogue main .bcm-catalogue-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(min-width:1760px){
 html body.bqc-catalogue:not(.single-product) main ul.products,
 html body.bqc-catalogue.single-product div.product.product .related.products ul.products,
 html body.bqc-catalogue.single-product div.product.product .upsells.products ul.products{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(max-width:1000px){
 html body.bqc-catalogue:not(.single-product) main ul.products,
 html body.bqc-catalogue.single-product div.product.product .related.products ul.products,
 html body.bqc-catalogue.single-product div.product.product .upsells.products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
}
@media(max-width:650px){
 html body.bqc-catalogue:not(.single-product) main ul.products,
 html body.bqc-catalogue.single-product div.product.product .related.products ul.products,
 html body.bqc-catalogue.single-product div.product.product .upsells.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 html body.bqc-catalogue main ul.products li.product,
 html body.bqc-catalogue.single-product div.product.product ul.products li.product{padding:11px!important}
 html body.bqc-catalogue main ul.products li.product a img[class],
 html body.bqc-catalogue.single-product div.product.product ul.products li.product a img[class]{height:128px!important;padding:4px!important;margin-bottom:10px!important}
 html body.bqc-catalogue main ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.4!important}
 html body.bqc-catalogue main ul.products li.product .price{font-size:15px!important}
 html body.bqc-catalogue main ul.products li.product .button{font-size:11px!important;padding:9px!important;min-height:42px!important;width:100%!important}
 html body.bqc-catalogue main .bcs26-panel,html body.bqc-catalogue main .bcm-catalogue-filters{padding:16px!important}
 html body.bqc-catalogue main .bcs26-heading h2{font-size:22px!important}
 html body.bqc-catalogue main .bcs26-form select,html body.bqc-catalogue main .bcs26-form input{font-size:16px!important}
}
