/* Nordic Masala / Bacola v1.1.0: archive-only. No product data modifications. */
body.nm-bacola-category-ui { --nm-green:#12613e; --nm-border:#e8ece9; }
body.nm-bacola-category-ui .content-primary { min-width:0; }
/* Bacola's archive grid is a DIV.products, not necessarily UL.products */
body.nm-bacola-category-ui .content-primary .products:not(.products-list) {
 display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important;
 gap:16px !important; border:0 !important; align-items:stretch !important;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product {
 display:flex !important; flex-direction:column !important; float:none !important;
 width:auto !important; max-width:none !important; min-width:0 !important;
 height:100% !important; margin:0 !important; padding:0 !important;
 border:1px solid var(--nm-border) !important; border-radius:11px !important;
 background:#fff !important; overflow:hidden !important; box-shadow:0 2px 10px rgba(18,45,30,.035);
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product:hover { box-shadow:0 7px 22px rgba(18,45,30,.10); }
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .product-wrapper {
 display:flex !important; flex-direction:column !important; flex:1 1 auto !important; min-height:0;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .thumbnail-wrapper {
 padding:10px !important; width:100%; flex:none;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .thumbnail-wrapper > a:not(.quick-view-button) {
 display:flex !important; align-items:center; justify-content:center; aspect-ratio:1/1;
 overflow:hidden; background:#fafbf9; border-radius:7px;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .thumbnail-wrapper img {
 display:block !important; width:100% !important; height:100% !important;
 max-height:100% !important; object-fit:contain !important;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .content-wrapper {
 padding:8px 12px 12px !important; display:flex !important;
 flex-direction:column !important; flex:1 1 auto !important; min-width:0;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-title {
 font-size:13px !important; line-height:1.45 !important; min-height:38px !important;
 margin:0 0 6px !important; overflow:hidden;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-title a {
 display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2;
 overflow:hidden; color:#1c3027;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-meta {
 font-size:11px !important; min-height:18px; margin-bottom:7px !important;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .price {
 color:var(--nm-green) !important; font-size:17px !important; font-weight:700 !important;
 margin-top:auto !important; margin-bottom:10px !important;
}
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-button-group,
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .cart-with-quantity { width:100%; }
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-button-group { margin-top:0 !important; }
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-button-group .button,
body.nm-bacola-category-ui .content-primary .products:not(.products-list) a.button.add_to_cart_button {
 min-height:38px !important; width:100% !important; border-radius:6px !important;
 display:flex !important; justify-content:center; align-items:center;
 background:var(--nm-green) !important; color:white !important;
 font-size:12px !important; padding:9px 7px !important;
}
/* Disable Bacola hover overlay that otherwise hides/misaligns card actions */
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-content-fade,
body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-fade-block {
 position:static !important; transform:none !important; opacity:1 !important;
 visibility:visible !important; box-shadow:none !important;
}
@media(min-width:1500px) {
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) {grid-template-columns:repeat(5,minmax(0,1fr)) !important;}
}
@media(min-width:768px) and (max-width:1023px) {
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) {grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px !important;}
}
@media(max-width:767px) {
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important;}
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .thumbnail-wrapper {padding:6px !important;}
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) > .product .content-wrapper {padding:6px 8px 9px !important;}
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-title {font-size:12px !important; min-height:35px !important;}
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) .price {font-size:15px !important;}
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) .product-button-group .button {min-height:36px !important;}
}

/* v1.2.0: verified browser-console fix; center and cap the archive grid. */
body.nm-bacola-category-ui .products:not(.products-list),
body.nm-bacola-category-ui .content-primary .products:not(.products-list) {
  width:100% !important;
  max-width:1500px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:16px !important;
  box-sizing:border-box !important;
}
@media (min-width:1024px) and (max-width:1439px) {
 body.nm-bacola-category-ui .products:not(.products-list),
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) {grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
@media (min-width:768px) and (max-width:1023px) {
 body.nm-bacola-category-ui .products:not(.products-list),
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) {grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px !important;}
}
@media (max-width:767px) {
 body.nm-bacola-category-ui .products:not(.products-list),
 body.nm-bacola-category-ui .content-primary .products:not(.products-list) {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important;}
}
