/* =====================================================================
   WooCommerce — styles native Woo output (shop, single, cart, checkout,
   account, [products] shortcode) to the Martino's reference look.
   Uses the design tokens from theme.css (:root vars).
   ===================================================================== */

/* ---- General Woo wrappers ---- */
.woocommerce, .woocommerce-page { color: var(--c-text); }
.woocommerce .container, .ml-woo-shortcode { width: 100%; }

/* Notices ---------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce-store-notice {
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-orange);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--c-ink);
  padding: 1.4rem 1.8rem 1.4rem 4.4rem;
  font-size: var(--fs-sm);
  box-shadow: var(--sh-sm);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--c-orange); left: 1.6rem; }
.woocommerce-error { border-top-color: #b42318; }
.woocommerce-error::before { color: #b42318; }
.woocommerce .woocommerce-message .button,
.woocommerce-info .button { float: right; }

/* Breadcrumb ------------------------------------------------------- */
.woocommerce-breadcrumb {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
}
.woocommerce-breadcrumb a { color: var(--c-muted); }
.woocommerce-breadcrumb a:hover { color: var(--c-orange); }

/* ---- Shop toolbar (result count + ordering) ---------------------- */
.woocommerce .woocommerce-result-count { color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.woocommerce .woocommerce-ordering select,
.woocommerce select.orderby {
  padding: 1rem 1.4rem; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: #fff; font-size: var(--fs-sm); min-height: 4.4rem;
}

/* =====================================================================
   PRODUCT GRID  (shop archive + [products] shortcode)
   ===================================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; }

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-align: center;
  background: transparent;
}
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin: 0 0 var(--sp-2);
  box-shadow: var(--sh-md);
  transition: transform var(--t) var(--ease-out);
}
.woocommerce ul.products li.product:hover img { transform: translateY(-6px); }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.2;
  color: var(--c-ink);
  padding: 0;
}
.woocommerce ul.products li.product .price {
  color: var(--c-ink);
  font-weight: 600;
  font-size: var(--fs-base);
}
.woocommerce ul.products li.product .price del { color: var(--c-ink-55); font-weight: 500; margin-right: .6rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Sale badge → on-brand pill */
.woocommerce span.onsale {
  position: absolute;
  top: 1.2rem; left: 1.2rem; right: auto;
  min-height: 0; min-width: 0;
  margin: 0; padding: .5rem 1.1rem;
  background: var(--c-orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1;
  border-radius: var(--r-pill);
}
.woocommerce ul.products li.product { position: relative; }

/* Star rating */
.woocommerce .star-rating { color: var(--c-orange); font-size: 1.2rem; margin: 0 auto; }
.woocommerce .star-rating span::before { color: var(--c-orange); }

/* ---- Add to cart / buttons (classic AJAX cart hooks into these) --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .widget_shopping_cart a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: -0.01em; line-height: 1;
  padding: 1.2rem 2rem; min-height: 4.6rem;
  background: var(--c-orange); color: #fff;
  border: 2px solid transparent; border-radius: var(--r-sm);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  text-shadow: none; box-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover { background: var(--c-orange-700); color: #fff; transform: translateY(-2px); }
.woocommerce ul.products li.product .button { width: 100%; margin-top: .4rem; }
.woocommerce a.added_to_cart { display: inline-flex; align-items: center; justify-content: center; min-height: 4rem; font-weight: 600; color: var(--c-orange); }
.woocommerce .button.loading::after { vertical-align: middle; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; gap: .6rem; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 4.4rem; min-height: 4.4rem; display: grid; place-items: center;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--c-line); color: var(--c-ink);
  padding: 0 1.2rem;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--c-orange); color: #fff; border-color: var(--c-orange); }

/* =====================================================================
   SINGLE PRODUCT
   ===================================================================== */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: flex-start; }
.single-product div.product .woocommerce-product-gallery { float: none; width: auto; margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: var(--r-lg); background: #fff; }
.single-product div.product .summary { margin: 0; }
.single-product div.product .product_title { font-family: var(--font-display); font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.single-product div.product p.price,
.single-product div.product span.price { color: var(--c-ink); font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--sp-4); }
.single-product .woocommerce-product-details__short-description { color: var(--c-muted); margin-bottom: var(--sp-6); }
.single-product .quantity .qty {
  padding: 1rem; min-height: 4.6rem; width: 7rem; text-align: center;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; min-width: 0;
}
.single-product form.cart { display: flex; gap: 1.2rem; align-items: stretch; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.single-product form.cart .button { min-height: 4.8rem; padding: 1.3rem 2.4rem; }
.single-product .product_meta { font-size: var(--fs-sm); color: var(--c-muted); border-top: 1px solid var(--c-line); padding-top: var(--sp-4); }

/* Variations table */
.single-product table.variations { margin-bottom: var(--sp-4); }
.single-product table.variations td, .single-product table.variations th { padding: .6rem 0; }
.single-product table.variations select {
  padding: 1rem 1.4rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; min-height: 4.4rem;
}

/* Tabs */
.woocommerce-tabs { margin-top: var(--sp-12); }
.woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--c-line); display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.woocommerce-tabs ul.tabs::before { border: 0; }
.woocommerce-tabs ul.tabs li {
  background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0;
}
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { content: none !important; }
.woocommerce-tabs ul.tabs li a { padding: 1.2rem .2rem; font-weight: 700; color: var(--c-muted); border-bottom: 2px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--c-ink); border-bottom-color: var(--c-orange); }
.related.products, .upsells.products { margin-top: var(--sp-12); }
.related.products > h2, .upsells.products > h2 { font-family: var(--font-display); font-size: var(--fs-h2); margin-bottom: var(--sp-6); }

/* =====================================================================
   CART
   ===================================================================== */
/* Base shop_table card look (used by cart totals + checkout order review) */
.woocommerce table.shop_table {
  border: 1px solid var(--c-line); border-radius: var(--r-md); border-collapse: separate; border-spacing: 0; overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--c-cream); font-weight: 700; padding: 1.4rem 1.6rem; }
.woocommerce table.shop_table td { padding: 1.4rem 1.6rem; border-top: 1px solid var(--c-line); }
.woocommerce a.remove { color: var(--c-ink) !important; border: 1px solid var(--c-line); width: 2.2rem; height: 2.2rem; line-height: 2rem; font-size: 1.5rem; text-align: center; }
.woocommerce a.remove:hover { background: #b42318 !important; color: #fff !important; border-color: #b42318; }

/* ---- Cart page: modern WooCommerce 2-column layout (line items + sticky summary) ---- */
.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34rem;
  gap: clamp(2.4rem, 4vw, 4.8rem);
  align-items: start;
}
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; min-width: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; width: 100%; }
.woocommerce-cart .cart-collaterals .cross-sells { display: none; }

/* Line items — clean rows (no boxed table), proper 80px product thumbnails */
.woocommerce-cart table.cart { border: 0 !important; border-radius: 0 !important; overflow: visible; }
.woocommerce-cart table.cart thead th { background: transparent; border: 0; border-bottom: 2px solid var(--c-line); padding: 0 1rem 1.2rem; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.woocommerce-cart table.cart td { background: transparent; border: 0; border-bottom: 1px solid var(--c-line); padding: 1.6rem 1rem; vertical-align: middle; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 8rem; height: 8rem; object-fit: contain; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: .4rem; }
.woocommerce-cart table.cart td.product-name a { font-weight: 600; color: var(--c-ink); }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--c-orange); }
.woocommerce-cart table.cart td.product-price, .woocommerce-cart table.cart td.product-subtotal { font-weight: 600; color: var(--c-ink); }
.woocommerce-cart table.cart .quantity .qty { width: 6.4rem; padding: 1rem .6rem; text-align: center; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; }
.woocommerce-cart table.cart td.actions { border-bottom: 0; padding: 1.8rem 0 0; }
.woocommerce-cart table.cart td.actions .coupon { display: inline-flex; gap: .8rem; vertical-align: middle; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 16rem; max-width: 100%; padding: 1.1rem 1.4rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); min-width: 0; }

/* Order-summary card (sticky) */
.woocommerce-cart .cart_totals { float: none; width: 100%; max-width: none; position: sticky; top: calc(var(--header-h) + 1.6rem); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-6); box-shadow: var(--sh-md); }
.woocommerce-cart .cart_totals > h2 { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.woocommerce-cart .cart_totals table.shop_table { border: 0; border-radius: 0; }
.woocommerce-cart .cart_totals table th, .woocommerce-cart .cart_totals table td { border: 0; border-top: 1px solid var(--c-line); padding: 1.2rem 0; background: transparent; }
.woocommerce-cart .cart_totals .order-total th, .woocommerce-cart .cart_totals .order-total td { border-top: 2px solid var(--c-line); }
.woocommerce-cart .cart_totals .order-total .amount { font-size: var(--fs-h4); font-weight: 700; }
.woocommerce-cart .wc-proceed-to-checkout { padding: var(--sp-4) 0 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 5.2rem; font-size: var(--fs-base); background: var(--c-orange); }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover { background: var(--c-orange-700); }

/* Comfortable page width for the 2-column cart + checkout */
body.woocommerce-cart .brxe-container.container { max-width: 120rem; }
body.woocommerce-checkout .brxe-container.container { max-width: 108rem; }

/* These pages have no page title, so the big section top padding reads as empty
   space — pull the content up. */
body.woocommerce-cart .brxe-section.section,
body.woocommerce-checkout .brxe-section.section,
body.woocommerce-account .brxe-section.section { padding-top: var(--sp-8); }

/* ----------------------------------------------------------------------
   Mobile cart (<=860 collapse, <=768 card layout).
   IMPORTANT: the 2-col grid must become a real BLOCK stack on mobile —
   only changing grid-template-columns leaves the grid sizing the form
   track to the table's intrinsic ~1100px (overflow then clipped). And WC's
   own shop_table_responsive stylesheet fights td display/order/::before,
   so the few conflicting props are forced with !important.
   ---------------------------------------------------------------------- */
@media (max-width: 860px) {
  body.woocommerce-cart .woocommerce { display: block !important; }
  body.woocommerce-cart form.woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cart_totals {
    width: 100% !important; max-width: 100% !important; float: none !important; min-width: 0;
  }
  body.woocommerce-cart .cart-collaterals { margin-top: var(--sp-6); }
  body.woocommerce-cart .cart_totals { position: static; }
}

/* Each line item becomes a clean card: thumb + name on top, labeled rows below.
   NOTE: every per-cell rule is scoped with tr.cart_item so it out-specifies the
   blanket cell-reset — the blanket must NOT force `display` or it would (with
   !important + higher specificity) clobber the per-cell flex/block we set. */
@media (max-width: 768px) {
  body.woocommerce-cart table.cart { width: 100% !important; max-width: 100% !important; display: block; border: 0 !important; }
  body.woocommerce-cart table.cart thead { display: none !important; }
  body.woocommerce-cart table.cart tbody,
  body.woocommerce-cart table.cart tbody tr { display: block; width: 100%; }
  body.woocommerce-cart table.cart tr.cart_item {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem;
    position: relative; padding: 1.6rem 0 !important;
    border: 0 !important; border-bottom: 1px solid var(--c-line) !important;
  }
  /* cell chrome reset only — NO display here (per-cell rules own display) */
  body.woocommerce-cart table.cart tr.cart_item td {
    width: auto !important; border: 0 !important; padding: 0 !important;
    text-align: left !important; background: transparent !important;
  }
  body.woocommerce-cart table.cart tr.cart_item td.product-thumbnail { order: 1; flex: 0 0 auto; display: block !important; }
  body.woocommerce-cart table.cart tr.cart_item td.product-thumbnail img { width: 6rem !important; height: 6rem; }
  body.woocommerce-cart table.cart tr.cart_item td.product-name { order: 2; flex: 1 1 auto; min-width: 0; display: block !important; font-weight: 600; padding-right: 2.4rem !important; }
  body.woocommerce-cart table.cart tr.cart_item td.product-remove { order: 3; display: block !important; position: absolute; top: 1.4rem; right: 0; }
  body.woocommerce-cart table.cart tr.cart_item td.product-price,
  body.woocommerce-cart table.cart tr.cart_item td.product-quantity,
  body.woocommerce-cart table.cart tr.cart_item td.product-subtotal {
    order: 4; flex: 0 0 100%; display: flex !important; align-items: center; justify-content: space-between;
  }
  body.woocommerce-cart table.cart tr.cart_item td.product-subtotal { font-weight: 700; }
  /* labels come from WC data-title; un-float them so space-between works */
  body.woocommerce-cart table.cart tr.cart_item td::before {
    float: none !important; font-size: var(--fs-sm); font-weight: 600 !important; color: var(--c-muted);
  }
  body.woocommerce-cart table.cart tr.cart_item td.product-price::before,
  body.woocommerce-cart table.cart tr.cart_item td.product-quantity::before,
  body.woocommerce-cart table.cart tr.cart_item td.product-subtotal::before { content: attr(data-title) !important; }
  /* WC locks the ::before `content` of its data-title labels with !important, so
     `content:none` can't drop the redundant "Product:" label — collapse the whole
     pseudo box with display:none (which WC does NOT !important) instead. */
  body.woocommerce-cart table.cart tr.cart_item td.product-name::before,
  body.woocommerce-cart table.cart tr.cart_item td.product-thumbnail::before,
  body.woocommerce-cart table.cart tr.cart_item td.product-remove::before { display: none !important; }
  html body.woocommerce-cart table.cart tr.cart_item td.product-name { order: 2 !important; display: block !important; }
  html body.woocommerce-cart table.cart tr.cart_item td.product-name::before { display: none !important; }
  body.woocommerce-cart table.cart .quantity { display: inline-flex; }
  body.woocommerce-cart table.cart .quantity .qty { width: 7.2rem; }
  /* actions row (coupon + update cart) stacks full-width */
  body.woocommerce-cart table.cart tr td.actions {
    display: block !important; width: 100% !important; border: 0 !important;
    padding: 1.8rem 0 0 !important; text-align: left !important;
  }
  body.woocommerce-cart table.cart td.actions::before { content: none !important; }
  body.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: .8rem; margin-bottom: 1rem; }
  body.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; min-width: 0; }
  body.woocommerce-cart table.cart td.actions button[name="update_cart"] { width: 100%; }
}

/* =====================================================================
   CHECKOUT
   ===================================================================== */
.woocommerce-checkout .col2-set, .woocommerce-checkout #customer_details { margin-bottom: var(--sp-6); }
.woocommerce form .form-row label { font-size: var(--fs-sm); font-weight: 600; margin-bottom: .5rem; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-selection,
.woocommerce-checkout #order_review .input-text,
.select2-container .select2-selection--single {
  width: 100%; min-width: 0;
  padding: 1.2rem 1.4rem; min-height: 4.6rem;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; font-size: var(--fs-base);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(234,106,45,.18); }
.woocommerce-checkout #payment { background: var(--c-cream); border-radius: var(--r-md); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--c-line); }
.woocommerce-checkout-review-order table.shop_table { background: #fff; }
#add_payment_method #payment div.payment_box, .woocommerce-checkout #payment div.payment_box { background: #fff; border: 1px solid var(--c-line); }
#add_payment_method #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce #payment #place_order, .woocommerce-checkout .place-order .button { width: 100%; min-height: 5.2rem; font-size: var(--fs-base); }

/* =====================================================================
   MY ACCOUNT
   ===================================================================== */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 24rem 1fr; gap: var(--sp-8); align-items: start; }
.woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--c-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 1.2rem 1.6rem; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--c-orange); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }

/* =====================================================================
   MINI-CART WIDGET (used by the Stage 4 drawer fragment)
   ===================================================================== */
.woocommerce .widget_shopping_cart .cart_list,
.widget_shopping_cart_content .cart_list { padding: 0; }
.woocommerce ul.cart_list li, .woocommerce ul.product_list_widget li { padding: 1.2rem 0; border-bottom: 1px solid var(--c-line); list-style: none; }
.woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img { width: 56px; border-radius: var(--r-sm); float: right; }
.woocommerce .widget_shopping_cart .total, .widget_shopping_cart_content .total { padding: 1.4rem 0; border-top: 2px solid var(--c-line); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
  .single-product div.product { grid-template-columns: 1fr; gap: var(--sp-8); }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); } /* 2-col mobile grid */
  .single-product div.product .product_title { font-size: var(--fs-h2); }
  .woocommerce .cart-collaterals .cart_totals { max-width: 100%; }
}

/* =====================================================================
   SHOP LAYOUT + SIDEBAR (our wrapper around native Woo output)
   ===================================================================== */
/* Center Bricks' shop-archive container (it renders ~1100px wide and LEFT-aligned,
   leaving empty space on the right). Match the site container width + gutter. */
body.woocommerce-shop #brx-content > .brxe-container,
body.tax-product_cat #brx-content > .brxe-container,
body.tax-product_tag #brx-content > .brxe-container,
body.post-type-archive-product #brx-content > .brxe-container {
  display: block;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--section-y-sm);
}

/* Center the single-product content (WooCommerce's classic wrapper renders it
   ~1100px wide and left-aligned). */
body.single-product .content-area > main.site-main,
body.single-product main#main.site-main {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--section-y-sm);
}

/* Bricks renders the shop archive via its own .brxe-woocommerce-products element.
   The sidebar is injected by woocommerce_before_shop_loop and moved (by theme.js)
   to be a direct child of .brxe-woocommerce-products, so this grid lays it out left. */
body.woocommerce-shop .brxe-woocommerce-products,
body.tax-product_cat .brxe-woocommerce-products,
body.tax-product_tag .brxe-woocommerce-products {
  display: grid;
  grid-template-columns: 27rem minmax(0, 1fr);
  column-gap: clamp(2.4rem, 4vw, 5.6rem);
  align-items: start;
}
/* everything except the sidebar goes to the right column */
body.woocommerce-shop .brxe-woocommerce-products > .bricks-before-shop-loop,
body.woocommerce-shop .brxe-woocommerce-products > ul.products,
body.woocommerce-shop .brxe-woocommerce-products > .bricks-pagination,
body.woocommerce-shop .brxe-woocommerce-products > nav.woocommerce-pagination,
body.tax-product_cat .brxe-woocommerce-products > .bricks-before-shop-loop,
body.tax-product_cat .brxe-woocommerce-products > ul.products,
body.tax-product_cat .brxe-woocommerce-products > .bricks-pagination,
body.tax-product_cat .brxe-woocommerce-products > nav.woocommerce-pagination,
body.tax-product_tag .brxe-woocommerce-products > .bricks-before-shop-loop,
body.tax-product_tag .brxe-woocommerce-products > ul.products,
body.tax-product_tag .brxe-woocommerce-products > .bricks-pagination,
body.tax-product_tag .brxe-woocommerce-products > nav.woocommerce-pagination { grid-column: 2; }
/* 4-up product grid on desktop (default); sidebar sits beside it */
body.woocommerce-shop .brxe-woocommerce-products ul.products,
body.tax-product_cat .brxe-woocommerce-products ul.products,
body.tax-product_tag .brxe-woocommerce-products ul.products { grid-template-columns: repeat(4, 1fr); }

/* Sidebar — spans all rows of the grid so the toolbar/products aren't pushed down */
.ml-shop-aside { grid-column: 1; grid-row: 1 / span 99; align-self: start; position: sticky; top: calc(var(--header-h) + 1.6rem); }
.ml-widget { margin-bottom: var(--sp-8); }
.ml-widget__title { font-family: var(--font-display); font-size: var(--fs-h4); margin-bottom: var(--sp-4); }
.ml-cat-list { display: grid; gap: .2rem; }
.ml-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-radius: var(--r-sm); font-weight: 600; color: var(--c-ink); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ml-cat-list a:hover, .ml-cat-list .is-current > a { background: #fff; color: var(--c-orange); }
.ml-cat-list span { color: var(--c-ink-55); font-weight: 500; font-size: var(--fs-sm); }
.ml-shop-aside .woocommerce-product-search { display: flex; gap: .8rem; }
.ml-shop-aside .woocommerce-product-search input[type="search"] { width: 100%; min-width: 0; padding: 1.1rem 1.4rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; }
.ml-shop-aside .woocommerce-product-search button { padding: 0 1.4rem; min-height: 0; background: var(--c-orange); color: #fff; border: 0; border-radius: var(--r-sm); font-weight: 700; cursor: pointer; }
.ml-shop-aside .widget_price_filter .price_slider_amount { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; font-size: var(--fs-sm); }
.ml-shop-aside .widget_price_filter .ui-slider { background: var(--c-line); border-radius: 4px; height: 4px; }
.ml-shop-aside .widget_price_filter .ui-slider .ui-slider-range { background: var(--c-orange); }
.ml-shop-aside .widget_price_filter .ui-slider .ui-slider-handle { background: var(--c-dark); border-radius: 50%; }

@media (max-width: 991px) {
  body.woocommerce-shop .brxe-woocommerce-products,
  body.tax-product_cat .brxe-woocommerce-products,
  body.tax-product_tag .brxe-woocommerce-products { display: flex; flex-direction: column; }
  .ml-shop-aside { position: static; order: 2; }
  body.woocommerce-shop .brxe-woocommerce-products ul.products,
  body.tax-product_cat .brxe-woocommerce-products ul.products,
  body.tax-product_tag .brxe-woocommerce-products ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  body.woocommerce-shop .brxe-woocommerce-products ul.products,
  body.tax-product_cat .brxe-woocommerce-products ul.products,
  body.tax-product_tag .brxe-woocommerce-products ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   SINGLE PRODUCT — polish
   ===================================================================== */
.single-product .ml-woo__main > .product { margin-bottom: 0; }
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img {
  background: #fff;
  padding: clamp(1.6rem, 4vw, 4.8rem);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.single-product div.product .summary > * + * { margin-top: var(--sp-3); }
.single-product div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--sp-2); }
.single-product div.product .woocommerce-product-rating .woocommerce-review-link { color: var(--c-muted); font-size: var(--fs-sm); }
.single-product div.product form.cart { margin-top: var(--sp-6); }
.single-product div.product .stock.in-stock { color: #1c6b35; font-weight: 600; }
.single-product div.product .out-of-stock { color: #b42318; font-weight: 600; }
.single-product .product_meta > span { display: block; margin-top: .4rem; }
.single-product .related.products ul.products { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .single-product .related.products ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .single-product .related.products ul.products { grid-template-columns: repeat(2, 1fr); } }
