@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════
   HOREKA BULK  ·  B2B Design System  v2.0
   Palette: Navy / Slate / White / Single accent #0057FF
   ═══════════════════════════════════════════════════ */

:root {
  /* Colours */
  --c-navy: #0d1b2a;
  --c-navy-2: #162032;
  --c-slate: #2c3e55;
  --c-slate-2: #3d5166;
  --c-accent: #0057ff;
  --c-accent-dk: #0042cc;
  --c-accent-lt: #e8f0ff;
  --c-success: #16a34a;
  --c-danger: #dc2626;
  --c-warning: #b45309;
  --c-wa: #128c7e;

  --c-bg: #f0f2f5;
  --c-surface: #ffffff;
  --c-surface-2: #f7f8fa;
  --c-border: #d1d8e0;
  --c-border-dk: #b0bac6;

  --c-text: #0d1b2a;
  --c-text-2: #3d5166;
  --c-text-3: #6b7a8d;
  --c-text-inv: #ffffff;

  /* Geometry */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* Shadow — single direction, no colour bloom */
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, .10);
  --shadow-md: 0 2px 8px rgba(13, 27, 42, .12);
  --shadow-lg: 0 4px 20px rgba(13, 27, 42, .15);

  /* Type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Motion — fast & purposeful */
  --ease: 150ms ease;
}

/* ── Reset ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hb-wrap {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 60vh;
  padding: 20px 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────────── */
.hb-hidden {
  display: none !important;
}

.hb-mono {
  font-family: var(--mono);
}

/* ── Buttons ───────────────────────────────────── */
.hb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
  letter-spacing: .01em;
}

.hb-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hb-btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.hb-btn-primary:hover {
  background: var(--c-accent-dk);
  border-color: var(--c-accent-dk);
}

.hb-btn-outline {
  background: transparent;
  border-color: var(--c-border-dk);
  color: var(--c-text);
}

.hb-btn-outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-lt);
}

.hb-btn-danger {
  background: var(--c-danger);
  color: #fff;
  border-color: var(--c-danger);
}

.hb-btn-danger:hover {
  background: #b91c1c;
}

.hb-btn-success {
  background: var(--c-success);
  color: #fff;
  border-color: var(--c-success);
}

.hb-btn-success:hover {
  background: #15803d;
}

.hb-btn-whatsapp {
  background: var(--c-wa);
  color: #fff;
  border-color: var(--c-wa);
}

.hb-btn-whatsapp:hover {
  background: #0f766e;
}

.hb-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.hb-btn-lg {
  padding: 11px 22px;
  font-size: 14px;
}

.hb-btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Forms ─────────────────────────────────────── */
.hb-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
}

.hb-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .12);
}

.hb-textarea {
  resize: vertical;
  min-height: 80px;
}

.hb-form-group {
  margin-bottom: 14px;
}

.hb-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hb-optional {
  font-weight: 400;
  text-transform: none;
  color: var(--c-text-3);
}

.hb-form-error {
  font-size: 12px;
  color: var(--c-danger);
  margin-top: 4px;
}

.hb-form-success {
  font-size: 12px;
  color: var(--c-success);
  margin-top: 4px;
}

.hb-form-grid-2 {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .hb-form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.hb-fg-span2 {
  grid-column: 1 / -1;
}

.hb-fg-half {
  max-width: 260px;
}

.hb-fg-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hb-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.hb-checkbox-label,
.hb-remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 14px;
}

.hb-checkbox-label input,
.hb-remember-me input {
  width: 15px;
  height: 15px;
  accent-color: var(--c-accent);
}

/* ── Alerts ─────────────────────────────────────── */
.hb-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border-left: 3px solid transparent;
}

.hb-alert-success {
  background: #f0fdf4;
  border-color: var(--c-success);
  color: #14532d;
}

.hb-alert-error {
  background: #fef2f2;
  border-color: var(--c-danger);
  color: #7f1d1d;
}

.hb-alert-info {
  background: var(--c-accent-lt);
  border-color: var(--c-accent);
  color: var(--c-navy);
}

/* ── Status Badges ──────────────────────────────── */
.hb-order-status-badge,
.hb-inv-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid transparent;
}

.hb-status-new {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.hb-status-under_review {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.hb-status-revised {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.hb-status-converted {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}

.hb-status-rejected {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.hb-inv-unpaid {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.hb-inv-partial {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.hb-inv-paid {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}

.hb-inv-overdue {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.hb-stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid transparent;
}

.hb-stock-in_stock {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}

.hb-stock-out_of_stock {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.hb-status-dot {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
}

/* ── Page Title ─────────────────────────────────── */
.hb-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

/* ── Section Head ───────────────────────────────── */
.hb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hb-section-head h1,
.hb-section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.hb-link {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 500;
  text-decoration: none;
}

.hb-link:hover {
  text-decoration: underline;
}

/* ── Tables ─────────────────────────────────────── */
.hb-table-wrap,
.hb-product-table-wrap,
.hb-orders-table-wrap,
.hb-review-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

.hb-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hb-data-table th {
  padding: 9px 12px;
  background: var(--c-navy);
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-slate);
}

.hb-data-table td {
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}

.hb-data-table tbody tr:last-child td {
  border-bottom: none;
}

.hb-data-table tbody tr:hover td {
  background: var(--c-surface-2);
}

.hb-data-table tfoot td {
  padding: 10px 12px;
  border-top: 2px solid var(--c-border-dk);
  background: var(--c-surface-2);
  font-size: 13px;
}

.hb-inv-total-row td {
  font-weight: 700;
  font-size: 14px;
}

.hb-outstanding {
  color: var(--c-danger);
  font-weight: 700;
  font-family: var(--mono);
}

.hb-paid {
  color: var(--c-success);
  font-weight: 600;
  font-family: var(--mono);
}

/* ── Spinner ─────────────────────────────────────── */
.hb-results-loading {
  display: flex;
  justify-content: center;
  padding: 48px;
}

.hb-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: hb-spin .6s linear infinite;
}

@keyframes hb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Empty State ─────────────────────────────────── */
.hb-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--c-text-3);
  font-size: 14px;
}

.hb-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 16px;
}

.hb-empty-cart svg {
  width: 48px;
  height: 48px;
  color: var(--c-border-dk);
}

.hb-empty-cart p {
  color: var(--c-text-3);
  font-size: 15px;
}

.hb-no-results {
  text-align: center;
  padding: 24px;
  color: var(--c-text-3);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   SELLER NAV  – top horizontal strip
   ═══════════════════════════════════════════════════ */
.hb-seller-nav {
  background: var(--c-navy);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hb-nav-list {
  display: flex;
  list-style: none;
}

.hb-nav-item {
  flex-shrink: 0;
}

.hb-nav-link {
  display: block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
  letter-spacing: .01em;
}

.hb-nav-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .3);
}

.hb-nav-logout .hb-nav-link {
  color: rgba(220, 38, 38, .8);
  margin-left: auto;
}

.hb-nav-logout .hb-nav-link:hover {
  color: #fca5a5;
}

.hb-dash-content {
  padding: 0 0 48px;
}

/* ═══════════════════════════════════════════════════
   DISCOVER PAGE
   ═══════════════════════════════════════════════════ */
.hb-discover-hero {
  background: var(--c-navy);
  border-radius: var(--r-lg);
  padding: 32px 24px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.hb-hero-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.hb-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 24px;
}

.hb-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 3px;
  margin-bottom: 20px;
}

.hb-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.hb-mode-btn svg {
  width: 14px;
  height: 14px;
}

.hb-mode-active,
.hb-mode-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hb-search-bar-wrap {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}

.hb-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}

.hb-search-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.hb-search-input:focus {
  border-color: var(--c-accent);
  background: rgba(255, 255, 255, .15);
}

/* Results grid */
.hb-results-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .hb-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hb-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Seller card */
.hb-seller-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.hb-seller-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
}

.hb-sc-avatar {
  width: 44px;
  height: 44px;
  background: var(--c-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.hb-sc-firm {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--c-navy);
}

.hb-sc-meta {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 8px;
}

.hb-sc-match {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.hb-sc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Product card */
.hb-product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.hb-product-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
}

.hb-product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--c-surface-2);
  position: relative;
}

.hb-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.hb-product-card:hover .hb-product-img {
  transform: scale(1.03);
}

.hb-product-img-wrap .hb-stock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
}

.hb-product-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hb-product-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--c-navy);
}

.hb-product-pricing {
  margin-bottom: 6px;
}

.hb-price-label {
  font-size: 10px;
  color: var(--c-text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
}

.hb-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  font-family: var(--mono);
}

.hb-price-carton {
  color: var(--c-accent);
}

.hb-moq {
  font-size: 11px;
  color: var(--c-text-3);
  margin-bottom: 8px;
}

.hb-product-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}

.hb-product-actions .hb-btn {
  font-size: 11px;
  padding: 5px 10px;
}

/* Modal */
.hb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.hb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, .6);
}

.hb-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: 24px;
  width: min(90vw, 420px);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.hb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--c-text-3);
}

.hb-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-navy);
}

.hb-modal-info dt {
  font-size: 11px;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 10px;
}

.hb-modal-info dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   STORE PAGE
   ═══════════════════════════════════════════════════ */
.hb-store-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hb-store-avatar {
  width: 52px;
  height: 52px;
  background: var(--c-navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-store-info {
  flex: 1;
}

.hb-store-firm {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-navy);
}

.hb-store-meta {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 3px;
}

.hb-store-badge {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid transparent;
}

.hb-badge-open {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}

.hb-badge-locked {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.hb-product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .hb-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hb-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* PIN Overlay */
.hb-store-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hb-lock-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hb-lock-icon {
  margin-bottom: 14px;
}

.hb-lock-icon svg {
  width: 36px;
  height: 36px;
  color: var(--c-text-2);
}

.hb-lock-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-navy);
}

.hb-lock-card p {
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: 20px;
}

.hb-pin-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.hb-pin-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-navy);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.hb-pin-digit:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .12);
}

.hb-pin-error {
  font-size: 12px;
  color: var(--c-danger);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════════════ */
.hb-pd-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .hb-pd-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hb-pd-image-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 1;
}

.hb-pd-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-pd-title {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-navy);
  letter-spacing: -.01em;
}

.hb-pd-model {
  font-size: 12px;
  color: var(--c-text-3);
  font-family: var(--mono);
  margin-bottom: 6px;
}

.hb-pd-seller-tag {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 14px;
}

.hb-pd-pricing {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
  margin: 14px 0;
}

.hb-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.hb-price-row+.hb-price-row {
  border-top: 1px solid var(--c-border);
}

.hb-price-lbl {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 500;
}

.hb-price-val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
}

.hb-price-highlight {
  color: var(--c-accent);
  font-size: 18px;
}

.hb-free-delivery {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: #14532d;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 10px;
}

.hb-badge-mixed {
  background: var(--c-accent-lt);
  color: var(--c-accent-dk);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-weight: 600;
  border: 1px solid #c7d7ff;
}

.hb-unit-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.hb-unit-radio {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-color var(--ease), background var(--ease);
}

.hb-unit-radio input {
  display: none;
}

.hb-unit-active,
.hb-unit-radio:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-accent-lt);
  color: var(--c-accent-dk);
  font-weight: 600;
}

.hb-qty-wrap label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hb-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.hb-qty-btn {
  background: var(--c-surface-2);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  color: var(--c-text);
}

.hb-qty-btn:hover {
  background: var(--c-accent);
  color: #fff;
}

.hb-qty-input {
  width: 56px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  background: transparent;
  height: 36px;
  outline: none;
  color: var(--c-navy);
}

/* ═══════════════════════════════════════════════════
   CART
   ═══════════════════════════════════════════════════ */
.hb-cart-seller-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--c-navy);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}

.hb-seller-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hb-seller-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.hb-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

.hb-cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}

.hb-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
}

.hb-cart-item-unit {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 2px;
}

.hb-cart-item-price {
  font-size: 12px;
  color: var(--c-text-3);
}

.hb-cart-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hb-qty-display {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  min-width: 24px;
  text-align: center;
}

.hb-cart-item-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  font-family: var(--mono);
}

.hb-cart-remove {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--c-text-3);
  transition: color var(--ease);
  padding: 4px;
}

.hb-cart-remove:hover {
  color: var(--c-danger);
}

.hb-cart-summary {
  margin-top: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.hb-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
}

.hb-summary-row+.hb-summary-row {
  border-top: 1px solid var(--c-border);
}

.hb-checkout-btn {
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════ */
.hb-checkout-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .hb-checkout-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.hb-checkout-summary {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 72px;
}

.hb-checkout-summary h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-navy);
}

.hb-co-item {
  display: flex;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
}

.hb-co-name {
  flex: 1;
  font-weight: 500;
}

.hb-co-detail {
  color: var(--c-text-3);
}

.hb-co-price {
  font-weight: 700;
  font-family: var(--mono);
}

.hb-co-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 2px solid var(--c-border-dk);
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.hb-co-note {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════
   ORDER CONFIRMED
   ═══════════════════════════════════════════════════ */
.hb-order-confirmed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
}

.hb-confirmed-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hb-confirmed-icon {
  margin-bottom: 16px;
}

.hb-confirmed-icon svg {
  width: 52px;
  height: 52px;
  color: var(--c-success);
}

.hb-confirmed-card h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-navy);
}

.hb-confirmed-card p {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 6px;
}

.hb-confirmed-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════════════
   MY ORDERS
   ═══════════════════════════════════════════════════ */
.hb-phone-lookup {
  margin-bottom: 20px;
}

.hb-phone-lookup>label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-2);
  margin-bottom: 6px;
}

.hb-lookup-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hb-lookup-row .hb-input {
  max-width: 260px;
}

.hb-orders-list {
  display: grid;
  gap: 8px;
}

.hb-order-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.hb-order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hb-order-id {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
  font-family: var(--mono);
}

.hb-order-card-body {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.hb-discount-tag {
  background: #f0fdf4;
  color: #14532d;
  border: 1px solid #bbf7d0;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════
   ORDER DETAIL (buyer view)
   ═══════════════════════════════════════════════════ */
.hb-od-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hb-od-date {
  font-size: 12px;
  color: var(--c-text-3);
}

.hb-od-info {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-text-2);
}

.hb-od-seller-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 13px;
  margin-top: 14px;
  color: var(--c-warning);
}

/* ═══════════════════════════════════════════════════
   AUTH / SELLER LOGIN
   ═══════════════════════════════════════════════════ */
.hb-auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: var(--c-bg);
}

.hb-auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  width: min(90vw, 380px);
  box-shadow: var(--shadow-lg);
}

.hb-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
}

.hb-brand-icon {
  width: 36px;
  height: 36px;
}

.hb-auth-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--c-navy);
  letter-spacing: -.01em;
}

.hb-auth-sub {
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: 22px;
}

.hb-auth-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-3);
}

.hb-auth-footer a {
  color: var(--c-accent);
  text-decoration: none;
}

.hb-password-wrap {
  position: relative;
}

.hb-password-wrap .hb-input {
  padding-right: 40px;
}

.hb-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text-3);
}

.hb-pw-toggle svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD – KPI CARDS
   ═══════════════════════════════════════════════════ */
.hb-dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hb-dash-welcome h1 {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -.01em;
}

.hb-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .hb-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hb-kpi-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.hb-kpi-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
}

.hb-kpi-icon {
  margin-bottom: 10px;
}

.hb-kpi-icon svg {
  width: 18px;
  height: 18px;
  color: var(--c-text-3);
}

.hb-kpi-value {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  font-family: var(--mono);
  color: var(--c-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.hb-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hb-kpi-green {
  color: var(--c-success);
}

.hb-kpi-red {
  color: var(--c-danger);
}

.hb-kpi-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--c-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  letter-spacing: .03em;
}

/* Store toggle */
.hb-store-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.hb-store-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background var(--ease);
  display: flex;
  align-items: center;
  padding: 3px;
}

.hb-store-open {
  background: var(--c-success);
}

.hb-store-locked {
  background: var(--c-text-3);
}

.hb-toggle-knob {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.hb-store-open .hb-toggle-knob {
  transform: translateX(24px);
}

.hb-store-locked .hb-toggle-knob {
  transform: translateX(0);
}

/* Recent orders widget */
.hb-dash-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.hb-recent-orders {
  margin-top: 8px;
}

.hb-recent-order-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}

.hb-recent-order-row:hover {
  background: var(--c-surface-2);
}

.hb-ro-id {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
  font-family: var(--mono);
}

.hb-ro-buyer {
  font-size: 13px;
  font-weight: 500;
}

.hb-ro-date {
  font-size: 12px;
  color: var(--c-text-3);
}

/* ═══════════════════════════════════════════════════
   STATUS TABS
   ═══════════════════════════════════════════════════ */
.hb-status-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  overflow-x: auto;
}

.hb-status-tab {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.hb-status-tab:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-dk);
}

.hb-tab-active {
  background: var(--c-navy);
  color: #fff;
  border-color: var(--c-navy);
}

/* ═══════════════════════════════════════════════════
   ORDER REVIEW
   ═══════════════════════════════════════════════════ */
.hb-review-buyer-info {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 18px;
}

.hb-buyer-grid {
  display: grid;
  gap: 4px 20px;
  font-size: 13px;
  line-height: 1.8;
}

@media (min-width: 600px) {
  .hb-buyer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hb-wa-link {
  color: var(--c-wa);
  font-weight: 600;
  text-decoration: none;
}

.hb-review-table {
  min-width: 680px;
}

.hb-discount-input {
  width: 96px;
}

.hb-delivery-input {
  width: 96px;
}

.hb-review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.hb-discount-error {
  font-size: 11px;
  color: var(--c-danger);
  margin-top: 3px;
}

.hb-review-total-row td {
  font-weight: 700;
  font-size: 14px;
  background: var(--c-surface-2);
}

/* ═══════════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════════ */
.hb-settings-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.hb-settings-section h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hb-settings-hint {
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: 12px;
}

.hb-radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  transition: border-color var(--ease), background var(--ease);
}

.hb-radio-card small {
  font-size: 11px;
  font-weight: 400;
  color: var(--c-text-3);
}

.hb-radio-card:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-accent-lt);
}

.hb-rc-icon svg {
  width: 24px;
  height: 24px;
}

.hb-rc-open svg {
  color: var(--c-success);
}

.hb-rc-locked svg {
  color: var(--c-danger);
}

.hb-radio-card input[type=radio] {
  display: none;
}

/* ═══════════════════════════════════════════════════
   INVOICE DETAIL
   ═══════════════════════════════════════════════════ */
.hb-inv-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.hb-inv-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--c-navy);
  font-family: var(--mono);
}

.hb-inv-date,
.hb-inv-due {
  font-size: 12px;
  color: var(--c-text-3);
}

.hb-inv-buyer {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-text-2);
}

.hb-payment-update-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.hb-payment-update-card h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════
   MANAGE USERS
   ═══════════════════════════════════════════════════ */
.hb-add-user-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hb-add-user-card h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hb-role-badge {
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════
   PRODUCT FORM
   ═══════════════════════════════════════════════════ */
.hb-product-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.hb-image-upload-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hb-thumb-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hb-cart-item {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto auto;
  }

  .hb-cart-qty,
  .hb-cart-item-total,
  .hb-cart-remove {
    grid-column: 2;
  }

  .hb-product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hb-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hb-confirmed-actions {
    flex-direction: column;
  }

  .hb-search-bar-wrap {
    flex-direction: column;
  }

  .hb-mode-toggle {
    flex-direction: column;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   TOAST  –  CSS-class driven (no inline styles)
   ═══════════════════════════════════════════════════ */
.hb-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-lg);
}

.hb-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.hb-toast-success {
  background: var(--c-success);
}

.hb-toast-error {
  background: var(--c-danger);
}

.hb-toast-info {
  background: var(--c-accent);
}

/* ── Button active state (JS adds transform, this enables transition) ── */
.hb-btn {
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform 80ms ease;
}

.hb-btn:active {
  transform: scale(.97);
}

/* ═══════════════════════════════════════════════════════════════════════
   DISCOVER PAGE  –  Edge-to-edge, matches Horeka app mockup
   ═══════════════════════════════════════════════════════════════════════ */

/* Brand gold – for CTAs matching Horeka identity */
:root {
  --c-gold: #C9A227;
  --c-gold-dk: #A8841F;
  --c-gold-lt: #FFF8E7;
}

/* root: full bleed, no padding, light grey bg */
.hbd-root {
  font-family: var(--font);
  background: #f0f2f5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  color: var(--c-text);
}

/* ── THEME OVERRIDE RESET ─────────────────────────────────────────────
   Many themes set: svg { max-width: 100%; height: auto; }
   or: img, svg, video { width: 100%; }
   These break our icon sizes. We scope-reset everything inside .hbd-root.
   ─────────────────────────────────────────────────────────────────── */
.hbd-root svg {
  max-width: none !important;
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Size locks for each specific icon context — wins over theme */
.hbd-search-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

.hbd-search-btn svg {
  width: 14px !important;
  height: 14px !important;
}

.hbd-btn-info svg,
.hbd-btn-shop svg {
  width: 14px !important;
  height: 14px !important;
}

.hbd-match-tag svg {
  width: 14px !important;
  height: 14px !important;
}

.hbd-sc-cities svg {
  width: 12px !important;
  height: 12px !important;
}

.hbd-info-row svg {
  width: 14px !important;
  height: 14px !important;
}

.hbd-sc-prod-seller svg {
  width: 10px !important;
  height: 10px !important;
}

.hbd-sc-prod-footer svg {
  width: 12px !important;
  height: 12px !important;
}

.hbd-share-btn svg {
  width: 13px !important;
  height: 13px !important;
}

.hbd-sc-prod-img-placeholder svg {
  width: 28px !important;
  height: 28px !important;
}

.hbd-pc-img-placeholder svg {
  width: 28px !important;
  height: 28px !important;
}

.hbd-no-results svg {
  width: 36px !important;
  height: 36px !important;
}

.hbd-modal-close svg {
  width: 16px !important;
  height: 16px !important;
}

/* Button resets — some themes remove appearance on buttons */
.hbd-root button {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}

.hbd-tab {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

/* Input resets — themes may add borders / box-shadow */
.hbd-search-input {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}


/* ── Sticky search header ──────────────────────────────────────────── */
.hbd-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0 0;
}

.hbd-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px 10px;
}

.hbd-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0 12px;
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.hbd-search-box:focus-within {
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(13, 27, 42, .08);
}

.hbd-search-icon {
  width: 16px;
  height: 16px;
  color: var(--c-text-3);
  flex-shrink: 0;
}

.hbd-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-text);
  padding: 10px 0;
  background: transparent;
  min-width: 0;
}

.hbd-search-input::placeholder {
  color: var(--c-text-3);
}

/* Search button */
.hbd-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--c-navy);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), transform 80ms ease;
  flex-shrink: 0;
}

.hbd-search-btn svg {
  width: 14px;
  height: 14px;
}

.hbd-search-btn:hover {
  background: var(--c-slate);
}

.hbd-search-btn:active {
  transform: scale(.97);
}

/* ── Tabs ──────────────────────────────────────────────────────────── */
.hbd-tabs {
  display: flex;
  border-top: 1px solid var(--c-border);
}

.hbd-tab {
  flex: 1;
  padding: 11px 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--c-text-3);
  cursor: pointer;
  letter-spacing: .01em;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.hbd-tab:hover {
  color: var(--c-navy);
  background: var(--c-surface-2);
}

.hbd-tab-active {
  color: var(--c-navy);
  border-bottom-color: var(--c-navy);
  background: #fff;
}

/* ── Body ──────────────────────────────────────────────────────────── */
.hbd-body {
  padding: 10px 0 32px;
}

.hbd-status {
  font-size: 13px;
  color: var(--c-text-2);
  padding: 6px 12px 8px;
  margin: 0;
}

.hbd-status strong {
  color: var(--c-navy);
}

/* Loading */
.hbd-loading {
  display: flex;
  justify-content: center;
  padding: 48px;
}

.hbd-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--c-border);
  border-top-color: var(--c-navy);
  border-radius: 50%;
  animation: hb-spin .6s linear infinite;
}

/* No results */
.hbd-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 16px;
  color: var(--c-text-3);
  font-size: 14px;
  text-align: center;
}

.hbd-no-results svg {
  width: 36px;
  height: 36px;
}

/* Results container */
.hbd-results {
  padding: 0;
}

/* ── SELLER CARD ───────────────────────────────────────────────────── */
.hbd-seller-card {
  background: #fff;
  border-bottom: 6px solid var(--c-bg);
}

/* "Matched for" tag row */
.hbd-match-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
}

.hbd-match-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--c-text-3);
}

.hbd-match-tag strong {
  color: var(--c-navy);
  font-weight: 800;
  letter-spacing: .06em;
}

/* Seller body */
.hbd-sc-body {
  padding: 12px;
}

/* Top row: name + years */
.hbd-sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hbd-sc-firm {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0;
  line-height: 1.2;
}

.hbd-sc-yrs-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  white-space: nowrap;
}

/* Meta pills row */
.hbd-sc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.hbd-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--c-gold-lt);
  color: var(--c-gold-dk);
  border: 1px solid #EDD98A;
}

.hbd-pill-count {
  background: var(--c-accent-lt);
  color: var(--c-accent-dk);
  border-color: #c7d7ff;
}

/* Cities */
.hbd-sc-cities {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 12px;
}

.hbd-sc-cities svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Action buttons */
.hbd-sc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hbd-btn-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1.5px solid var(--c-border-dk);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color var(--ease), transform 80ms ease;
}

.hbd-btn-info svg {
  width: 14px;
  height: 14px;
}

.hbd-btn-info:hover {
  border-color: var(--c-navy);
  color: var(--c-navy);
}

.hbd-btn-info:active {
  transform: scale(.97);
}

.hbd-btn-shop {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 16px;
  background: var(--c-navy);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), transform 80ms ease;
}

.hbd-btn-shop:hover {
  background: var(--c-slate);
}

.hbd-btn-shop:active {
  transform: scale(.97);
}

/* Expandable info panel (shown when Info is clicked) */
.hbd-sc-info-panel {
  border-top: 1px solid var(--c-border);
  padding: 12px;
  display: none;
  /* toggled by JS */
  background: var(--c-surface-2);
}

.hbd-sc-info-panel.hbd-open {
  display: block;
}

.hbd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2);
  margin-bottom: 7px;
}

.hbd-info-row svg {
  width: 14px;
  height: 14px;
  color: var(--c-text-3);
  flex-shrink: 0;
  margin-top: 1px;
}

.hbd-info-row strong {
  color: var(--c-navy);
}

.hbd-free-delivery {
  color: var(--c-navy);
  font-weight: 700;
}

/* Featured product inside seller card */
.hbd-sc-product {
  border-top: 1px solid var(--c-border);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
}

.hbd-sc-prod-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
  background: var(--c-surface-2);
}

.hbd-sc-prod-img-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbd-sc-prod-img-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--c-border-dk);
}

.hbd-sc-prod-body {
  flex: 1;
  min-width: 0;
}

.hbd-sc-prod-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 2px;
  line-height: 1.3;
}

.hbd-sc-prod-seller {
  font-size: 11px;
  color: var(--c-text-3);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hbd-sc-prod-seller svg {
  width: 10px;
  height: 10px;
}

.hbd-sc-prod-moq {
  font-size: 11px;
  color: var(--c-text-2);
  margin-bottom: 8px;
}

.hbd-sc-prod-moq strong {
  color: var(--c-navy);
}

.hbd-sc-prod-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

/* Free delivery + share in seller card product */
.hbd-sc-prod-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--c-text-3);
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
  margin: 8px 12px 0;
}

.hbd-sc-prod-footer svg {
  width: 12px;
  height: 12px;
}

.hbd-free-tag {
  font-weight: 700;
  color: var(--c-navy);
  font-size: 13px;
}

.hbd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-3);
  cursor: pointer;
  font-family: var(--font);
  transition: color var(--ease);
  padding: 0;
  margin-left: auto;
}

.hbd-share-btn:hover {
  color: var(--c-accent);
}

.hbd-share-btn svg {
  width: 13px;
  height: 13px;
}

/* ── PRODUCT CARD (2-col grid) ─────────────────────────────────────── */
.hbd-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-border);
}

.hbd-product-card {
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.hbd-pc-img-wrap {
  position: relative;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.hbd-pc-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  flex-shrink: 0;
}

.hbd-pc-img-placeholder {
  width: 68px;
  height: 68px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbd-pc-img-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--c-border-dk);
}

.hbd-pc-name-block {
  flex: 1;
  min-width: 0;
}

.hbd-pc-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
  margin-bottom: 2px;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.hbd-pc-seller {
  font-size: 10px;
  color: var(--c-text-3);
  line-height: 1.2;
}

.hbd-pc-pricing {
  margin-bottom: 8px;
}

.hbd-pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.hbd-pc-amount {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--c-navy);
}

.hbd-pc-unit {
  font-size: 11px;
  color: var(--c-text-3);
}

.hbd-pc-carton {
  color: var(--c-text-2);
  font-size: 13px;
}

/* Gold ADD TO ORDER button */
.hbd-btn-add {
  display: block;
  width: 100%;
  padding: 8px 4px;
  background: var(--c-gold);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--ease), transform 80ms ease;
  margin-bottom: 6px;
}

.hbd-btn-add:hover {
  background: var(--c-gold-dk);
}

.hbd-btn-add:active {
  transform: scale(.97);
}

.hbd-pc-moq {
  font-size: 10px;
  color: var(--c-text-3);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.hbd-pc-moq strong {
  color: var(--c-navy);
}

.hbd-pc-moq-sep {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  font-size: 10px;
  color: var(--c-text-2);
}

/* ── Show More ─────────────────────────────────────────────────────── */
.hbd-show-more {
  display: block;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: none;
  border-top: 1px solid var(--c-border);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  cursor: pointer;
  text-align: center;
  transition: background var(--ease);
  margin-top: 8px;
}

.hbd-show-more:hover {
  background: var(--c-surface-2);
}

/* ── Small-margin container (replaces forced edge-to-edge) ────────── */
/* We use 8px side padding — almost zero, but lets the theme breathe   */
.hbd-root {
  padding-left: 8px !important;
  padding-right: 8px !important;
  background: #f0f2f5;
}

/* The sticky header spans full width of .hbd-root */
.hbd-header {
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
}

/* Results body: no extra side padding needed — cards will be full-width */
.hbd-body {
  padding-left: 0;
  padding-right: 0;
}

.hbd-show-more {
  margin-left: -8px;
  margin-right: -8px;
  width: calc(100% + 16px);
}