/* Design audit fixes : one consolidated, last-loaded layer. palette, 5px radius, 1px #dfe3df borders. */

/* 1. Product cards: centred prices, two-line title slot, equal buttons. */
html body.bigazone-theme ul.products li.product .price{justify-content:center!important;text-align:center}
html body.bigazone-theme ul.products li.product .woocommerce-loop-product__title{min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body.bigazone-theme ul.products li.product .button,html body.bigazone-theme ul.products li.product .added_to_cart{display:inline-flex;align-items:center;justify-content:center;min-height:40px;box-sizing:border-box}

/* 2. Checkout payment box: off-palette lilac and 2px corners replaced. */
html body .woocommerce-checkout #payment div.payment_box{background:#f6f7f6!important;color:#1d2a22;border:1px solid #dfe3df;border-radius:5px;padding:12px 14px;margin:8px 0 0}
html body .woocommerce-checkout #payment div.payment_box::before{display:none!important}
html body .woocommerce-checkout #payment div.payment_box p:last-child{margin-bottom:0}

/* 3. Checkout headings: section headings share one scale; the shipping toggle reads as a control, not a heading. */
html body.woocommerce-checkout :is(#customer_details h3,.woocommerce-additional-fields>h3){font-size:18px;font-weight:700;line-height:1.3;margin:0 0 14px}
html body.woocommerce-checkout h3#ship-to-different-address{font-size:15px;font-weight:600;margin:14px 0}
html body.woocommerce-checkout h3#ship-to-different-address label{font-size:inherit;font-weight:inherit}

/* 4. Reviews: one rating control (stars), styled native file picker. */
html body #review_form .comment-form-rating:has(.stars) :is(select,.bz-select){display:none!important}
html body :is(input[type=file])::file-selector-button{margin-inline-end:12px;padding:8px 14px;background:#fff;color:#1d2a22;border:1px solid #dfe3df;border-radius:5px;font-weight:600;font-size:13px;line-height:1.2;cursor:pointer;transition:border-color .15s ease,color .15s ease}
html body :is(input[type=file]):hover::file-selector-button{border-color:var(--bz-primary,#2f7d4f);color:var(--bz-primary,#2f7d4f)}

/* 5. One corner radius (5px) on stray 2/4/6/8/10px surfaces. */
html body .comment-respond,html body .bz-quick-dialog,html body .woocommerce-MyAccount-navigation ul,html body .woocommerce-MyAccount-navigation ul li a,html body .bz-account-shortcuts li a,html body .bz-pa-stock--thumbnail{border-radius:5px}

/* 6. Single product info blocks: same box, same rhythm. */
html body.single-product .summary>:is(.bz-sp-stock-progress,.bz-sp-sale-end,.bz-shipping-bar,.bz-delivery-estimate,.bz-price-tracker){margin:12px 0!important;border:1px solid #dfe3df!important;border-radius:5px!important;background:#f6f7f6}
html body.single-product .summary>.bz-sp-stock-progress{padding:12px 14px}
html body.single-product .summary>:is(.bz-actual-sold,.product_meta,.bz-sp-share){margin-top:12px;margin-bottom:12px}

/* 7. Single post: reading column centred under the centred header; related cards centred. */
html body .bz-article .bz-entry-content{margin-inline:auto}
html body .bz-post-related__grid{grid-template-columns:repeat(auto-fit,minmax(240px,360px))!important;justify-content:center}

/* 8. Footer: consistent line rhythm in the about column. */
html body .bz-footer .wp-block-column>p{margin:0 0 6px;line-height:1.6}

/* review pass: bordered stock note, 5px wishlist/compare controls */
html body.single-product .stock.in-stock{border:1px solid rgba(47,125,79,.25)!important}
html body.single-product .stock.out-of-stock{border:1px solid rgba(200,60,60,.25)!important;border-radius:5px}
html body .bz-wishlist-toggle,html body .bz-compare-toggle{border-radius:5px!important}
html body .bz-wishlist-actions+.bz-compare-toggle,html body .bz-compare-toggle{margin-inline-start:14px!important}
html body ul.products li.product.product.product.product :is(.bz-quick-view-trigger,.bz-compare-toggle,.bz-wishlist-toggle){border-radius:5px!important}

/* review: sidebar product lists (top rated, recent, on sale) were squeezed into three flex columns */
html body .bz-shop-sidebar .product_list_widget li{display:block!important;position:relative;padding:12px 0 12px 68px;min-height:80px}
html body .bz-shop-sidebar .product_list_widget li>a{display:block;width:auto}
html body .bz-shop-sidebar .product_list_widget li>a img{position:absolute;left:0;top:12px;float:none;width:56px;height:56px;border-radius:5px}
html body .bz-shop-sidebar .product_list_widget li>a .product-title{display:block;overflow-wrap:anywhere}
html body .bz-shop-sidebar .product_list_widget li>.star-rating{display:block;margin:4px 0}
/* review: WooCommerce price slider still showed its default purple */
html body .widget_price_filter .ui-slider,html body .widget_price_filter .price_slider{background:#dfe3df!important;height:4px;border:0;border-radius:5px}
html body .widget_price_filter .ui-slider .ui-slider-range{background:var(--bz-primary,#2f7d4f)!important}
html body .widget_price_filter .ui-slider .ui-slider-handle{background:#fff!important;border:2px solid var(--bz-primary,#2f7d4f)!important;width:16px;height:16px;top:-6px;margin-left:-8px;border-radius:50%;box-shadow:none}
/* phone review: shop cards at two per row */
html body.bigazone-theme ul.products li.product a.button:not(.bz-quick-view-trigger){width:auto;max-width:100%;box-sizing:border-box}
@media(max-width:600px){
  html body.bigazone-theme .bz-woocommerce .bz-shop-main ul.products li.product:has(.bz-product-badges) .bz-pa-stock--thumbnail{left:10px!important;top:58px!important}
}
/* phone review: cart/checkout step trail on one line */
@media(max-width:480px){
  html body ol.bz-steps{flex-wrap:nowrap;justify-content:center;gap:6px 8px}
  html body .bz-steps__item{gap:8px;font-size:11.5px;white-space:nowrap}
  html body .bz-steps__item>span{font-size:11.5px;letter-spacing:0}
}
/* cart on phones: one border per row (tr card), aligned coupon row */
@media(max-width:767px){
  html body.woocommerce-cart table.shop_table.cart tr.cart_item>td{border-top:0!important;border-inline:0!important;border-bottom:1px solid #e7e7e9!important}
  html body.woocommerce-cart table.shop_table.cart tr.cart_item>td:last-child{border-bottom:0!important}
  html body.woocommerce-cart table.shop_table.cart tr.cart_item>td.product-remove{border-bottom:0!important}
  html body.woocommerce-cart table.shop_table.cart td.actions{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px;border:0!important;border-radius:0;padding:16px!important;background:#f6f7f6}
  html body.woocommerce-cart table.shop_table.cart td.actions .coupon{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;gap:8px;width:100%!important;float:none!important;margin:0!important;padding:0!important}
  html body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text{grid-column:1;grid-row:1;float:none!important;width:100%!important;min-width:0;height:46px!important;margin:0!important;box-sizing:border-box}
  html body.woocommerce-cart table.shop_table.cart td.actions .coupon .button{grid-column:2;grid-row:1;float:none!important}
  html body.woocommerce-cart table.shop_table.cart td.actions .coupon .button,html body.woocommerce-cart table.shop_table.cart td.actions>.button{height:46px!important;min-height:46px!important;margin:0!important;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
  html body.woocommerce-cart table.shop_table.cart td.actions>.button{width:100%!important;float:none!important}
}
/* cart: apply-coupon button keeps its width; price columns never break mid-number */
html body.woocommerce-cart table.shop_table.cart td.actions .coupon .button{width:auto!important;min-width:112px;padding-inline:16px!important;overflow:visible}
html body.woocommerce-cart table.shop_table.cart :is(td.product-price,td.product-subtotal,th.product-price,th.product-subtotal,th.product-quantity){white-space:nowrap}
@media(min-width:768px){html body.woocommerce-cart table.shop_table.cart :is(th,td){padding-inline:10px}}
/* cart on phones: remove button centred vertically beside the thumbnail */
@media(max-width:767px){
  html body.woocommerce-cart table.shop_table.cart tr.cart_item>td.product-remove{top:32px!important}
}
/* cart on phones: one gift per row; no repeated labels in cart totals */
@media(max-width:600px){
  html body .bz-gifts .bz-gifts__list{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:767px){
  html body .cart_totals table.shop_table_responsive tr td::before{content:none!important;display:none!important}
}
/* account: when a custom form title is set, hide WooCommerce's own duplicate heading above the form */
html body .woocommerce>h2:has(~ form.woocommerce-form .bz-account-heading),html body .u-column1>h2:has(~ form.woocommerce-form .bz-account-heading),html body .u-column2>h2:has(~ form.woocommerce-form .bz-account-heading){display:none}
/* phones: product tabs as an even two-column grid */
@media(max-width:600px){
  html body .woocommerce-tabs ul.tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html body .woocommerce-tabs ul.tabs li{width:auto!important;margin:0!important;flex:none!important;box-shadow:none!important}
  html body .woocommerce-tabs ul.tabs li:last-child:nth-child(odd){grid-column:1/-1}
}
/* phones: step trail aligned to the left edge of the content */
@media(max-width:767px){
  html body .bz-steps{text-align:left}
  html body .bz-steps ol.bz-steps__list,html body ol.bz-steps,html body .bz-steps ol{justify-content:flex-start}
}
/* cart totals: "Stacked" really stacks (full width below the table); an older rule pinned the width */
html body.bz-cart-totals-stacked.woocommerce-cart .cart-collaterals .cart_totals{width:100%!important;max-width:none!important;float:none;margin-inline:0}
@media(min-width:768px){html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce-cart-form,html body.bz-cart-totals-stacked.woocommerce-cart .cart-collaterals{width:100%;float:none}}
/* stacked cart: the page wrapper is a two-column grid; make it one column in natural order */
html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce:has(>.cart-collaterals){display:flex!important;flex-direction:column;gap:24px}
html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce:has(>.cart-collaterals)>*{grid-column:auto!important;grid-row:auto!important;position:static;width:100%;max-width:100%}
html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce>.cart-collaterals{order:10}
html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce:has(>.cart-collaterals){align-items:stretch!important}
html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce>.cart-collaterals{width:100%!important;max-width:none!important;align-self:stretch!important}
html body.bz-cart-totals-stacked.woocommerce-cart .woocommerce>.cart-collaterals .cart_totals{width:100%!important;max-width:none!important}
