@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..700&display=swap");

/* Suburban B2B — componenten als CSS-klassen (prefix sb-). Alleen tokens, geen losse kleuren. */

.sb-root {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 350;
  color: var(--dark);
  background: var(--background);
}

.sb-root :focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.sb-on-dark :focus-visible {
  outline-color: var(--light);
}

/* Button — bron: components/_buttons.scss */
.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: fit-content;
  padding: var(--space-3) 18px var(--space-3) var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--light);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.sb-btn:hover { background: var(--dark); }
.sb-btn--dark { background: var(--dark); }
.sb-btn--dark:hover { background: var(--primary); }
.sb-btn--light { background: var(--light); color: var(--dark); }
.sb-btn--light:hover { background: var(--dark); color: var(--light); }
.sb-btn--naked { background: transparent; padding: 0; color: var(--dark); }
.sb-btn--naked:hover { background: transparent; color: var(--primary); text-decoration: underline; }
.sb-btn--sm { padding: 6px 14px; border-radius: 20px; font-size: 11px; line-height: 16px; gap: 6px; }
.sb-btn[disabled] { background: var(--grey); color: var(--text-muted); cursor: not-allowed; }

/* Badge — bron: .product-tile__pre-release, uitgevoerd als pill */
.sb-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--light);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.sb-badge--dark { background: var(--dark); }
.sb-badge--quiet { background: var(--grey); color: var(--dark); }

/* StockStatus — bron: .product-tile__stock */
.sb-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 20px; color: var(--dark); }
.sb-stock__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--line-strong); }
.sb-stock--in .sb-stock__dot { background: var(--stock-in); }
.sb-stock--order .sb-stock__dot { background: var(--stock-order); }
.sb-stock--out .sb-stock__dot { background: var(--stock-out); }

/* Price — prijs en uw prijs, excl. btw */
.sb-price { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.sb-price__list { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.sb-price__list s { margin-left: 4px; }
.sb-price__own { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--dark); }
.sb-price__own span { font-weight: 350; color: var(--text-muted); font-size: 12px; margin-right: 4px; }

/* QuantityInput */
.sb-qty { display: inline-flex; align-items: stretch; height: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-image); background: var(--background); }
.sb-qty button { width: 28px; border: 0; background: transparent; color: var(--dark); font-size: 16px; cursor: pointer; }
.sb-qty button:hover { background: var(--grey); }
.sb-qty input { width: 40px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; font-variant-numeric: tabular-nums; color: var(--dark); background: transparent; }

/* ProductTile — bron: components/_tile-product.scss */
.sb-tile { display: grid; gap: var(--space-2); align-content: start; }
.sb-tile__image { position: relative; aspect-ratio: 1; border-radius: var(--radius-image); background: var(--grey); overflow: hidden; }
.sb-tile__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-tile__badges { position: absolute; top: var(--space-2); left: var(--space-2); display: flex; gap: var(--space-1); flex-wrap: wrap; }
.sb-tile__title { font-family: var(--font-display); font-size: 14px; line-height: 20px; color: var(--dark); }
.sb-tile__title strong { font-weight: 700; display: block; }
.sb-tile__title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-tile__meta { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.sb-tile__row { display: flex; justify-content: space-between; align-items: end; gap: var(--space-2); }
.sb-tile__order { display: flex; gap: var(--space-2); align-items: center; }

/* SearchField — in de donkere header */
.sb-search { display: flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-control); background: var(--dark-gray); color: var(--light); }
.sb-search img { width: 16px; height: 16px; }
.sb-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--light); font: inherit; font-size: 14px; }
.sb-search input::placeholder { color: var(--light); opacity: 0.75; }

/* Header — bron: layout/_header.scss */
.sb-announce { background: var(--primary); color: var(--light); font-size: 12px; line-height: 16px; padding: var(--space-2) var(--space-4); text-align: center; }
.sb-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); height: var(--header-height); padding-right: var(--space-4); background: var(--dark); color: var(--light); }
.sb-header__logo { display: block; width: var(--header-height); height: var(--header-height); }
.sb-header__search { justify-self: center; width: min(560px, 100%); }
.sb-header__actions { display: flex; align-items: center; gap: var(--space-4); }
.sb-header__action { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--light); font-family: var(--font-display); font-size: 13px; font-weight: 700; text-decoration: none; }
.sb-header__action img { width: 20px; height: 20px; }
.sb-header__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--light); font-size: 11px; line-height: 18px; text-align: center; font-family: var(--font-body); font-weight: 600; }
.sb-nav { display: flex; gap: var(--space-5); padding: var(--space-2) var(--space-4); background: var(--dark); border-top: 1px solid var(--dark-gray); }
.sb-nav a { color: var(--light); font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.sb-nav a:hover { text-decoration: underline; }

/* OrderTable */
.sb-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.sb-table th { background: var(--grey); text-align: left; font-family: var(--font-display); font-size: 12px; font-weight: 700; padding: var(--space-2) var(--space-3); color: var(--dark); }
.sb-table td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.sb-table td.num, .sb-table th.num { text-align: right; }
.sb-table small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.sb-table-wrap { overflow-x: auto; }
