/* Digital storefront for the approved Brоnar design system. */
body.bronar-storefront {
  background: var(--bn-color-background);
  color: var(--bn-color-text-primary);
  font-family: var(--bn-font-body);
}

body.bronar-storefront h1,
body.bronar-storefront h2,
body.bronar-storefront h3,
body.bronar-storefront .site-title {
  color: var(--bn-color-graphite);
  font-family: var(--bn-font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.bronar-storefront a {
  text-underline-offset: 0.18em;
}

body.bronar-storefront button {
  min-height: var(--bn-size-control-md);
}

body.bronar-storefront :where(a, button, input, select, textarea):focus-visible {
  border-radius: var(--bn-radius-sm);
  box-shadow: var(--bn-shadow-focus);
  outline: 0;
}

.site-header-row-container-inner,
.site-footer-wrap {
  background: var(--bn-color-graphite);
  color: var(--bn-color-text-inverse);
}

.site-header-row-container-inner :where(a, .site-title),
.site-footer-wrap :where(a, h2, h3) {
  color: var(--bn-color-text-inverse);
}

/* Kadence sets navigation colours on nested selectors. Keep the approved dark
   header readable without depending on Customizer values. */
body.bronar-storefront .site-header-row-container-inner :where(
  .site-branding a,
  .site-title,
  .primary-menu-container > ul > li.menu-item > a,
  .mobile-navigation > ul > li.menu-item > a,
  .menu-toggle-open
) {
  color: var(--bn-color-text-inverse) !important;
}

body.bronar-storefront .site-header-row-container-inner :where(
  .site-branding a,
  .primary-menu-container > ul > li.menu-item > a,
  .mobile-navigation > ul > li.menu-item > a,
  .menu-toggle-open
):is(:hover, :focus-visible) {
  color: var(--bn-color-ice) !important;
}

body.bronar-storefront .site-footer-wrap :where(a, p) {
  color: var(--bn-color-text-inverse);
}

body.bronar-storefront .site-header-row-container-inner :where(.custom-logo-link, .brand.has-logo-image) {
  align-items: center;
  display: inline-flex;
}

body.bronar-storefront .site-header-row-container-inner .custom-logo {
  filter: brightness(0) invert(1);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  width: min(210px, 38vw);
}

body.bronar-storefront .site-header-row-container-inner .brand.has-logo-image .site-title-wrap {
  display: none;
}

.content-area {
  margin-block: var(--bn-space-7);
}

/* Foundation components used by WordPress blocks and theme patterns. */
.bn-container {
  margin-inline: auto;
  max-width: var(--bn-size-container);
  padding-inline: var(--bn-space-5);
  width: 100%;
}

.bn-section {
  padding-block: var(--bn-space-8);
}

.bn-section--surface {
  background: var(--bn-color-surface);
}

.bn-eyebrow {
  color: var(--bn-color-ice);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bn-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--bn-radius-sm);
  cursor: pointer;
  display: inline-flex;
  font: 700 0.9375rem/1 var(--bn-font-body);
  justify-content: center;
  min-height: var(--bn-size-control-md);
  padding: var(--bn-space-2) var(--bn-space-4);
  text-decoration: none;
  transition: background var(--bn-motion-fast) var(--bn-motion-easing), border-color var(--bn-motion-fast) var(--bn-motion-easing), color var(--bn-motion-fast) var(--bn-motion-easing);
}

.bn-button--primary {
  background: var(--bn-color-ice);
  color: var(--bn-color-graphite);
}

.bn-button--primary:hover {
  background: var(--bn-color-accent-600);
  color: var(--bn-color-graphite);
}

.bn-button--dark {
  background: var(--bn-color-graphite);
  color: var(--bn-color-text-inverse);
}

.bn-button--dark:hover {
  background: var(--bn-color-steel);
  color: var(--bn-color-text-inverse);
}

.bn-button--outline {
  background: transparent;
  border-color: var(--bn-color-steel);
  color: var(--bn-color-steel);
}

.bn-button[disabled],
.bn-button[aria-disabled="true"] {
  background: var(--bn-color-divider);
  border-color: var(--bn-color-divider);
  color: var(--bn-color-text-muted);
  cursor: not-allowed;
}

.bn-field {
  display: grid;
  gap: var(--bn-space-2);
}

.bn-field__label {
  color: var(--bn-color-text-primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.bn-field__control {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border-input);
  border-radius: var(--bn-radius-sm);
  color: var(--bn-color-text-primary);
  min-height: var(--bn-size-control-md);
  padding: var(--bn-space-2) var(--bn-space-3);
  width: 100%;
}

.bn-field__control:hover {
  border-color: var(--bn-color-border-hover);
}

.bn-field__hint {
  color: var(--bn-color-text-muted);
  font-size: 0.75rem;
}

.bn-alert {
  background: var(--bn-color-surface);
  border-left: 4px solid var(--bn-color-ice);
  border-radius: 0 var(--bn-radius-md) var(--bn-radius-md) 0;
  color: var(--bn-color-text-primary);
  padding: var(--bn-space-4);
}

.bn-trust-grid {
  background: var(--bn-color-graphite);
  border-radius: var(--bn-radius-lg);
  color: var(--bn-color-text-inverse);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.bn-trust-item {
  border-right: 1px solid var(--bn-color-steel);
  padding: var(--bn-space-5);
}

.bn-trust-item:last-child {
  border-right: 0;
}

.bn-trust-item h3 {
  color: var(--bn-color-text-inverse) !important;
  font-size: 1rem;
  margin: 0 0 var(--bn-space-2);
}

.bn-trust-item p {
  color: var(--bn-color-background);
  font-size: 0.8125rem;
  margin: 0;
}

/* Native WooCommerce catalogue. No visual content is placed over product artwork. */
.woocommerce ul.products,
.wc-block-product-template {
  display: grid;
  gap: var(--bn-space-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.wc-block-product {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-md);
  box-shadow: var(--bn-shadow-sm);
  display: flex;
  clear: none !important;
  float: none !important;
  flex-direction: column;
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
  padding: var(--bn-space-3);
  transition: border-color var(--bn-motion-base) var(--bn-motion-easing), box-shadow var(--bn-motion-base) var(--bn-motion-easing);
  width: 100% !important;
}

.woocommerce ul.products li.product:hover,
.wc-block-product:hover {
  border-color: var(--bn-color-border-hover);
  box-shadow: var(--bn-shadow-md);
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
}

.woocommerce ul.products li.product a img,
.wc-block-components-product-image img,
.wc-block-grid__product-image img {
  aspect-ratio: var(--bn-ratio-product-media);
  background: var(--bn-color-surface);
  border-radius: var(--bn-radius-sm);
  display: block;
  height: auto;
  margin: 0 0 var(--bn-space-3);
  object-fit: var(--bn-product-media-fit);
  object-position: center;
  width: 100%;
}

.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
  display: none;
}

.bn-availability,
.bronar-product-availability {
  display: block;
  color: var(--bn-color-success);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 var(--bn-space-2);
}

.bn-availability--out-of-stock {
  color: var(--bn-color-error);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name {
  color: var(--bn-color-graphite);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 var(--bn-space-2);
  min-height: 2.7em;
  padding: 0;
}

.bn-product-facts {
  color: var(--bn-color-text-secondary);
  font-size: 0.75rem;
  line-height: 1.45;
  list-style: none;
  margin: 0 0 var(--bn-space-3);
  padding: 0;
}

.bn-customization-note {
  color: var(--bn-color-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0 0 var(--bn-space-3);
}

.bn-price-from {
  color: var(--bn-color-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.woocommerce ul.products li.product .price,
.wc-block-components-product-price {
  color: var(--bn-color-graphite);
  font-size: 1.125rem;
  font-weight: 800;
  margin: auto 0 var(--bn-space-3);
}

.woocommerce :where(.button, button.button, input.button),
.wc-block-components-button {
  align-items: center;
  background: var(--bn-color-graphite);
  border: 1px solid var(--bn-color-graphite);
  border-radius: var(--bn-radius-sm);
  color: var(--bn-color-text-inverse);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: var(--bn-size-control-md);
  padding: var(--bn-space-2) var(--bn-space-4);
  text-decoration: none;
  transition: background var(--bn-motion-fast) var(--bn-motion-easing), border-color var(--bn-motion-fast) var(--bn-motion-easing);
}

.woocommerce :where(.button, button.button, input.button):hover,
.wc-block-components-button:hover {
  background: var(--bn-color-steel);
  border-color: var(--bn-color-steel);
  color: var(--bn-color-text-inverse);
}

.woocommerce ul.products li.product .button {
  background: var(--bn-color-ice);
  border-color: var(--bn-color-ice);
  color: var(--bn-color-graphite);
  display: inline-flex !important;
  margin: var(--bn-space-3) 0 0 !important;
  opacity: 1 !important;
  position: static !important;
  transform: none !important;
  visibility: visible !important;
  width: 100%;
}

.woocommerce ul.products li.product .bn-product-details {
  text-decoration: none;
}

.woocommerce ul.products li.product .product-action-wrap {
  align-self: stretch !important;
  display: block !important;
  height: auto !important;
  margin-top: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
  padding-inline: 0 !important;
  position: static !important;
  transform: none !important;
  visibility: visible !important;
  width: 100% !important;
}

.woocommerce ul.products li.product .product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--bn-color-accent-600);
  border-color: var(--bn-color-accent-600);
  color: var(--bn-color-graphite);
}

.woocommerce ul.products li.product .button[disabled],
.woocommerce ul.products li.product .button[aria-disabled="true"] {
  background: var(--bn-color-divider);
  border-color: var(--bn-color-divider);
  color: var(--bn-color-text-muted);
  cursor: not-allowed;
}

/* Catalogue controls: WooCommerce supplies the data, the theme supplies the view. */
.bn-catalog-heading {
  align-items: end;
  display: flex;
  gap: var(--bn-space-5);
  justify-content: space-between;
  margin-bottom: var(--bn-space-5);
}

.bn-catalog-heading h1 {
  margin-bottom: var(--bn-space-2);
}

.bn-catalog-heading p {
  color: var(--bn-color-text-secondary);
  margin: 0;
  max-width: var(--bn-size-content-measure);
}

.bn-catalog-toolbar {
  align-items: center;
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--bn-space-3);
  justify-content: space-between;
  margin-bottom: var(--bn-space-5);
  padding: var(--bn-space-3);
}

.bn-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bn-space-2);
}

.bn-filter-chip {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-sm);
  color: var(--bn-color-steel);
  cursor: pointer;
  font-weight: 700;
  min-height: var(--bn-size-control-md);
  padding: var(--bn-space-2) var(--bn-space-3);
}

.bn-filter-chip[aria-pressed="true"] {
  background: var(--bn-color-secondary-100);
  border-color: var(--bn-color-steel);
  box-shadow: inset 0 0 0 1px var(--bn-color-steel);
}

.bn-catalog-sort {
  align-items: center;
  display: flex;
  gap: var(--bn-space-2);
}

.bn-catalog-sort label,
.bn-result-count {
  color: var(--bn-color-text-secondary);
  font-size: 0.8125rem;
}

.bn-catalog-sort select {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border-input);
  border-radius: var(--bn-radius-sm);
  min-height: var(--bn-size-control-md);
  padding-inline: var(--bn-space-3);
}

body.bronar-storefront .woocommerce-ordering select.orderby {
  appearance: auto !important;
  background: var(--bn-color-surface) !important;
  border: 1px solid var(--bn-color-border-input);
  border-radius: var(--bn-radius-sm);
  min-height: var(--bn-size-control-md);
  padding: var(--bn-space-2) var(--bn-space-3);
}

body.bronar-storefront .woocommerce-ordering::before,
body.bronar-storefront .woocommerce-ordering::after {
  display: none !important;
}

.bn-catalog-empty {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-md);
  display: none;
  padding: var(--bn-space-7);
  text-align: center;
}

.bn-catalog-empty.is-visible {
  display: block;
}

/* Purchase flow: product, cart, classic checkout and confirmation. */
.bn-flow-progress {
  display: flex;
  gap: var(--bn-space-2);
  margin-bottom: var(--bn-space-6);
  overflow-x: auto;
  padding-bottom: var(--bn-space-2);
}

.bn-flow-step {
  align-items: center;
  color: var(--bn-color-text-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 700;
  gap: var(--bn-space-2);
}

.bn-flow-step::before {
  align-items: center;
  background: var(--bn-color-divider);
  border-radius: var(--bn-radius-full);
  color: var(--bn-color-text-secondary);
  content: attr(data-number);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.bn-flow-step[aria-current="step"] {
  color: var(--bn-color-graphite);
}

.bn-flow-step[aria-current="step"]::before,
.bn-flow-step.is-complete::before {
  background: var(--bn-color-ice);
  color: var(--bn-color-graphite);
}

.bn-flow-screen[hidden] {
  display: none !important;
}

.bn-product-layout {
  align-items: start;
  display: grid;
  gap: var(--bn-space-7);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bn-product-gallery {
  min-width: 0;
}

.bn-product-media-frame {
  aspect-ratio: var(--bn-ratio-product-media);
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-md);
  display: flex;
  overflow: hidden;
}

.bn-product-media-frame img {
  height: 100%;
  object-fit: var(--bn-product-media-fit);
  width: 100%;
}

.bn-buy-panel {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-lg);
  padding: var(--bn-space-6);
}

.bn-buy-panel h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: var(--bn-space-3) 0 var(--bn-space-4);
}

.bn-product-lead {
  color: var(--bn-color-text-secondary);
}

.bn-key-specs {
  border-block: 1px solid var(--bn-color-divider);
  display: grid;
  gap: var(--bn-space-3);
  margin-block: var(--bn-space-5);
  padding-block: var(--bn-space-4);
}

.bn-key-specs div {
  display: flex;
  gap: var(--bn-space-4);
  justify-content: space-between;
}

.bn-key-specs dt {
  color: var(--bn-color-text-muted);
}

.bn-key-specs dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.bn-variant {
  border: 0;
  margin: 0 0 var(--bn-space-5);
  padding: 0;
}

.bn-variant legend {
  font-weight: 800;
  margin-bottom: var(--bn-space-3);
}

.bn-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bn-space-2);
}

.bn-option {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-sm);
  cursor: pointer;
  min-height: var(--bn-size-control-md);
  padding: var(--bn-space-2) var(--bn-space-4);
}

.bn-option[aria-pressed="true"] {
  background: var(--bn-color-secondary-100);
  border-color: var(--bn-color-steel);
  box-shadow: inset 0 0 0 1px var(--bn-color-steel);
  font-weight: 800;
}

.bn-price-block {
  display: grid;
  gap: var(--bn-space-1);
  margin-bottom: var(--bn-space-5);
}

.bn-price-block span,
.bn-price-block small {
  color: var(--bn-color-text-secondary);
}

.bn-price-block strong {
  font-size: 1.75rem;
}

.bn-purchase-row {
  display: grid;
  gap: var(--bn-space-3);
  grid-template-columns: auto 1fr;
}

.bn-quantity {
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-sm);
  display: grid;
  grid-template-columns: 44px 52px 44px;
  overflow: hidden;
}

.bn-quantity button,
.bn-quantity output {
  align-items: center;
  background: var(--bn-color-surface);
  border: 0;
  display: flex;
  justify-content: center;
  min-height: var(--bn-size-control-md);
}

.bn-quantity output {
  border-inline: 1px solid var(--bn-color-border);
  font-weight: 800;
}

.bn-buy-trust {
  color: var(--bn-color-text-secondary);
  display: grid;
  font-size: 0.8125rem;
  gap: var(--bn-space-2);
  margin-top: var(--bn-space-4);
}

.bn-cart-layout,
.bn-checkout-layout {
  align-items: start;
  display: grid;
  gap: var(--bn-space-5);
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.bn-cart-list,
.bn-order-summary,
.bn-checkout-section {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-md);
  padding: var(--bn-space-5);
}

.bn-cart-line {
  align-items: center;
  display: grid;
  gap: var(--bn-space-4);
  grid-template-columns: 96px minmax(0, 1fr) auto;
}

.bn-cart-line img,
.bn-mini-order img {
  aspect-ratio: var(--bn-ratio-product-media);
  object-fit: var(--bn-product-media-fit);
  width: 100%;
}

.bn-cart-line h2 {
  font-size: 1.125rem;
  margin: var(--bn-space-2) 0;
}

.bn-cart-line p {
  color: var(--bn-color-text-secondary);
  margin: 0;
}

.bn-cart-actions {
  display: grid;
  gap: var(--bn-space-3);
  justify-items: end;
}

.bn-order-summary {
  display: grid;
  gap: var(--bn-space-4);
  position: sticky;
  top: var(--bn-space-4);
}

.bn-summary-line {
  color: var(--bn-color-text-secondary);
  display: flex;
  gap: var(--bn-space-3);
  justify-content: space-between;
}

.bn-summary-line--total {
  border-top: 1px solid var(--bn-color-divider);
  color: var(--bn-color-graphite);
  font-size: 1.125rem;
  font-weight: 800;
  padding-top: var(--bn-space-4);
}

.bn-checkout-fields {
  display: grid;
  gap: var(--bn-space-5);
}

.bn-checkout-section {
  border: 0;
  display: flow-root;
  margin: 0;
  min-inline-size: 0;
}

.bn-checkout-section legend {
  display: block;
  float: left;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 var(--bn-space-4);
  padding: 0;
  width: 100%;
}

.bn-checkout-section legend + * {
  clear: both;
}

.bn-form-grid {
  display: grid;
  gap: var(--bn-space-4);
  grid-template-columns: 1fr 1fr;
}

.bn-form-grid .bn-field--wide {
  grid-column: 1 / -1;
}

.bn-choice-card {
  align-items: start;
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-sm);
  display: flex;
  gap: var(--bn-space-3);
  margin-top: var(--bn-space-3);
  padding: var(--bn-space-4);
}

.bn-choice-card:has(input:checked) {
  border-color: var(--bn-color-steel);
  box-shadow: inset 0 0 0 1px var(--bn-color-steel);
}

.bn-choice-card input {
  height: 18px;
  margin-top: var(--bn-space-1);
  width: 18px;
}

.bn-choice-card b,
.bn-choice-card small {
  display: block;
}

.bn-choice-card small {
  color: var(--bn-color-text-secondary);
  margin-top: var(--bn-space-1);
}

.bn-mini-order {
  align-items: center;
  display: grid;
  gap: var(--bn-space-3);
  grid-template-columns: 64px 1fr auto;
}

.bn-agreement {
  align-items: start;
  display: flex;
  gap: var(--bn-space-2);
}

.bn-agreement input {
  height: 18px;
  margin-top: var(--bn-space-1);
  width: 18px;
}

.bn-form-error {
  color: var(--bn-color-error);
  font-size: 0.8125rem;
  font-weight: 700;
}

.bn-success {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-top: 4px solid var(--bn-color-success);
  border-radius: var(--bn-radius-md);
  margin-inline: auto;
  max-width: var(--bn-size-content-measure);
  padding: var(--bn-space-7);
  text-align: center;
}

.bn-success-mark {
  align-items: center;
  background: var(--bn-color-secondary-100);
  border-radius: var(--bn-radius-full);
  color: var(--bn-color-success);
  display: inline-flex;
  font-size: 1.75rem;
  height: 64px;
  justify-content: center;
  width: 64px;
}

/* Product page: the same uncropped 3:4 marketplace artwork, including the
   WooCommerce placeholder used before real product images are uploaded. */
.woocommerce div.product .bn-single-product-main {
  align-items: start;
  display: grid;
  gap: var(--bn-space-7);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: var(--bn-space-7);
}

.woocommerce div.product .bn-single-product-main > div.images,
.woocommerce div.product .bn-single-product-main > div.summary {
  float: none;
  margin: 0;
  min-width: 0;
  width: auto;
}

.woocommerce div.product .bn-single-product-main > div.images {
  align-self: start;
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bn-space-4));
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a,
.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder {
  aspect-ratio: var(--bn-ratio-product-media);
  background: var(--bn-color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.woocommerce div.product div.images :where(
  .woocommerce-product-gallery__image,
  .woocommerce-product-gallery__image--placeholder
) img {
  aspect-ratio: var(--bn-ratio-product-media);
  background: var(--bn-color-surface);
  display: block;
  height: 100%;
  object-fit: var(--bn-product-media-fit);
  object-position: center;
  width: 100%;
}

.woocommerce div.product .product_title {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--bn-color-graphite);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

/* Forms, cart, checkout and messages. */
.woocommerce :where(input.input-text, textarea, select),
.woocommerce-checkout :where(input, textarea, select) {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border-input);
  border-radius: var(--bn-radius-sm);
  color: var(--bn-color-text-primary);
  min-height: var(--bn-size-control-md);
}

.woocommerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-color-border);
  border-top: 4px solid var(--bn-color-ice);
  border-radius: var(--bn-radius-sm);
}

.woocommerce table.shop_table,
.woocommerce-checkout-review-order {
  background: var(--bn-color-surface);
  border-color: var(--bn-color-border);
  border-radius: var(--bn-radius-md);
}

.wc-block-cart,
.wc-block-checkout,
.woocommerce-cart-form,
.woocommerce-checkout {
  color: var(--bn-color-text-primary);
}

.wc-block-components-sidebar,
.wc-block-components-main,
.wc-block-checkout__order-notes,
.wc-block-components-totals-wrapper {
  border-color: var(--bn-color-border);
}

.wc-block-components-order-summary,
.wc-block-checkout__contact-fields,
.wc-block-checkout__shipping-fields,
.wc-block-checkout__billing-fields,
.woocommerce-checkout-review-order {
  background: var(--bn-color-surface);
  border-radius: var(--bn-radius-md);
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  border-color: var(--bn-color-border-input);
  border-radius: var(--bn-radius-sm);
  min-height: var(--bn-size-control-lg);
}

/* Classic checkout: contact → delivery address → delivery method → payment. */
body.bn-checkout .entry-hero,
body.bn-checkout .entry-hero .entry-hero-container-inner,
body.bn-checkout .entry-hero .hero-container {
  height: auto;
}

body.bn-checkout .entry-hero .entry-header {
  height: auto;
  min-height: 96px;
  padding-block: var(--bn-space-5);
}

body.bn-checkout .content-area {
  margin-block: var(--bn-space-4) var(--bn-space-7);
}

body.bn-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: var(--bn-space-4);
}

body.bn-checkout .woocommerce-billing-fields > h3,
body.bn-checkout #order_review_heading,
body.bn-checkout .bn-checkout-subheading,
body.bn-checkout .bn-payment-heading {
  color: var(--bn-color-graphite);
  font-family: var(--bn-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.bn-checkout .bn-checkout-subheading {
  border-top: 1px solid var(--bn-color-divider);
  clear: both;
  margin: var(--bn-space-6) 0 var(--bn-space-4);
  padding-top: var(--bn-space-5);
}

body.bn-checkout .bn-payment-heading {
  border-top: 1px solid var(--bn-color-divider);
  margin: var(--bn-space-5) 0 var(--bn-space-3);
  padding-top: var(--bn-space-5);
}

body.bn-checkout .woocommerce-shipping-fields {
  display: none;
}

body.bn-checkout #payment {
  background: transparent;
}

body.bn-checkout #payment ul.payment_methods {
  background: var(--bn-color-secondary-100);
  border: 1px solid var(--bn-color-border);
  border-radius: var(--bn-radius-md);
  padding: var(--bn-space-4);
}

body.bn-checkout #payment .woocommerce-privacy-policy-text {
  color: var(--bn-color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

body.bn-checkout #payment #place_order {
  background: var(--bn-color-ice) !important;
  border: 1px solid var(--bn-color-ice) !important;
  border-radius: var(--bn-radius-sm) !important;
  box-shadow: none !important;
  color: var(--bn-color-graphite) !important;
  font-weight: 800;
  min-height: var(--bn-size-control-lg);
  text-transform: none;
  width: 100%;
}

body.bn-checkout #payment #place_order:is(:hover, :focus-visible) {
  background: var(--bn-color-accent-600) !important;
  border-color: var(--bn-color-accent-600) !important;
  color: var(--bn-color-graphite) !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .wc-block-product-template {
    gap: var(--bn-space-4);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .content-area {
    margin-block: var(--bn-space-5);
  }

  .woocommerce div.product .bn-single-product-main {
    display: block;
    margin-bottom: var(--bn-space-6);
  }

  .woocommerce div.product .bn-single-product-main > div.images {
    margin-bottom: var(--bn-space-5);
    position: static;
  }

  .woocommerce ul.products,
  .wc-block-product-template {
    gap: var(--bn-space-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce ul.products li.product,
  .wc-block-product {
    padding: var(--bn-space-2);
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .wc-block-components-product-name {
    font-size: 0.875rem;
    min-height: 3.8em;
  }

  .woocommerce ul.products li.product .price,
  .wc-block-components-product-price {
    font-size: 1rem;
  }

  .bn-container {
    padding-inline: var(--bn-space-4);
  }

  .bn-section {
    padding-block: var(--bn-space-7);
  }

  .bn-trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bn-trust-item:nth-child(2) {
    border-right: 0;
  }

  .bn-trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--bn-color-steel);
  }

  .bn-catalog-heading {
    align-items: start;
    flex-direction: column;
  }

  .bn-catalog-toolbar,
  .bn-catalog-sort {
    align-items: stretch;
    flex-direction: column;
  }

  .bn-filter-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bn-product-facts {
    font-size: 0.6875rem;
  }

  .bn-flow-progress {
    display: grid;
    gap: var(--bn-space-1);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .bn-flow-step {
    flex-direction: column;
    font-size: 0.625rem;
    gap: var(--bn-space-1);
    min-width: 0;
    text-align: center;
  }

  .bn-product-layout,
  .bn-cart-layout,
  .bn-checkout-layout {
    grid-template-columns: 1fr;
  }

  .bn-product-layout {
    gap: var(--bn-space-5);
  }

  .bn-buy-panel,
  .bn-cart-list,
  .bn-order-summary,
  .bn-checkout-section,
  .bn-success {
    padding: var(--bn-space-4);
  }

  .bn-purchase-row,
  .bn-form-grid {
    grid-template-columns: 1fr;
  }

  .bn-purchase-row .bn-quantity {
    justify-self: start;
  }

  .bn-cart-line {
    align-items: start;
    grid-template-columns: 72px 1fr;
  }

  .bn-cart-actions {
    grid-column: 2;
    justify-items: start;
  }

  .bn-order-summary {
    position: static;
  }

  .bn-mini-order {
    grid-template-columns: 56px 1fr;
  }

  .bn-mini-order b {
    grid-column: 2;
  }

  body.bn-checkout .entry-hero .entry-header {
    min-height: 76px;
    padding-block: var(--bn-space-4);
  }
}

@media (max-width: 359px) {
  .woocommerce ul.products,
  .wc-block-product-template {
    grid-template-columns: 1fr;
  }
}
