:root {
  --xb-ui-bg: #f3f5f7;
  --xb-ui-surface: #ffffff;
  --xb-ui-surface-alt: #f8fafc;
  --xb-ui-text: #0f172a;
  --xb-ui-muted: #667085;
  --xb-ui-border: #e2e8f0;
  --xb-ui-border-strong: #cbd5e1;
  --xb-ui-accent: #0f172a;
  --xb-ui-accent-soft: #eef2f6;
  --xb-ui-radius-xl: 22px;
  --xb-ui-radius-lg: 18px;
  --xb-ui-radius-md: 14px;
  --xb-ui-radius-sm: 10px;
  --xb-ui-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  --xb-ui-shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body.xbrands-b2b-shop-ui,
body.xbrands-b2b-cart-ui {
  background: var(--xb-ui-bg);
}

.xbrands-b2b-shop-ui .site-content,
.xbrands-b2b-shop-ui .main-page-wrapper,
.xbrands-b2b-shop-ui .wd-page-content,
.xbrands-b2b-shop-ui .content-layout-wrapper,
.xbrands-b2b-shop-ui .wd-content-layout,
.xbrands-b2b-cart-ui .site-content,
.xbrands-b2b-cart-ui .main-page-wrapper {
  background: transparent;
}

.xbrands-b2b-shop-ui .main-page-wrapper,
.xbrands-b2b-cart-ui .main-page-wrapper {
  padding-top: 18px;
}

.xbrands-b2b-shop-ui .shop-title,
.xbrands-b2b-shop-ui .page-title,
.xbrands-b2b-shop-ui .woocommerce-products-header,
.xbrands-b2b-shop-ui .wd-shop-title,
.xbrands-b2b-shop-ui .wd-page-title,
.xbrands-b2b-shop-ui .term-description,
.xbrands-b2b-shop-ui .page-description {
  display: none !important;
}

.xbrands-b2b-shop-ui .site-content > .container,
.xbrands-b2b-shop-ui .main-page-wrapper > .container,
.xbrands-b2b-shop-ui .wd-page-content > .container,
.xbrands-b2b-cart-ui .main-page-wrapper > .container {
  max-width: 1360px;
}

.xbrands-shop-hero,
.xbrands-cart-hero {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--xb-ui-border);
  border-radius: var(--xb-ui-radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--xb-ui-shadow-soft);
}

.xbrands-shop-hero__top,
.xbrands-company-badge,
.xbrands-shop-hero__top-actions,
.xbrands-shop-hero__cart,
.xbrands-shop-toolbar,
.xbrands-shop-toolbar__right,
.xbrands-shop-hero__nav-row,
.xbrands-single-context,
.xbrands-b2b-shop-search {
  display: flex;
  align-items: center;
}

.xbrands-shop-hero__top,
.xbrands-shop-toolbar,
.xbrands-shop-hero__nav-row {
  justify-content: space-between;
  gap: 18px;
}

.xbrands-shop-hero__top {
  flex-wrap: wrap;
}

.xbrands-shop-hero__top-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.xbrands-shop-hero__main {
  padding: 14px 0 12px;
}

.xbrands-shop-hero__headline {
  max-width: 760px;
}

.xbrands-shop-hero__eyebrow,
.xbrands-cart-hero__eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-shop-hero h1,
.xbrands-cart-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--xb-ui-text);
}

.xbrands-shop-hero p,
.xbrands-cart-hero p {
  margin: 10px 0 0;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--xb-ui-muted);
}

.xbrands-shop-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--xb-ui-muted);
}

.xbrands-shop-breadcrumbs a {
  color: var(--xb-ui-text);
  text-decoration: none;
}

.xbrands-shop-breadcrumbs .is-current {
  color: var(--xb-ui-muted);
}

.xbrands-shop-breadcrumbs__sep {
  opacity: 0.45;
}

.xbrands-company-badge {
  gap: 12px;
}

.xbrands-company-badge__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 12px;
  background: #fff;
}

.xbrands-company-badge__logo img {
  max-width: 120px;
  max-height: 26px;
  width: auto;
  height: auto;
}

.xbrands-company-badge__text {
  display: grid;
  gap: 2px;
}

.xbrands-company-badge__text strong {
  color: var(--xb-ui-text);
  font-size: 18px;
  line-height: 1.2;
}

.xbrands-company-badge__text span {
  color: var(--xb-ui-muted);
  font-size: 12px;
}

.xbrands-b2b-shop-search {
  gap: 10px;
  width: min(100%, 640px);
  min-height: 48px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 14px;
  background: #fff;
}

.xbrands-b2b-shop-search__icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-shop-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 220px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--xb-ui-text);
}

.xbrands-b2b-shop-search input[type="search"]:focus {
  outline: none;
}

.xbrands-b2b-shop-search button {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--xb-ui-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.xbrands-shop-hero__cart {
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--xb-ui-text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.xbrands-shop-hero__cart:hover {
  transform: translateY(-1px);
  box-shadow: var(--xb-ui-shadow-soft);
}

.xbrands-shop-hero__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--xb-ui-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.xbrands-shop-hero__nav-row {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--xb-ui-border);
}

.xbrands-shop-hero__nav-row.is-secondary {
  margin-top: 10px;
  padding-top: 10px;
}

.xbrands-shop-hero__nav-label {
  flex: 0 0 auto;
  min-width: 88px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.xbrands-chip-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 999px;
  background: #fff;
  color: var(--xb-ui-text);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s ease;
}

.xbrands-chip-nav__item:hover,
.xbrands-chip-nav__item.is-current {
  border-color: var(--xb-ui-accent);
  background: var(--xb-ui-accent);
  color: #fff;
}

.xbrands-shop-toolbar {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--xb-ui-border);
  border-radius: var(--xb-ui-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--xb-ui-shadow-soft);
}

.xbrands-shop-toolbar__left {
  display: grid;
  gap: 2px;
}

.xbrands-shop-toolbar__left strong {
  font-size: 15px;
  color: var(--xb-ui-text);
}

.xbrands-shop-toolbar__left span,
.xbrands-shop-toolbar__count {
  font-size: 13px;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-shop-ui .woocommerce-ordering,
.xbrands-b2b-shop-ui form.woocommerce-ordering {
  margin: 0;
}

.xbrands-b2b-shop-ui .woocommerce-ordering select {
  min-width: 220px;
  height: 42px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 12px;
  background-color: #fff;
  font-size: 13px;
}

.xbrands-b2b-shop-ui .woocommerce-result-count {
  display: none !important;
}

.xbrands-b2b-shop-ui ul.products,
.xbrands-b2b-shop-ui .products {
  display: grid;
  gap: 22px;
}

.xbrands-b2b-shop-ui .products .product,
.xbrands-b2b-shop-ui ul.products li.product,
.xbrands-b2b-shop-ui .wd-products .product-grid-item {
  padding: 14px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: var(--xb-ui-surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.xbrands-b2b-shop-ui .products .product:hover,
.xbrands-b2b-shop-ui ul.products li.product:hover,
.xbrands-b2b-shop-ui .wd-products .product-grid-item:hover {
  transform: translateY(-2px);
  border-color: var(--xb-ui-border-strong);
  box-shadow: var(--xb-ui-shadow);
}

.xbrands-b2b-shop-ui .wd-products .product-grid-item .product-wrapper,
.xbrands-b2b-shop-ui ul.products li.product .product-wrapper {
  height: 100%;
}

.xbrands-b2b-shop-ui .products .product .product-element-top,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .product-element-top {
  margin-bottom: 10px;
}

.xbrands-b2b-shop-ui .products .product .product-title,
.xbrands-b2b-shop-ui ul.products li.product .wd-entities-title,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .wd-entities-title {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--xb-ui-text);
}

.xbrands-b2b-shop-ui .products .product .price,
.xbrands-b2b-shop-ui ul.products li.product .price,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .price {
  display: block;
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--xb-ui-text);
}

.xbrands-b2b-shop-ui .products .product .price .amount,
.xbrands-b2b-shop-ui ul.products li.product .price .amount,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .price .amount {
  color: inherit;
}

.xbrands-loop-brand {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--xb-ui-accent-soft);
  color: var(--xb-ui-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xbrands-loop-meta {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-shop-ui .product .button,
.xbrands-b2b-shop-ui .product .add_to_cart_button,
.xbrands-b2b-shop-ui .product .product_type_variable,
.xbrands-b2b-shop-ui .product .ajax_add_to_cart,
.xbrands-b2b-shop-ui .xbrands-loop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--xb-ui-accent);
  border-radius: 10px;
  background: var(--xb-ui-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.xbrands-b2b-shop-ui .product .quantity {
  margin-right: 8px;
}

.xbrands-b2b-shop-ui .product .quantity input.qty {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--xb-ui-border-strong);
}

.xbrands-single-context {
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.xbrands-single-context__pill,
.xbrands-single-context__sku {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--xb-ui-border);
  font-size: 12px;
  color: var(--xb-ui-text);
  text-decoration: none;
}

.xbrands-single-context__pill.is-link:hover {
  border-color: var(--xb-ui-accent);
}

.xbrands-b2b-shop-ui.single-product .summary.entry-summary,
.xbrands-b2b-shop-ui.single-product .single-product-content {
  background: transparent;
}

.xbrands-b2b-shop-ui.single-product .summary.entry-summary .price,
.xbrands-b2b-shop-ui.single-product .product-summary-wrap .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--xb-ui-text);
}

.xbrands-b2b-shop-ui.single-product .single_add_to_cart_button,
.xbrands-b2b-shop-ui.single-product .button.alt {
  min-height: 48px;
  border-radius: 12px;
  background: var(--xb-ui-accent);
}

.xbrands-cart-hero {
  margin-bottom: 16px;
}

.xbrands-b2b-cart-ui .shop_table,
.xbrands-b2b-cart-ui .cart_totals,
.xbrands-b2b-cart-ui .woocommerce-cart-form {
  background: transparent;
}



.xbrands-shop-hero,
.xbrands-shop-toolbar,
.xbrands-b2b-shop-ui .content-layout-wrapper,
.xbrands-b2b-shop-ui .wd-content-layout,
.xbrands-b2b-shop-ui .wd-sidebar,
.xbrands-b2b-shop-ui aside.sidebar-container,
.xbrands-b2b-shop-ui .widget-area {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.xbrands-shop-hero {
  padding: 14px 18px;
}

.xbrands-shop-hero__top,
.xbrands-shop-toolbar,
.xbrands-shop-hero__nav-row {
  gap: 14px;
}

.xbrands-shop-hero__main {
  padding: 10px 0 8px;
}

.xbrands-shop-hero h1,
.xbrands-cart-hero h1 {
  font-size: clamp(24px, 2.5vw, 40px);
}

.xbrands-shop-hero__nav-row {
  padding-top: 10px;
  margin-top: 10px;
}

.xbrands-shop-hero__top-actions {
  justify-content: flex-end;
}

.xbrands-b2b-shop-ui .wd-products,
.xbrands-b2b-shop-ui ul.products,
.xbrands-b2b-shop-ui .products {
  margin-top: 0;
}

.xbrands-b2b-shop-ui .woocommerce-notices-wrapper + .term-header,
.xbrands-b2b-shop-ui .term-header,
.xbrands-b2b-shop-ui .page-title.page-title-default,
.xbrands-b2b-shop-ui .page-title-default,
.xbrands-b2b-shop-ui .shop-title-area,
.xbrands-b2b-shop-ui .wd-shop-title,
.xbrands-b2b-shop-ui .wd-shop-title-with-image,
.xbrands-b2b-shop-ui .wd-page-title,
.xbrands-b2b-shop-ui .page-title-image,
.xbrands-b2b-shop-ui .wd-page-title-image,
.xbrands-b2b-shop-ui .archive-description,
.xbrands-b2b-shop-ui .archive-description img,
.xbrands-b2b-shop-ui .term-description img {
  display: none !important;
}
@media (max-width: 1024px) {
  .xbrands-shop-hero__top,
  .xbrands-shop-toolbar,
  .xbrands-shop-hero__nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .xbrands-shop-toolbar__right,
  .xbrands-shop-hero__top-actions {
    width: 100%;
  }

  .xbrands-b2b-shop-search {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .xbrands-shop-hero,
  .xbrands-cart-hero {
    padding: 16px;
    border-radius: 18px;
  }

  .xbrands-shop-hero h1,
  .xbrands-cart-hero h1 {
    font-size: 28px;
  }

  .xbrands-shop-hero__cart {
    width: 100%;
    justify-content: center;
  }

  .xbrands-shop-toolbar__right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .xbrands-b2b-shop-ui .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
  }
}


.xbrands-market-switcher {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.xbrands-market-switcher label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-market-switcher__control {
  display: flex;
}

.xbrands-market-switcher select {
  width: 100%;
  min-width: 140px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--xb-ui-text);
  font-size: 13px;
}

.xbrands-market-switcher.is-toolbar label,
.xbrands-market-switcher.is-single label {
  font-size: 10px;
}

.xbrands-loop-rrp {
  margin: -2px 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--xb-ui-muted);
}

.xbrands-loop-rrp strong {
  color: var(--xb-ui-text);
  font-weight: 600;
}

.xbrands-b2b-shop-ui .products .product .price,
.xbrands-b2b-shop-ui ul.products li.product .price,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .price {
  margin-bottom: 6px;
}

.xbrands-single-trade-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--xb-ui-shadow-soft);
}

.xbrands-single-trade-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.xbrands-single-trade-card__head strong {
  font-size: 15px;
  color: var(--xb-ui-text);
}

.xbrands-single-trade-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xbrands-single-trade-card__item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--xb-ui-surface-alt);
  border: 1px solid var(--xb-ui-border);
}

.xbrands-single-trade-card__item span {
  font-size: 12px;
  color: var(--xb-ui-muted);
}

.xbrands-single-trade-card__item strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--xb-ui-text);
}

.xbrands-b2b-shop-ui .content-layout-wrapper,
.xbrands-b2b-shop-ui .wd-content-layout {
  align-items: start;
}

.xbrands-b2b-shop-ui aside.sidebar-container,
.xbrands-b2b-shop-ui .wd-sidebar,
.xbrands-b2b-shop-ui .widget-area {
  position: sticky;
  top: 20px;
}

.xbrands-b2b-shop-ui .wd-sidebar .widget,
.xbrands-b2b-shop-ui aside.sidebar-container .widget,
.xbrands-b2b-shop-ui .widget-area .widget {
  padding: 16px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--xb-ui-shadow-soft);
}

.xbrands-b2b-shop-ui.single-product .woocommerce-breadcrumb,
.xbrands-b2b-shop-ui.single-product .breadcrumbs {
  display: none !important;
}

.xbrands-b2b-shop-ui.single-product .product_title {
  margin-top: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--xb-ui-text);
}

.xbrands-b2b-shop-ui.single-product .summary .price {
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .xbrands-single-trade-card__head {
    align-items: stretch;
    flex-direction: column;
  }

  .xbrands-single-trade-card__grid {
    grid-template-columns: 1fr;
  }
}

/* v0.3.0 refinements */
.xbrands-shop-hero__top-actions {
    align-items: stretch;
}

.xbrands-market-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 170px;
    padding: 10px 14px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
}

.xbrands-market-badge__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #667085;
}

.xbrands-market-badge__value {
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
}

.xbrands-market-switcher,
.xbrands-shop-toolbar .woocommerce-result-count,
.xbrands-shop-toolbar + .woocommerce-result-count,
.xbrands-shop-toolbar + .woocommerce-ordering {
    display: none !important;
}

.xbrands-shop-front-categories {
    max-width: 1360px;
    margin: 0 auto 30px;
    padding: 0 24px;
}

.xbrands-shop-front-categories__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 16px;
}

.xbrands-shop-front-categories__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #667085;
}

.xbrands-shop-front-categories__head h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
    color: #0f172a;
}

.xbrands-shop-front-categories__head p {
    margin: 0;
    color: #64748b;
}

.xbrands-shop-front-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.xbrands-shop-front-categories__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.xbrands-shop-front-categories__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    border-color: #cbd5e1;
}

.xbrands-shop-front-categories__media {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 72px;
}

.xbrands-shop-front-categories__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xbrands-shop-front-categories__placeholder {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.xbrands-shop-front-categories__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xbrands-shop-front-categories__body strong {
    color: #0f172a;
    font-size: 16px;
}

.xbrands-shop-front-categories__body span {
    color: #64748b;
    font-size: 13px;
}

.xbrands-shop-toolbar {
    margin-top: 6px;
}

.xbrands-shop-toolbar__right {
    gap: 12px;
}

.xbrands-b2b-cart-ui .woocommerce {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.xbrands-cart-hero {
    max-width: 1360px;
    margin: 0 auto 28px;
    padding: 18px 24px 0;
}

.xbrands-cart-hero__meta {
    margin-top: 18px;
}

.xbrands-b2b-cart-ui .shop_table.cart {
    border-collapse: separate;
    border-spacing: 0 14px;
}

.xbrands-b2b-cart-ui .shop_table.cart thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}

.xbrands-b2b-cart-ui .shop_table.cart tbody tr {
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.xbrands-b2b-cart-ui .shop_table.cart td {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 18px;
    padding-bottom: 18px;
}

.xbrands-b2b-cart-ui .shop_table.cart td:first-child,
.xbrands-b2b-cart-ui .shop_table.cart th:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.xbrands-b2b-cart-ui .shop_table.cart td:last-child,
.xbrands-b2b-cart-ui .shop_table.cart th:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.xbrands-b2b-cart-ui .cart-collaterals {
    margin-top: 22px;
}

.xbrands-b2b-cart-ui .cart_totals {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.xbrands-b2b-cart-ui .wc-proceed-to-checkout a.checkout-button {
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 700;
}

.xbrands-b2b-cart-ui .cross-sells,
.xbrands-b2b-cart-ui .cart-collaterals .cross-sells {
    margin-top: 34px;
}

.xbrands-b2b-cart-ui .cross-sells > h2 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #0f172a;
}

@media (max-width: 1200px) {
    .xbrands-shop-front-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .xbrands-shop-front-categories,
    .xbrands-b2b-cart-ui .woocommerce,
    .xbrands-cart-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .xbrands-shop-front-categories__grid {
        grid-template-columns: 1fr;
    }

    .xbrands-shop-front-categories__card {
        padding: 14px;
    }
}

.xbrands-shop-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.xbrands-shop-hero__controls .xbrands-shop-toolbar {
  margin: 0;
  min-width: 420px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
}

.xbrands-shop-toolbar {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.xbrands-shop-toolbar__left {
  display: grid;
  gap: 2px;
}

.xbrands-shop-toolbar__left strong {
  font-size: 14px;
  color: var(--xb-ui-text);
}

.xbrands-shop-toolbar__left span {
  font-size: 13px;
  color: var(--xb-ui-muted);
}

.xbrands-shop-toolbar__right {
  gap: 10px;
}

.xbrands-market-badge.is-toolbar {
  min-width: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--xb-ui-surface-alt);
}

.xbrands-market-badge.is-toolbar .xbrands-market-badge__label {
  font-size: 10px;
}

.xbrands-market-badge.is-toolbar .xbrands-market-badge__value {
  font-size: 13px;
}

.xbrands-shop-front-sections {
  max-width: 1360px;
  margin: 0 auto 24px;
  padding: 0 4px;
}

.xbrands-shop-front-sections__intro {
  margin-bottom: 16px;
}

.xbrands-shop-front-sections__eyebrow,
.xbrands-shop-front-section__eyebrow,
.xbrands-single-b2b-panel__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-shop-front-sections__intro h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
  color: var(--xb-ui-text);
}

.xbrands-shop-front-sections__intro p,
.xbrands-shop-front-section__head p {
  margin: 0;
  color: var(--xb-ui-muted);
  font-size: 14px;
}

.xbrands-shop-front-section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--xb-ui-border);
  border-radius: var(--xb-ui-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.xbrands-shop-front-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.xbrands-shop-front-section__head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--xb-ui-text);
}

.xbrands-shop-front-section__link {
  color: var(--xb-ui-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.xbrands-shop-front-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.xbrands-shop-front-card {
  overflow: hidden;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: #fff;
}

.xbrands-shop-front-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: #fff;
}

.xbrands-shop-front-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.xbrands-shop-front-card__body {
  padding: 16px;
}

.xbrands-shop-front-card__brand {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-shop-front-card__body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.xbrands-shop-front-card__body h4 a {
  color: var(--xb-ui-text);
  text-decoration: none;
}

.xbrands-shop-front-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--xb-ui-muted);
  font-size: 12px;
}

.xbrands-shop-front-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--xb-ui-text);
}

.xbrands-single-trade-card__head strong {
  font-size: 18px;
}

.xbrands-single-b2b-sections {
  margin-top: 28px;
}

.xbrands-single-b2b-sections__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.xbrands-single-b2b-panel {
  padding: 22px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: #fff;
}

.xbrands-single-b2b-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--xb-ui-text);
}

.xbrands-single-b2b-panel__content,
.xbrands-single-b2b-list {
  color: var(--xb-ui-text);
  font-size: 14px;
  line-height: 1.7;
}

.xbrands-single-b2b-list {
  margin: 0;
  padding-left: 18px;
}

.xbrands-single-b2b-list li + li {
  margin-top: 10px;
}

.xbrands-b2b-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: start;
}

.xbrands-b2b-cart-table,
.xbrands-b2b-cart-summary {
  padding: 0;
}

.xbrands-b2b-cart-table {
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.xbrands-b2b-cart-table__head {
  display: grid;
  grid-template-columns: 1.7fr 0.6fr 0.55fr 0.6fr;
  gap: 18px;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--xb-ui-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-cart-row {
  display: grid;
  grid-template-columns: 1.7fr 0.6fr 0.55fr 0.6fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: #fff;
}

.xbrands-b2b-cart-table__body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.xbrands-b2b-cart-row__product {
  display: grid;
  grid-template-columns: auto 70px minmax(0,1fr);
  gap: 14px;
  align-items: center;
}

.xbrands-b2b-cart-row__remove {
  color: var(--xb-ui-text);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}

.xbrands-b2b-cart-row__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 12px;
  overflow: hidden;
}

.xbrands-b2b-cart-row__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.xbrands-b2b-cart-row__name {
  color: #4ea0dd;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.xbrands-b2b-cart-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-cart-row__price,
.xbrands-b2b-cart-row__subtotal {
  display: grid;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--xb-ui-text);
}

.xbrands-b2b-cart-row__price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-cart-row__qty .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.xbrands-b2b-cart-row__qty .qty {
  width: 64px;
  height: 42px;
  border: 0;
  text-align: center;
}

.xbrands-b2b-cart-table__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.xbrands-b2b-cart-summary {
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
}

.xbrands-b2b-cart-summary__panel {
  padding: 18px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 16px;
  background: var(--xb-ui-surface-alt);
}

.xbrands-b2b-cart-summary__panel h3,
.xbrands-b2b-cart-summary__totals h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--xb-ui-text);
}

.xbrands-b2b-cart-summary__panel p {
  margin: 0;
  color: var(--xb-ui-muted);
  font-size: 14px;
  line-height: 1.7;
}

.xbrands-b2b-cart-summary__totals {
  margin-top: 18px;
}

.xbrands-b2b-cart-summary__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--xb-ui-border);
  color: var(--xb-ui-text);
}

.xbrands-b2b-cart-summary__line span {
  color: var(--xb-ui-muted);
}

.xbrands-b2b-cart-summary__line.is-total strong {
  font-size: 24px;
}

.xbrands-b2b-cart-summary__shipping {
  padding: 14px 0;
  border-bottom: 1px solid var(--xb-ui-border);
}

.xbrands-b2b-cart-summary__shipping-title {
  display: block;
  margin-bottom: 10px;
  color: var(--xb-ui-text);
  font-weight: 700;
}

.xbrands-b2b-cart-summary__shipping-options {
  display: grid;
  gap: 10px;
}

.xbrands-b2b-cart-summary__shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--xb-ui-muted);
}

.xbrands-b2b-cart-summary__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 12px;
  background: #5cb5d3;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .xbrands-shop-hero__main,
  .xbrands-single-b2b-sections__grid,
  .xbrands-b2b-cart-layout,
  .xbrands-shop-front-grid {
    grid-template-columns: 1fr;
  }

  .xbrands-shop-hero__controls .xbrands-shop-toolbar {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .xbrands-shop-front-grid,
  .xbrands-b2b-cart-table__head,
  .xbrands-b2b-cart-row {
    grid-template-columns: 1fr;
  }

  .xbrands-b2b-cart-row__product {
    grid-template-columns: auto 56px minmax(0,1fr);
  }
}


.xbrands-shop-hero__top-actions {
  align-items: flex-end;
}

.xbrands-portal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xbrands-portal-links--hero {
  justify-content: flex-end;
  width: 100%;
}

.xbrands-portal-links--cart {
  margin-top: 12px;
}

.xbrands-portal-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--xb-ui-border-strong);
  background: rgba(255,255,255,0.92);
  color: var(--xb-ui-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.xbrands-portal-links__item:hover {
  background: #fff;
  border-color: var(--xb-ui-accent);
  transform: translateY(-1px);
}

.xbrands-loop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.xbrands-b2b-shop-ui .products .product .xbrands-loop-actions .xbrands-loop-button,
.xbrands-b2b-shop-ui ul.products li.product .xbrands-loop-actions .xbrands-loop-button,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .xbrands-loop-actions .xbrands-loop-button {
  display: inline-flex !important;
  width: 100%;
}

.xbrands-b2b-shop-ui .products .product .xbrands-loop-actions .xbrands-loop-button--secondary,
.xbrands-b2b-shop-ui ul.products li.product .xbrands-loop-actions .xbrands-loop-button--secondary,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .xbrands-loop-actions .xbrands-loop-button--secondary {
  background: #fff;
  color: var(--xb-ui-accent) !important;
}

@media (max-width: 960px) {
  .xbrands-shop-hero__top-actions {
    align-items: stretch;
  }

  .xbrands-portal-links--hero {
    justify-content: flex-start;
  }
}

/* v0.4.3 buyer-first ordering */
.xbrands-b2b-shop-ui .products .product a.button:not(.xbrands-loop-button),
.xbrands-b2b-shop-ui ul.products li.product a.button:not(.xbrands-loop-button),
.xbrands-b2b-shop-ui .wd-products .product-grid-item a.button:not(.xbrands-loop-button) {
  display: none !important;
}

.xbrands-loop-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.xbrands-loop-actions__inner {
  display: block;
  width: 100%;
}

.xbrands-loop-purchase {
  display: grid;
  grid-template-columns: minmax(92px, 110px) 1fr;
  gap: 10px;
  align-items: stretch;
}

.xbrands-loop-purchase__qty .quantity,
.xbrands-loop-purchase__qty input.qty,
.xbrands-loop-purchase__qty .qty {
  width: 100% !important;
  min-width: 0 !important;
}

.xbrands-loop-purchase__qty input.qty,
.xbrands-bulk-order-matrix__qty {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-weight: 600;
}

.xbrands-loop-actions__hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--xb-ui-muted);
}

.xbrands-loop-purchase--variable {
  grid-template-columns: 1fr;
}

.xbrands-loop-purchase__select select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}

.xbrands-loop-purchase__row {
  display: grid;
  grid-template-columns: minmax(92px, 110px) 1fr;
  gap: 10px;
  align-items: stretch;
}

.xbrands-b2b-shop-ui .products .product .xbrands-loop-actions .xbrands-loop-button,
.xbrands-b2b-shop-ui ul.products li.product .xbrands-loop-actions .xbrands-loop-button,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .xbrands-loop-actions .xbrands-loop-button {
  min-height: 46px;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--xb-ui-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--xb-ui-accent);
}

.xbrands-b2b-shop-ui .products .product .xbrands-loop-actions .xbrands-loop-button--secondary,
.xbrands-b2b-shop-ui ul.products li.product .xbrands-loop-actions .xbrands-loop-button--secondary,
.xbrands-b2b-shop-ui .wd-products .product-grid-item .xbrands-loop-actions .xbrands-loop-button--secondary {
  background: #fff;
  color: var(--xb-ui-accent) !important;
}

.xbrands-bulk-order-section {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--xb-ui-border);
  border-radius: var(--xb-ui-radius-lg);
  background: var(--xb-ui-surface);
  box-shadow: var(--xb-ui-shadow-soft);
}

.xbrands-bulk-order-section__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-bulk-order-section__head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--xb-ui-text);
}

.xbrands-bulk-order-section__head p {
  margin: 0 0 18px;
  color: var(--xb-ui-muted);
}

.xbrands-bulk-order-matrix__table {
  border: 1px solid var(--xb-ui-border);
  border-radius: 16px;
  overflow: hidden;
}

.xbrands-bulk-order-matrix__row {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(120px, 1fr) 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--xb-ui-border);
}

.xbrands-bulk-order-matrix__row:first-child {
  border-top: 0;
}

.xbrands-bulk-order-matrix__row.is-head {
  background: var(--xb-ui-surface-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--xb-ui-muted);
}

.xbrands-bulk-order-matrix__variant {
  display: grid;
  gap: 4px;
}

.xbrands-bulk-order-matrix__variant strong {
  color: var(--xb-ui-text);
}

.xbrands-bulk-order-matrix__variant span,
.xbrands-bulk-order-matrix__unavailable {
  font-size: 12px;
  color: var(--xb-ui-muted);
}

.xbrands-bulk-order-matrix__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 18px;
}

.xbrands-bulk-order-matrix__submit {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
}

.xbrands-bulk-order-matrix__secondary {
  color: var(--xb-ui-text);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 960px) {
  .xbrands-loop-purchase {
    grid-template-columns: 1fr;
  }

  .xbrands-bulk-order-matrix__table {
    overflow-x: auto;
  }

  .xbrands-bulk-order-matrix__row {
    min-width: 780px;
  }
}

/* v0.4.4 purchase flow refinements */
.xbrands-shop-hero__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--xb-ui-accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--xb-ui-accent);
}

.xbrands-shop-hero__checkout:hover {
  opacity: .94;
}

.xbrands-single-rrp-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #f0dfb2;
  color: var(--xb-ui-text);
}

.xbrands-single-rrp-summary__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6a16;
}

.xbrands-single-rrp-summary strong {
  font-size: 16px;
}

.xbrands-single-trade-card__item.is-emphasis {
  background: #fff8e8;
  border-color: #f0dfb2;
}

.xbrands-single-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.xbrands-single-quick-actions__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--xb-ui-border-strong);
  background: #fff;
  color: var(--xb-ui-text);
  text-decoration: none;
  font-weight: 700;
}

.xbrands-single-quick-actions__link.is-primary {
  background: var(--xb-ui-accent);
  border-color: var(--xb-ui-accent);
  color: #fff;
}

.xbrands-single-quick-actions__link.is-secondary {
  background: var(--xb-ui-surface-alt);
}

.xbrands-loop-rrp {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
}

.xbrands-loop-rrp span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.xbrands-bulk-order-section {
  margin: 16px 0 18px;
  border-color: #d8e1ee;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.xbrands-bulk-order-section__head {
  display: grid;
  gap: 6px;
}

.xbrands-bulk-order-section__head p {
  margin-bottom: 14px;
}

.xbrands-bulk-order-matrix__actions {
  align-items: center;
  justify-content: flex-start;
}

.xbrands-bulk-order-matrix__secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--xb-ui-border);
  background: #fff;
}

.xbrands-bulk-order-matrix__secondary.is-muted {
  background: var(--xb-ui-surface-alt);
}

.xbrands-b2b-shop-ui.single-product form.cart {
  margin-top: 12px;
}

@media (max-width: 960px) {
  .xbrands-shop-hero__top-actions {
    align-items: stretch;
  }

  .xbrands-shop-hero__checkout {
    width: 100%;
  }

  .xbrands-single-quick-actions__link,
  .xbrands-bulk-order-matrix__secondary,
  .xbrands-bulk-order-matrix__submit {
    width: 100%;
  }
}


/* v0.4.5 fix: keep native variable add-to-cart visible and demote bulk matrix */
.xbrands-bulk-order-section {
  margin-top: 28px;
}
.xbrands-bulk-order-section__toggle {
  border: 1px solid #d7dee7;
  border-radius: 18px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.xbrands-bulk-order-section__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.xbrands-bulk-order-section__summary::-webkit-details-marker { display:none; }
.xbrands-bulk-order-section__summary strong {
  font-size: 26px;
  line-height: 1.15;
  color: #0f2342;
}
.xbrands-bulk-order-section__summary-copy {
  color: #5a677b;
}
.xbrands-bulk-order-section__toggle[open] .xbrands-bulk-order-section__summary {
  border-bottom: 1px solid #eef2f6;
}
.xbrands-bulk-order-section__head {
  padding: 18px 22px 0;
}
.xbrands-bulk-order-matrix {
  padding: 0 22px 22px;
}
.single-product .xbrands-bulk-order-section + .xbrands-single-trade-data {
  margin-top: 24px;
}


/* v0.4.7 fix: stronger single-product order module */
.xbrands-b2b-shop-ui.single-product form.cart {
  margin-top: 0;
}

.xbrands-single-order-box {
  margin: 20px 0 28px;
  padding: 20px 22px 22px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.xbrands-single-order-box__head {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.xbrands-single-order-box__title {
  display: grid;
  gap: 6px;
}

.xbrands-single-order-box__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xb-ui-text-muted);
}

.xbrands-single-order-box__title strong {
  font-size: 30px;
  line-height: 1.1;
  color: var(--xb-ui-accent);
}

.xbrands-single-order-box__title p {
  margin: 0;
  font-size: 14px;
  color: var(--xb-ui-text-muted);
}

.xbrands-single-order-box__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.xbrands-single-order-box__meta-item {
  padding: 14px 16px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.xbrands-single-order-box__meta-item span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xb-ui-text-muted);
}

.xbrands-single-order-box__meta-item strong {
  font-size: 22px;
  line-height: 1.15;
  color: var(--xb-ui-text);
}

.xbrands-single-order-box__meta-item.is-rrp {
  background: #fff8e8;
  border-color: #f0dfb2;
}

.xbrands-single-order-box .variations {
  margin-bottom: 10px;
}

.xbrands-single-order-box .variations td,
.xbrands-single-order-box .variations th,
.xbrands-single-order-box .variations label {
  color: var(--xb-ui-text);
}

.xbrands-single-order-box .variations th.label {
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.xbrands-single-order-box .variations select {
  min-height: 54px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  font-size: 15px;
}

.xbrands-single-order-box__hint {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--xb-ui-text-muted);
}

.xbrands-single-order-box__qty-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xb-ui-text-muted);
}

.xbrands-single-order-box .quantity {
  margin-right: 14px !important;
}

.xbrands-single-order-box .quantity input.qty,
.xbrands-single-order-box input.qty {
  min-height: 54px;
  border: 1px solid var(--xb-ui-border-strong);
  border-radius: 14px;
  background: #fff;
}

.xbrands-b2b-shop-ui.single-product .xbrands-single-order-box .single_add_to_cart_button,
.xbrands-b2b-shop-ui.single-product .xbrands-single-order-box .button.alt {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--xb-ui-accent);
  border-color: var(--xb-ui-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.xbrands-b2b-shop-ui.single-product .xbrands-single-order-box .single_add_to_cart_button:hover,
.xbrands-b2b-shop-ui.single-product .xbrands-single-order-box .button.alt:hover {
  opacity: .96;
}

.xbrands-single-order-box .woocommerce-variation-add-to-cart,
.xbrands-single-order-box .single_variation_wrap {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .xbrands-single-order-box {
    padding: 18px 16px;
  }

  .xbrands-single-order-box__title strong {
    font-size: 24px;
  }

  .xbrands-single-order-box__meta {
    grid-template-columns: 1fr;
  }
}


/* v0.4.8 single product structure */
.xbrands-single-price-summary {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.xbrands-single-price-summary__rrp,
.xbrands-single-price-summary__trade {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.xbrands-single-price-summary__rrp span,
.xbrands-single-price-summary__trade span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xb-ui-muted);
}

.xbrands-single-price-summary__rrp strong {
  font-size: 18px;
  color: var(--xb-ui-text);
}

.xbrands-single-price-summary__trade strong {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--xb-ui-text);
}

.xbrands-single-price-summary__trade em {
  font-size: 13px;
  font-style: normal;
  color: var(--xb-ui-muted);
}

.xbrands-single-rrp-summary { display:none !important; }

.xbrands-single-teaser {
  margin: 0 0 18px;
  color: var(--xb-ui-muted);
}

.xbrands-single-teaser__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.7;
}

.xbrands-single-teaser__more {
  display: inline-flex;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--xb-ui-text);
  text-decoration: none;
}

.xbrands-single-order-box {
  margin-top: 8px;
  border-width: 1px;
}

.xbrands-single-order-box__head {
  display: block;
  margin-bottom: 14px;
}

.xbrands-single-order-box__title strong {
  font-size: 30px;
}

.xbrands-single-order-box__title p {
  max-width: 720px;
}

.xbrands-single-order-box__meta {
  display:none;
}

.xbrands-single-trade-card {
  margin-top: 14px;
  background: #f8fafc;
}

.xbrands-single-b2b-panel__block + .xbrands-single-b2b-panel__block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--xb-ui-border);
}

.xbrands-single-b2b-panel__block h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--xb-ui-text);
}

.xbrands-bulk-order-section {
  margin-top: 18px;
}

.xbrands-bulk-order-section__summary strong {
  font-size: 28px;
}


/* v0.4.9 price and order box refinements */
.xbrands-single-price-summary {
  gap: 8px;
  margin: 14px 0 16px;
}

.xbrands-single-price-summary__rrp {
  order: 1;
}

.xbrands-single-price-summary__rrp span {
  color: var(--xb-ui-muted);
}

.xbrands-single-price-summary__rrp strong {
  font-size: 16px;
  font-weight: 700;
}

.xbrands-single-price-summary__trade {
  order: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  column-gap: 12px;
}

.xbrands-single-price-summary__trade-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-single-price-summary__trade strong .woocommerce-Price-amount,
.xbrands-single-price-summary__trade strong {
  font-size: 46px;
  line-height: 0.95;
  font-weight: 800;
  color: var(--xb-ui-text);
}

.xbrands-single-price-summary__trade em {
  font-weight: 700;
}

.xbrands-single-order-box__rrp {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 8px;
}

.xbrands-single-order-box__rrp span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-single-order-box__rrp strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--xb-ui-text);
}

.xbrands-single-order-box__teaser {
  margin: 0 0 10px;
}

.xbrands-single-order-box__teaser p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--xb-ui-text-soft, #43536a);
}

.xbrands-single-order-box__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--xb-ui-text);
  text-decoration: none;
}

.xbrands-single-order-box__title > p:last-child {
  margin-top: 10px;
}


/* v0.4.9.6 fix: keep price summary compact and constrain lower sections */
.xbrands-single-price-summary__trade {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.xbrands-single-price-summary__trade strong .woocommerce-Price-amount,
.xbrands-single-price-summary__trade strong {
  font-size: 28px;
  line-height: 1.05;
}

.xbrands-single-price-summary__trade em {
  margin-left: 2px;
  white-space: nowrap;
}

.xbrands-bulk-order-section,
.xbrands-single-b2b-sections {
  max-width: 1290px;
  margin-left: auto;
  margin-right: auto;
}

.xbrands-bulk-order-section {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.xbrands-bulk-order-section__toggle {
  max-width: 1290px;
  margin: 0 auto;
}

@media (max-width: 1340px) {
  .xbrands-bulk-order-section,
  .xbrands-single-b2b-sections {
    max-width: calc(100% - 32px);
  }
}

/* v0.4.9.7 fix: samlet pris inne i bestillingsboksen */
.xbrands-single-price-summary {
  display: none !important;
}

.xbrands-single-order-box__pricing {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.xbrands-single-order-box__pricing-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.xbrands-single-order-box__pricing-line span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-single-order-box__pricing-line.is-rrp strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--xb-ui-text);
}

.xbrands-single-order-box__pricing-line.is-trade strong,
.xbrands-single-order-box__pricing-line.is-trade strong .woocommerce-Price-amount {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: var(--xb-ui-text);
}

.xbrands-single-order-box__pricing-line em {
  font-style: normal;
  font-weight: 700;
  color: var(--xb-ui-muted);
  white-space: nowrap;
}

.xbrands-single-order-box__rrp {
  display: none;
}

.xbrands-single-order-box {
  margin-top: 0;
}

.xbrands-bulk-order-section {
  max-width: 1290px;
  margin: 18px auto 0;
}

.xbrands-single-b2b-sections {
  max-width: 1290px;
  margin: 24px auto 0;
}


/* v0.4.9.8 fix: mindre dominerende hurtigknapper og mer plasseffektiv topp */
.single-product div.product .entry-summary,
.single-product .product .entry-summary {
  position: relative;
}

.single-product div.product .entry-summary .xbrands-single-quick-actions--top,
.single-product .product .entry-summary .xbrands-single-quick-actions--top {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
  gap: 8px;
  z-index: 3;
}

.single-product div.product .entry-summary .product_title,
.single-product .product .entry-summary .product_title {
  margin-top: 0;
  padding-right: 250px;
}

.single-product .xbrands-single-quick-actions--top .xbrands-single-quick-actions__link {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.single-product .xbrands-single-quick-actions--top .xbrands-single-quick-actions__link.is-secondary {
  background: transparent;
  border-color: transparent;
  color: var(--xb-ui-text-muted);
  padding-left: 0;
  padding-right: 4px;
}

.single-product .xbrands-single-quick-actions--top .xbrands-single-quick-actions__link.is-secondary::before {
  content: '\2190';
  margin-right: 6px;
}

.single-product .xbrands-single-quick-actions--top .xbrands-single-quick-actions__link:not(.is-primary):not(.is-secondary) {
  background: #fff;
  border-color: var(--xb-ui-border);
}

.single-product .xbrands-single-quick-actions--top .xbrands-single-quick-actions__link.is-primary {
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 1024px) {
  .single-product div.product .entry-summary .xbrands-single-quick-actions--top,
  .single-product .product .entry-summary .xbrands-single-quick-actions--top {
    position: static;
    margin-bottom: 12px;
  }

  .single-product div.product .entry-summary .product_title,
  .single-product .product .entry-summary .product_title {
    padding-right: 0;
  }
}


/* v0.4.9.10 fix: move back above gallery and align stock copy */
.xbrands-single-back-link {
  margin: -10px 0 10px;
  display: flex;
  justify-content: flex-start;
}

.xbrands-single-back-link__anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--xb-ui-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.xbrands-single-back-link__anchor:hover {
  color: var(--xb-ui-text);
}

.xbrands-single-quick-actions--top {
  justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 8px;
}

.xbrands-single-quick-actions--top .xbrands-single-quick-actions__link {
  min-height: 40px;
  padding: 8px 14px;
}

.xbrands-single-order-box__stock {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--xb-ui-text);
}

.xbrands-single-order-box__stock.out-of-stock,
.xbrands-single-order-box__stock.outofstock {
  color: #9f1239;
}

.xbrands-single-order-box__stock.available-on-backorder {
  color: #92400e;
}

@media (max-width: 960px) {
  .xbrands-single-back-link {
    margin: 0 0 8px;
  }

  .xbrands-single-quick-actions--top {
    justify-content: flex-start;
  }
}


/* v0.4.9.11 fix: move back link into gallery and keep simple products simple */
.woocommerce-product-gallery,
.product-gallery {
  position: relative;
}

.woocommerce-product-gallery .xbrands-single-back-link,
.product-gallery .xbrands-single-back-link {
  display: block;
  margin: -10px 0 10px;
}

.single-product div.product > .xbrands-single-back-link,
.single-product .product > .xbrands-single-back-link {
  display: none;
}


/* v0.4.9.12 compact archive hero + shortcut cleanup */
.xbrands-shop-hero {
  padding: 14px 18px;
  margin-bottom: 14px;
}

.xbrands-shop-hero__top,
.xbrands-shop-hero__nav-row {
  gap: 12px;
}

.xbrands-shop-hero__top-actions {
  gap: 8px;
  align-items: center;
}

.xbrands-shop-hero__main {
  padding: 10px 0 8px;
}

.xbrands-shop-hero h1 {
  font-size: clamp(24px, 2.9vw, 40px);
}

.xbrands-shop-hero p {
  margin-top: 6px;
}

.xbrands-company-badge__text strong {
  font-size: 16px;
}

.xbrands-company-badge__logo {
  min-width: 52px;
  height: 38px;
}

.xbrands-b2b-shop-search {
  width: min(100%, 540px);
  min-height: 44px;
  padding: 0 8px 0 12px;
}

.xbrands-b2b-shop-search input[type="search"] {
  height: 42px;
}

.xbrands-b2b-shop-search button,
.xbrands-shop-hero__checkout,
.xbrands-portal-links__item,
.xbrands-shop-hero__cart {
  min-height: 40px;
}

.xbrands-shop-hero__cart,
.xbrands-shop-hero__checkout,
.xbrands-portal-links__item {
  border-radius: 12px;
}

.xbrands-shop-hero__checkout,
.xbrands-portal-links__item {
  padding: 8px 12px;
  font-size: 12px;
}

.xbrands-shop-hero__cart {
  padding: 0 12px;
}

.xbrands-portal-links {
  gap: 8px;
}

.xbrands-portal-links--hero {
  margin-top: 2px;
}

.xbrands-shop-toolbar {
  padding: 10px 14px;
  border-radius: 14px;
}

.xbrands-shop-toolbar__left strong {
  display: block;
  line-height: 1.15;
}

.xbrands-shop-toolbar__left span {
  font-size: 13px;
}

.xbrands-buyer-shortcuts {
  max-width: 1290px;
  margin: 8px auto 20px;
  padding: 0 2px;
}

.xbrands-buyer-shortcuts__intro {
  margin-bottom: 10px;
}

.xbrands-buyer-shortcuts__eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-buyer-shortcuts__intro h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.08;
  color: var(--xb-ui-text);
}

.xbrands-buyer-shortcuts__intro p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--xb-ui-muted);
  font-size: 14px;
  line-height: 1.55;
}

.xbrands-buyer-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.xbrands-buyer-shortcut-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--xb-ui-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--xb-ui-shadow-soft);
  text-decoration: none;
  color: var(--xb-ui-text);
}

.xbrands-buyer-shortcut-card:hover {
  border-color: var(--xb-ui-border-strong);
  transform: translateY(-1px);
}

.xbrands-buyer-shortcut-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xb-ui-muted);
}

.xbrands-buyer-shortcut-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.xbrands-buyer-shortcut-card p {
  margin: 0;
  color: var(--xb-ui-muted);
  font-size: 14px;
  line-height: 1.5;
}

.xbrands-buyer-shortcut-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--xb-ui-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.xbrands-shop-front-sections {
  max-width: 1290px;
  margin: 0 auto 20px;
}

.xbrands-shop-front-sections__intro {
  margin-bottom: 12px;
}

.xbrands-shop-front-sections__intro h2 {
  font-size: clamp(22px, 2.1vw, 32px);
}

.xbrands-shop-front-sections__intro p {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .xbrands-buyer-shortcuts__grid {
    grid-template-columns: 1fr;
  }

  .xbrands-shop-hero {
    padding: 14px;
  }

  .xbrands-shop-hero__top-actions {
    align-items: stretch;
  }
}
