/* Only the WooCommerce product collection. Greenshift owns the site shell. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) :is(ul.wc-block-product-template,ul.products):has(> li.product) {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:24px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  clear:both!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) :is(ul.wc-block-product-template,ul.products):has(> li.product)::before,
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) :is(ul.wc-block-product-template,ul.products):has(> li.product)::after {content:none!important;display:none!important}
/* Block-theme product items: keep the existing image, name, price and B2B controls in one card. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product {
  display:flex!important;flex-direction:column!important;position:relative!important;
  width:auto!important;min-width:0!important;height:100%!important;box-sizing:border-box!important;
  float:none!important;clear:none!important;margin:0!important;padding:0!important;
  overflow:hidden!important;list-style:none!important;background:#fff!important;
  border:1px solid #e5e5e5!important;border-radius:12px!important;
  box-shadow:0 3px 10px rgb(27 85 148 / 9%)!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product:hover {
  transform:translateY(-4px) scale(1.01)!important;box-shadow:0 14px 28px rgb(27 85 148 / 18%)!important;
}
/* The first two Gutenberg groups used to stretch the title and price apart. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product > .wp-block-group {
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  align-items:stretch!important;gap:0!important;flex:0 0 auto!important;
  width:100%!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product > .wp-block-group > .wp-block-group {
  display:block!important;flex:0 0 auto!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wc-block-components-product-image {
  display:block!important;height:230px!important;min-height:0!important;margin:0!important;padding:0!important;
  overflow:hidden!important;background:#fafafa!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wc-block-components-product-image > a {
  display:block!important;width:100%!important;height:100%!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wc-block-components-product-image img {
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;object-fit:cover!important;object-position:center!important;
  transition:transform .2s ease!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product:hover .wc-block-components-product-image img {transform:scale(1.04)!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wp-block-post-title {
  display:block!important;min-height:0!important;height:auto!important;margin:0!important;
  padding:12px 14px 2px!important;font-size:16px!important;font-weight:600!important;
  line-height:1.35!important;text-align:center!important;overflow-wrap:anywhere!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wp-block-post-title a {color:#0a0a0a!important;text-decoration:none!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wp-block-woocommerce-product-price {
  display:block!important;flex:0 0 auto!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0 14px 8px!important;text-align:center!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .wc-block-components-product-price {
  margin:0!important;padding:0!important;color:#1b5594!important;line-height:1.3!important;
  font-size:17px!important;font-weight:700!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .varalux-theme-controls {
  display:block!important;position:relative!important;z-index:2!important;flex:0 0 auto!important;
  width:auto!important;clear:none!important;margin:0 12px 14px!important;padding:0!important;
  visibility:visible!important;opacity:1!important;transform:none!important;
}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .varalux-pack-picker {display:block!important;width:100%!important;margin:0!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product .varalux-pack-row {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;margin:0 0 8px!important;padding:8px!important;border:1px solid #e5e5e5!important;border-radius:8px!important;background:#fafafa!important}
/* Classic WooCommerce template fallback (not used by Greenshift Product Collection). */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item {display:block!important;width:auto!important;float:none!important;clear:none!important;margin:0!important;padding:0!important;list-style:none!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item > .varalux-product-card {display:flex!important;flex-direction:column!important;height:100%!important;border:1px solid #e5e5e5!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 3px 10px rgb(27 85 148 / 9%)!important;transition:transform .2s ease,box-shadow .2s ease!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item:hover > .varalux-product-card {transform:translateY(-4px) scale(1.01)!important;box-shadow:0 14px 28px rgb(27 85 148 / 18%)!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item .varalux-product-body {display:flex!important;flex-direction:column!important;gap:4px!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;padding:12px!important;text-align:center!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item .varalux-product-title,
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item .varalux-product-unit-price {display:block!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .woocommerce-pagination ul.page-numbers {display:flex!important;justify-content:center;gap:8px;flex-wrap:wrap;border:0!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .woocommerce-pagination ul.page-numbers li {border:0!important;float:none!important}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .woocommerce-pagination .page-numbers a,
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .woocommerce-pagination .page-numbers span {display:grid!important;place-items:center;min-width:40px;min-height:40px;padding:8px!important;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#1b5594;text-decoration:none;box-sizing:border-box}
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .woocommerce-pagination .page-numbers .current,
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .woocommerce-pagination .page-numbers a:hover {background:#1b5594;color:#fff!important;border-color:#1b5594}
@media(max-width:1050px){body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) :is(ul.wc-block-product-template,ul.products):has(> li.product){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:740px){body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) :is(ul.wc-block-product-template,ul.products):has(> li.product){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
@media(max-width:460px){body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) :is(ul.wc-block-product-template,ul.products):has(> li.product){grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.wc-block-product-template > li.wc-block-product,body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) ul.products > li.varalux-product-item > .varalux-product-card {transition:none!important;transform:none!important}}
