:root {
  --b2b-navy: #102632;
  --b2b-navy-deep: #081a22;
  --b2b-navy-soft: #173c4b;
  --b2b-cream: #fff8e9;
  --b2b-paper: #fffdf8;
  --b2b-sand: #f1e0c3;
  --b2b-orange: #c65a35;
  --b2b-orange-dark: #9d3f24;
  --b2b-orange-soft: #fbe7df;
  --b2b-salt: #315b43;
  --b2b-salt-dark: #234735;
  --b2b-salt-soft: #e7f1e9;
  --b2b-blue: #126c88;
  --b2b-yellow: #f5c532;
  --b2b-muted: #5d6b70;
  --b2b-line: rgba(16, 38, 50, 0.14);
  --b2b-line-strong: rgba(16, 38, 50, 0.26);
  --b2b-danger: #a53632;
  --b2b-danger-soft: #fbe8e6;
  --b2b-success: #28724d;
  --b2b-success-soft: #e8f5ed;
  --b2b-info-soft: #e8f3f7;
  --b2b-radius-sm: 10px;
  --b2b-radius-md: 16px;
  --b2b-radius-lg: 24px;
  --b2b-radius-xl: 32px;
  --b2b-shadow-sm: 0 10px 28px rgba(8, 26, 34, 0.1);
  --b2b-shadow-md: 0 24px 64px rgba(8, 26, 34, 0.18);
  --b2b-shadow-lg: 0 36px 100px rgba(8, 26, 34, 0.28);
  --b2b-focus: 0 0 0 4px rgba(18, 108, 136, 0.24);
  --b2b-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

.b2b-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.b2b-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
  padding-right: var(--b2b-scrollbar-compensation, 0);
}

.b2b-button,
.b2b-card-button,
.b2b-icon-button,
.b2b-qty-button,
.b2b-cart-fab,
.b2b-submit-button {
  appearance: none;
  border: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.b2b-button,
.b2b-card-button,
.b2b-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--b2b-navy);
  color: var(--b2b-paper);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms var(--b2b-ease),
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.b2b-button:hover,
.b2b-card-button:hover,
.b2b-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--b2b-shadow-sm);
}

.b2b-button:active,
.b2b-card-button:active,
.b2b-submit-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.b2b-button--primary,
.b2b-card-button--add,
.b2b-submit-button {
  background: var(--b2b-orange);
  color: #fff;
}

.b2b-button--primary:hover,
.b2b-card-button--add:hover,
.b2b-submit-button:hover {
  background: var(--b2b-orange-dark);
}

.b2b-button--secondary,
.b2b-card-button--details {
  border-color: var(--b2b-line-strong);
  background: var(--b2b-paper);
  color: var(--b2b-navy);
}

.b2b-button--secondary:hover,
.b2b-card-button--details:hover {
  border-color: var(--b2b-navy);
  background: var(--b2b-cream);
}

.b2b-button--salt {
  background: var(--b2b-salt);
  color: #fff;
}

.b2b-button--salt:hover {
  background: var(--b2b-salt-dark);
}

.b2b-button[disabled],
.b2b-card-button[disabled],
.b2b-submit-button[disabled],
.b2b-qty-button[disabled],
.b2b-icon-button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.b2b-card-actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--b2b-line);
}

.catalog-product-card.b2b-card-interactive {
  position: relative;
  cursor: pointer;
}

.b2b-card-hit-area {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.b2b-card-hit-area:focus-visible {
  outline: 3px solid var(--b2b-blue);
  outline-offset: -5px;
  box-shadow: inset 0 0 0 7px rgba(18, 108, 136, 0.14);
}

.b2b-card-order {
  display: grid;
  grid-template-columns: minmax(142px, auto) minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.b2b-qty--card {
  position: relative;
  z-index: 4;
  width: 100%;
  grid-template-columns: 42px minmax(46px, 1fr) 42px;
}

.b2b-card-order .b2b-card-button--add {
  position: relative;
  z-index: 4;
  min-height: 44px;
}

.catalog-product-card .b2b-card-actions {
  margin-top: auto;
}

.b2b-card-button {
  min-width: 0;
  min-height: 43px;
  padding-inline: 12px;
  font-size: 0.76rem;
}

.b2b-card-button[aria-pressed="true"],
.b2b-card-button.is-added {
  border-color: var(--b2b-salt);
  background: var(--b2b-salt);
  color: #fff;
}

.b2b-card-button svg,
.b2b-button svg,
.b2b-cart-fab svg,
.b2b-icon-button svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.b2b-cart-fab {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 84px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 9px 11px 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--b2b-navy);
  box-shadow: 0 18px 46px rgba(8, 26, 34, 0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 180ms var(--b2b-ease),
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.b2b-cart-fab:hover {
  transform: translateY(-3px);
  background: var(--b2b-navy-soft);
  box-shadow: 0 22px 54px rgba(8, 26, 34, 0.36);
}

.b2b-cart-fab-label {
  white-space: nowrap;
}

.b2b-cart-count {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 8px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: var(--b2b-orange);
  color: #fff;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.b2b-cart-count:empty,
.b2b-cart-count[data-count="0"] {
  background: var(--b2b-muted);
}

.b2b-cart-fab.is-bumped .b2b-cart-count {
  animation: b2b-count-bump 320ms var(--b2b-ease);
}

@keyframes b2b-count-bump {
  50% {
    transform: scale(1.2);
  }
}

.b2b-overlay {
  position: fixed;
  z-index: 190;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 19, 25, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

.b2b-overlay.is-open,
.b2b-overlay[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.b2b-modal,
.b2b-product-modal {
  position: fixed;
  z-index: 220;
  inset: 50% auto auto 50%;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(900px, calc(100vh - 48px));
  max-height: min(900px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--b2b-radius-xl);
  background: var(--b2b-paper);
  box-shadow: var(--b2b-shadow-lg);
  color: var(--b2b-navy);
  transform: translate(-50%, calc(-50% + 20px)) scale(0.98);
  transition:
    opacity 200ms ease,
    transform 240ms var(--b2b-ease),
    visibility 0s linear 240ms;
}

dialog.b2b-product-modal {
  margin: 0;
}

dialog.b2b-product-modal::backdrop {
  background: rgba(5, 19, 25, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.b2b-modal.is-open,
.b2b-product-modal.is-open,
.b2b-modal[aria-hidden="false"],
.b2b-product-modal[aria-hidden="false"],
dialog.b2b-product-modal[open] {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

.b2b-modal-shell,
.b2b-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: hidden;
}

.b2b-modal-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 13px 18px 13px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--b2b-line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

.b2b-modal-header-copy {
  min-width: 0;
}

.b2b-modal-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--b2b-orange-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.b2b-modal-header h2,
.b2b-modal-header h3 {
  margin: 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b2b-icon-button,
.b2b-modal-close,
.b2b-drawer-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--b2b-line);
  border-radius: 50%;
  background: var(--b2b-paper);
  color: var(--b2b-navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.b2b-icon-button:hover,
.b2b-modal-close:hover,
.b2b-drawer-close:hover {
  border-color: var(--b2b-navy);
  background: var(--b2b-cream);
  transform: rotate(4deg);
}

.b2b-modal-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.b2b-product-hero,
.b2b-modal-hero,
.b2b-two-column,
.b2b-two-col {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: 430px;
}

.b2b-product-media,
.b2b-modal-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 420px;
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, #f3f7f2 54%, #dce9de 100%);
}

.b2b-product-media::before,
.b2b-modal-media::before {
  position: absolute;
  width: min(80%, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(49, 91, 67, 0.15);
  border-radius: 50%;
  content: "";
}

.b2b-product-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  height: min(350px, 40vh);
  object-fit: contain;
  filter: drop-shadow(0 26px 22px rgba(16, 38, 50, 0.18));
}

.b2b-product-badge,
.b2b-origin-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--b2b-salt);
  box-shadow: 0 7px 20px rgba(35, 71, 53, 0.18);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.b2b-product-copy,
.b2b-modal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px);
}

.b2b-product-copy h2,
.b2b-product-copy h3,
.b2b-modal-copy h2,
.b2b-modal-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.b2b-product-subtitle {
  margin: 10px 0 0;
  color: var(--b2b-salt);
  font-size: 0.82rem;
  font-weight: 850;
}

.b2b-product-description {
  margin: 20px 0 0;
  color: var(--b2b-muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

.b2b-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.b2b-fact {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius-sm);
  background: rgba(255, 248, 233, 0.58);
}

.b2b-fact dt,
.b2b-fact-label {
  margin: 0 0 5px;
  color: var(--b2b-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.b2b-fact dd,
.b2b-fact-value {
  margin: 0;
  color: var(--b2b-navy);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.b2b-technical-section {
  padding: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--b2b-line);
  background: #fff;
}

.b2b-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.b2b-section-heading h3,
.b2b-section-heading h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.14;
}

.b2b-section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--b2b-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.b2b-technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.b2b-technical-card {
  padding: 20px;
  border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius-md);
  background: var(--b2b-paper);
}

.b2b-technical-card h4,
.b2b-technical-card h5 {
  margin: 0 0 13px;
  color: var(--b2b-navy);
  font-size: 0.88rem;
}

.b2b-technical-list,
.b2b-check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.b2b-technical-list li,
.b2b-check-list li {
  position: relative;
  padding-left: 22px;
  color: #46595f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.b2b-technical-list li::before,
.b2b-check-list li::before {
  position: absolute;
  left: 0;
  top: 0.54em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--b2b-salt);
  border-radius: 50%;
  content: "";
}

.b2b-check-list li::before {
  top: 0.38em;
  width: 10px;
  height: 6px;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  transform: rotate(-45deg);
}

.b2b-note,
.b2b-warning,
.b2b-info {
  position: relative;
  margin: 18px 0 0;
  padding: 15px 17px 15px 44px;
  border: 1px solid rgba(18, 108, 136, 0.2);
  border-radius: var(--b2b-radius-sm);
  background: var(--b2b-info-soft);
  color: #36535e;
  font-size: 0.78rem;
  line-height: 1.55;
}

.b2b-note::before,
.b2b-warning::before,
.b2b-info::before {
  position: absolute;
  left: 15px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--b2b-blue);
  color: #fff;
  content: "i";
  font-size: 0.7rem;
  font-weight: 900;
  font-style: normal;
}

.b2b-warning {
  border-color: rgba(198, 90, 53, 0.24);
  background: var(--b2b-orange-soft);
  color: #70402f;
}

.b2b-warning::before {
  background: var(--b2b-orange);
  content: "!";
}

.b2b-modal-footer,
.b2b-modal-cta,
.b2b-cta {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px clamp(24px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 197, 50, 0.18), transparent 36%),
    var(--b2b-navy);
  color: #fff;
}

.b2b-modal-footer .b2b-modal-cta-copy,
.b2b-modal-cta-copy,
.b2b-cta-copy {
  min-width: 0;
}

.b2b-modal-footer strong,
.b2b-modal-cta strong,
.b2b-cta strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.b2b-modal-footer p,
.b2b-modal-cta p,
.b2b-cta p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.45;
}

.b2b-modal-quantity {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.b2b-modal-quantity > label,
.b2b-quantity-label {
  color: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.b2b-modal-quantity > small {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  line-height: 1.35;
}

.b2b-modal-quantity .b2b-qty--modal {
  justify-self: start;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Pallet illustration */
.b2b-pallet-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(49, 91, 67, 0.17);
  border-radius: var(--b2b-radius-lg);
  background: linear-gradient(145deg, #f5faf6, var(--b2b-salt-soft));
}

.b2b-pallet-visual,
.b2b-pallet {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(100%, 310px);
  min-height: 250px;
  margin-inline: auto;
  padding: 18px 20px 34px;
  perspective: 700px;
  isolation: isolate;
}

.b2b-pallet-stack,
.b2b-pallet-boxes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: end;
  gap: 4px;
  width: 86%;
  min-height: 170px;
  padding: 4px;
  transform: rotateX(2deg);
}

.b2b-pallet-layer {
  display: contents;
}

.b2b-pallet-box {
  position: relative;
  min-height: 48px;
  border: 1px solid #a8492d;
  border-radius: 3px;
  background: linear-gradient(145deg, #dc7656, var(--b2b-orange));
  box-shadow:
    inset -5px -5px 0 rgba(127, 48, 28, 0.12),
    0 3px 4px rgba(16, 38, 50, 0.12);
}

.b2b-pallet-box::before {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 100%;
  background: rgba(255, 238, 210, 0.55);
  content: "";
  transform: translateX(-50%);
}

.b2b-pallet-box::after {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 36%;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  content: "";
}

.b2b-pallet-box:nth-child(4n + 2),
.b2b-pallet-box:nth-child(4n + 4) {
  background: linear-gradient(145deg, #d76b48, #b64c2d);
}

.b2b-pallet-box.is-hidden,
.b2b-pallet-box[hidden] {
  visibility: hidden;
}

.b2b-pallet-base {
  position: absolute;
  z-index: 3;
  left: 9%;
  right: 9%;
  bottom: 24px;
  height: 24px;
  border: 1px solid #8d5c2f;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, #b77b3f 0 18%, #8f5c2f 18% 21%),
    #a66d37;
  box-shadow:
    inset 0 5px 0 rgba(255, 222, 164, 0.22),
    0 10px 13px rgba(48, 36, 20, 0.2);
  transform: perspective(240px) rotateX(11deg);
}

.b2b-pallet-base::before,
.b2b-pallet-base::after {
  position: absolute;
  bottom: -10px;
  width: 20%;
  height: 10px;
  border-radius: 0 0 2px 2px;
  background: #805029;
  content: "";
}

.b2b-pallet-base::before {
  left: 8%;
  box-shadow: 94px 0 0 #805029, 188px 0 0 #805029;
}

.b2b-pallet-base::after {
  display: none;
}

.b2b-pallet-meta h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.b2b-pallet-meta p {
  margin: 8px 0 0;
  color: var(--b2b-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.b2b-pallet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.b2b-pallet-stat {
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
}

.b2b-pallet-stat span,
.b2b-pallet-stat strong {
  display: block;
}

.b2b-pallet-stat span {
  color: var(--b2b-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.b2b-pallet-stat strong {
  margin-top: 3px;
  color: var(--b2b-navy);
  font-size: 0.82rem;
}

/* Cart drawer */
.b2b-cart-drawer {
  position: fixed;
  z-index: 230;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, calc(100vw - 28px));
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--b2b-paper);
  box-shadow: -28px 0 80px rgba(8, 26, 34, 0.3);
  color: var(--b2b-navy);
  transform: translateX(104%);
  transition:
    transform 300ms var(--b2b-ease),
    visibility 0s linear 300ms;
}

.b2b-cart-drawer.is-open,
.b2b-cart-drawer[aria-hidden="false"] {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

.b2b-drawer-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 15px 18px 15px 24px;
  border-bottom: 1px solid var(--b2b-line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
}

.b2b-drawer-title {
  min-width: 0;
}

.b2b-drawer-title small,
.b2b-drawer-title strong {
  display: block;
}

.b2b-drawer-title small {
  margin-bottom: 4px;
  color: var(--b2b-orange-dark);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.b2b-drawer-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.b2b-drawer-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
}

.b2b-cart-section,
.b2b-request-section {
  padding: 22px 24px;
}

.b2b-cart-section + .b2b-request-section {
  border-top: 1px solid var(--b2b-line);
}

.b2b-cart-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.b2b-line-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius-md);
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 38, 50, 0.045);
}

.b2b-line-item-image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 68px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, var(--b2b-salt-soft));
}

.b2b-line-item-image img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.b2b-line-item-copy {
  min-width: 0;
}

.b2b-line-item-copy strong,
.b2b-line-item-copy span {
  display: block;
}

.b2b-line-item-copy strong {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.b2b-line-item-copy span {
  margin-top: 4px;
  color: var(--b2b-muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.b2b-line-item-controls {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.b2b-quantity-label {
  color: var(--b2b-muted);
  font-size: 0.61rem;
}

.b2b-remove-button {
  padding: 3px 1px;
  border: 0;
  background: transparent;
  color: var(--b2b-danger);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.b2b-qty-stepper,
.b2b-qty {
  display: inline-grid;
  grid-template-columns: 42px minmax(52px, auto) 42px;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--b2b-line-strong);
  border-radius: 999px;
  background: var(--b2b-paper);
}

.b2b-qty-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--b2b-navy);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.b2b-qty-button:hover {
  background: var(--b2b-cream);
}

.b2b-qty-value,
.b2b-qty-input {
  min-width: 52px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--b2b-navy);
  font: inherit;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.b2b-qty-input {
  width: 58px;
  height: 42px;
  appearance: textfield;
}

.b2b-qty-input::-webkit-inner-spin-button,
.b2b-qty-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.b2b-empty-cart {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 30px;
  border: 1px dashed var(--b2b-line-strong);
  border-radius: var(--b2b-radius-lg);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.b2b-empty-cart-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--b2b-salt-soft);
  color: var(--b2b-salt);
  font-size: 1.5rem;
}

.b2b-empty-cart strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.b2b-empty-cart p {
  max-width: 300px;
  margin: 7px 0 0;
  color: var(--b2b-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* LKW capacity: JS sets --b2b-progress from 0% to 100% for 0–33 pallets. */
.b2b-lkw-progress {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(18, 108, 136, 0.2);
  border-radius: var(--b2b-radius-md);
  background: var(--b2b-info-soft);
}

.b2b-lkw-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.b2b-lkw-heading strong {
  font-size: 0.75rem;
}

.b2b-lkw-value {
  color: var(--b2b-blue);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.b2b-progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(18, 108, 136, 0.18);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(3.03% - 1px), rgba(16, 38, 50, 0.08) calc(3.03% - 1px) 3.03%),
    rgba(255, 255, 255, 0.9);
}

.b2b-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(0%, var(--b2b-progress, 0%), 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--b2b-salt), #4d8a68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: width 300ms var(--b2b-ease);
}

.b2b-lkw-progress.is-over .b2b-progress-fill {
  background: linear-gradient(90deg, var(--b2b-orange), var(--b2b-danger));
}

.b2b-progress-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 7px;
  color: var(--b2b-muted);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.b2b-progress-scale span:nth-child(2),
.b2b-progress-scale span:nth-child(3) {
  text-align: center;
}

.b2b-progress-scale span:last-child {
  text-align: right;
}

.b2b-lkw-message {
  margin: 9px 0 0;
  color: var(--b2b-muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

/* Request form */
.b2b-request-heading {
  margin-bottom: 18px;
}

.b2b-request-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.b2b-request-heading p {
  margin: 7px 0 0;
  color: var(--b2b-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.b2b-request-form {
  display: grid;
  gap: 18px;
}

.b2b-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.b2b-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.b2b-field--full,
.b2b-field-full {
  grid-column: 1 / -1;
}

.b2b-field label,
.b2b-field-label {
  color: var(--b2b-navy);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
}

.b2b-required {
  color: var(--b2b-orange-dark);
}

.b2b-field input,
.b2b-field select,
.b2b-field textarea,
.b2b-input,
.b2b-select,
.b2b-textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--b2b-line-strong);
  border-radius: var(--b2b-radius-sm);
  outline: 0;
  background: #fff;
  color: var(--b2b-navy);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.b2b-field select,
.b2b-select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--b2b-navy) 50%),
    linear-gradient(135deg, var(--b2b-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
}

.b2b-field textarea,
.b2b-textarea {
  min-height: 108px;
  resize: vertical;
}

.b2b-field input::placeholder,
.b2b-field textarea::placeholder,
.b2b-input::placeholder,
.b2b-textarea::placeholder {
  color: #879399;
  opacity: 1;
}

.b2b-field input:hover,
.b2b-field select:hover,
.b2b-field textarea:hover,
.b2b-input:hover,
.b2b-select:hover,
.b2b-textarea:hover {
  border-color: rgba(16, 38, 50, 0.46);
}

.b2b-field.is-invalid input,
.b2b-field.is-invalid select,
.b2b-field.is-invalid textarea,
.b2b-input[aria-invalid="true"],
.b2b-select[aria-invalid="true"],
.b2b-textarea[aria-invalid="true"] {
  border-color: var(--b2b-danger);
  background: #fffafa;
}

.b2b-field-error {
  color: var(--b2b-danger);
  font-size: 0.65rem;
  line-height: 1.35;
}

.b2b-checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #46595f;
  font-size: 0.7rem;
  line-height: 1.5;
  cursor: pointer;
}

.b2b-checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--b2b-salt);
  cursor: pointer;
}

.b2b-checkbox a {
  color: var(--b2b-blue);
  font-weight: 800;
  text-underline-offset: 2px;
}

.b2b-drawer-footer,
.b2b-sticky-summary,
.b2b-submit-bar {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 12px;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--b2b-line);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 -14px 32px rgba(8, 26, 34, 0.08);
  backdrop-filter: blur(14px);
}

.b2b-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--b2b-muted);
  font-size: 0.7rem;
}

.b2b-summary-row strong {
  color: var(--b2b-navy);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.b2b-submit-button {
  width: 100%;
  min-height: 50px;
}

.b2b-submit-hint {
  margin: -4px 0 0;
  color: var(--b2b-muted);
  font-size: 0.62rem;
  line-height: 1.4;
  text-align: center;
}

/* Request states */
.b2b-state {
  display: none;
  min-height: 260px;
  padding: 34px 24px;
  place-items: center;
  text-align: center;
}

.b2b-state.is-active,
.b2b-state[aria-hidden="false"] {
  display: grid;
}

.b2b-state-card {
  width: 100%;
  max-width: 410px;
  padding: 28px;
  border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius-lg);
  background: #fff;
  box-shadow: var(--b2b-shadow-sm);
}

.b2b-state-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--b2b-info-soft);
  color: var(--b2b-blue);
  font-size: 1.35rem;
  font-weight: 900;
}

.b2b-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.b2b-state p {
  margin: 9px 0 0;
  color: var(--b2b-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.b2b-state--success .b2b-state-card,
.b2b-state[data-state="success"] .b2b-state-card {
  border-color: rgba(40, 114, 77, 0.25);
  background: var(--b2b-success-soft);
}

.b2b-state--success .b2b-state-icon,
.b2b-state[data-state="success"] .b2b-state-icon {
  background: var(--b2b-success);
  color: #fff;
}

.b2b-state--error .b2b-state-card,
.b2b-state[data-state="error"] .b2b-state-card {
  border-color: rgba(165, 54, 50, 0.25);
  background: var(--b2b-danger-soft);
}

.b2b-state--error .b2b-state-icon,
.b2b-state[data-state="error"] .b2b-state-icon {
  background: var(--b2b-danger);
  color: #fff;
}

.b2b-state--preview .b2b-state-card,
.b2b-state[data-state="preview"] .b2b-state-card {
  border-color: rgba(198, 90, 53, 0.22);
  background: linear-gradient(145deg, #fff, var(--b2b-orange-soft));
}

.b2b-preview-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  text-align: left;
}

.b2b-preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--b2b-line);
  color: var(--b2b-muted);
  font-size: 0.7rem;
}

.b2b-preview-list strong {
  color: var(--b2b-navy);
  text-align: right;
}

.b2b-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.b2b-loading::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: b2b-spin 700ms linear infinite;
}

@keyframes b2b-spin {
  to {
    transform: rotate(360deg);
  }
}

.b2b-button:focus-visible,
.b2b-card-button:focus-visible,
.b2b-cart-fab:focus-visible,
.b2b-icon-button:focus-visible,
.b2b-modal-close:focus-visible,
.b2b-drawer-close:focus-visible,
.b2b-remove-button:focus-visible,
.b2b-qty-button:focus-visible,
.b2b-qty-input:focus-visible,
.b2b-field input:focus-visible,
.b2b-field select:focus-visible,
.b2b-field textarea:focus-visible,
.b2b-input:focus-visible,
.b2b-select:focus-visible,
.b2b-textarea:focus-visible,
.b2b-checkbox input:focus-visible,
.b2b-checkbox a:focus-visible,
.b2b-submit-button:focus-visible {
  outline: 2px solid var(--b2b-blue);
  outline-offset: 3px;
  box-shadow: var(--b2b-focus);
}

.b2b-field input:focus-visible,
.b2b-field select:focus-visible,
.b2b-field textarea:focus-visible,
.b2b-input:focus-visible,
.b2b-select:focus-visible,
.b2b-textarea:focus-visible {
  border-color: var(--b2b-blue);
  outline: 0;
}

@media (max-width: 960px) {
  .b2b-product-hero,
  .b2b-modal-hero,
  .b2b-two-column,
  .b2b-two-col {
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  }

  .b2b-product-media,
  .b2b-modal-media {
    min-height: 390px;
  }

  .b2b-product-copy,
  .b2b-modal-copy {
    padding: 32px;
  }

  .b2b-pallet-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.b2b-scroll-lock {
    position: fixed;
    width: 100%;
  }

  .b2b-card-actions {
    grid-template-columns: 1fr;
  }

  .b2b-cart-fab {
    right: 12px;
    bottom: 74px;
    min-height: 52px;
    padding: 8px 8px 8px 14px;
  }

  .b2b-cart-count {
    min-width: 34px;
    height: 34px;
  }

  .b2b-modal,
  .b2b-product-modal {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(30px);
  }

  .b2b-modal.is-open,
  .b2b-product-modal.is-open,
  .b2b-modal[aria-hidden="false"],
  .b2b-product-modal[aria-hidden="false"],
  dialog.b2b-product-modal[open] {
    transform: translateY(0);
  }

  .b2b-modal-shell,
  .b2b-modal-dialog {
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }

  .b2b-modal-header {
    min-height: 64px;
    padding: 10px 12px 10px 18px;
  }

  .b2b-product-hero,
  .b2b-modal-hero,
  .b2b-two-column,
  .b2b-two-col {
    grid-template-columns: 1fr;
  }

  .b2b-product-media,
  .b2b-modal-media {
    min-height: 300px;
    padding: 24px;
  }

  .b2b-product-image {
    height: 265px;
  }

  .b2b-product-copy,
  .b2b-modal-copy,
  .b2b-technical-section {
    padding: 26px 20px;
  }

  .b2b-product-copy h2,
  .b2b-product-copy h3,
  .b2b-modal-copy h2,
  .b2b-modal-copy h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .b2b-section-heading,
  .b2b-modal-cta,
  .b2b-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .b2b-modal-cta .b2b-button,
  .b2b-cta .b2b-button {
    width: 100%;
  }

  .b2b-modal-quantity,
  .b2b-qty--modal {
    width: 100%;
  }

  .b2b-qty--modal {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .b2b-modal-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, 0.82fr);
    gap: 10px;
    align-items: end;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .b2b-modal-footer .b2b-modal-cta-copy,
  .b2b-modal-footer .b2b-modal-quantity > small {
    display: none;
  }

  .b2b-modal-footer .b2b-modal-quantity,
  .b2b-modal-footer .b2b-qty--modal,
  .b2b-modal-footer .b2b-button {
    width: 100%;
  }

  .b2b-modal-footer .b2b-button {
    min-height: 48px;
    padding-inline: 10px;
  }

  .b2b-technical-grid {
    grid-template-columns: 1fr;
  }

  .b2b-cart-drawer {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
    transform: translateX(100%);
  }

  .b2b-cart-section,
  .b2b-request-section {
    padding-inline: 18px;
  }

  .b2b-form-grid {
    grid-template-columns: 1fr;
  }

  .b2b-field--full,
  .b2b-field-full {
    grid-column: auto;
  }

  .b2b-drawer-footer,
  .b2b-sticky-summary,
  .b2b-submit-bar {
    padding-inline: 14px;
  }
}

@media (max-width: 460px) {
  .b2b-card-order {
    grid-template-columns: minmax(0, 1fr);
  }

  .b2b-qty--card,
  .b2b-card-order .b2b-card-button--add {
    width: 100%;
  }

  .b2b-cart-fab-label {
    display: none;
  }

  .b2b-cart-fab {
    padding-left: 10px;
  }

  .b2b-fact-grid,
  .b2b-pallet-stats {
    grid-template-columns: 1fr;
  }

  .b2b-line-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .b2b-line-item-image {
    width: 54px;
    height: 60px;
  }

  .b2b-line-item-controls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    width: 100%;
  }

  .b2b-remove-button {
    grid-column: 2;
    grid-row: 1;
  }

  .b2b-pallet-panel {
    padding: 15px;
  }

  .b2b-pallet-visual,
  .b2b-pallet {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b2b-button,
  .b2b-card-button,
  .b2b-icon-button,
  .b2b-modal-close,
  .b2b-drawer-close,
  .b2b-cart-fab,
  .b2b-overlay,
  .b2b-modal,
  .b2b-product-modal,
  .b2b-cart-drawer,
  .b2b-progress-fill {
    scroll-behavior: auto;
    transition: none;
  }

  .b2b-cart-fab.is-bumped .b2b-cart-count,
  .b2b-loading::after {
    animation: none;
  }
}

@media (forced-colors: active) {
  .b2b-button,
  .b2b-card-button,
  .b2b-cart-fab,
  .b2b-submit-button,
  .b2b-icon-button,
  .b2b-modal-close,
  .b2b-drawer-close,
  .b2b-qty-stepper,
  .b2b-qty,
  .b2b-field input,
  .b2b-field select,
  .b2b-field textarea,
  .b2b-fact,
  .b2b-technical-card,
  .b2b-line-item {
    border: 1px solid ButtonText;
  }

  .b2b-overlay {
    background: Canvas;
    opacity: 0.75;
  }

  .b2b-progress-fill {
    background: Highlight;
  }
}
