:root {
  --b2b-green: #198754;
  --b2b-green-dark: #146c43;
  --b2b-green-soft: rgba(25, 135, 84, 0.12);
  --b2b-border: rgba(25, 135, 84, 0.25);
  --b2b-topbar-height: 60px;
}

.b2b-topbar {
  background: var(--b2b-green);
  border-bottom-color: var(--b2b-green-dark) !important;
  min-height: var(--b2b-topbar-height);
}

.b2b-topbar .navbar-toggler {
  background-color: #fff;
  border-color: #fff;
}

.b2b-topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(4px);
}

.b2b-footer {
  background: rgba(255, 255, 255, 0.85);
}

.b2b-footer a {
  color: #14532d;
  text-decoration: none;
}

.b2b-footer a:hover {
  text-decoration: underline;
}

.catalog-controls-card {
  position: sticky;
  top: calc(var(--b2b-topbar-offset, var(--b2b-topbar-height)) + 0.5rem);
  z-index: 1020;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

#catalogFiltersRow .form-label {
  font-size: 0.78rem;
  margin-bottom: 0.15rem !important;
}

#catalogFiltersRow .form-control,
#catalogFiltersRow .btn {
  min-height: calc(1.4em + 0.55rem + calc(var(--bs-border-width) * 2));
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

#catalogFiltersDivider {
  margin-top: 0.55rem !important;
  margin-bottom: 0.55rem !important;
}

.navbar-brand {
  color: var(--b2b-green-dark) !important;
  font-size: 1rem;
}

.b2b-topbar .navbar-brand {
  color: #fff !important;
}

.b2b-mobile-toolbar {
  display: none;
}

.topbar-catalog-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: none;
  margin-left: 0.8rem;
  margin-right: 0.8rem;
}

.topbar-search {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-search .form-control {
  min-height: calc(1.35em + 0.45rem + calc(var(--bs-border-width) * 2));
}

.topbar-view-switch .btn {
  width: 2.15rem;
  min-width: 2.15rem;
  padding: 0.2rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-view-control--desktop {
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.catalog-view-label {
  font-size: 0.65rem;
  line-height: 1.1;
  color: #fff;
}

.b2b-topbar .topbar-actions {
  min-width: 0;
}

#statusLinks {
  min-width: 0;
}

.b2b-topbar .topbar-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

#accountMenu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

#accountMenu > .btn,
#accountMenu > a.btn {
  white-space: nowrap;
}

#accountMenu > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 14rem;
}

#accountMenu .account-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#accountMenu > .dropdown-toggle::after {
  flex-shrink: 0;
  margin-left: 0;
}

.btn-primary {
  --bs-btn-bg: var(--b2b-green);
  --bs-btn-border-color: var(--b2b-green);
  --bs-btn-hover-bg: var(--b2b-green-dark);
  --bs-btn-hover-border-color: var(--b2b-green-dark);
  --bs-btn-active-bg: var(--b2b-green-dark);
  --bs-btn-active-border-color: var(--b2b-green-dark);
  --bs-btn-focus-shadow-rgb: 25, 135, 84;
}

.btn-outline-primary {
  --bs-btn-color: var(--b2b-green);
  --bs-btn-border-color: var(--b2b-green);
  --bs-btn-hover-bg: var(--b2b-green);
  --bs-btn-hover-border-color: var(--b2b-green);
  --bs-btn-active-bg: var(--b2b-green-dark);
  --bs-btn-active-border-color: var(--b2b-green-dark);
  --bs-btn-focus-shadow-rgb: 25, 135, 84;
}

.b2b-topbar .topbar-actions .btn,
.b2b-topbar .topbar-view-switch .btn {
  --bs-btn-color: var(--b2b-green-dark);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--b2b-green-dark);
  --bs-btn-hover-bg: #e9ecef;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--b2b-green-dark);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.b2b-topbar .topbar-view-switch .btn.active {
  --bs-btn-active-bg: #d1e7dd;
  box-shadow: none;
}

.b2b-topbar .topbar-view-switch {
  border: 1px solid var(--b2b-green-dark);
  border-radius: 0.5rem;
  overflow: hidden;
}

.b2b-topbar .topbar-view-switch .btn {
  --bs-btn-border-color: var(--b2b-green-dark);
  --bs-btn-active-border-color: var(--b2b-green-dark);
}

.b2b-topbar .topbar-view-switch .btn:focus-visible,
.b2b-topbar .navbar-toggler:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a {
  color: var(--b2b-green-dark);
}

a:hover {
  color: var(--b2b-green);
}

.b2b-contacts-content {
  line-height: 1.55;
}

.support-modal-dialog {
  max-width: 760px;
}

.support-modal-dialog .modal-content {
  border-color: rgba(25, 135, 84, 0.24);
}

.support-modal-header,
.support-modal-footer {
  background: rgba(25, 135, 84, 0.08);
}

.support-modal-body .form-group {
  margin-bottom: 0.65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--b2b-green);
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.2);
}

.card {
  border-color: rgba(25, 135, 84, 0.12);
}

.list-group-item.active {
  background-color: var(--b2b-green) !important;
  border-color: var(--b2b-green) !important;
}

.list-group-item:hover {
  background-color: rgba(25, 135, 84, 0.06);
}

.table-light {
  --bs-table-bg: rgba(25, 135, 84, 0.08);
}

.offcanvas-header,
.modal-header {
  background: rgba(25, 135, 84, 0.08);
  border-bottom-color: rgba(25, 135, 84, 0.2);
}

.modal-footer {
  border-top-color: rgba(25, 135, 84, 0.2);
}

.product-thumb {
  width: 104px;
  height: 58px;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid rgba(25, 135, 84, 0.2);
  background: #fff;
}

.product-thumb--grid {
  width: 138px;
  height: 78px;
}

.product-media {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-media--compact {
  gap: 0.15rem;
}

.product-media--detail {
  width: 100%;
}

.product-media--tile {
  position: relative;
  width: 100%;
}

.product-photo-zoom {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 5px;
  border: 1px solid rgba(25, 135, 84, 0.35);
  border-radius: 0.4rem;
  background: #fff;
}

.product-photo-zoom img {
  object-fit: contain;
}

.product-photo-zoom:hover,
.product-photo-zoom:focus-visible {
  background: #d1e7dd;
}

.product-media--tile .product-main-thumb-btn {
  display: block;
  width: 100%;
}

.product-media--tile .product-thumb--grid {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
}

.product-card-tile .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.product-card-tile {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.product-card-tile:hover,
.product-card-tile:focus-within {
  border-color: rgba(25, 135, 84, 0.44);
  box-shadow: 0 10px 20px rgba(25, 135, 84, 0.18);
  transform: translateY(-1px);
}

.product-card-tile:hover .card-body,
.product-card-tile:focus-within .card-body {
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.12), rgba(25, 135, 84, 0.05));
}

.product-card-title-link {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card-cart-row {
  margin-top: auto;
}

.product-card-cart-row .catalog-cart-controls {
  width: 100%;
}

.product-card-cart-row .catalog-cart-controls--compact {
  display: grid !important;
  grid-template-columns: minmax(40px, 1fr) minmax(40px, 1fr) 50px minmax(40px, 1fr) minmax(40px, 1fr);
  gap: 0.12rem !important;
  align-items: stretch !important;
}

.product-card-cart-row .catalog-cart-controls--compact.catalog-cart-controls--single-action {
  display: flex !important;
  grid-template-columns: none;
  gap: 0 !important;
}

.product-card-cart-row .catalog-cart-controls--compact.catalog-cart-controls--single-action .btn {
  white-space: normal;
  line-height: 1.15;
  padding: 0.18rem 0.4rem;
}

.product-card-cart-row .catalog-cart-controls--compact .btn {
  --bs-btn-padding-y: 0.05rem;
  --bs-btn-padding-x: 0.18rem;
  --bs-btn-font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0.05rem 0.18rem;
  font-size: 0.86rem;
  line-height: 1;
  min-height: 31px;
  white-space: nowrap;
}

.product-card-cart-row .catalog-cart-controls--compact .catalog-package-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  white-space: normal;
  line-height: 1;
}

.product-card-cart-row .catalog-cart-controls--compact .catalog-package-btn-label {
  font-size: 0.82em;
  font-weight: 600;
}

.product-card-cart-row .catalog-cart-controls--compact .catalog-package-btn-qty {
  font-size: 0.72em;
  margin-top: 1px;
}

.product-card-cart-row .catalog-cart-controls--compact .form-control {
  width: 100%;
  min-width: 0;
  height: 31px;
  min-height: 31px;
  padding: 0.05rem 0.15rem;
  font-size: 0.86rem;
}

.product-card-cart-row .catalog-cart-controls--compact .catalog-cart-qty-wrap {
  width: 100%;
  min-width: 0;
}

.product-card-cart-row .catalog-cart-controls--compact-large-pack {
  gap: 0.16rem !important;
}

.product-card-cart-row .catalog-cart-controls--compact-large-pack .form-control {
  font-size: 0.9rem;
}

.product-card-cart-row .catalog-cart-controls--compact-large-pack .catalog-package-btn-qty {
  font-size: 0.64em;
}

.product-main-thumb-btn,
.product-mini-thumb-btn {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  border-radius: 0.5rem;
}

.product-main-thumb-btn {
  text-align: left;
}

.product-mini-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.product-mini-thumbs--detail {
  gap: 0.35rem;
}

.product-mini-thumb {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid rgba(25, 135, 84, 0.25);
  background: #fff;
}

.product-mini-thumbs--detail .product-mini-thumb {
  width: 54px;
  height: 54px;
  border-radius: 0.45rem;
}

.product-thumb--detail {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 0.75rem;
}

.product-gallery-modal-thumbs {
  max-height: 180px;
  overflow-y: auto;
}

.product-gallery-modal-thumb-btn {
  border: 1px solid rgba(25, 135, 84, 0.25);
  background: #fff;
  border-radius: 0.4rem;
  padding: 2px;
  line-height: 0;
}

.product-gallery-modal-thumb-btn.active {
  border-color: var(--b2b-green);
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

.product-gallery-modal-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.3rem;
}

#productGalleryModalImage {
  max-height: 70vh;
  object-fit: contain;
}

.sticky-sidebar {
  position: sticky;
  top: calc(var(--b2b-topbar-offset, var(--b2b-topbar-height)) + 0.75rem);
}

.sticky-sidebar .card {
  color: var(--b2b-green-dark);
}

.sidebar-categories-card {
  --bs-card-spacer-x: 0.25rem;
  --bs-card-spacer-y: 0.5rem;
}

.b2b-catalog-sidebar {
  background: var(--b2b-green);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.b2b-catalog-sidebar .card {
  background: transparent;
  border: 0;
  box-shadow: none !important;
}

.b2b-catalog-sidebar .card-body {
  padding: 0;
}

.b2b-catalog-sidebar #statusQuickFilters .btn.active {
  background: var(--b2b-status-color, var(--b2b-green-dark));
  border-color: var(--b2b-status-color, var(--b2b-green-dark));
  color: var(--b2b-status-text, #fff);
}

.b2b-account-table {
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
}

.cart-thank-you {
  margin: clamp(1rem, 8vh, 6rem) auto;
  padding: 1rem 1.5rem;
  max-width: 44rem;
  border-radius: 1rem;
  background: var(--b2b-green);
  color: #ffe000;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 600;
}

.cart-thank-you h2 { font-size: clamp(2rem, 3vw, 3rem); }
.cart-thank-you p { margin-bottom: 0; }
.cart-thank-you .btn { color: var(--b2b-green-dark); font-size: inherit; margin: 0.25rem; }

.catalog-favorite-group-link {
  width: var(--catalog-category-card-width, 12rem);
  max-width: 100%;
  align-self: flex-start;
  padding: 0.35rem;
  box-sizing: content-box;
  border-radius: 0.7rem;
  background: var(--b2b-green);
}

.catalog-favorite-group-heading {
  padding-bottom: 0.25rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.b2b-catalog-sidebar .sidebar-category-list {
  gap: 0.25rem;
}

.b2b-catalog-sidebar .b2b-category-item:not(.active) {
  background: #fff;
}

.b2b-catalog-sidebar .b2b-category-item:not(.active):hover {
  background: #e9ecef;
}

.b2b-catalog-sidebar .sidebar-category-list .b2b-category-item--custom.active {
  background: var(--b2b-cat-color, var(--b2b-green)) !important;
}

.b2b-catalog-sidebar .sidebar-category-list .b2b-category-item--favorites.active {
  background: #fff3cd !important;
}

.b2b-catalog-sidebar #statusQuickFilters .btn {
  background: #fff;
  color: var(--b2b-green-dark);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-catalog-sidebar #statusQuickFilters .btn:not(.active):hover,
.b2b-catalog-sidebar #statusQuickFilters .btn:not(.active):focus-visible {
  background: #e6f1ea;
  border-color: #80b79a;
  color: var(--b2b-green-dark);
}

.b2b-catalog-sidebar #statusQuickFilters .btn.active:hover,
.b2b-catalog-sidebar #statusQuickFilters .btn.active:focus-visible {
  background: var(--b2b-status-color, var(--b2b-green-dark));
  color: var(--b2b-status-text, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.sidebar-category-list {
  --bs-list-group-color: var(--b2b-green-dark);
  --bs-list-group-action-color: var(--b2b-green-dark);
  --bs-list-group-action-hover-color: var(--b2b-green-dark);
  --bs-list-group-action-active-color: var(--b2b-green-dark);
  min-height: 0;
}

.sidebar-category-list .b2b-category-item {
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  padding-left: 0.7rem;
  padding-right: 0.6rem;
  line-height: 1.2;
  background-color: #fff;
  border-radius: 0.25rem !important;
  min-height: 2.25rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.sidebar-category-list .b2b-category-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-category-list .b2b-category-item:has(.b2b-category-item-icons) {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0.25rem;
}

.sidebar-category-list .b2b-category-item-icons {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  max-width: 60%;
}

.sidebar-category-list .b2b-category-item-icon {
  width: calc(30px + 0.56rem);
  height: calc(30px + 0.56rem);
  min-width: 0;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.sidebar-category-list .b2b-category-item:hover {
  background-color: rgba(25, 135, 84, 0.1);
  border-left-color: rgba(25, 135, 84, 0.55);
}

.sidebar-category-list .b2b-category-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.18);
}

.sidebar-category-list .b2b-category-item--custom {
  border-left-color: rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.55);
  background-color: rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.08);
}

.sidebar-category-list .b2b-category-item--custom:hover {
  background-color: rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.16);
  border-left-color: var(--b2b-cat-color, var(--b2b-green));
  box-shadow: inset 0 0 0 1px rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.24), 0 4px 10px rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.16);
}

.sidebar-category-list .b2b-category-item--custom.active {
  color: var(--b2b-cat-text, #1f2937) !important;
  background: linear-gradient(90deg, rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.3), rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.14)) !important;
  border-color: rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.4) !important;
  border-left-color: var(--b2b-cat-color, var(--b2b-green)) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.36), 0 0 0 1px rgba(var(--b2b-cat-r, 25), var(--b2b-cat-g, 135), var(--b2b-cat-b, 84), 0.18);
}

.sidebar-category-list .b2b-category-item--all.active {
  background: var(--b2b-green-dark);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.sidebar-category-list .b2b-category-item--favorites {
  border-left-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.1);
}

.sidebar-category-list .b2b-category-item--favorites:hover {
  background: rgba(255, 193, 7, 0.18);
  border-left-color: rgba(255, 193, 7, 0.85);
}

.sidebar-category-list .b2b-category-item--favorites.active {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.35), rgba(255, 193, 7, 0.14)) !important;
  border-color: rgba(255, 193, 7, 0.5) !important;
  border-left-color: #ffc107 !important;
  color: #4a3a00 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.36), 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.catalog-section-jump-nav {
  border: 1px solid rgba(25, 135, 84, 0.16);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #e1f0e7, #edf6f1);
  padding: 0.55rem;
}

.catalog-section-jump-heading {
  color: #14532d;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.catalog-section-jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.55rem;
}

.catalog-section-jump-card {
  appearance: none;
  border: 1px solid rgba(25, 135, 84, 0.2);
  background: linear-gradient(180deg, #e1f0e7, #edf6f1);
  border-radius: 0.65rem;
  width: 100%;
  padding: 0.35rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.catalog-section-jump-card:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 135, 84, 0.44);
  box-shadow: 0 8px 16px rgba(25, 135, 84, 0.14);
  background: #d8ebdf;
}

.catalog-section-jump-card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.22rem rgba(25, 135, 84, 0.22);
}

.catalog-section-jump-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid rgba(25, 135, 84, 0.2);
  background: #fff;
}

.catalog-section-jump-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
  display: block;
}

.catalog-section-jump-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.table-products td,
.table-products th {
  vertical-align: middle;
}

.muted-small {
  font-size: 0.875rem;
}

.muted-small,
.table-products tbody .table-col-code {
  color: #6c757d;
}

.status-badge {
  font-size: 0.72rem;
}

.price-net-main {
  color: #111;
  font-weight: 600;
}

.price-gross-muted {
  color: #6c757d;
  font-size: 0.86em;
  font-weight: 500;
}

.stock-availability {
  font-size: 0.8rem;
  font-weight: 600;
  color: #146c43;
}

.stock-availability.out {
  color: #d9822b;
}

.topbar-filter-link.active,
.status-filter-link.active {
  background: var(--b2b-green);
  color: #fff !important;
  border-color: var(--b2b-green);
}

.product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.free-shipping-progress {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  line-height: 1.25;
}

.free-shipping-heading-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.1rem 0.25rem;
  white-space: nowrap;
}

.free-shipping-progress .progress {
  height: 0.375rem;
  margin-top: 0.25rem;
  background: rgba(25, 135, 84, 0.14);
}

.free-shipping-progress .progress-bar {
  background: linear-gradient(90deg, #198754, #34b36a);
}

.catalog-jump-tab {
  --jump-translate-y: 0%;
  position: absolute;
  left: 37.5%;
  top: 0;
  bottom: auto;
  z-index: 1020;
  transform: translate(-50%, calc(var(--jump-translate-y) - 0.8rem)) scale(0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--b2b-green-dark);
  border-radius: 0.72rem;
  background: var(--b2b-green);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  min-height: 38px;
  padding: 0.42rem 0.95rem 0.44rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 108, 67, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.24s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.catalog-jump-tab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, var(--jump-translate-y)) scale(1);
  animation: catalogJumpTabEnter 0.36s ease-out;
}

.catalog-jump-tab:hover,
.catalog-jump-tab:focus-visible {
  background: var(--b2b-green-dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 108, 67, 0.24);
  transform: translate(-50%, calc(var(--jump-translate-y) - 2px)) scale(1.02);
  animation: none;
}

.catalog-jump-tab:focus-visible {
  outline: 2px solid var(--b2b-green-dark);
  outline-offset: 3px;
}

@keyframes catalogJumpTabEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(var(--jump-translate-y) - 0.8rem)) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, calc(var(--jump-translate-y) + 2px)) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, var(--jump-translate-y)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-jump-tab {
    transition: none;
  }

  .catalog-jump-tab.is-visible,
  .catalog-jump-tab:hover,
  .catalog-jump-tab:focus-visible {
    animation: none;
    transform: translate(-50%, var(--jump-translate-y));
  }
}

.top-cart-trigger {
  --bs-btn-color: var(--b2b-green-dark);
  --bs-btn-bg: rgba(255, 255, 255, 0.88);
  --bs-btn-border-color: rgba(25, 135, 84, 0.5);
  --bs-btn-hover-color: var(--b2b-green-dark);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.96);
  --bs-btn-hover-border-color: var(--b2b-green);
  --bs-btn-active-color: var(--b2b-green-dark);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.98);
  --bs-btn-active-border-color: var(--b2b-green-dark);
  width: 24rem;
  max-width: 100%;
  min-height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(20, 108, 67, 0.18);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.top-cart-trigger-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

[data-cart-count] {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

[data-cart-count].cart-count-highlight {
  transform: scale(1.28);
  background-color: #dc3545 !important;
  box-shadow: 0 0 0 0.22rem rgba(220, 53, 69, 0.3);
}

.cart-header-content {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: 0;
}

.cart-header-content + .btn-close {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0;
  margin-left: 0.75rem;
}

.cart-sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.product-name-link {
  color: #14532d;
  text-decoration: none;
}

.product-name-link:hover {
  text-decoration: underline;
}

.product-short-desc {
  font-size: 0.86rem;
  color: #495057;
}

.product-short-desc p:last-child,
.product-detail-description p:last-child {
  margin-bottom: 0;
}

.product-detail-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-detail-wrap .card .card-body {
  padding: 1rem;
}

.product-detail-buy-box {
  display: inline-block;
  width: 100%;
  max-width: 520px;
}

.product-detail-buy-box .catalog-cart-controls-block {
  align-items: center;
}

.product-detail-cart-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem 3.5rem 2.75rem minmax(0, 1fr);
  gap: 0.25rem;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.product-detail-cart-controls.catalog-cart-controls--single-action {
  grid-template-columns: minmax(0, 1fr);
}

.product-detail-cart-controls .btn,
.product-detail-cart-controls .form-control {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.25rem;
  font-size: 0.875rem;
}

.product-detail-buy-box .product-detail-cart-controls .form-control {
  width: 100%;
  font-size: 1rem;
}

.product-detail-cart-controls .catalog-package-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.8125rem;
}

.product-detail-cart-controls .catalog-cart-btn--plus-one,
.product-detail-cart-controls .catalog-cart-btn--minus-one {
  white-space: nowrap;
}

.product-media--detail .product-main-thumb-btn {
  width: 100%;
}

.product-media--detail .product-thumb--detail {
  width: 100%;
  height: auto;
}

.catalog-table-section {
  max-width: 1200px;
}

.catalog-section-title {
  margin-bottom: 0.5rem;
  padding: 0.62rem 0.85rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  background: var(--b2b-green);
  border: 1px solid rgba(25, 135, 84, 0.28);
  border-left: 4px solid var(--b2b-green);
  border-radius: 0.5rem;
}

.catalog-table-section .catalog-section-title {
  font-size: 1.18rem;
  padding: 0.68rem 0.9rem;
}

.table-products {
  width: 100%;
  table-layout: fixed;
}

.table-products thead th {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.table-products tbody td {
  font-size: 0.84rem;
  padding-top: 0.34rem;
  padding-bottom: 0.34rem;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.table-products tbody tr {
  transition: filter 0.16s ease;
}

.table-products tbody tr:hover {
  filter: drop-shadow(0 4px 10px rgba(25, 135, 84, 0.16));
}

.table-products tbody tr:hover td {
  background-color: rgba(25, 135, 84, 0.1) !important;
}

.table-products .table-col-media {
  width: 5rem;
}

.table-products .table-col-media .product-media,
.table-products .table-col-media .product-main-thumb-btn,
.table-products .table-col-media .product-thumb {
  width: 100%;
  max-width: 100%;
}

.table-products .table-col-media .product-thumb {
  height: 3.5rem;
}

.table-products .table-col-product {
  width: auto;
  overflow-wrap: anywhere;
}

.table-products .table-col-code {
  width: 3.5rem;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.table-products .table-col-qty {
  width: 16rem;
}

.table-products tbody .table-col-qty {
  /* Reserve space for the cart label equally above and below the controls. */
  padding-block: 1.125rem;
}

.table-products .table-col-qty .table-col-qty-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.table-products .table-product-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.table-products .table-product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.table-products .table-product-title-row .product-name-link {
  font-size: 1rem;
  line-height: 1.25;
}

.table-products .table-product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.table-products .table-product-price {
  white-space: normal;
}

.table-products .table-product-price .price-net-main,
.table-products .table-product-price .price-gross-muted {
  display: inline-block;
}

.table-products .table-product-stock .stock-availability {
  white-space: normal;
}

.table-products .table-col-qty .catalog-cart-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 2.75rem 3.25rem 2.75rem minmax(0, 1fr);
  gap: 0.2rem !important;
  align-items: stretch !important;
}

.table-products .table-col-qty .catalog-cart-controls--single-action {
  grid-template-columns: minmax(0, 1fr);
}

.table-products .table-col-qty .catalog-cart-qty-wrap {
  min-width: 0;
}

.table-products .table-col-qty .catalog-cart-controls-block {
  position: relative;
}

.table-products .table-col-qty .catalog-cart-qty-row-label {
  display: block;
  position: absolute;
  bottom: calc(100% + 0.08rem);
  left: 0;
}

.table-products .table-col-qty .catalog-cart-qty-row-label.catalog-cart-qty-row-label--empty {
  display: block;
  visibility: hidden;
}

.table-products .catalog-cart-qty-row-label {
  font-size: 0.9rem;
  min-height: 1rem;
}

.table-products .catalog-cart-controls .btn {
  --bs-btn-padding-y: 0.18rem;
  --bs-btn-padding-x: 0.15rem;
  --bs-btn-font-size: 0.82rem;
  min-height: 34px;
  line-height: 1.15;
  min-width: 0;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.table-products .catalog-cart-controls .catalog-package-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.table-products .catalog-cart-controls .catalog-cart-btn--plus-one,
.table-products .catalog-cart-controls .catalog-cart-btn--minus-one {
  white-space: nowrap;
  overflow-wrap: normal;
}

.table-products .catalog-package-btn-label {
  font-size: 0.85em;
}

.table-products .catalog-package-btn-qty {
  font-size: 0.8em;
}

.table-products .catalog-cart-controls .form-control {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0.16rem 0.24rem;
  font-size: 0.84rem;
}

#catalogLoadMoreSentinel {
  height: 1px;
}

#catalogLoadMoreInfo {
  border: 1px dashed rgba(25, 135, 84, 0.25);
  border-radius: 0.5rem;
  background: rgba(25, 135, 84, 0.05);
}

#cartCanvas {
  --bs-offcanvas-width: 60vw;
}

.cart-canvas-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  container-name: b2b-cart;
  container-type: inline-size;
}

.cart-item-card,
.cart-shipping-row {
  display: grid;
  grid-template-columns: 1.5rem 2.5rem 5.5rem minmax(0, 1fr);
  grid-template-areas:
    "remove code media details"
    ". quantity quantity quantity";
  gap: 0.5rem;
  align-items: center;
  background-color: #fff;
  transition: background-color 0.15s ease;
}

.cart-item-card:hover,
.cart-shipping-row:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.cart-item-card > *,
.cart-shipping-row > * {
  min-width: 0;
}

.cart-item-remove {
  grid-area: remove;
  text-align: center;
}

.cart-item-remove-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.cart-item-media {
  grid-area: media;
  text-align: center;
}

.cart-item-media .product-media {
  width: 100%;
  align-items: center;
}

.cart-item-media .product-thumb {
  width: 100%;
  max-width: 6.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.cart-item-media .product-main-thumb-btn {
  width: 100%;
}

.cart-item-code {
  grid-area: code;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cart-item-code > span {
  display: block;
}

.cart-shipping-row .cart-item-media {
  grid-area: media;
}

.cart-item-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.table-col-qty .catalog-cart-controls > a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-item-details {
  grid-area: details;
  overflow-wrap: anywhere;
}

.cart-item-details .product-short-desc {
  font-size: 0.75rem;
}

.cart-item-subtotal {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cart-item-quantity {
  grid-area: quantity;
}

.cart-item-quantity-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem 3.25rem 2.25rem minmax(0, 1fr);
  gap: 0.25rem;
  align-items: stretch;
}

.cart-item-quantity .cart-item-quantity-controls .btn {
  --bs-btn-padding-y: 0.15rem;
  --bs-btn-padding-x: 0.2rem;
  --bs-btn-font-size: 0.75rem;
  min-height: 2rem;
  width: 100%;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cart-item-quantity-controls > .btn:only-child {
  grid-column: 1 / -1;
}

.cart-item-quantity-controls .catalog-cart-qty-wrap {
  min-width: 0;
}

.cart-item-quantity .cart-item-quantity-controls .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 2rem;
  font-size: 0.8rem;
}

@container b2b-cart (min-width: 44rem) {
  .cart-item-card,
  .cart-shipping-row {
    grid-template-columns: 1.5rem 2.5rem 6.5rem minmax(0, 1fr) 15.5rem;
    grid-template-areas: "remove code media details quantity";
    gap: 0.6rem;
    align-items: center;
  }

}

.cart-item-card.cart-item-card--unavailable {
  grid-template-columns: 1.5rem minmax(0, 1fr);
  grid-template-areas: "remove details";
}

.cart-footer-panel {
  margin-top: auto !important;
  border-top: 1px solid rgba(25, 135, 84, 0.14);
  padding-top: 0.95rem;
}

.cart-summary-card {
  border: 1px solid rgba(25, 135, 84, 0.16);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.06), rgba(255, 255, 255, 0.96));
  padding: 0.85rem 0.95rem;
}

.cart-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.94rem;
}

.cart-summary-row + .cart-summary-row {
  margin-top: 0.4rem;
}

.cart-summary-row-total {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(25, 135, 84, 0.16);
}

.cart-note-block .form-control {
  min-height: 86px;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  resize: vertical;
}

.cart-price-hint {
  border-radius: 0.55rem;
  background: rgba(25, 135, 84, 0.05);
  padding: 0.55rem 0.65rem;
}

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.cart-checkout-btn {
  min-height: 44px;
  font-size: 0.98rem;
  font-weight: 700;
}

.cart-clear-btn {
  align-self: flex-end;
}

@media (min-width: 992px) {
  .sticky-sidebar {
    position: fixed;
    width: var(--b2b-sidebar-width);
    z-index: 1020;
    max-height: calc(100vh - var(--b2b-topbar-offset, var(--b2b-topbar-height)) - 1.5rem);
    max-height: calc(100dvh - var(--b2b-topbar-offset, var(--b2b-topbar-height)) - 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .sticky-sidebar .sidebar-categories-card {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .sticky-sidebar .sidebar-categories-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .sticky-sidebar .sidebar-category-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
  }

  .sticky-sidebar #statusQuickFiltersCard {
    margin-top: 0 !important;
    flex: 0 0 auto;
  }

  .b2b-topbar .navbar-collapse {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .b2b-topbar .topbar-catalog-tools {
    flex: 1 1 auto;
    min-width: 0;
  }

  .b2b-topbar .topbar-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .b2b-topbar .topbar-actions {
    flex-wrap: nowrap !important;
    min-width: 0;
  }

  #statusLinks {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: calc(100vw - 420px);
    scrollbar-width: thin;
  }

  #statusLinks .btn {
    white-space: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1599.98px) {
  .b2b-topbar .container-fluid {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .b2b-topbar .navbar-collapse {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .b2b-topbar .topbar-catalog-tools {
    flex: 1 1 12rem;
    min-width: 10rem;
    margin: 0;
  }

  .b2b-topbar .navbar-brand {
    flex: 0 1 auto;
    min-width: 8.5rem;
    margin-right: 0;
    font-size: 0.875rem;
    white-space: normal;
  }

  .b2b-topbar .b2b-brand-subtitle {
    display: block;
    font-size: 0.75em;
  }

  .b2b-topbar .topbar-actions {
    gap: 0.3rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
  }

  .b2b-topbar .topbar-actions .btn {
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    padding: 0.3rem;
  }

  .b2b-topbar #accountMenu > .dropdown-toggle {
    max-width: 8rem;
  }

  .b2b-topbar #statusLinks {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.3rem !important;
    flex-wrap: nowrap !important;
    overflow: visible;
    max-width: none;
  }
}

.status-preview-card .card-body {
  padding: 0.5rem;
}

.preview-cart-controls {
  margin-top: 0.2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.preview-cart-controls .btn {
  --bs-btn-padding-y: 0.1rem;
  --bs-btn-padding-x: 0.35rem;
  --bs-btn-font-size: 0.72rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.preview-cart-controls .form-control {
  width: 56px;
  min-height: auto;
  padding: 0.1rem 0.25rem;
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.catalog-cart-controls .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.catalog-cart-controls .catalog-cart-btn--plus-one:not(:disabled) {
  --bs-btn-color: var(--b2b-green-dark);
  --bs-btn-bg: #d1e7dd;
  --bs-btn-border-color: #a3cfbb;
  --bs-btn-hover-color: var(--b2b-green-dark);
  --bs-btn-hover-bg: #a3cfbb;
  --bs-btn-hover-border-color: #75b798;
  --bs-btn-active-color: #0a3622;
  --bs-btn-active-bg: #75b798;
  --bs-btn-active-border-color: #75b798;
  --bs-btn-focus-shadow-rgb: 25, 135, 84;
}

.catalog-cart-controls .catalog-cart-btn--plus-package:not(:disabled) {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--b2b-green);
  --bs-btn-border-color: var(--b2b-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--b2b-green-dark);
  --bs-btn-hover-border-color: var(--b2b-green-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--b2b-green-dark);
  --bs-btn-active-border-color: var(--b2b-green-dark);
}

.catalog-cart-controls .catalog-cart-btn--minus-one:not(:disabled) {
  --bs-btn-color: #842029;
  --bs-btn-bg: #f8d7da;
  --bs-btn-border-color: #f1aeb5;
  --bs-btn-hover-color: #842029;
  --bs-btn-hover-bg: #f1aeb5;
  --bs-btn-hover-border-color: #ea868f;
  --bs-btn-active-color: #58151c;
  --bs-btn-active-bg: #ea868f;
  --bs-btn-active-border-color: #ea868f;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
}

.catalog-cart-controls .catalog-cart-btn--minus-package:not(:disabled) {
  --bs-btn-color: #fff;
  --bs-btn-bg: #dc3545;
  --bs-btn-border-color: #dc3545;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #bb2d3b;
  --bs-btn-hover-border-color: #b02a37;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b02a37;
  --bs-btn-active-border-color: #a52834;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
}

.catalog-cart-controls .catalog-cart-btn-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.catalog-cart-controls .form-control {
  flex: 0 0 auto;
  width: 74px;
  min-height: auto;
  padding: 0.12rem 0.25rem;
  font-size: 0.78rem;
}

.catalog-cart-qty-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.08rem;
  flex: 0 0 auto;
}

.catalog-cart-controls-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.22rem;
}

.catalog-cart-qty-row-label {
  color: var(--b2b-green);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  width: 100%;
  text-align: center;
  min-height: 0.95rem;
}

.catalog-cart-qty-row-label--empty {
  visibility: hidden;
}

.catalog-cart-qty-label {
  color: var(--b2b-green);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.btn-watch-availability-active {
  --bs-btn-color: #14532d;
  --bs-btn-bg: #d1fae5;
  --bs-btn-border-color: #86efac;
  --bs-btn-hover-color: #14532d;
  --bs-btn-hover-bg: #bbf7d0;
  --bs-btn-hover-border-color: #4ade80;
  --bs-btn-active-color: #14532d;
  --bs-btn-active-bg: #bbf7d0;
  --bs-btn-active-border-color: #4ade80;
}

.b2b-favorite-btn-add {
  --bs-btn-color: #e0a800;
  --bs-btn-border-color: #e0a800;
  --bs-btn-bg: #fff;
  --bs-btn-hover-color: #c69500;
  --bs-btn-hover-border-color: #c69500;
  --bs-btn-hover-bg: #fff;
  --bs-btn-active-color: #b88700;
  --bs-btn-active-border-color: #b88700;
  --bs-btn-active-bg: #fff;
}

@media (max-width: 991.98px) {

  .b2b-topbar {
    --b2b-topbar-height: 54px;
    padding: 0.25rem 0;
  }

  .b2b-topbar .container-fluid {
    flex-wrap: wrap;
    gap: 0 0.35rem;
    padding: 0 0.375rem;
  }

  .b2b-topbar .navbar-brand {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: clamp(0.875rem, 4vw, 1.125rem);
    line-height: 1.1;
  }

  .b2b-brand-subtitle {
    display: block;
    font-size: 0.65em;
    font-weight: 400;
  }

  .b2b-mobile-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.2rem;
  }

  .b2b-mobile-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 11vw, 44px);
    height: 44px;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.375rem;
    background: #fff;
    color: var(--b2b-green-dark);
  }

  .b2b-mobile-action svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }

  .b2b-mobile-access,
  .b2b-mobile-login {
    width: auto;
    padding: 0.25rem;
    font-size: clamp(0.625rem, 2.5vw, 0.875rem);
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .b2b-topbar:has(.b2b-mobile-access) .navbar-brand {
    font-size: clamp(0.6875rem, 3vw, 1rem);
  }

  .b2b-mobile-action[aria-expanded="true"],
  .b2b-mobile-action.is-active {
    background: #ffe79a;
    border-color: #ffe79a;
  }

  .b2b-mobile-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: inset 0 0 0 2px var(--b2b-green-dark);
  }

  .b2b-mobile-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 1.125rem;
    padding: 0.1rem 0.2rem;
    border: 1px solid #fff;
    border-radius: 1rem;
    background: var(--b2b-green-dark);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .b2b-mobile-cart-count:empty {
    display: none;
  }

  #catalogSearchPanel,
  #topNav,
  #catalogCategoryPanel {
    display: none;
  }

  #catalogSearchPanel.is-mobile-open {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin: 0.375rem 0 0;
    gap: 0.375rem;
  }

  #catalogSearchPanel .form-control {
    min-height: 44px;
    font-size: 1rem;
  }

  #topNav.is-mobile-open,
  #catalogCategoryPanel.is-mobile-open {
    position: fixed;
    top: var(--b2b-topbar-offset, 54px);
    display: block;
    max-height: calc(100dvh - var(--b2b-topbar-offset, 54px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--b2b-green);
    padding: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }

  #topNav.is-mobile-open {
    right: 0;
    width: min(100%, 22rem);
    border-radius: 0 0 0.5rem 0.5rem;
  }

  #catalogCategoryPanel.is-mobile-open {
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1031;
    width: auto;
    border-radius: 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  body.b2b-mobile-menu-open {
    overflow: hidden;
  }

  #topNav .topbar-actions {
    flex-direction: column;
    gap: 0.5rem !important;
    margin-top: 0;
  }

  #topNav #accountMenu,
  #topNav #btnLogin {
    order: -4;
  }

  #topNav .b2b-mobile-account-name {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #fff;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--b2b-green-dark);
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #topNav #accountMenu > .dropdown-menu {
    display: none !important;
  }

  .b2b-topbar .catalog-view-control--mobile {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: #fff;
    border-radius: 0.375rem;
  }

  .b2b-topbar .catalog-view-control--mobile .catalog-view-label {
    color: var(--b2b-green-dark);
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .b2b-topbar .catalog-view-control--mobile .topbar-view-switch .btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    min-width: 0;
    padding: 0.25rem 0.35rem;
    font-size: 0.875rem;
    min-height: 38px;
  }

  #topNav #statusLinks {
    display: contents !important;
  }

  #topNav .b2b-account-invoices {
    order: -3;
  }

  #topNav .b2b-account-orders {
    order: -2;
  }

  #topNav .topbar-actions > #btnTopContacts {
    order: 1;
  }

  #topNav .topbar-actions > #btnTopSupport {
    order: 2;
  }

  #topNav #mobileAdminUrl {
    order: 3;
  }

  #topNav .b2b-mobile-logout {
    order: 100;
  }

  #topNav .topbar-actions .btn {
    min-height: 44px;
    justify-content: flex-start;
    padding: 0.5rem 0.65rem;
    font-size: 1rem;
    text-align: left;
  }

  #catalogCategoryPanel .b2b-category-item,
  #catalogCategoryPanel #statusQuickFilters .btn {
    min-height: 44px;
    font-size: 1rem;
  }

  #catalogCategoryPanel .b2b-category-item-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  main.container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .topbar-catalog-tools {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0.65rem 0 0;
    flex-wrap: wrap;
  }

  #catalogSearchPanel .catalog-view-control--mobile {
    width: 100%;
    order: 1;
  }

  .topbar-search {
    min-width: 0;
    flex: 1 1 auto;
  }

  .topbar-view-switch {
    flex: 0 0 auto;
  }

  .sticky-sidebar {
    position: static;
    top: auto;
  }

  .catalog-controls-card {
    position: static;
    top: auto;
  }

  .catalog-controls-card .top-cart-trigger {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.375rem;
    padding: 0.375rem 0.5rem;
  }

  .catalog-controls-card .top-cart-trigger-heading {
    display: none;
  }

  .catalog-controls-card .top-cart-trigger:has(.free-shipping-progress.d-none) {
    display: none;
  }

  main.container-fluid > .row {
    --bs-gutter-y: 0;
  }

  .catalog-jump-tab {
    --jump-translate-y: 0%;
    position: fixed;
    top: calc(var(--b2b-topbar-offset, var(--b2b-topbar-height)) + 0.5rem);
    left: 50%;
    bottom: auto;
  }

  #topNav .topbar-actions {
    width: 100%;
    margin-top: 0;
    align-items: stretch !important;
  }

  #topNav .topbar-actions>.btn,
  #topNav .topbar-actions>a.btn,
  #topNav .topbar-actions>.dropdown {
    width: 100%;
  }

  #topNav #accountMenu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .catalog-section-title {
    font-size: 0.86rem;
    padding: 0.38rem 0.5rem;
  }

  .product-thumb--detail {
    max-width: 100%;
    max-height: 420px;
  }

  .product-mini-thumbs--detail .product-mini-thumb {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 767.98px) {
  .table-products,
  .table-products tbody {
    display: block;
  }

  .table-products thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-products tbody tr {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-areas:
      "media product"
      "code product"
      "quantity quantity";
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .table-products tbody tr + tr {
    border-top: 1px solid var(--b2b-border);
  }

  .table-products .table-col-code,
  .table-products .table-col-media,
  .table-products .table-col-product,
  .table-products .table-col-qty {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .table-products .table-col-code {
    grid-area: code;
    text-align: center;
  }

  .table-products .table-col-media {
    grid-area: media;
  }

  .table-products .table-col-product {
    grid-area: product;
  }

  .table-products tbody .table-col-qty {
    grid-area: quantity;
    padding-block: 1.125rem 0;
  }

  .table-products .table-product-title-row .product-name-link {
    font-size: 1.0625rem;
  }

  .table-products .table-col-code,
  .table-products .table-product-price,
  .table-products .table-product-stock,
  .table-products .stock-availability {
    font-size: 0.9375rem;
  }

  .table-products .table-product-meta-row {
    gap: 0.25rem 0.5rem;
  }

  .table-products .table-col-qty .catalog-cart-controls .form-control {
    font-size: 1rem;
  }

  .catalog-section-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
  }

  .catalog-section-jump-title {
    font-size: 0.8125rem;
  }

  .catalog-section-jump-nav {
    padding: 0.375rem;
  }

  .catalog-section-jump-heading {
    font-size: 0.8125rem;
  }

  .catalog-product-grid {
    --bs-gutter-x: 0.375rem;
    --bs-gutter-y: 0.375rem;
  }

  .catalog-product-grid > .col {
    width: 50%;
  }

  .product-card-tile .card-body {
    min-width: 0;
    padding: 0.375rem;
    gap: 0.25rem;
  }

  .product-card-title-link {
    flex: 0 0 auto;
    font-size: 1.0625rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .product-card-tile .muted-small,
  .product-card-tile .small,
  .product-card-tile .stock-availability {
    font-size: 0.875rem;
    line-height: 1.25;
  }

  .product-card-meta {
    display: grid;
    gap: 0.25rem;
  }

  .product-card-cart-row {
    display: flex;
    align-items: center;
  }

  /* Only customers see the taller buy controls; guests have a single login button. */
  .product-card-cart-row--aligned {
    min-height: 136px;
  }

  .product-card-cart-row .catalog-cart-controls-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.25rem;
  }

  .product-card-cart-row .catalog-cart-qty-row-label {
    grid-area: 1 / 1;
    justify-self: end;
    width: auto;
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
  }

  .product-card-cart-row .catalog-cart-controls--compact {
    display: contents !important;
  }

  .product-card-cart-row .catalog-cart-controls--compact > .catalog-cart-qty-wrap {
    grid-area: 1 / 2;
    width: 100%;
  }

  .product-card-cart-row .catalog-cart-btn--plus-one {
    grid-area: 2 / 1;
  }

  .product-card-cart-row .catalog-cart-btn--plus-package {
    grid-area: 2 / 2;
  }

  .product-card-cart-row .catalog-cart-btn--minus-one {
    grid-area: 3 / 1;
  }

  .product-card-cart-row .catalog-cart-btn--minus-package {
    grid-area: 3 / 2;
  }

  .product-card-cart-row .catalog-cart-controls--compact .btn,
  .product-card-cart-row .catalog-cart-controls--compact .form-control {
    min-height: 36px;
    height: auto;
  }

  .product-card-cart-row .catalog-cart-controls--compact .form-control {
    font-size: 1rem;
    padding: 0.1rem;
  }

  .product-card-cart-row .catalog-cart-controls--compact .btn {
    min-height: 44px;
    font-size: 1rem;
  }

  .product-card-cart-row .catalog-cart-controls--compact .catalog-package-btn-label {
    font-size: 0.875em;
  }

  .product-card-cart-row .catalog-cart-controls--compact .catalog-package-btn-qty {
    font-size: 0.8125em;
  }

  .catalog-section-title {
    background: var(--b2b-green);
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
    padding: 0.5rem;
  }

  #cartCanvas .offcanvas-header,
  #cartCanvas .offcanvas-body {
    padding: 0.625rem;
  }

  #cartCanvas .offcanvas-header {
    align-items: flex-start;
    gap: 0.5rem;
  }

  #cartCanvas .btn-close {
    min-width: 24px;
    min-height: 24px;
    margin: 0;
  }

  .cart-sort-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.25rem;
  }

  .cart-sort-options .btn {
    min-height: 36px;
    padding: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: normal;
    align-content: center;
  }

  .cart-shipping-row {
    grid-template-columns: 1.5rem 1.75rem 3.5rem minmax(0, 1fr);
    gap: 0.375rem;
  }

  .cart-item-card:not(.cart-item-card--unavailable) {
    grid-template-columns: 28px calc(6rem - 28px - 0.375rem) minmax(0, 1fr);
    grid-template-areas:
      "remove code title"
      "media media price"
      "quantity quantity quantity";
    gap: 0.375rem;
    align-items: start;
  }

  .cart-item-card .cart-item-remove {
    align-self: center;
    text-align: left;
  }

  .cart-item-card:not(.cart-item-card--unavailable) > .cart-item-details {
    display: contents;
  }

  .cart-item-card:not(.cart-item-card--unavailable) > .cart-item-details > .product-name-link {
    grid-area: title;
    align-self: center;
    min-width: 0;
  }

  .cart-item-card:not(.cart-item-card--unavailable) > .cart-item-details > .cart-item-price-row {
    grid-area: price;
    min-width: 0;
  }

  .cart-item-card .cart-item-remove-icon {
    width: 28px;
    min-height: 28px;
  }

  .cart-item-card .cart-item-media .product-thumb {
    max-width: 100%;
    height: 6rem;
  }

  .cart-item-card > .cart-item-code {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: center;
    gap: 0 0.25rem;
    text-align: left;
  }

  .cart-item-details .product-name-link {
    font-size: 0.9375rem;
    line-height: 1.25;
  }

  .cart-item-price-row {
    font-size: 0.875rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-card > .cart-item-code {
    font-size: 0.875rem;
  }

  .cart-item-price-row .price-gross-muted,
  .cart-item-price-row .cart-item-unit-gross,
  .cart-item-subtotal-value {
    display: block;
    white-space: nowrap;
  }

  .cart-item-quantity {
    grid-column: 1 / -1;
  }

  .cart-item-quantity .cart-item-quantity-controls .btn,
  .cart-item-quantity .cart-item-quantity-controls .form-control {
    min-height: 36px;
  }

  .cart-item-quantity .cart-item-quantity-controls .form-control,
  #cartNote {
    font-size: 1rem;
  }

  .cart-summary-card {
    padding: 0.625rem;
  }

  #cartTotalGross {
    font-size: 1.375rem;
  }

  .cart-checkout-btn {
    font-size: 1.125rem;
  }

  .cart-footer-actions {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .topbar-catalog-tools {
    gap: 0.35rem;
  }

  .topbar-view-switch .btn {
    width: 2rem;
    min-width: 2rem;
    padding: 0.15rem 0;
  }

  .product-thumb {
    width: 78px;
    height: 44px;
  }

  .product-thumb--grid {
    width: 108px;
    height: 62px;
  }

  .product-media--tile .product-thumb--grid {
    width: 100%;
    height: 132px;
  }

  .product-mini-thumb {
    width: 16px;
    height: 16px;
  }

  .product-media--detail .product-thumb--detail {
    height: clamp(240px, 75vw, 420px);
    max-height: 420px;
  }

  .free-shipping-progress {
    font-size: clamp(0.625rem, 3vw, 0.72rem);
  }

  .b2b-topbar .catalog-view-control--mobile {
    flex-wrap: wrap;
  }

  .b2b-topbar .catalog-view-control--mobile .topbar-view-switch {
    flex: 1 1 auto;
  }

  .b2b-topbar .catalog-view-control--mobile .topbar-view-switch .btn {
    justify-content: center;
  }

  .product-mini-thumbs--detail .product-mini-thumb {
    width: 40px;
    height: 40px;
  }

  .product-gallery-modal-thumb {
    width: 52px;
    height: 52px;
  }

  .table-products th,
  .table-products td {
    font-size: 0.84rem;
  }

  .catalog-cart-controls {
    gap: 0.25rem !important;
  }

  .catalog-cart-controls .btn {
    --bs-btn-padding-y: 0.1rem;
    --bs-btn-padding-x: 0.3rem;
    --bs-btn-font-size: 0.7rem;
  }

  .catalog-cart-controls .form-control {
    width: 62px;
    min-height: auto;
    padding: 0.1rem 0.2rem;
    font-size: 0.72rem;
  }

  #cartCanvas {
    width: 100vw !important;
    max-width: 100vw;
  }
}
