/* 4x4kg v1.7.21 — exterior category grids, only enqueued for category 111 and its immediate children. */
/* Apply GRID only to pure WooCommerce category lists, never to mixed product results. */
@supports selector(:has(*)) {
 body.tax-product_cat .products:has(> .product-category):not(:has(> .product:not(.product-category))) {
   display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
   gap:20px!important;align-items:stretch!important;
   margin:0 0 24px!important;padding:0 2px!important;
 }
 body.tax-product_cat .products:has(> .product-category):not(:has(> .product:not(.product-category))) > .product-category {
   width:100%!important;max-width:100%!important;min-width:0!important;
   float:none!important;clear:none!important;margin:0!important;
 }
}
body.tax-product_cat .products > li.product-category,body.tax-product_cat .products > .product-category {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  width:100%!important;min-width:0!important;align-items:stretch!important;
  background:#fff!important;border:1px solid #e3e7eb!important;border-radius:13px!important;
  box-shadow:0 1px 5px rgba(25,37,46,.05)!important;
  padding:12px 12px 18px!important;text-align:center!important;overflow:hidden!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
body.tax-product_cat .products > li.product-category:hover,body.tax-product_cat .products > .product-category:hover {
 border-color:#ef995d!important;box-shadow:0 3px 11px rgba(25,37,46,.075)!important;
}
body.tax-product_cat .products > li.product-category > a,body.tax-product_cat .products > .product-category > a {
 display:flex!important;flex:1!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;min-width:0!important;text-decoration:none!important;
}
body.tax-product_cat .products > li.product-category .product-image,
body.tax-product_cat .products > li.product-category .thumb-info-wrapper,
body.tax-product_cat .products > .product-category .product-image,
body.tax-product_cat .products > .product-category .thumb-info-wrapper {
 box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;
 width:100%!important;height:185px!important;min-height:185px!important;max-height:185px!important;
 margin:0 auto 12px!important;padding:8px!important;background:#fff!important;
 overflow:hidden!important;border:0!important;box-shadow:none!important;
}
body.tax-product_cat .products > li.product-category img,body.tax-product_cat .products > .product-category img {
 box-sizing:border-box!important;display:block!important;
 width:100%!important;height:100%!important;max-width:175px!important;max-height:175px!important;
 object-fit:contain!important;object-position:center!important;
 padding:0!important;margin:auto!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;transform:none!important;
}
body.tax-product_cat .products > li.product-category h2,body.tax-product_cat .products > .product-category h2,
body.tax-product_cat .products > li.product-category .woocommerce-loop-category__title {
 display:block!important;width:100%!important;max-width:100%!important;min-height:0!important;
 font-family:inherit!important;font-size:15px!important;font-weight:700!important;
 line-height:1.35!important;color:#343a40!important;text-align:center!important;
 margin:0 0 4px!important;padding:0!important;overflow-wrap:break-word!important;
}
body.tax-product_cat .products > li.product-category h2 .count,
body.tax-product_cat .products > .product-category h2 .count,
body.tax-product_cat .products > li.product-category mark,
body.tax-product_cat .products > .product-category mark,
body.tax-product_cat .products > li.product-category .category-list-count {
 display:block!important;width:100%!important;white-space:nowrap!important;
 margin:4px auto 0!important;padding:0!important;
 color:#848b93!important;font-size:12px!important;font-weight:400!important;
 line-height:1.45!important;background:transparent!important;border:0!important;
 text-align:center!important;
}
@media(max-width:1100px){
 @supports selector(:has(*)) {
 body.tax-product_cat .products:has(> .product-category):not(:has(> .product:not(.product-category))) {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
 }
}
@media(max-width:767px){
 @supports selector(:has(*)) {
 body.tax-product_cat .products:has(> .product-category):not(:has(> .product:not(.product-category))) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0 8px!important;}
 }
 body.tax-product_cat .products > li.product-category,body.tax-product_cat .products > .product-category {padding:9px 8px 14px!important;min-height:0!important;border-radius:12px!important;}
 body.tax-product_cat .products > li.product-category .product-image,body.tax-product_cat .products > li.product-category .thumb-info-wrapper,
 body.tax-product_cat .products > .product-category .product-image,body.tax-product_cat .products > .product-category .thumb-info-wrapper {
   height:148px!important;min-height:148px!important;max-height:148px!important;
   margin-bottom:10px!important;padding:5px!important;
 }
 body.tax-product_cat .products > li.product-category img,body.tax-product_cat .products > .product-category img {max-width:138px!important;max-height:138px!important;}
 body.tax-product_cat .products > li.product-category h2,body.tax-product_cat .products > .product-category h2 {font-size:13px!important;line-height:1.3!important;margin-bottom:3px!important;}
 body.tax-product_cat .products > li.product-category h2 .count,body.tax-product_cat .products > .product-category h2 .count,
 body.tax-product_cat .products > li.product-category mark,body.tax-product_cat .products > .product-category mark {font-size:12px!important;white-space:nowrap!important;}
}

/* v1.7.22: no line-break inside Porto category counts, including its nested markup. */
body.tax-product_cat .products > .product-category h2 .count,
body.tax-product_cat .products > .product-category .count,
body.tax-product_cat .products > .product-category mark,
body.tax-product_cat .products > .product-category .category-list-count,
body.tax-product_cat .products > li.product-category h2 .count,
body.tax-product_cat .products > li.product-category .count {
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  margin:5px auto 0!important;
  text-align:center!important;
  font-size:12px!important;
}
body.tax-product_cat .products > .product-category .count *,
body.tax-product_cat .products > .product-category mark *,
body.tax-product_cat .products > li.product-category .count * {
 display:inline!important;white-space:nowrap!important;word-break:keep-all!important;
}
body.tax-product_cat .products > li.product-category .product-image,
body.tax-product_cat .products > li.product-category .thumb-info-wrapper,
body.tax-product_cat .products > .product-category .product-image,
body.tax-product_cat .products > .product-category .thumb-info-wrapper {
 box-shadow:none!important;border:none!important;border-radius:0!important;
 background:transparent!important;
}
body.tax-product_cat .products > li.product-category a,
body.tax-product_cat .products > .product-category a {background:transparent!important;}


/* v1.7.25: exactly one native-label count, independent of Porto mark defaults. */
body.tax-product_cat .products .product-category .kg4x4-count-single-v1725 {
 display:block!important;box-sizing:border-box!important;
 white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
 width:max-content!important;max-width:none!important;
 margin:4px auto 0!important;padding:0!important;
 border:0!important;box-shadow:none!important;background:transparent!important;
 font-size:12px!important;line-height:1.45!important;font-weight:400!important;color:#858c94!important;
 text-align:center!important;letter-spacing:0!important;text-transform:none!important;
}

/* v1.7.26: a single canonical line, independent of Porto mark formatting. */
body.tax-product_cat .products .product-category .kg4x4-term-count-v1726 {
  display:block!important; width:100%!important; max-width:100%!important;
  box-sizing:border-box!important; white-space:nowrap!important;
  word-break:keep-all!important;overflow-wrap:normal!important;
  text-align:center!important; margin:4px auto 0!important;
  padding:0!important; font-size:13px!important;font-weight:400!important;
  line-height:1.5!important;color:#858c94!important;background:transparent!important;
  border:0!important; flex:none!important;
}
