/* House Decorist 1.3.1 layout corrections: cart, checkout and product cards */
/* Make the cart columns own stable widths. WooCommerce uses nested 48% cart_totals defaults. */
body.hd-cart-app .page-content > .woocommerce,
body.hd-checkout-app .page-content > .woocommerce{width:100%;min-width:0}
body.hd-cart-app .woocommerce .cart-collaterals{min-width:0}
body.hd-cart-app .woocommerce .cart-collaterals .cart_totals,
body.hd-cart-app .woocommerce .cart-collaterals .cart_totals.calculated_shipping{float:none!important;width:100%!important;max-width:none!important;clear:both!important;box-sizing:border-box;min-width:0;padding:24px}
body.hd-cart-app .cart_totals .shop_table{width:100%!important;table-layout:auto!important;border-collapse:separate;word-break:normal}
body.hd-cart-app .cart_totals .shop_table th{width:36%!important;min-width:80px;padding:14px 10px!important;vertical-align:top}
body.hd-cart-app .cart_totals .shop_table td{width:auto!important;min-width:0;padding:14px 10px!important;overflow-wrap:anywhere;vertical-align:top}
body.hd-cart-app .cart_totals .woocommerce-shipping-methods{padding:0;list-style:none;margin:0 0 12px}
body.hd-cart-app .cart_totals .woocommerce-shipping-methods li{display:flex;align-items:flex-start;gap:7px;margin:0 0 12px;line-height:1.5;flex-wrap:wrap}
body.hd-cart-app .cart_totals .woocommerce-shipping-methods input{flex:0 0 auto;margin:4px 0 0}
body.hd-cart-app .cart_totals .woocommerce-shipping-methods label{flex:1 1 150px;min-width:0;overflow-wrap:anywhere}
body.hd-cart-app .cart_totals .shipping-calculator-button{display:inline-flex;margin-top:8px;font-size:12px}
body.hd-cart-app .cart_totals .wc-proceed-to-checkout a.checkout-button{display:block;text-align:center;width:100%;background:#696547;border-radius:10px;padding:15px 10px;white-space:normal}
body.hd-cart-app .woocommerce .woocommerce-cart-form{min-width:0}
body.hd-cart-app .woocommerce .woocommerce-cart-form table.shop_table{width:100%;table-layout:auto}
body.hd-cart-app .woocommerce .woocommerce-cart-form td.product-name{overflow-wrap:anywhere}
/* The template already supplies a headline and checkout progress, so hide the redundant crumb. */
body.hd-cart-app .woocommerce-breadcrumb,body.hd-checkout-app .woocommerce-breadcrumb,
body.hd-cart-app .wc-block-breadcrumbs,body.hd-checkout-app .wc-block-breadcrumbs{display:none!important}
/* Modern card rhythm: titles and prices occupy consistent rows independently of title length. */
body.woocommerce ul.products li.product,body .woocommerce ul.products li.product,
body .hd-commerce.woocommerce ul.products li.product{display:flex!important;flex-direction:column;min-width:0;float:none!important;position:relative}
body.woocommerce ul.products li.product .woocommerce-loop-product__link,
body .woocommerce ul.products li.product .woocommerce-loop-product__link{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:3.2em!important;line-height:1.6!important;margin:12px 0 8px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.woocommerce ul.products li.product .price,
body .woocommerce ul.products li.product .price{margin-top:auto!important;margin-bottom:13px!important;min-height:28px;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
body.woocommerce ul.products li.product > .button,
body .woocommerce ul.products li.product > .button{width:100%;flex:0 0 auto;margin-top:auto!important}
body.woocommerce ul.products li.product .added_to_cart,
body .woocommerce ul.products li.product .added_to_cart{display:inline-flex;justify-content:center;padding:8px}
/* Distinct image overlays: sale badge on left, wishlist on right. */
body.woocommerce ul.products li.product .onsale,
body .woocommerce ul.products li.product .onsale,
body .hd-commerce.woocommerce ul.products li.product .onsale{left:10px!important;right:auto!important;top:10px!important;bottom:auto!important;margin:0!important;transform:none!important;z-index:5;min-height:0;line-height:1.4;padding:5px 9px;border-radius:7px}
body .hd-card-tools{top:10px!important;right:10px!important;left:auto!important;z-index:6;max-width:calc(100% - 85px)}
body .hd-card-tools .hd-wishlist-toggle{position:static!important;flex-shrink:0}
body .hd-card-tools .hd-quick-view{max-width:120px}
@media(min-width:1100px){
 body.hd-cart-app .woocommerce .woocommerce-cart-form{width:67%!important;float:left!important;margin-right:0}
 body.hd-cart-app .woocommerce .cart-collaterals{width:30%!important;float:right!important;margin-left:0}
}
@media(min-width:768px) and (max-width:1099px){
 body.hd-cart-app .woocommerce .woocommerce-cart-form{float:none!important;width:100%!important}
 body.hd-cart-app .woocommerce .cart-collaterals{float:none!important;width:100%!important;margin-top:20px}
}
@media(max-width:767px){
 body.hd-cart-app .woocommerce .woocommerce-cart-form,body.hd-cart-app .woocommerce .cart-collaterals{float:none!important;width:100%!important;max-width:none!important}
 body.hd-cart-app .woocommerce .cart-collaterals .cart_totals{padding:18px}
 body.hd-cart-app .cart_totals .shop_table th{min-width:75px;width:34%!important}
 body.woocommerce ul.products li.product .woocommerce-loop-product__title,body .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:3.1em!important;font-size:12px!important}
 body .hd-card-tools{top:8px!important;right:8px!important}
 body.woocommerce ul.products li.product .onsale,body .woocommerce ul.products li.product .onsale{left:8px!important;top:8px!important;font-size:9px}
}
