/* Single card component for every native WooCommerce loop. Page files own layout. */
.tbmg-product-cards ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.tbmg-product-cards ul.products::before,.tbmg-product-cards ul.products::after{display:none}
.tbmg-product-cards .cross-sells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
.tbmg-product-cards ul.products li.product{position:relative;min-width:0;width:auto!important;float:none!important;margin:0!important;display:flex;flex-direction:column;padding:16px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:none;background:#fff}
.tbmg-product-cards ul.products li.product .onsale{display:none}
.tbmg-product-cards ul.products li.product a.woocommerce-loop-product__link{text-decoration:none;display:flex;flex-direction:column;flex:1;color:var(--ink)}
.tbmg-product-cards ul.products li.product a img{width:calc(100% + 32px);max-width:none;aspect-ratio:1;height:auto;object-fit:contain;padding:12px;margin:-16px -16px 16px;border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0}
.tbmg-product-cards ul.products li.product .woocommerce-loop-product__title{font-size:15px;font-weight:500;line-height:1.55;min-height:47px;margin:0 0 8px;padding:0;letter-spacing:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-wrap:initial}
.tbmg-product-cards ul.products li.product a:hover .woocommerce-loop-product__title{color:var(--primary)}
.tbmg-product-cards .product-sku{display:block;font-size:13px;font-weight:400;color:var(--muted);line-height:1.55;min-height:40px;margin:0 0 16px;overflow-wrap:anywhere}
.tbmg-product-cards .product-sku>span{color:inherit}
.tbmg-product-cards ul.products li.product .price{font-size:16px;font-weight:600;color:var(--primary);line-height:1.5;margin:auto 0 4px;padding-right:46px;min-height:44px;display:block;align-content:center}
.tbmg-product-cards ul.products li.product .price del{font-size:13px;font-weight:400;color:var(--muted);opacity:1}
.tbmg-product-cards ul.products li.product .price ins{display:block;text-decoration:none;font-weight:600}
.tbmg-product-cards ul.products li.product .button{position:absolute;right:16px;bottom:20px;min-height:44px;width:44px;display:flex;align-items:center;justify-content:center;margin:0;padding:10px;background:var(--brand-soft);border:1px solid transparent;color:var(--primary);border-radius:var(--control-radius)}
.tbmg-product-cards ul.products li.product .button:hover{border-color:var(--primary);background:var(--brand-hover)}
.tbmg-product-cards ul.products li.product .button.added{display:none}
.tbmg-product-cards ul.products li.product .added_to_cart{position:absolute;bottom:20px;right:12px;min-height:44px;display:flex;align-items:center;font-size:13px;background:#fff;padding:0 4px;max-width:98px;text-align:right;line-height:1.4}
.tbmg-product-cards ul.products li.product:has(.added_to_cart) .price{padding-right:102px}
.tbmg-product-cards ul.products li.product:not(:has(.button,.added_to_cart)) .price{padding-right:0}
@media(max-width:1000px){.tbmg-product-cards ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
@media(max-width:600px){
.tbmg-product-cards ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.tbmg-product-cards ul.products li.product{padding:10px}
.tbmg-product-cards ul.products li.product a img{width:calc(100% + 20px);padding:8px;margin:-10px -10px 10px}
.tbmg-product-cards ul.products li.product .woocommerce-loop-product__title{font-size:14px;line-height:1.5;min-height:42px;margin-bottom:6px;-webkit-line-clamp:3}
.tbmg-product-cards .product-sku{font-size:12px;line-height:1.5;min-height:0;margin-bottom:10px}
.tbmg-product-cards ul.products li.product .price{font-size:14px;line-height:1.5;padding-right:50px;margin-bottom:0;min-height:44px;overflow-wrap:anywhere}
.tbmg-product-cards ul.products li.product .price del{font-size:11px}
.tbmg-product-cards ul.products li.product .button{bottom:10px;right:10px;left:auto}
.tbmg-product-cards ul.products li.product .added_to_cart{left:10px;bottom:10px;right:10px;text-align:left;max-width:none;width:auto}
.tbmg-product-cards ul.products li.product:has(.added_to_cart) .price{padding-right:0;margin-bottom:44px}
}
@media(max-width:390px){
.tbmg-product-cards ul.products li.product .price{padding-right:0;margin-bottom:46px;min-height:38px}
.tbmg-product-cards ul.products li.product .button{left:10px;right:auto}
.tbmg-product-cards ul.products li.product:not(:has(.button,.added_to_cart)) .price{margin-bottom:0}
}
