/* Presentation layer for native WooCommerce and Blocks. Keep plugin behaviour intact. */
.bp-commerce {
  --woocommerce: var(--bp-aubergine);
  --wc-primary: var(--bp-aubergine);
  --wc-primary-text: var(--bp-cream);
  --wc-secondary: var(--bp-lavender);
  --wc-secondary-text: var(--bp-aubergine);
  --wc-content-bg: var(--bp-white);
  --wc-subtext: var(--bp-text-muted);
  --wc-green: var(--bp-success);
  --wc-red: var(--bp-error);
  --wc-destructive: var(--bp-error);
  --wc-form-border-color: var(--bp-border);
  --wc-form-border-radius: var(--bp-radius-sm);
  --wc-card-border-radius: var(--bp-radius-md);
  --wc-form-color-background: var(--bp-white);
  --wc-form-color-text: var(--bp-text);
}
.bp-commerce :is(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wc-block-components-notice-banner) { font-family: var(--bp-font-body); font-size: var(--bp-type-ui); line-height: var(--bp-leading-body); }
.bp-commerce :is(h1, h2, h3, h4):where(:not(.bp-product-card__name)) { font-family: var(--bp-font-display); font-weight: var(--bp-weight-heading); line-height: var(--bp-leading-heading); overflow-wrap: break-word; }
.bp-store-content h1 { font-size: var(--bp-type-page); margin-block-end: var(--bp-heading-gap); }
.bp-commerce h2:where(:not(.bp-product-card__name)) { font-size: var(--bp-type-section); margin-block-end: var(--bp-heading-gap); }
.bp-commerce h3:where(:not(.bp-product-card__name)) { font-size: var(--bp-type-subsection); margin-block-end: var(--bp-space-3); }
.bp-commerce :is(p, address, dd) { overflow-wrap: anywhere; }
.bp-commerce .woocommerce > * + * { margin-block-start: var(--bp-space-6); }
.bp-commerce .woocommerce-breadcrumb { margin-block-end: var(--bp-space-4); color: var(--bp-text-muted); font-size: var(--bp-type-caption); }
.bp-commerce .woocommerce-breadcrumb a { color: var(--bp-aubergine); }
.bp-commerce .woocommerce-products-header { margin-block-end: var(--bp-heading-space); }
.bp-commerce .woocommerce-result-count { color: var(--bp-text-muted); font-size: var(--bp-type-ui); padding-block: var(--bp-space-3); }
.bp-commerce .woocommerce-ordering { max-inline-size: 100%; }

/* Controls use the same tokens and geometry as the shared primitives. */
.bp-commerce :is(a.button, button.button, input.button, .wc-block-components-button):not(.is-link, .bp-product-card__cart), .bp-commerce .wc-proceed-to-checkout a.checkout-button, .bp-commerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bp-space-2);
  min-block-size: var(--bp-control-height); padding: var(--bp-control-padding) var(--bp-space-6); margin-block-start: 0;
  border: 1px solid var(--bp-champagne); border-radius: var(--bp-radius-pill); color: var(--bp-cream);
  background: linear-gradient(135deg, var(--bp-purple-deep), var(--bp-aubergine)); box-shadow: var(--bp-primary-inset), var(--bp-shadow-sm);
  font: 600 var(--bp-type-label)/var(--bp-control-leading) var(--bp-font-body); text-decoration: none; text-align: center; white-space: normal; cursor: pointer;
  transition: background-color var(--bp-duration-base), color var(--bp-duration-base), border-color var(--bp-duration-base), box-shadow var(--bp-duration-base);
}
.bp-commerce :is(a.button, button.button, input.button, .wc-block-components-button):focus-visible, .bp-commerce #respond input#submit:focus-visible { outline: 2px solid var(--bp-purple); outline-offset: 4px; box-shadow: var(--bp-focus); }
.bp-commerce :is(a.button, button.button, input.button, .wc-block-components-button):is(:disabled, .disabled, [aria-disabled="true"]) { color: var(--bp-disabled-text); background: var(--bp-disabled-bg); border-color: var(--bp-disabled-border); box-shadow: none; opacity: 1; cursor: not-allowed; }
.bp-commerce .button.loading, .woocommerce ul.products li.product .bp-product-card__cart.loading { padding-inline-end: var(--bp-space-12); }
.bp-commerce :is(a.button, button.button).loading::after { content: ""; inset-inline-end: var(--bp-space-4); inset-block-start: calc(50% - .5rem); inline-size: 1rem; block-size: 1rem; background: currentColor; mask: url("../icons/loader-circle.svg") center / contain no-repeat; }
.bp-commerce a.added_to_cart { display: inline-flex; align-items: center; min-block-size: var(--bp-control-height); margin-inline-start: var(--bp-space-3); font-size: var(--bp-type-label); }
.bp-commerce :is(a.button, button.button).added::after { content: ""; display: inline-block; inline-size: 1rem; block-size: 1rem; margin: 0; background: currentColor; mask: url("../icons/check.svg") center / contain no-repeat; }
@media (hover: hover) {
  .bp-commerce :is(a.button, button.button, input.button, .wc-block-components-button:not(.is-link)):hover:not(:disabled):not(.disabled):not([aria-disabled="true"]), .bp-commerce #respond input#submit:hover { color: var(--bp-cream); background: linear-gradient(135deg, var(--bp-primary-hover-start), var(--bp-primary-hover-end)); box-shadow: var(--bp-primary-inset-hover), var(--bp-shadow-action); }
}

/* Native product loops: preserve hooks, real price/rating data and cart semantics. */
/* Woo's generic image reset must not override the shared footer's approved logo bounds. */
.bp-commerce .bp-footer__logo { inline-size: auto; block-size: var(--bp-footer-logo-height); max-inline-size: 25%; object-fit: contain; }
.bp-commerce ul.products {
  --bp-product-columns: 2;
  --bp-product-gap: var(--bp-space-6);
  --bp-product-min: 7rem;
  display: grid;
  /* Match native column counts at normal size; yield columns as text grows. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--bp-product-min), calc((100% - (var(--bp-product-columns) - 1) * var(--bp-product-gap)) / var(--bp-product-columns)))), 1fr));
  gap: var(--bp-product-gap); margin-block: var(--bp-space-8); padding: 0;
}
.bp-commerce ul.products::before, .bp-commerce ul.products::after { display: none; }
.bp-commerce ul.products.columns-1 { --bp-product-columns: 1; }
.bp-commerce ul.products li.product:not(.bp-product-card) { float: none; width: auto; min-inline-size: 0; margin: 0; padding: var(--bp-space-4); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); background: var(--bp-white); box-shadow: var(--bp-shadow-sm); }
/* Woo's small-screen columns selector otherwise makes each grid item 48% wide. */
.bp-commerce ul.products[class*="columns-"] li.product { width: 100%; margin: 0; clear: none; }
.bp-commerce ul.products li.product:not(.bp-product-card) a img { width: 100%; margin-block-end: var(--bp-space-4); border-radius: var(--bp-radius-sm); }
.bp-commerce ul.products li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) { font: var(--bp-weight-card) var(--bp-type-card)/var(--bp-leading-card) var(--bp-font-body); padding-block: 0 var(--bp-space-3); color: var(--bp-text); overflow-wrap: break-word; word-break: normal; }
.bp-commerce ul.products li.product .price { display: block; color: var(--bp-text); font-weight: 600; font-size: var(--bp-type-price); margin-block-end: var(--bp-space-4); }
.bp-commerce :is(ul.products, div.product) .price del { color: var(--bp-text-muted); opacity: 1; font-weight: 400; }
.bp-commerce :is(ul.products, div.product) .price ins { text-decoration: none; }
.bp-commerce ul.products li.product .button { margin: 0; max-inline-size: 100%; }
.bp-commerce span.onsale { min-block-size: 0; min-inline-size: 0; padding: var(--bp-space-2) var(--bp-space-3); border: 1px solid var(--bp-gold-border); border-radius: var(--bp-radius-pill); color: var(--bp-text); background: var(--bp-gold-soft); font: 600 var(--bp-type-caption)/1.4 var(--bp-font-body); }
.bp-commerce .star-rating { font-size: var(--bp-type-label); }

/* Preserve the native gallery/zoom/lightbox and variation forms. */
.bp-commerce div.product div.images, .bp-commerce div.product div.summary { float: none; width: 100%; min-inline-size: 0; margin-block-end: var(--bp-space-8); }
.bp-commerce div.product div.images img { border-radius: var(--bp-radius-md); }
.bp-commerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: var(--bp-space-2); margin-block-start: var(--bp-space-3); }
.bp-commerce div.product div.images .flex-control-thumbs li { float: none; width: calc(25% - var(--bp-space-2)); }
.bp-commerce div.product .product_title { font-size: var(--bp-type-product); font-weight: var(--bp-weight-heading); line-height: var(--bp-leading-heading); margin-block-end: var(--bp-heading-gap); }
.bp-commerce div.product p.price, .bp-commerce div.product span.price { color: var(--bp-text); font-size: var(--bp-type-price-main); margin-block: var(--bp-space-4); }
.bp-commerce .woocommerce-product-details__short-description { color: var(--bp-text-muted); margin-block: var(--bp-space-5); font-size: var(--bp-type-reading); line-height: var(--bp-leading-body); }
.bp-commerce .woocommerce-product-details__short-description > * + * { margin-block-start: var(--bp-space-3); }
.bp-commerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bp-space-3); margin-block: var(--bp-space-6); }
.bp-commerce div.product form.variations_form { display: block; }
.bp-commerce div.product form.cart div.quantity { float: none; margin: 0; }
.bp-commerce div.product form.cart .button { float: none; }
.bp-commerce .quantity .qty { width: 5rem; min-block-size: var(--bp-control-height); padding: var(--bp-space-2); text-align: center; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-white); font-size: var(--bp-type-input); }
.bp-commerce div.product form.cart .variations { margin-block-end: var(--bp-space-5); }
.bp-commerce div.product form.cart .variations :is(th, td) { display: block; padding: 0; text-align: start; }
.bp-commerce div.product form.cart .variations label { display: block; margin-block-end: var(--bp-space-2); }
.bp-commerce div.product form.cart .variations select { margin: 0; max-inline-size: 100%; width: 100%; }
.bp-commerce .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: var(--bp-space-3); align-items: center; }
.bp-commerce .reset_variations { display: inline-flex; align-items: center; min-block-size: var(--bp-control-height); font-size: var(--bp-type-label); }
.bp-commerce .product_meta { display: grid; gap: var(--bp-space-2); padding-block-start: var(--bp-space-5); border-block-start: 1px solid var(--bp-border); color: var(--bp-text-muted); font-size: var(--bp-type-caption); }
.bp-commerce .stock.in-stock { color: var(--bp-success); }
.bp-commerce .stock.out-of-stock { color: var(--bp-error); }
.bp-commerce div.product .woocommerce-product-gallery__trigger { font-size: 0; background: var(--bp-white); border: 1px solid var(--bp-border); }
.bp-commerce div.product .woocommerce-product-gallery__trigger::before { inset: 25%; width: 50%; height: 50%; border: 0; border-radius: 0; transform: none; background: var(--bp-aubergine); mask: url("../icons/search.svg") center / contain no-repeat; }
.bp-commerce div.product .woocommerce-product-gallery__trigger::after { display: none; }
.bp-commerce div.product .woocommerce-tabs { clear: both; margin-block-start: var(--bp-space-8); }
.bp-commerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: var(--bp-space-2); padding: 0; margin-block-end: var(--bp-space-6); overflow: visible; }
.bp-commerce div.product .woocommerce-tabs ul.tabs::before, .bp-commerce div.product .woocommerce-tabs ul.tabs li::before, .bp-commerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.bp-commerce div.product .woocommerce-tabs ul.tabs li { border: 1px solid var(--bp-border); border-radius: var(--bp-radius-pill); background: var(--bp-white); padding: 0; margin: 0; }
.bp-commerce div.product .woocommerce-tabs ul.tabs li.active { border-color: var(--bp-champagne); background: var(--bp-lavender); }
.bp-commerce div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-block-size: var(--bp-control-height); padding: var(--bp-space-3) var(--bp-space-5); color: var(--bp-text); font-size: var(--bp-type-label); }
.bp-commerce div.product .woocommerce-tabs .panel > * + * { margin-block-start: var(--bp-space-4); }
.bp-commerce div.product .woocommerce-tabs .panel { font-size: var(--bp-type-reading); line-height: var(--bp-leading-body); }
.bp-commerce :is(.related, .upsells) { clear: both; margin-block-start: var(--bp-space-12); }

/* Native fields, SelectWoo and validation; no replacement form scripts. */
.bp-commerce :is(form.login, form.register, form.checkout_coupon, .woocommerce-EditAccountForm, .woocommerce-address-fields) { border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); padding: var(--bp-space-6); background: var(--bp-white); }
.bp-commerce form .form-row { padding: 0; margin-block-end: var(--bp-space-5); }
.bp-commerce form .form-row label { font-size: var(--bp-type-label); line-height: 1.6; margin-block-end: var(--bp-space-2); }
.bp-commerce form .form-row :is(input.input-text, textarea, select), .bp-commerce .woocommerce-ordering select, .bp-commerce .woocommerce-product-search .search-field { min-block-size: var(--bp-control-height); padding: var(--bp-control-padding) var(--bp-space-4); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); font: 400 var(--bp-type-input)/var(--bp-control-leading) var(--bp-font-body); background-color: var(--bp-white); color: var(--bp-text); box-shadow: none; }
.bp-commerce form .form-row select { padding-inline-end: var(--bp-space-10); }
.bp-commerce form .form-row textarea { min-block-size: 8rem; resize: vertical; }
.bp-commerce form .form-row :is(.input-text, select, textarea):focus { outline: 2px solid var(--bp-purple); outline-offset: 2px; border-color: var(--bp-purple); }
.bp-commerce :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--bp-aubergine); }
.bp-commerce form .form-row .required { color: var(--bp-error); }
.bp-commerce form .form-row.woocommerce-invalid :is(.input-text, select), .bp-commerce form .form-row :is(.input-text, select)[aria-invalid="true"] { border-color: var(--bp-error); }
.bp-commerce form .form-row.woocommerce-invalid label { color: var(--bp-error); }
.bp-commerce .select2-container .select2-selection--single { min-block-size: var(--bp-control-height); height: auto; border-color: var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-white); }
.bp-commerce .select2-container .select2-selection--single .select2-selection__rendered { padding: var(--bp-control-padding) var(--bp-space-10) var(--bp-control-padding) var(--bp-space-4); color: var(--bp-text); font-size: var(--bp-type-input); line-height: var(--bp-control-leading); }
.bp-commerce .select2-container .select2-selection--single .select2-selection__arrow { height: 100%; }
.bp-commerce .select2-dropdown { border-color: var(--bp-border); background: var(--bp-white); }
.bp-commerce .select2-container--default .select2-results__option--highlighted[aria-selected] { color: var(--bp-cream); background: var(--bp-aubergine); }
.bp-commerce .select2-container--focus .select2-selection, .bp-commerce .select2-container--open .select2-selection { outline: 2px solid var(--bp-purple); outline-offset: 2px; }

/* Keep notices' native roles and announcements. SVG masks replace font glyphs. */
.bp-commerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { padding: var(--bp-space-5) var(--bp-space-5) var(--bp-space-5) var(--bp-space-12); border: 1px solid var(--bp-border); border-inline-start: 3px solid var(--bp-champagne); border-radius: var(--bp-radius-sm); color: var(--bp-text); background: var(--bp-white); font-size: var(--bp-type-ui); }
.bp-commerce .woocommerce-error { border-inline-start-color: var(--bp-error); }
.bp-commerce .woocommerce-message { border-inline-start-color: var(--bp-success); }
.bp-commerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { content: ""; inset-block-start: var(--bp-space-5); inset-inline-start: var(--bp-space-4); width: var(--bp-space-5); height: var(--bp-space-5); background: var(--bp-purple); mask: url("../icons/info.svg") center / contain no-repeat; }
.bp-commerce .woocommerce-message::before { background: var(--bp-success); mask-image: url("../icons/circle-check.svg"); }
.bp-commerce .woocommerce-error::before { background: var(--bp-error); }
.bp-commerce :is(.woocommerce-message, .woocommerce-info) .button { float: none; margin: 0 var(--bp-space-3) var(--bp-space-3) 0; }
.bp-commerce .wc-block-components-notice-banner { border-radius: var(--bp-radius-sm); border-color: var(--bp-border); background-color: var(--bp-white); color: var(--bp-text); }
.bp-commerce .wc-block-components-notice-banner.is-error { border-color: var(--bp-error); }
.bp-commerce .wc-block-components-notice-banner.is-success { border-color: var(--bp-success); }

/* Tables, account endpoints, classic cart/checkout and order details. */
.bp-commerce table.shop_table { width: 100%; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); border-spacing: 0; background: var(--bp-white); font-size: var(--bp-type-ui); }
.bp-commerce table.shop_table :is(th, td) { padding: var(--bp-space-4); border-color: var(--bp-border); overflow-wrap: anywhere; }
.bp-commerce table.shop_table td.product-thumbnail img { width: var(--bp-space-20); border-radius: var(--bp-radius-sm); }
.bp-commerce table.shop_table td.actions .coupon { display: flex; flex-wrap: wrap; gap: var(--bp-space-2); }
.bp-commerce table.shop_table td.actions .input-text { width: auto; min-inline-size: 8rem; margin: 0; }
.bp-commerce a.remove { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 2.75rem; min-block-size: 2.75rem; color: var(--bp-error) !important; border: 1px solid var(--bp-border); border-radius: 50%; }
.bp-commerce a.remove:hover { color: var(--bp-white) !important; background: var(--bp-error); }
.bp-commerce .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: var(--bp-space-2); padding: 0; margin: 0 0 var(--bp-space-8); list-style: none; }
.bp-commerce .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-block-size: var(--bp-control-height); padding: var(--bp-space-3) var(--bp-space-4); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-white); text-decoration: none; font-size: var(--bp-type-label); }
.bp-commerce .woocommerce-MyAccount-navigation .is-active a { color: var(--bp-cream); background: var(--bp-aubergine); border-color: var(--bp-champagne); }
.bp-commerce :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) { float: none; width: 100%; min-inline-size: 0; }
.bp-commerce .woocommerce-MyAccount-content > * + * { margin-block-start: var(--bp-space-5); }
.bp-commerce :is(.woocommerce-Address, .woocommerce-customer-details address) { border-color: var(--bp-border); border-radius: var(--bp-radius-md); font-style: normal; }
.bp-commerce .col2-set :is(.col-1, .col-2) { float: none; width: 100%; }
.bp-commerce .col2-set { display: grid; gap: var(--bp-space-8); }
.bp-commerce #payment { border-radius: var(--bp-radius-md); background: var(--bp-lavender); }
.bp-commerce #payment div.payment_box { background: var(--bp-white); color: var(--bp-text); }
.bp-commerce #payment div.payment_box::before { border-bottom-color: var(--bp-white); }
.bp-commerce ul.order_details { display: flex; flex-wrap: wrap; gap: var(--bp-space-5); padding: 0; margin-block: var(--bp-space-8); }
.bp-commerce ul.order_details li { float: none; max-inline-size: 100%; margin: 0; padding-inline-end: var(--bp-space-5); border-color: var(--bp-border); }
.bp-commerce :is(.woocommerce-order-details, .woocommerce-customer-details) { margin-block-start: var(--bp-space-10); }
.bp-commerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--bp-space-2); border: 0; padding: 0; }
.bp-commerce nav.woocommerce-pagination ul li { border: 0; float: none; }
.bp-commerce nav.woocommerce-pagination ul li :is(a, span) { display: inline-flex; justify-content: center; align-items: center; min-inline-size: var(--bp-control-height); min-block-size: var(--bp-control-height); padding: var(--bp-space-2); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-white); color: var(--bp-text); }
.bp-commerce nav.woocommerce-pagination ul li span.current { background: var(--bp-aubergine); color: var(--bp-cream); }
.bp-commerce nav.woocommerce-pagination .screen-reader-text { position: absolute; min-inline-size: 0; min-block-size: 0; padding: 0; border: 0; }

/* Blocks retain their floating labels, container queries and Store API state. */
.bp-commerce :is(.wc-block-cart, .wc-block-checkout) { color: var(--bp-text); max-inline-size: none; margin-inline: 0; }
.bp-commerce .wc-block-components-title.wc-block-components-title { font-family: var(--bp-font-display); font-size: var(--bp-type-section); font-weight: var(--bp-weight-heading); line-height: var(--bp-leading-heading); }
.bp-commerce .wc-block-components-product-name { color: var(--bp-text); }
.bp-commerce .wc-block-components-product-metadata { color: var(--bp-text-muted); }
.bp-commerce .wc-block-components-totals-wrapper { border-color: var(--bp-border); }
.bp-commerce :is(.wc-block-components-sidebar, .wc-block-checkout__order-notes) { min-inline-size: 0; }
.bp-commerce .wc-block-components-sidebar { border-radius: var(--bp-radius-md); }
.bp-commerce .wc-block-components-checkout-step { margin-block-end: var(--bp-space-8); }
.bp-commerce .wc-block-components-text-input input, .bp-commerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input { min-block-size: var(--bp-control-height); border-color: var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-white); color: var(--bp-text); font-family: var(--bp-font-body); font-size: var(--bp-type-input); }
.bp-commerce .wc-block-components-text-input label { color: var(--bp-text-muted); }
.bp-commerce .wc-block-components-text-input:not(.is-active) label { font-size: var(--bp-type-input); }
.bp-commerce .wc-block-components-text-input.has-error input, .bp-commerce .wc-block-components-combobox.has-error input.components-combobox-control__input { border-color: var(--bp-error); }
.bp-commerce .wc-block-components-validation-error { color: var(--bp-error); }
.bp-commerce .wc-block-components-quantity-selector { min-block-size: 2.75rem; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-white); }
.bp-commerce .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { color: var(--bp-text); font-family: var(--bp-font-body); font-size: var(--bp-type-input); }
.bp-commerce .wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button { color: var(--bp-text); min-inline-size: 2.75rem; }
.bp-commerce .wc-block-cart-items :is(th, td) { border-color: var(--bp-border); }
.bp-commerce :is(.wc-block-cart-item__image, .wc-block-components-order-summary-item__image) img { border-radius: var(--bp-radius-sm); }
.bp-commerce .wc-block-components-order-summary { border-color: var(--bp-border); border-radius: var(--bp-radius-md); }

/* Keep Woo's native sticky purchase action above our measured phone navigation. */
@media (width < 980px) {
  .bp-commerce.bp-has-mobile-navigation .wc-block-cart__submit-container--sticky {
    bottom: calc(var(--bp-mobile-bar-space) + var(--bp-mobile-notice-height));
    z-index: var(--bp-z-tabbar);
  }
}
@media (max-width: 35rem) {
  /* A third totals column cannot fit beside native quantity controls on narrow phones. */
  .bp-commerce .wc-block-cart table.wc-block-cart-items,
  .bp-commerce .wc-block-cart table.wc-block-cart-items tbody { display: block; inline-size: 100%; }
  .bp-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: var(--bp-space-16) minmax(0, 1fr);
    column-gap: var(--bp-space-3);
  }
  .bp-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image { grid-column: 1; grid-row: 1 / span 2; padding-inline-end: 0; }
  .bp-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2; grid-row: 1; min-inline-size: 0; }
  .bp-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 2; grid-row: 2; justify-self: start; margin-block-start: var(--bp-space-2); text-align: start; }
}

@media (min-width: 48rem) {
  .bp-commerce ul.products { --bp-product-columns: 3; --bp-product-min: 10rem; }
  .bp-commerce ul.products.columns-2 { --bp-product-columns: 2; }
  .bp-commerce .col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-commerce div.product div.images { float: inline-start; width: 48%; }
  .bp-commerce div.product div.summary { float: inline-end; width: 46%; }
  .bp-commerce.woocommerce-account .woocommerce-MyAccount-navigation { float: inline-start; width: 25%; }
  .bp-commerce.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; }
  .bp-commerce.woocommerce-account .woocommerce-MyAccount-content { float: inline-end; width: 70%; }
}
@media (min-width: 70rem) {
  .bp-commerce ul.products { --bp-product-columns: 4; }
  .bp-commerce ul.products.columns-3 { --bp-product-columns: 3; }
  .bp-commerce ul.products.columns-5 { --bp-product-columns: 5; }
  .bp-commerce ul.products.columns-6 { --bp-product-columns: 6; }
}
@media (max-width: 35rem) {
  .bp-commerce ul.products { --bp-product-gap: var(--bp-space-3); }
  .bp-commerce ul.products li.product:not(.bp-product-card) { padding: var(--bp-space-3); }
  .bp-commerce ul.products li.product:not(.bp-product-card) .button { width: 100%; padding-inline: var(--bp-space-3); }
  .bp-commerce .woocommerce-ordering { float: none; clear: both; width: 100%; }
  .bp-commerce .woocommerce-ordering select { width: 100%; }
  .bp-commerce :is(form.login, form.register, form.checkout_coupon, .woocommerce-EditAccountForm, .woocommerce-address-fields) { padding: var(--bp-space-4); }
  .bp-commerce table.shop_table :is(th, td) { padding: var(--bp-space-3); }
  .bp-commerce table.cart td.actions .coupon { float: none; margin-block-end: var(--bp-space-3); }
  .bp-commerce table.cart td.actions .coupon :is(.input-text, .button) { width: 100%; }
}
