@font-face {
  font-family: 'Source Sans 3 Regular';
  src: url('SourceSans3-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3 Light';
  src: url('SourceSans3-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-font-sans-serif: 'Source Sans 3 Regular', system-ui, -apple-system, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-weight: 400;
  --dom-red: #d7261e;
  --dom-red-dark: #b91c1c;
  --dom-red-soft: #fee2e2;
  --dom-ui: rgb(47, 85, 142);
  --dom-ui-dark: rgb(47, 85, 142);
  --dom-action: rgb(253, 195, 0);
  --dom-gruen: rgb(134, 188, 37);
  --dom-guenstiger: rgb(0, 110, 58);
  --dom-price: #000000;
}

body {
  font-family: var(--bs-font-sans-serif) !important;
  font-weight: var(--bs-body-font-weight) !important;
}

h1,
h2,
.h1,
.h2,
.display-5 {
  font-family: 'Source Sans 3 Light', system-ui, -apple-system, sans-serif !important;
  font-weight: normal !important;
}



.bg-dom-red {
  background-color: var(--dom-red) !important;
}

.text-dom-red {
  color: var(--dom-red) !important;
}

.btn-dom-red {
  background-color: var(--dom-red);
  color: white;
  border: none;
}

.btn-dom-red:hover {
  background-color: var(--dom-red-dark);
  color: white;
}

.bg-dom-ui {
  background-color: rgb(230, 240, 255) !important;
  color: var(--dom-ui) !important;
}

.border-dom-ui {
  border: 2px solid var(--dom-ui) !important;
}

.text-dom-ui {
  color: var(--dom-ui) !important;
}

.btn-dom-ui {
  background-color: rgb(230, 240, 255);
  color: var(--dom-ui);
  border: none;
}

.btn-dom-ui:hover {
  background-color: var(--dom-ui);
  color: white;
}

.btn-dom-ui svg,
.mobile-cart-fab svg {
  color: var(--dom-ui) !important;
}

.btn-dom-ui:hover svg {
  color: white !important;
}

button[data-action="filter"].btn-outline-secondary:hover {
  background-color: rgb(230, 240, 255) !important;
  color: var(--dom-ui) !important;
  border-color: var(--dom-ui) !important;
}

.bg-dom-action {
  background-color: var(--dom-action) !important;
}

.text-dom-action {
  color: var(--dom-action) !important;
}

.text-dom-price {
  color: var(--dom-price) !important;
}

.bg-dom-gruen {
  background-color: var(--dom-gruen) !important;
}

.text-dom-gruen {
  color: var(--dom-gruen) !important;
}

.bg-dom-guenstiger {
  background-color: var(--dom-guenstiger) !important;
}

.text-dom-guenstiger {
  color: var(--dom-guenstiger) !important;
}

.alert-success {
  background-color: rgba(134, 188, 37, 0.5) !important;
  border-color: rgba(134, 188, 37, 0.3) !important;
  color: #000 !important;
}

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
  z-index: 5;
}

.product-img-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 15px;
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.site-header {
  border-bottom: 2px solid var(--dom-red);
}

.header-logo-box {
  background-color: var(--dom-red);
  padding: 10px 15px;
  display: inline-block;
  color: white;
  font-weight: bold;
  font-size: 24px;
}

.hero-banner {
  background-color: #333;
  color: white;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

/* Original Styles */

:root {
  --accent: #d7261e;
  --accent-dark: #b91c1c;
  --accent-soft: #fee2e2;
  --accent-ring: rgba(215, 38, 30, 0.14);
  --border: #d6dbe3;
  --border-strong: #b8c1cf;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --green-50: #f0fdf4;
  --green-700: #15803d;
  --amber-50: #fffbeb;
  --amber-700: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 14px 38px rgba(15, 23, 42, .09);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(215, 38, 30, .07), transparent 34rem), linear-gradient(180deg, #fff 0%, #f8fafc 55%, #f1f5f9 100%);
  color: var(--slate-900);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.site-header {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.header-main {
  display: grid;
  gap: 12px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  max-width: 820px;
  color: var(--slate-950);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.header-subtitle {
  margin: 10px 0 0;
  max-width: 820px;
  color: var(--slate-600);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.auth-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(248, 250, 252, .92);
  padding: 8px 12px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}

.auth-state strong {
  color: var(--slate-950);
}

.auth-state.is-guest {
  background: #f1f5f9;
  color: var(--slate-500);
  border-color: var(--slate-200);
}

.auth-state.is-authed {
  background: #fff;
  color: var(--slate-700);
  border-color: rgba(215, 38, 30, .22);
}

.auth-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--slate-300);
}

.auth-state.is-authed .auth-state-dot {
  background: var(--green-700);
}

.auth-state.is-guest .auth-state-dot {
  background: var(--slate-400);
}

.workflow-toolbar {
  display: grid;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 18px;
}

.process-nav {
  display: grid;
  gap: 10px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(214, 219, 227, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.process-step:hover {
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.process-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.process-title {
  display: block;
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.process-copy {
  display: block;
  margin-top: 2px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.mode-toggle-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 340px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.mode-toggle-card:hover {
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.mode-toggle-card.is-active {
  border-color: rgba(215, 38, 30, .55);
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
  box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-sm);
}

.mode-toggle-title {
  display: block;
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.mode-toggle-text {
  display: block;
  margin-top: 2px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 31px;
  border-radius: 999px;
  background: var(--slate-300);
  padding: 3px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.toggle-knob {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
  transform: translateX(0);
  transition: transform 180ms ease;
}

.toggle-input:checked+.toggle-switch {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, .12), 0 8px 18px rgba(215, 38, 30, .16);
}

.toggle-input:checked+.toggle-switch .toggle-knob {
  transform: translateX(23px);
}

.layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.panel,
.sidebar {
  border: 1px solid rgba(214, 219, 227, .95);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.panel {
  padding: clamp(16px, 2.4vw, 24px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.section-head,
.panel-title-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.panel-title-row h2,
.sidebar-header h2 {
  margin: 4px 0 0;
  color: var(--slate-950);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section-intro,
.cart-help,
.help-text {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-commission-section[hidden],
.standard-commission-area[hidden],
.checkout-modal[hidden],
.lightbox[hidden],
.login-modal[hidden] {
  display: none !important;
}

.catalog-commission-section {
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.target-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.new-commission-row {
  display: grid;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.input,
.select,
.search-input,
.move-select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate-900);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input,
.select,
.search-input {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 15px;
  font-size: 15px;
}

textarea {
  min-height: 92px;
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 15px;
  resize: vertical;
}

.input:focus,
.select:focus,
.search-input:focus,
.move-select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.controls {
  display: grid;
  gap: 16px;
}

.search-section {
  display: grid;
  gap: 7px;
}

.search-wrap {
  position: relative;
}

.search-wrap .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--slate-400);
  pointer-events: none;
}

.search-input {
  padding-left: 46px;
  padding-right: 44px;
}

.clear-search {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 20px;
  line-height: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0 13px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 850;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.chip:hover {
  background: var(--slate-50);
  transform: translateY(-1px);
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.product-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.product-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.product-media {
  position: relative;
}

.product-img-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
}

.product-img {
  width: 100%;
  height: 128px;
  border: 1px solid var(--border);
  border-radius: 18px;
  object-fit: cover;
  background: var(--slate-50);
  display: block;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(215, 38, 30, .24);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.category-badge,
.sku,
.manufacturer-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--slate-50);
  padding: 5px 8px 3px 8px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 850;
}

.sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.manufacturer-badge {
  display: none;
}

.manufacturer-logo-card {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 5px;
  justify-self: start;
}

.manufacturer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.manufacturer-logo-card .logo-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.product-title {
  margin: 0;
  color: var(--slate-950);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.product-desc {
  margin: 6px 0 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawing-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.drawing-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.price-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--slate-50);
  padding: 10px;
}

.base-price {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-950);
  font-weight: 950;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tier-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  min-height: 46px;
  padding: 6px;
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 850;
}

.tier-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tier-btn.action-tier {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tier-btn span {
  display: block;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 850;
}

.product-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.quantity-hint {
  display: none;
}

.active-cart-target {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
  padding: 12px 14px;
  color: var(--slate-700);
}

.active-cart-target .target-eyebrow {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.active-cart-target .target-name {
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.active-cart-target .target-help {
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.35;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 15px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  transition: opacity 120ms ease, transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.primary-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(215, 38, 30, .2);
}

.secondary-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate-800);
}

.ghost-btn {
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--slate-700);
  font-size: 12px;
}

.danger-btn {
  min-height: 34px;
  border: 1px solid #fecaca;
  background: #fff;
  color: var(--accent-dark);
  font-size: 12px;
}

.primary-btn:hover:not(:disabled),
.secondary-btn:hover:not(:disabled),
.ghost-btn:hover:not(:disabled),
.danger-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: .96;
}

.guest-locked {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 12px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
  background: var(--slate-50);
}

.guest-sidebar {
  padding: 18px;
  border-top: 1px solid var(--border);
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header p {
  margin: 0;
}

.cart-help {
  max-width: 320px;
}

.pill-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.meta-pill.unassigned {
  background: var(--amber-50);
  color: var(--amber-700);
}

.meta-pill.active-target {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.standard-commission-area {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  margin: 0;
  flex: 0 0 auto;
}

.standard-commission-head p {
  margin: 2px 0 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.4;
}

.global-commission-row {
  display: grid;
  gap: 8px;
}

.standard-commission-status {
  min-height: 18px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.standard-commission-status strong {
  color: var(--slate-950);
}

.standard-commission-status.confirmed {
  color: var(--green-700);
}

.standard-commission-status.pending {
  color: var(--amber-700);
}

.cart-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 10px;
}

.cart-list::-webkit-scrollbar {
  width: 10px;
}

.cart-list::-webkit-scrollbar-track {
  background: transparent;
}

.cart-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--slate-300);
  background-clip: content-box;
}

.standard-cart,
.cart-group {
  display: block;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  overflow: clip;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.cart-group.active-group {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-sm);
}

.cart-group-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
}

.cart-group-top {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.cart-group-toggle,
.cart-group-toggle-spacer {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--slate-600);
}

.cart-group.collapsed .chevron {
  transform: rotate(-90deg);
}

.cart-group.collapsed .cart-group-body {
  display: none;
}

.cart-group-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-950);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.cart-group-sub {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 850;
}

.cart-group-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.cart-group-actionbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding-top: 6px;
  scrollbar-width: none;
}

.cart-group-actionbar::-webkit-scrollbar {
  display: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) max-content;
  gap: 7px;
  align-items: center;
  min-height: 39px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}


.cart-line-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 950;
}

.cart-line-main {
  min-width: 0;
}

.cart-line-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-950);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.25;
}

.cart-line-meta {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: max-content;
}

.mini-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.step-btn,
.cart-icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: #fff;
  color: var(--slate-700);
}

.step-btn:hover,
.cart-icon-btn:hover {
  background: var(--slate-50);
}

.step-value {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 6px;
  color: var(--slate-950);
  font-size: 12px;
  font-weight: 950;
}

.cart-icon-btn {
  border: 1px solid var(--border-strong);
  border-radius: 9px;
}

.cart-icon-btn.danger {
  color: var(--slate-600);
}

.cart-line-more {
  grid-column: 1 / -1;
  margin: 2px 0;
}

.cart-line-more summary {
  cursor: pointer;
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 850;
}

.move-panel {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.move-select {
  min-height: 32px;
  border-radius: 10px;
  padding: 0 9px;
  font-size: 12px;
}

.group-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--slate-600);
  background: #fff;
}

.submit-area {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  padding: 10px 14px 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, .06);
}

.submit-btn {
  width: 100%;
  min-height: 48px;
}

.submitted {
  border: 1px solid rgba(21, 128, 61, .24);
  border-radius: var(--radius-lg);
  margin-top: 12px;
  padding: 12px 14px;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.55;
  background: var(--green-50);
}

.submitted strong {
  color: var(--slate-950);
}

.submitted ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--slate-50));
}

.empty-state .icon {
  width: 38px;
  height: 38px;
  color: var(--slate-300);
}

.empty-state .headline {
  margin: 12px 0 0;
  color: var(--slate-950);
  font-weight: 950;
}

.empty-state p:last-child {
  margin: 6px auto 0;
  max-width: 360px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
}

.modal-backdrop,
.lightbox,
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(4px);
}

.modal-card,
.checkout-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  padding: 18px;
}

.modal-head,
.checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.modal-head h2,
.checkout-head h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 24px;
  line-height: 1.15;
}

.close-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--slate-600);
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-700);
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.tab-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-two {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.45;
}

.message-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--slate-50);
  padding: 12px;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.5;
}

.success-box {
  border-color: rgba(21, 128, 61, .24);
  background: var(--green-50);
  color: var(--green-700);
}

.warning-box {
  border-color: rgba(180, 83, 9, .24);
  background: var(--amber-50);
  color: var(--amber-700);
}

.lightbox-panel {
  width: min(900px, 100%);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  overflow: hidden;
}

.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.lightbox-head strong {
  color: var(--slate-950);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--slate-50);
}

.checkout-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--slate-50);
}

.checkout-section h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--slate-950);
}

.checkout-section p {
  margin: 4px 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.site-footer {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .9);
  padding: 16px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.footer-grid {
  display: grid;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(440px, calc(100vw - 36px));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--slate-800);
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

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

@media (min-width: 640px) {
  .process-nav.two-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-nav.three-step {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
  }

  .new-commission-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-commission-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .form-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 768px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .product-card {
    grid-template-columns: 150px minmax(0, 1fr) 230px;
    align-items: start;
  }

  .product-card:hover .details-arrow {
    transform: translateX(4px) !important;
  }

  .product-img {
    height: 150px;
  }
}

@media (min-width: 980px) {
  .workflow-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }
}

@media (min-width: 1201px) {
  .page {
    padding: 30px 24px 54px;
  }

  .layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(390px, 430px);
  }

  .sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: var(--sidebar-available-height, calc(100vh - 36px));
    max-height: var(--sidebar-available-height, calc(100vh - 36px));
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel,
  .sidebar {
    border-radius: 24px;
  }

  .cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cart-line-controls {
    grid-column: 1 / -1;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }
}

/* Feinschliff Produktkarte, Status, Filter und Login */
.auth-state {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 7px;
  color: var(--slate-600);
}

.auth-state.is-guest,
.auth-state.is-authed {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-state-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.auth-state.is-guest .auth-state-dot {
  background: var(--slate-400);
}

.auth-state.is-authed .auth-state-dot {
  background: var(--green-700);
}

.manufacturer-logo-card {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.manufacturer-logo-img {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  display: block;
}

.product-actions .manufacturer-logo-card {
  margin-top: 4px;
}

.product-actions .guest-locked+.manufacturer-logo-card {
  margin-top: 0;
}

.filter-wrap {
  display: grid;
  gap: 8px;
}

.chips:not(.is-expanded) {
  max-height: 31px !important;
  overflow: hidden;
}

.filter-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 2px 0;
  font-size: 13px;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-toggle:hover {
  color: var(--accent);
}

.login-modal .tab-row {
  align-items: stretch;
}

.login-modal .tab-btn {
  min-height: 42px;
}

.login-modal .message-box[hidden],
.login-modal .form-grid[hidden] {
  display: none !important;
}

.cart-line {
  grid-template-columns: 76px minmax(0, 1fr) max-content max-content;
}

.cart-line-price {
  min-width: 88px;
  text-align: right;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.cart-line-price strong {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.cart-line-price span {
  display: block;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 800;
}

.cart-total-summary {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  margin: -2px 0 10px;
  padding: 0 0 10px;
  color: var(--slate-700);
  font-size: 13px;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-total-row strong {
  color: var(--slate-950);
  font-size: 15px;
  font-weight: 950;
}

.cart-total-row .cart-total-amount {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 950;
}

@media (max-width: 520px) {
  .cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cart-line-price {
    grid-column: 1 / -1;
    text-align: left;
  }
}


/* Update 4: stabilerer Warenkorb, mehr Platz fuer Preislogik, keine versteckte aktive Zuordnung */
[hidden] {
  display: none !important;
}

.active-cart-target {
  display: none !important;
}

.sidebar-header {
  padding: 14px 16px;
}

.sidebar-header h2 {
  font-size: clamp(21px, 1.8vw, 26px);
}

.cart-help {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.45;
}

.standard-commission-area {
  gap: 8px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.standard-commission-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.standard-commission-head p {
  margin: 0;
  font-size: 11px;
}

.global-commission-row {
  gap: 7px;
}

.global-commission-row .input {
  min-height: 42px;
  border-radius: 13px;
}

.global-commission-row .secondary-btn {
  min-height: 42px;
  border-radius: 13px;
  padding-inline: 12px;
}

.standard-commission-status {
  min-height: 16px;
  font-size: 11px;
  line-height: 1.3;
}

.cart-list {
  padding: 10px 12px;
}

.standard-cart,
.cart-group {
  border-radius: 14px;
}

.cart-line {
  display: grid !important;
  grid-template-columns: minmax(86px, 1fr) minmax(92px, 1.08fr) minmax(86px, .9fr);
  grid-template-areas:
    "sku unit total"
    "qty qty qty";
  gap: 8px 10px;
  align-items: start;
  min-height: 74px;
  padding: 10px 10px;
}

.cart-line-id {
  grid-area: sku;
  align-self: center;
  font-size: 12px;
  color: var(--slate-950);
  letter-spacing: .01em;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.cart-line-main {
  grid-area: unit;
  min-width: 0;
}

.cart-line-name {
  display: none !important;
}

.cart-line-meta {
  display: grid;
  gap: 2px;
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.cart-line-meta .price-label,
.cart-line-price span,
.cart-line-total span {
  display: block;
  color: var(--slate-500);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cart-line-meta .unit-price {
  display: block;
  color: var(--slate-950);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.cart-line-price {
  grid-area: unit;
  min-width: 0;
  text-align: left;
}

.cart-line-total {
  grid-area: total;
  min-width: 0;
  text-align: right;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.cart-line-total strong {
  display: block;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.25;
}

.cart-line-controls {
  grid-area: qty;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding-top: 2px;
}

.mini-stepper {
  flex: 0 0 auto;
}

.cart-line-more {
  grid-column: 1 / -1;
}

.cart-total-summary {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin: 10px 0 0;
  padding: 12px 0 0;
}

.cart-total-row .cart-total-amount {
  font-size: 18px;
}

@media (min-width: 1201px) {
  .sidebar {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 520px) {
  .cart-line {
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
    grid-template-areas:
      "sku total"
      "unit unit"
      "qty qty";
  }

  .cart-line-main {
    grid-area: unit;
  }

  .cart-line-total {
    grid-area: total;
  }
}


/* Update 5: Filter-Button als Filterchip, besseres Herstellerlogo, erweiterte Registrierung */
.filter-wrap {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.filter-wrap .chips {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips:not(.is-expanded) {
  max-height: 31px !important;
  overflow: hidden;
}

.filter-toggle {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  background: #fff !important;
  color: var(--slate-700) !important;
  padding: 0 13px !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.filter-toggle:hover {
  background: var(--slate-50) !important;
  border-color: var(--border-strong) !important;
  color: var(--accent-dark) !important;
  transform: translateY(-1px);
}

.filter-toggle .icon {
  width: 16px;
  height: 16px;
}

.product-info {
  min-width: 0;
}

.product-info-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  gap: 12px;
  margin-bottom: 4px;
}

.product-info-head .badge-row {
  margin-bottom: 0;
}

.product-info-head .manufacturer-logo-card {
  width: 34px !important;
  height: 34px !important;
  justify-self: end;
  margin: 0 !important;
  overflow: hidden;
}

.product-info-head .manufacturer-logo-img {
  width: 34px !important;
  height: 34px !important;
  object-fit: cover;
}

.product-actions .manufacturer-logo-card {
  display: none !important;
}

.product-actions:empty {
  display: none;
}

.login-modal .form-grid {
  gap: 13px;
}

.login-modal .select {
  min-height: 48px;
}

.login-modal input:disabled {
  background: var(--slate-100);
  color: var(--slate-500);
}

@media (max-width: 640px) {
  .filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-toggle {
    width: fit-content;
  }

  .product-info-head {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 8px;
  }

  .product-info-head .manufacturer-logo-card,
  .product-info-head .manufacturer-logo-img {
    width: 32px !important;
    height: 32px !important;
  }
}


/* Update 6: Versandkosten gemaess Projektspezifikation + mehrere Herstellerlogos */
.manufacturer-logo-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.product-info-head .manufacturer-logo-list {
  margin-left: auto;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card {
  margin: 0;
}

.shipping-overview {
  display: grid;
  gap: 10px;
}

.shipping-note {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
}

.shipping-table {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.shipping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  color: var(--slate-700);
  font-size: 13px;
}

.shipping-row strong {
  color: var(--slate-950);
  white-space: nowrap;
}

.shipping-calculation {
  border: 1px solid rgba(21, 128, 61, .22);
  border-radius: 14px;
  background: var(--green-50);
  padding: 10px;
  color: var(--green-700);
  font-size: 13px;
  line-height: 1.45;
}

.shipping-calculation.warning {
  border-color: rgba(180, 83, 9, .24);
  background: var(--amber-50);
  color: var(--amber-700);
}

.checkout-totals {
  display: grid;
  gap: 8px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--slate-700);
  font-size: 13px;
}

.checkout-total-row.total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  color: var(--slate-950);
  font-size: 15px;
  font-weight: 950;
}

.checkout-total-row strong {
  white-space: nowrap;
}


/* Update 7: Checkout-Versandkarten, Mehrfach-Logos und Mobile-Scroll-Fix */
.product-info-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start;
}

.product-info-head .manufacturer-logo-list {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap !important;
  width: auto;
  max-width: 76px;
  overflow: visible;
  justify-self: end;
  flex: 0 0 auto;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card,
.product-info-head .manufacturer-logo-list .manufacturer-logo-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card {
  display: grid !important;
  place-items: center;
  overflow: hidden;
}

.shipping-overview {
  gap: 12px;
}

.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0 !important;
}

.shipping-row {
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 76px;
  padding: 10px 8px !important;
  text-align: center;
}

.shipping-weight {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.shipping-price {
  color: var(--slate-950);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.shipping-note {
  display: none !important;
}

/* Mobile cart layout handled in unified offcanvas drawer rules */

@media (max-width: 480px) {
  .shipping-table {
    gap: 6px;
  }

  .shipping-row {
    min-height: 72px;
    padding: 8px 5px !important;
  }

  .shipping-weight {
    font-size: 11px;
  }

  .shipping-price {
    font-size: 14px;
  }

  .product-info-head .manufacturer-logo-list {
    max-width: 70px;
  }

  .product-info-head .manufacturer-logo-list .manufacturer-logo-card,
  .product-info-head .manufacturer-logo-list .manufacturer-logo-img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex-basis: 30px;
  }
}


/* Update 8: Checkout ohne technischen Exportblock, bessere Versandkarten, Notiz/Rabattcode, stabilere Mehrfach-Logos */
.shipping-overview {
  gap: 14px !important;
}

.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
  margin-top: 0 !important;
}

.shipping-row {
  position: relative;
  display: grid !important;
  place-items: center;
  align-content: center;
  min-height: 92px !important;
  gap: 8px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
  padding: 14px 10px !important;
  overflow: hidden;
}

.shipping-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: .8;
}

.shipping-weight {
  display: block;
  color: var(--slate-700) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.2;
  letter-spacing: .01em;
}

.shipping-price {
  display: block;
  color: var(--accent) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.checkout-field-grid {
  display: grid;
  gap: 12px;
}

.checkout-note {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
  color: var(--slate-800);
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.checkout-note:focus,
.checkout-field-grid .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.product-info-head {
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 10px !important;
}

.product-info-head .manufacturer-logo-list {
  width: 64px !important;
  max-width: 64px !important;
  min-width: 64px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 30px);
  justify-content: end;
  align-content: start;
  gap: 4px !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card,
.product-info-head .manufacturer-logo-list .manufacturer-logo-img {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
}

@media (min-width: 620px) {
  .checkout-field-grid {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    align-items: start;
  }
}

@media (max-width: 480px) {
  .shipping-table {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .shipping-row {
    min-height: 86px !important;
    padding: 12px 5px !important;
    border-radius: 14px !important;
  }

  .shipping-weight {
    font-size: 11px !important;
  }

  .shipping-price {
    font-size: 14px !important;
  }

  .product-info-head {
    grid-template-columns: minmax(0, 1fr) 54px !important;
  }

  .product-info-head .manufacturer-logo-list {
    width: 54px !important;
    max-width: 54px !important;
    min-width: 54px !important;
    grid-template-columns: repeat(2, 25px);
  }

  .product-info-head .manufacturer-logo-list .manufacturer-logo-card,
  .product-info-head .manufacturer-logo-list .manufacturer-logo-img {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    flex-basis: 25px !important;
  }
}


/* Update 9: Lesbarere Versandkostenstufen, keine roten Versandkarten, reale Produktdaten */
.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
  align-items: stretch;
}

.shipping-row {
  position: relative;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  min-height: 96px !important;
  gap: 8px !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
  padding: 16px 10px !important;
  text-align: center !important;
}

.shipping-row::before {
  display: none !important;
}

.shipping-weight {
  display: block;
  color: var(--slate-700) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.shipping-price {
  display: block;
  color: var(--slate-950) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  text-align: center !important;
}

.shipping-calculation {
  border-color: var(--border) !important;
  background: var(--slate-50) !important;
  color: var(--slate-700) !important;
}

.product-img {
  object-fit: contain !important;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%) !important;
}

@media (max-width: 480px) {
  .shipping-table {
    gap: 8px !important;
  }

  .shipping-row {
    min-height: 86px !important;
    padding: 12px 5px !important;
  }

  .shipping-weight {
    font-size: 11px !important;
  }

  .shipping-price {
    font-size: 15px !important;
  }
}


/* Update 10: Checkout-Felder neu positioniert und Versandkosten lesbarer */
.shipping-overview {
  margin-top: 12px;
}

.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

.shipping-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 92px !important;
  padding: 14px 10px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--slate-700) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.shipping-row::before {
  display: none !important;
}

.shipping-weight {
  display: block !important;
  width: 100%;
  margin: 0 0 7px !important;
  color: var(--slate-600) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

.shipping-price {
  display: block !important;
  width: 100%;
  color: var(--slate-950) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.shipping-calculation {
  display: none !important;
}

.checkout-note-block {
  margin-top: 14px;
}

.checkout-note-block .checkout-note {
  margin-top: 6px;
}

.discount-section {
  background: #fff;
}

.discount-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.discount-code-row .input,
.discount-code-row .secondary-btn {
  min-height: 44px;
}

.discount-status {
  min-height: 18px;
  margin-top: 7px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .shipping-table {
    gap: 8px !important;
  }

  .shipping-row {
    min-height: 84px !important;
    padding: 10px 6px !important;
  }

  .shipping-weight {
    font-size: 11px !important;
  }

  .shipping-price {
    font-size: 15px !important;
  }

  .discount-code-row {
    grid-template-columns: 1fr;
  }
}


/* Update 11: Rabattcode direkt vor Bestellsumme, Anmerkung am Ende von Zahlung & Versand */
.checkout-discount-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  margin: 0 0 12px;
}

.checkout-summary-section {
  margin-top: 0 !important;
}

.checkout-discount-block+.checkout-summary-section {
  margin-top: 0 !important;
}

.checkout-discount-block .discount-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.checkout-discount-block .input,
.checkout-discount-block .secondary-btn {
  min-height: 44px;
  border-radius: 14px;
}

.checkout-discount-block .discount-status {
  min-height: 18px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.checkout-note-block {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.checkout-note-block .checkout-note {
  margin-top: 6px;
}

.shipping-note,
.shipping-calculation {
  display: none !important;
}

@media (max-width: 520px) {
  .checkout-discount-block .discount-code-row {
    grid-template-columns: 1fr;
  }

  .checkout-discount-block .secondary-btn {
    width: 100%;
  }
}


/* Update 12: echte Testkunden + Rabattlogik im Checkout */
.discount-status.success {
  color: var(--green-700);
}

.discount-status.error {
  color: var(--red-700);
}

.discount-status.info {
  color: var(--slate-600);
}

.checkout-total-row.discount {
  color: var(--green-700);
}

.checkout-total-row.discount strong {
  color: var(--green-700);
}

.checkout-total-row.final-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  color: var(--slate-950);
  font-size: 16px;
  font-weight: 950;
}

.checkout-total-row.final-total strong {
  color: var(--red-700);
  font-size: 17px;
}


/* Original Styles */

:root {
  --accent: #d7261e;
  --accent-dark: #b91c1c;
  --accent-soft: #fee2e2;
  --accent-ring: rgba(215, 38, 30, 0.14);
  --border: #d6dbe3;
  --border-strong: #b8c1cf;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --green-50: #f0fdf4;
  --green-700: #15803d;
  --amber-50: #fffbeb;
  --amber-700: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 14px 38px rgba(15, 23, 42, .09);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(215, 38, 30, .07), transparent 34rem), linear-gradient(180deg, #fff 0%, #f8fafc 55%, #f1f5f9 100%);
  color: var(--slate-900);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.site-header {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.header-main {
  display: grid;
  gap: 12px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  max-width: 820px;
  color: var(--slate-950);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.header-subtitle {
  margin: 10px 0 0;
  max-width: 820px;
  color: var(--slate-600);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.auth-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(248, 250, 252, .92);
  padding: 8px 12px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}

.auth-state strong {
  color: var(--slate-950);
}

.auth-state.is-guest {
  background: #f1f5f9;
  color: var(--slate-500);
  border-color: var(--slate-200);
}

.auth-state.is-authed {
  background: #fff;
  color: var(--slate-700);
  border-color: rgba(215, 38, 30, .22);
}

.auth-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--slate-300);
}

.auth-state.is-authed .auth-state-dot {
  background: var(--green-700);
}

.auth-state.is-guest .auth-state-dot {
  background: var(--slate-400);
}

.workflow-toolbar {
  display: grid;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 18px;
}

.process-nav {
  display: grid;
  gap: 10px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(214, 219, 227, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.process-step:hover {
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.process-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.process-title {
  display: block;
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.process-copy {
  display: block;
  margin-top: 2px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.mode-toggle-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 340px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.mode-toggle-card:hover {
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.mode-toggle-card.is-active {
  border-color: rgba(215, 38, 30, .55);
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
  box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-sm);
}

.mode-toggle-title {
  display: block;
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.mode-toggle-text {
  display: block;
  margin-top: 2px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 31px;
  border-radius: 999px;
  background: var(--slate-300);
  padding: 3px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.toggle-knob {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
  transform: translateX(0);
  transition: transform 180ms ease;
}

.toggle-input:checked+.toggle-switch {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, .12), 0 8px 18px rgba(215, 38, 30, .16);
}

.toggle-input:checked+.toggle-switch .toggle-knob {
  transform: translateX(23px);
}

.layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.panel,
.sidebar {
  border: 1px solid rgba(214, 219, 227, .95);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.panel {
  padding: clamp(16px, 2.4vw, 24px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.section-head,
.panel-title-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.panel-title-row h2,
.sidebar-header h2 {
  margin: 4px 0 0;
  color: var(--slate-950);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section-intro,
.cart-help,
.help-text {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-commission-section[hidden],
.standard-commission-area[hidden],
.checkout-modal[hidden],
.lightbox[hidden],
.login-modal[hidden] {
  display: none !important;
}

.catalog-commission-section {
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.target-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.new-commission-row {
  display: grid;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.input,
.select,
.search-input,
.move-select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate-900);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input,
.select,
.search-input {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 15px;
  font-size: 15px;
}

textarea {
  min-height: 92px;
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 15px;
  resize: vertical;
}

.input:focus,
.select:focus,
.search-input:focus,
.move-select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.controls {
  display: grid;
  gap: 16px;
}

.search-section {
  display: grid;
  gap: 7px;
}

.search-wrap {
  position: relative;
}

.search-wrap .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--slate-400);
  pointer-events: none;
}

.search-input {
  padding-left: 46px;
  padding-right: 44px;
}

.clear-search {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 20px;
  line-height: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0 13px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 850;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.chip:hover {
  background: var(--slate-50);
  transform: translateY(-1px);
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.product-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.product-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.product-media {
  position: relative;
}

.product-img-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
}

.product-img {
  width: 100%;
  height: 128px;
  border: 1px solid var(--border);
  border-radius: 18px;
  object-fit: cover;
  background: var(--slate-50);
  display: block;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(215, 38, 30, .24);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.category-badge,
.sku,
.manufacturer-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--slate-50);
  padding: 5px 8px 3px 8px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 850;
}

.sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.manufacturer-badge {
  display: none;
}

.manufacturer-logo-card {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 5px;
  justify-self: start;
}

.manufacturer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.manufacturer-logo-card .logo-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.product-title {
  margin: 0;
  color: var(--slate-950);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.product-desc {
  margin: 6px 0 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawing-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.drawing-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.price-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--slate-50);
  padding: 10px;
}

.base-price {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-950);
  font-weight: 950;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tier-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  min-height: 46px;
  padding: 6px;
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 850;
}

.tier-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tier-btn.action-tier {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tier-btn span {
  display: block;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 850;
}

.product-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.quantity-hint {
  display: none;
}

.active-cart-target {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
  padding: 12px 14px;
  color: var(--slate-700);
}

.active-cart-target .target-eyebrow {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.active-cart-target .target-name {
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.active-cart-target .target-help {
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.35;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 15px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  transition: opacity 120ms ease, transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.primary-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(215, 38, 30, .2);
}

.secondary-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate-800);
}

.ghost-btn {
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--slate-700);
  font-size: 12px;
}

.danger-btn {
  min-height: 34px;
  border: 1px solid #fecaca;
  background: #fff;
  color: var(--accent-dark);
  font-size: 12px;
}

.primary-btn:hover:not(:disabled),
.secondary-btn:hover:not(:disabled),
.ghost-btn:hover:not(:disabled),
.danger-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: .96;
}

.guest-locked {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 12px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
  background: var(--slate-50);
}

.guest-sidebar {
  padding: 18px;
  border-top: 1px solid var(--border);
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header p {
  margin: 0;
}

.cart-help {
  max-width: 320px;
}

.pill-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.meta-pill.unassigned {
  background: var(--amber-50);
  color: var(--amber-700);
}

.meta-pill.active-target {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.standard-commission-area {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  margin: 0;
  flex: 0 0 auto;
}

.standard-commission-head p {
  margin: 2px 0 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.4;
}

.global-commission-row {
  display: grid;
  gap: 8px;
}

.standard-commission-status {
  min-height: 18px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.standard-commission-status strong {
  color: var(--slate-950);
}

.standard-commission-status.confirmed {
  color: var(--green-700);
}

.standard-commission-status.pending {
  color: var(--amber-700);
}

.cart-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 10px;
}

.cart-list::-webkit-scrollbar {
  width: 10px;
}

.cart-list::-webkit-scrollbar-track {
  background: transparent;
}

.cart-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--slate-300);
  background-clip: content-box;
}

.standard-cart,
.cart-group {
  display: block;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  overflow: clip;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.cart-group.active-group {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-sm);
}

.cart-group-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
}

.cart-group-top {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.cart-group-toggle,
.cart-group-toggle-spacer {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--slate-600);
}

.cart-group.collapsed .chevron {
  transform: rotate(-90deg);
}

.cart-group.collapsed .cart-group-body {
  display: none;
}

.cart-group-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-950);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.cart-group-sub {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 850;
}

.cart-group-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.cart-group-actionbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding-top: 6px;
  scrollbar-width: none;
}

.cart-group-actionbar::-webkit-scrollbar {
  display: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) max-content;
  gap: 7px;
  align-items: center;
  min-height: 39px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 950;
}

.cart-line-main {
  min-width: 0;
}

.cart-line-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-950);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.25;
}

.cart-line-meta {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: max-content;
}

.mini-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.step-btn,
.cart-icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: #fff;
  color: var(--slate-700);
}

.step-btn:hover,
.cart-icon-btn:hover {
  background: var(--slate-50);
}

.step-value {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 6px;
  color: var(--slate-950);
  font-size: 12px;
  font-weight: 950;
}

.cart-icon-btn {
  border: 1px solid var(--border-strong);
  border-radius: 9px;
}

.cart-icon-btn.danger {
  color: var(--slate-600);
}

.cart-line-more {
  grid-column: 1 / -1;
  margin: 2px 0;
}

.cart-line-more summary {
  cursor: pointer;
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 850;
}

.move-panel {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.move-select {
  min-height: 32px;
  border-radius: 10px;
  padding: 0 9px;
  font-size: 12px;
}

.group-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--slate-600);
  background: #fff;
}

.submit-area {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  padding: 10px 14px 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, .06);
}

.submit-btn {
  width: 100%;
  min-height: 48px;
}

.submitted {
  border: 1px solid rgba(21, 128, 61, .24);
  border-radius: var(--radius-lg);
  margin-top: 12px;
  padding: 12px 14px;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.55;
  background: var(--green-50);
}

.submitted strong {
  color: var(--slate-950);
}

.submitted ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--slate-50));
}

.empty-state .icon {
  width: 38px;
  height: 38px;
  color: var(--slate-300);
}

.empty-state .headline {
  margin: 12px 0 0;
  color: var(--slate-950);
  font-weight: 950;
}

.empty-state p:last-child {
  margin: 6px auto 0;
  max-width: 360px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
}

.modal-backdrop,
.lightbox,
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(4px);
}

.modal-card,
.checkout-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  padding: 18px;
}

.modal-head,
.checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.modal-head h2,
.checkout-head h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 24px;
  line-height: 1.15;
}

.close-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--slate-600);
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-700);
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.tab-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-two {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.45;
}

.message-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--slate-50);
  padding: 12px;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.5;
}

.success-box {
  border-color: rgba(21, 128, 61, .24);
  background: var(--green-50);
  color: var(--green-700);
}

.warning-box {
  border-color: rgba(180, 83, 9, .24);
  background: var(--amber-50);
  color: var(--amber-700);
}

.lightbox-panel {
  width: min(900px, 100%);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  overflow: hidden;
}

.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.lightbox-head strong {
  color: var(--slate-950);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--slate-50);
}

.checkout-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--slate-50);
}

.checkout-section h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--slate-950);
}

.checkout-section p {
  margin: 4px 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.site-footer {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .9);
  padding: 16px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.footer-grid {
  display: grid;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(440px, calc(100vw - 36px));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--slate-800);
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

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

@media (min-width: 640px) {
  .process-nav.two-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-nav.three-step {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
  }

  .new-commission-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-commission-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .form-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 768px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .product-card {
    grid-template-columns: 150px minmax(0, 1fr) 230px;
    align-items: start;
  }

  .product-img {
    height: 150px;
  }
}

@media (min-width: 980px) {
  .workflow-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }
}

@media (min-width: 1201px) {
  .page {
    padding: 30px 24px 54px;
  }

  .layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(390px, 430px);
  }

  .sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: var(--sidebar-available-height, calc(100vh - 36px));
    max-height: var(--sidebar-available-height, calc(100vh - 36px));
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel,
  .sidebar {
    border-radius: 24px;
  }

  .cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cart-line-controls {
    grid-column: 1 / -1;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }
}

/* Feinschliff Produktkarte, Status, Filter und Login */
.auth-state {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 7px;
  color: var(--slate-600);
}

.auth-state.is-guest,
.auth-state.is-authed {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-state-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.auth-state.is-guest .auth-state-dot {
  background: var(--slate-400);
}

.auth-state.is-authed .auth-state-dot {
  background: var(--green-700);
}

.manufacturer-logo-card {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.manufacturer-logo-img {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  display: block;
}

.product-actions .manufacturer-logo-card {
  margin-top: 4px;
}

.product-actions .guest-locked+.manufacturer-logo-card {
  margin-top: 0;
}

.filter-wrap {
  display: grid;
  gap: 8px;
}

.chips:not(.is-expanded) {
  max-height: 31px !important;
  overflow: hidden;
}

.filter-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 2px 0;
  font-size: 13px;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-toggle:hover {
  color: var(--accent);
}

.login-modal .tab-row {
  align-items: stretch;
}

.login-modal .tab-btn {
  min-height: 42px;
}

.login-modal .message-box[hidden],
.login-modal .form-grid[hidden] {
  display: none !important;
}

.cart-line {
  grid-template-columns: 76px minmax(0, 1fr) max-content max-content;
}

.cart-line-price {
  min-width: 88px;
  text-align: right;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.cart-line-price strong {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.cart-line-price span {
  display: block;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 800;
}

.cart-total-summary {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  margin: -2px 0 10px;
  padding: 0 0 10px;
  color: var(--slate-700);
  font-size: 13px;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-total-row strong {
  color: var(--slate-950);
  font-size: 15px;
  font-weight: 950;
}

.cart-total-row .cart-total-amount {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 950;
}

@media (max-width: 520px) {
  .cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cart-line-price {
    grid-column: 1 / -1;
    text-align: left;
  }
}


/* Update 4: stabilerer Warenkorb, mehr Platz fuer Preislogik, keine versteckte aktive Zuordnung */
[hidden] {
  display: none !important;
}

.active-cart-target {
  display: none !important;
}

.sidebar-header {
  padding: 14px 16px;
}

.sidebar-header h2 {
  font-size: clamp(21px, 1.8vw, 26px);
}

.cart-help {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.45;
}

.standard-commission-area {
  gap: 8px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.standard-commission-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.standard-commission-head p {
  margin: 0;
  font-size: 11px;
}

.global-commission-row {
  gap: 7px;
}

.global-commission-row .input {
  min-height: 42px;
  border-radius: 13px;
}

.global-commission-row .secondary-btn {
  min-height: 42px;
  border-radius: 13px;
  padding-inline: 12px;
}

.standard-commission-status {
  min-height: 16px;
  font-size: 11px;
  line-height: 1.3;
}

.cart-list {
  padding: 10px 12px;
}

.standard-cart,
.cart-group {
  border-radius: 14px;
}

.cart-line {
  display: grid !important;
  grid-template-columns: minmax(86px, 1fr) minmax(92px, 1.08fr) minmax(86px, .9fr);
  grid-template-areas:
    "sku unit total"
    "qty qty qty";
  gap: 8px 10px;
  align-items: start;
  min-height: 74px;
  padding: 10px 10px;
}

.cart-line-id {
  grid-area: sku;
  align-self: center;
  font-size: 12px;
  color: var(--slate-950);
  letter-spacing: .01em;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.cart-line-main {
  grid-area: unit;
  min-width: 0;
}

.cart-line-name {
  display: none !important;
}

.cart-line-meta {
  display: grid;
  gap: 2px;
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.cart-line-meta .price-label,
.cart-line-price span,
.cart-line-total span {
  display: block;
  color: var(--slate-500);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cart-line-meta .unit-price {
  display: block;
  color: var(--slate-950);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.cart-line-price {
  grid-area: unit;
  min-width: 0;
  text-align: left;
}

.cart-line-total {
  grid-area: total;
  min-width: 0;
  text-align: right;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.cart-line-total strong {
  display: block;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.25;
}

.cart-line-controls {
  grid-area: qty;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding-top: 2px;
}

.mini-stepper {
  flex: 0 0 auto;
}

.cart-line-more {
  grid-column: 1 / -1;
}

.cart-total-summary {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin: 10px 0 0;
  padding: 12px 0 0;
}

.cart-total-row .cart-total-amount {
  font-size: 18px;
}

@media (min-width: 1201px) {
  .sidebar {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 520px) {
  .cart-line {
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
    grid-template-areas:
      "sku total"
      "unit unit"
      "qty qty";
  }

  .cart-line-main {
    grid-area: unit;
  }

  .cart-line-total {
    grid-area: total;
  }
}


/* Update 5: Filter-Button als Filterchip, besseres Herstellerlogo, erweiterte Registrierung */
.filter-wrap {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.filter-wrap .chips {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips:not(.is-expanded) {
  max-height: 36px !important;
  overflow: hidden;
}

.filter-toggle {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  background: #fff !important;
  color: var(--slate-700) !important;
  padding: 0 13px !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.filter-toggle:hover {
  background: var(--slate-50) !important;
  border-color: var(--border-strong) !important;
  color: var(--accent-dark) !important;
  transform: translateY(-1px);
}

.filter-toggle .icon {
  width: 16px;
  height: 16px;
}

.product-info {
  min-width: 0;
}

.product-info-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  gap: 12px;
  margin-bottom: 4px;
}

.product-info-head .badge-row {
  margin-bottom: 0;
}

.product-info-head .manufacturer-logo-card {
  width: 34px !important;
  height: 34px !important;
  justify-self: end;
  margin: 0 !important;
  overflow: hidden;
}

.product-info-head .manufacturer-logo-img {
  width: 34px !important;
  height: 34px !important;
  object-fit: cover;
}

.product-actions .manufacturer-logo-card {
  display: none !important;
}

.product-actions:empty {
  display: none;
}

.login-modal .form-grid {
  gap: 13px;
}

.login-modal .select {
  min-height: 48px;
}

.login-modal input:disabled {
  background: var(--slate-100);
  color: var(--slate-500);
}

@media (max-width: 640px) {
  .filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-toggle {
    width: fit-content;
  }

  .product-info-head {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 8px;
  }

  .product-info-head .manufacturer-logo-card,
  .product-info-head .manufacturer-logo-img {
    width: 32px !important;
    height: 32px !important;
  }
}


/* Update 6: Versandkosten gemaess Projektspezifikation + mehrere Herstellerlogos */
.manufacturer-logo-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.product-info-head .manufacturer-logo-list {
  margin-left: auto;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card {
  margin: 0;
}

.shipping-overview {
  display: grid;
  gap: 10px;
}

.shipping-note {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
}

.shipping-table {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.shipping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  color: var(--slate-700);
  font-size: 13px;
}

.shipping-row strong {
  color: var(--slate-950);
  white-space: nowrap;
}

.shipping-calculation {
  border: 1px solid rgba(21, 128, 61, .22);
  border-radius: 14px;
  background: var(--green-50);
  padding: 10px;
  color: var(--green-700);
  font-size: 13px;
  line-height: 1.45;
}

.shipping-calculation.warning {
  border-color: rgba(180, 83, 9, .24);
  background: var(--amber-50);
  color: var(--amber-700);
}

.checkout-totals {
  display: grid;
  gap: 8px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--slate-700);
  font-size: 13px;
}

.checkout-total-row.total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  color: var(--slate-950);
  font-size: 15px;
  font-weight: 950;
}

.checkout-total-row strong {
  white-space: nowrap;
}


/* Update 7: Checkout-Versandkarten, Mehrfach-Logos und Mobile-Scroll-Fix */
.product-info-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start;
}

.product-info-head .manufacturer-logo-list {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap !important;
  width: auto;
  max-width: 76px;
  overflow: visible;
  justify-self: end;
  flex: 0 0 auto;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card,
.product-info-head .manufacturer-logo-list .manufacturer-logo-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card {
  display: grid !important;
  place-items: center;
  overflow: hidden;
}

.shipping-overview {
  gap: 12px;
}

.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0 !important;
}

.shipping-row {
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 76px;
  padding: 10px 8px !important;
  text-align: center;
}

.shipping-weight {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.shipping-price {
  color: var(--slate-950);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.shipping-note {
  display: none !important;
}

/* Mobile cart layout handled in unified offcanvas drawer rules */

@media (max-width: 480px) {
  .shipping-table {
    gap: 6px;
  }

  .shipping-row {
    min-height: 72px;
    padding: 8px 5px !important;
  }

  .shipping-weight {
    font-size: 11px;
  }

  .shipping-price {
    font-size: 14px;
  }

  .product-info-head .manufacturer-logo-list {
    max-width: 70px;
  }

  .product-info-head .manufacturer-logo-list .manufacturer-logo-card,
  .product-info-head .manufacturer-logo-list .manufacturer-logo-img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex-basis: 30px;
  }
}


/* Update 8: Checkout ohne technischen Exportblock, bessere Versandkarten, Notiz/Rabattcode, stabilere Mehrfach-Logos */
.shipping-overview {
  gap: 14px !important;
}

.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
  margin-top: 0 !important;
}

.shipping-row {
  position: relative;
  display: grid !important;
  place-items: center;
  align-content: center;
  min-height: 92px !important;
  gap: 8px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
  padding: 14px 10px !important;
  overflow: hidden;
}

.shipping-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: .8;
}

.shipping-weight {
  display: block;
  color: var(--slate-700) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.2;
  letter-spacing: .01em;
}

.shipping-price {
  display: block;
  color: var(--accent) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.checkout-field-grid {
  display: grid;
  gap: 12px;
}

.checkout-note {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
  color: var(--slate-800);
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.checkout-note:focus,
.checkout-field-grid .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.product-info-head {
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 10px !important;
}

.product-info-head .manufacturer-logo-list {
  width: 64px !important;
  max-width: 64px !important;
  min-width: 64px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 30px);
  justify-content: end;
  align-content: start;
  gap: 4px !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
}

.product-info-head .manufacturer-logo-list .manufacturer-logo-card,
.product-info-head .manufacturer-logo-list .manufacturer-logo-img {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
}

@media (min-width: 620px) {
  .checkout-field-grid {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    align-items: start;
  }
}

@media (max-width: 480px) {
  .shipping-table {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .shipping-row {
    min-height: 86px !important;
    padding: 12px 5px !important;
    border-radius: 14px !important;
  }

  .shipping-weight {
    font-size: 11px !important;
  }

  .shipping-price {
    font-size: 14px !important;
  }

  .product-info-head {
    grid-template-columns: minmax(0, 1fr) 54px !important;
  }

  .product-info-head .manufacturer-logo-list {
    width: 54px !important;
    max-width: 54px !important;
    min-width: 54px !important;
    grid-template-columns: repeat(2, 25px);
  }

  .product-info-head .manufacturer-logo-list .manufacturer-logo-card,
  .product-info-head .manufacturer-logo-list .manufacturer-logo-img {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    flex-basis: 25px !important;
  }
}


/* Update 9: Lesbarere Versandkostenstufen, keine roten Versandkarten, reale Produktdaten */
.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
  align-items: stretch;
}

.shipping-row {
  position: relative;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  min-height: 96px !important;
  gap: 8px !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
  padding: 16px 10px !important;
  text-align: center !important;
}

.shipping-row::before {
  display: none !important;
}

.shipping-weight {
  display: block;
  color: var(--slate-700) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.shipping-price {
  display: block;
  color: var(--slate-950) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  text-align: center !important;
}

.shipping-calculation {
  border-color: var(--border) !important;
  background: var(--slate-50) !important;
  color: var(--slate-700) !important;
}

.product-img {
  object-fit: contain !important;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%) !important;
}

@media (max-width: 480px) {
  .shipping-table {
    gap: 8px !important;
  }

  .shipping-row {
    min-height: 86px !important;
    padding: 12px 5px !important;
  }

  .shipping-weight {
    font-size: 11px !important;
  }

  .shipping-price {
    font-size: 15px !important;
  }
}


/* Update 10: Checkout-Felder neu positioniert und Versandkosten lesbarer */
.shipping-overview {
  margin-top: 12px;
}

.shipping-table {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

.shipping-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 92px !important;
  padding: 14px 10px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--slate-700) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.shipping-row::before {
  display: none !important;
}

.shipping-weight {
  display: block !important;
  width: 100%;
  margin: 0 0 7px !important;
  color: var(--slate-600) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

.shipping-price {
  display: block !important;
  width: 100%;
  color: var(--slate-950) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.shipping-calculation {
  display: none !important;
}

.checkout-note-block {
  margin-top: 14px;
}

.checkout-note-block .checkout-note {
  margin-top: 6px;
}

.discount-section {
  background: #fff;
}

.discount-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.discount-code-row .input,
.discount-code-row .secondary-btn {
  min-height: 44px;
}

.discount-status {
  min-height: 18px;
  margin-top: 7px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .shipping-table {
    gap: 8px !important;
  }

  .shipping-row {
    min-height: 84px !important;
    padding: 10px 6px !important;
  }

  .shipping-weight {
    font-size: 11px !important;
  }

  .shipping-price {
    font-size: 15px !important;
  }

  .discount-code-row {
    grid-template-columns: 1fr;
  }
}


/* Update 11: Rabattcode direkt vor Bestellsumme, Anmerkung am Ende von Zahlung & Versand */
.checkout-discount-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  margin: 0 0 12px;
}

.checkout-summary-section {
  margin-top: 0 !important;
}

.checkout-discount-block+.checkout-summary-section {
  margin-top: 0 !important;
}

.checkout-discount-block .discount-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.checkout-discount-block .input,
.checkout-discount-block .secondary-btn {
  min-height: 44px;
  border-radius: 14px;
}

.checkout-discount-block .discount-status {
  min-height: 18px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.35;
}

.checkout-note-block {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.checkout-note-block .checkout-note {
  margin-top: 6px;
}

.shipping-note,
.shipping-calculation {
  display: none !important;
}

@media (max-width: 520px) {
  .checkout-discount-block .discount-code-row {
    grid-template-columns: 1fr;
  }

  .checkout-discount-block .secondary-btn {
    width: 100%;
  }
}


/* Update 12: echte Testkunden + Rabattlogik im Checkout */
.discount-status.success {
  color: var(--green-700);
}

.discount-status.error {
  color: var(--red-700);
}

.discount-status.info {
  color: var(--slate-600);
}

.checkout-total-row.discount {
  color: var(--green-700);
}

.checkout-total-row.discount strong {
  color: var(--green-700);
}

.checkout-total-row.final-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  color: var(--slate-950);
  font-size: 16px;
  font-weight: 950;
}

.checkout-total-row.final-total strong {
  color: var(--red-700);
  font-size: 17px;
}

/* Mobile FAB & Offcanvas Sidebar */
.mobile-cart-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgb(230, 240, 255);
  color: var(--dom-ui);
  box-shadow: 0 4px 12px rgba(55, 100, 166, 0.4);
  z-index: 1060;
  border: 2px solid var(--dom-ui);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.mobile-cart-fab:active {
  transform: scale(0.95);
}

.mobile-cart-fab svg {
  width: 28px;
  height: 28px;
}

.mobile-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgb(230, 240, 255);
  color: var(--dom-ui);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  border: 2px solid var(--dom-ui);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  z-index: 1070;
}

.sidebar-backdrop.show {
  display: block;
}

.mobile-cart-close {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--slate-600);
  cursor: pointer;
}

@media (max-width: 1200px) {
  .mobile-cart-fab {
    display: flex;
  }

  .mobile-cart-close {
    display: block;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    bottom: 0 !important;
    left: auto !important;
    width: 100% !important;
    max-width: 380px !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100dvh !important;
    z-index: 1080 !important;
    background: #fff !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15) !important;
    transition: right 0.3s ease !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar.open {
    right: 0 !important;
  }

  #cartSidebarContainer {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    padding: 1.25rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px)) 1rem !important;
    margin: 0 !important;
  }

  .sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-shrink: 0 !important;
    margin-bottom: 1rem !important;
  }

  .standard-commission-area {
    flex-shrink: 0 !important;
  }

  .cart-list {
    flex: 0 0 auto !important;
    overflow: visible !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 4px 2px !important;
  }

  .submit-area {
    flex-shrink: 0 !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
  }
}

/* Update 13: 3-Column Desktop Product Card */
@media (min-width: 992px) {
  .product-card {
    display: grid !important;
    grid-template-columns: 140px minmax(0, 1fr) 240px;
    gap: 20px;
    align-items: stretch;
  }

  .product-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-price-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
    padding-left: 20px;
  }
}

.product-image-col img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.tier-btn[data-action="tier-add"] {
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tier-btn[data-action="tier-add"]:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tier-btn[data-action="tier-add"]:hover span,
.tier-btn[data-action="tier-add"]:hover strong {
  color: #fff !important;
}

/* Commission Manager */
.commission-manager-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.commission-manager-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.commission-manager-item.active {
  border-color: var(--dom-ui);
  background: rgba(0, 160, 222, 0.08);
  box-shadow: 0 0 0 1px var(--dom-ui);
}

.commission-manager-item.active .commission-radio {
  border-color: var(--dom-ui);
  background: var(--dom-ui);
  box-shadow: inset 0 0 0 3px #fff;
}

.commission-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  background: #fff;
  transition: all 0.2s ease;
}

.commission-name-input {
  border: none;
  background: transparent;
  font-weight: bold;
  color: var(--slate-900);
  width: 100%;
  outline: none;
  font-size: 15px;
}

.commission-name-input:focus {
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
}

.commission-delete-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commission-delete-btn:hover {
  background: var(--red-50);
  color: var(--red-600);
}

.commission-manager-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: bold;
  font-size: 14px;
  background: transparent;
  border: none;
  cursor: pointer;

}

.commission-manager-add:hover {
  text-decoration: underline;
}

/* Add Commission Button Hover Effect */
.add-comm-btn {
  background: #fff;
  border: 2px dashed var(--slate-300);
  color: var(--slate-600);
  transition: all 0.3s ease;
}

.add-comm-btn:hover {
  border-style: solid;
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: var(--slate-900);
  background: #fff;
}

@media (min-width: 768px) and (max-width: 1399px) {
  .product-card {
    grid-template-columns: 150px minmax(0, 1fr) 190px !important;
  }
}

@media (max-width: 767px) {
  .product-price-col {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 0;
  }
}

/* Fix for cart list scrolling */
.cart-list {
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
}

.search-input:focus {
  border-color: var(--dom-ui) !important;
  box-shadow: 0 0 0 0.25rem rgba(55, 100, 166, 0.25) !important;
  background-color: #fff !important;
}

/* #cartSidebarContainer mobile styles handled in unified offcanvas drawer rules */

/* Back to Top Button */
.back-to-top {
  position: relative;
  bottom: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgb(230, 240, 255);
  color: var(--dom-ui);
  border: 1px solid rgba(55, 100, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s;
  pointer-events: auto;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.modal-open .back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.back-to-top svg {
  margin-top: -2px;
}

.back-to-top:hover {
  background-color: var(--dom-ui);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Catalog Batching / Load More */
.catalog-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem 0;
}

.btn-load-more {
  background-color: rgb(230, 240, 255);
  color: var(--dom-ui);
  border: 1px solid rgba(47, 85, 142, 0.2);
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-load-more:hover {
  background-color: var(--dom-ui);
  color: #fff;
  border-color: var(--dom-ui);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 85, 142, 0.2);
}

.btn-load-more:active {
  transform: translateY(0);
}

/* Gleichschließung Styles */
.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

/* Side-by-side only when there is genuinely enough width: 1000px-1199px (no desktop sidebar) and >= 1400px (large screen with sidebar) */
@media (min-width: 1000px) and (max-width: 1199px) {
  .product-card-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1400px) {
  .product-card-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.details-link {
  white-space: nowrap;
}

.gl-option {
  user-select: none;
  background: transparent !important;
  white-space: nowrap;
}

.gl-option .form-check {
  display: inline-flex !important;
  align-items: center !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.gl-option .form-check-input {
  float: none !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  width: 2rem;
  height: 1.1rem;
}

.gl-option .form-check-label {
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
  transform: translateY(1px) !important;
}

.gl-option .form-check-input:checked {
  background-color: var(--dom-ui);
  border-color: var(--dom-ui);
}

.gl-option .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(47, 85, 142, 0.25);
  border-color: var(--dom-ui);
}

.category-badge.badge-more {
  background-color: #e6f0ff !important;
  color: var(--dom-ui) !important;
  border: 1px solid rgba(47, 85, 142, 0.3) !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-badge.badge-more:hover {
  background-color: var(--dom-ui) !important;
  color: #fff !important;
  border-color: var(--dom-ui) !important;
}

.btn-tags-collapse {
  font-size: 11px;
  color: #6c757d;
  background: transparent;
  border: none;
  padding: 1px 4px 0 4px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  align-self: center;
}

.btn-tags-collapse:hover {
  color: var(--dom-ui);
  text-decoration: none;
}

/* Compact Cart Sidebar Enhancements */
#cartSidebarContainer .sidebar-header,
.sidebar-header {
  padding: 0 10px 4px 10px !important;
  margin-bottom: 8px;
  margin-bottom: 16px !important;
  border-bottom: none !important;
}

#cartSidebarContainer .sidebar-header #cartKicker {
  margin-top: 0;
  margin-bottom: 2px;
}

#cartSidebarContainer .sidebar-header #cartTitle {
  margin: 0;
  line-height: 1.15;
  font-size: 1.65rem !important;
}

#cartSidebarContainer .cart-list {
  padding: 0 10px !important;
}

#cartSidebarContainer .cart-list .cart-items-box,
#cartSidebarContainer .cart-list .border.rounded:not(.target-group) {
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}

#cartSidebarContainer .cart-list .target-group {
  padding: 0 !important;
}

.add-comm-btn {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

.target-group .bg-white.border-top {
  padding-bottom: 6px !important;
}

.cart-item-row:last-child {
  border-bottom: none !important;
}

#cartSidebarContainer .submit-area,
.submit-area {
  border-top: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 0 10px !important;
}

#cartSidebarContainer .cart-total-summary,
.cart-total-summary {
  border-top: 1px solid var(--border) !important;
  border-bottom: none !important;
  margin-top: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 0 !important;
  margin-bottom: 8px !important;
}