@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-gold: #c9a227;
  --c-gold-dk: #a8841f;
  --c-gold-lt: #fff8e7;
  --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, 0.1);
  --shadow-md: 0 2px 8px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 4px 20px rgba(13, 27, 42, 0.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: 100vh;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {

  .hb-wrap,
  .hb-order-review,
  .hbp-root,
  .hbs2-root,
  .hbd-root,
  .hbo-root {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* ── 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: 0.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, 0.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: 0.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: 0.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: 0.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: -0.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, 0.75);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.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 0.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: 0;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
}

.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, 0.65);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color var(--ease),
    border-color var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.hb-nav-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.hb-nav-active {
  color: #fff !important;
  border-bottom-color: #fff !important;
  font-weight: 700 !important;
}

.hb-nav-logout .hb-nav-link {
  color: rgba(220, 38, 38, 0.8);
  margin-left: auto;
}

.hb-nav-logout .hb-nav-link:hover {
  color: #fca5a5;
}

.hb-dash-content {
  padding: 0 16px 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: -0.02em;
}

.hb-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.hb-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.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, 0.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, 0.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, 0.2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.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, 0.4);
}

.hb-search-input:focus {
  border-color: var(--c-accent);
  background: rgba(255, 255, 255, 0.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: -0.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 0.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: 0.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, 0.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: 0.05em;
  margin-top: 10px;
}

.hb-modal-info dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   STORE PAGE (Seller Store View)
   ═══════════════════════════════════════════════════ */
.hbs-root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--c-surface-2);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* ── Header ── */
.hbs-header {
  padding: 24px 20px 20px;
  background: #f4f5f7;
  border-bottom: 1px solid var(--c-border);
}

.hbs-firm {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-navy);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hbs-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0 0 8px;
  font-weight: 500;
}

.hbs-meta svg {
  width: 14px;
  height: 14px;
  color: var(--c-text-3);
  flex-shrink: 0;
}

.hbs-meta-verify {
  font-weight: 700;
  color: var(--c-navy);
}

.hbs-check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #c9a227;
  /* Gold */
  border-radius: 4px;
  color: #fff;
}

.hbs-check-wrap svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

/* ── Search Bar ── */
.hbs-search-bar {
  padding: 16px 20px 8px;
  background: #f4f5f7;
  top: 0;
  position: sticky;
  z-index: 100;
}

.hbs-search-inner {
  display: flex;
  background: #fff;
  border: 1px solid var(--c-border-dk);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(13, 22, 35, 0.04);
}

.hbs-search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--c-navy);
  outline: none;
  min-width: 0;
}

.hbs-search-inner input::placeholder {
  color: var(--c-text-3);
}

.hbs-search-btn {
  width: 48px;
  background: var(--c-navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hbs-search-btn:hover {
  background: #1a2b42;
}

.hbs-search-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Filter Pills ── */
.hbs-filters {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #f4f5f7;
}

.hbs-filters::-webkit-scrollbar {
  display: none;
}

.hbs-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--c-border-dk);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.hbs-filter-pill:hover {
  border-color: var(--c-navy);
  color: var(--c-navy);
}

/* ── Product Grid ── */
.hbs-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
}

@media (min-width: 640px) {
  .hbs-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hbs-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Product Card ── */
.hbs-pc {
  background: #fff;
  border: 1px solid var(--c-border-dk);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.hbs-pc:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 16px rgba(13, 22, 35, 0.08);
  transform: translateY(-2px);
}

.hbs-pc-top {
  display: flex;
  background: #fff;
  padding: 12px 12px 0;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
}

.hbs-pc-img-wrap {
  width: 60px;
  height: 60px;
  background: #f4f6f8;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.hbs-pc-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hbs-pc-title-col {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.hbs-pc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  margin: 0 0 4px;
  line-height: 1.25;
}

.hbs-pc-firm {
  font-size: 10px;
  color: var(--c-text-3);
  margin: 0;
  line-height: 1.2;
}

.hbs-pc-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hbs-pc-price {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.hbs-pc-pricerow {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 4px;
}

.hbs-pc-pricerow:last-child {
  margin-bottom: 0;
}

.hbs-pc-pricerow b {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-navy);
}

.hbs-pc-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--c-text-2);
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.hbs-btn-add {
  width: 100%;
  padding: 10px;
  background: #f1cf5b;
  color: #1a2b42;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 4px;
  font-family: inherit;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
}

.hbs-btn-add:hover {
  background: #e2c047;
}

.hbs-btn-disabled {
  background: #e0e5ec;
  color: #8494a7;
  cursor: not-allowed;
}

.hbs-btn-view {
  width: 100%;
  padding: 8px;
  background: transparent;
  color: var(--c-text-2);
  border: none;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  display: block;
}

.hbs-btn-view:hover {
  color: var(--c-navy);
}

.hbs-btn-show-more {
  display: block;
  width: calc(100% - 40px);
  margin: 20px auto;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--c-border-dk);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.hbs-btn-show-more:hover {
  color: var(--c-navy);
  border-color: var(--c-navy);
}

/* 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, 0.12);
}

.hb-pin-error {
  font-size: 12px;
  color: var(--c-danger);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════
   PRODUCT DETAIL (INSPIRED)
   ═══════════════════════════════════════════════════ */
.hbp-root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 200px;
  /* Space for sticky nav */
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  /* mobile mockup width */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

.hbp-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.hbp-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-navy);
}

.hbp-back-btn svg {
  width: 24px;
  height: 24px;
}

/* ── Gallery ── */
.hbp-gallery-wrap {
  position: relative;
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hbp-main-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hbp-gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: #f4f6f9;
  border: none;
  border-radius: 50%;
  color: #1a1e23;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s ease;
  z-index: 10;
}

.hbp-gal-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hbp-gal-btn:hover {
  background: #fff;
  color: var(--c-navy);
}

.hbp-gal-btn.hbp-prev {
  left: 12px;
}

.hbp-gal-btn.hbp-next {
  right: 12px;
}

.hbp-gal-btn svg {
  width: 20px;
  height: 20px;
}

.hbp-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hbp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hbp-dot-active {
  background: #f1c40f;
  /* Yellow active dot matching mockup */
}

/* ── Info Block ── */
.hbp-info-block {
  padding: 16px 20px 0;
}

.hbp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hbp-meta-box {
  margin: 10px 0 0 0;
  text-align: left;
  padding: 0;
}

.hbp-desc-block {
  padding: 0 20px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-2);
}

/* ── "Back to Store" Banner ── */
.hbp-banner-link {
  display: block;
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: #fff;
  text-decoration: none;
  margin-bottom: 12px;
}

.hbp-banner-link h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  margin: 0;
}

/* ── Related Products ── */
.hbp-related {
  padding: 10px 0 20px;
  background: #fff;
}

.hbp-related-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-navy);
  margin: 0 0 14px 20px;
}

.hbp-related-scroller {
  /* Inherits from .hbs-filters for horizontal flex scrolling */
  padding-left: 20px;
  padding-right: 20px;
  gap: 12px;
  background: transparent;
  padding-bottom: 4px;
}

.hbp-rcard {
  /* Extends .hbs-pc */
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  background: #fff;
  /* the whole card needs a clean background, maybe slight light gray top */
}

.hbp-rcard .hbs-pc-top {
  background: rgba(43, 62, 109, 0.04);
}

.hbp-rcard .hbs-pc-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ── Bottom Sticky Nav ── */
.hbp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.hbp-support-row {
  display: flex;
  background: #f8f9fa;
  padding: 12px 16px;
  gap: 12px;
}

.hbp-btn-support {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--c-border-dk);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5d6778;
  cursor: pointer;
}

.hbp-icon-chat,
.hbp-call-icon svg {
  width: 16px;
  height: 16px;
}

.hbp-action-row {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
  background: #fff;
}

.hbp-btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.hbp-btn-yellow {
  background: #ebd16c;
  color: #1a2b42;
}

.hbp-btn-yellow:hover {
  background: #d8be5d;
}

.hbp-btn-outline {
  background: #fff;
  border: 1px solid var(--c-border-dk);
  color: var(--c-navy);
  text-decoration: none;
}

.hbp-btn-outline:hover {
  background: #f4f5f7;
}

.hbp-bottom-link-wrap {
  padding: 0 16px 16px;
  background: #fff;
}

.hbp-back-to-store-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--c-border-dk);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: none;
}

.hbp-back-to-store-btn:hover {
  background: #f4f5f7;
}

/* ═══════════════════════════════════════════════════
   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, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.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: 0.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: -0.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: -0.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: 0.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: 0.03em;
}

/* Store toggle ───────────────────────────────────────── */
.hb-store-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
}

/* The status label next to the pill */
.hb-toggle-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 250ms ease;
  min-width: 40px;
  text-align: right;
}

.hb-toggle-on .hb-toggle-label {
  color: var(--c-success);
}

.hb-toggle-off .hb-toggle-label {
  color: var(--c-text-3);
}

/* The pill */
.hb-store-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  background: var(--c-text-3);
  transition:
    background 280ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 280ms ease;
  flex-shrink: 0;
}

.hb-toggle-on {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.hb-toggle-off {
  background: #94a3b8;
  box-shadow: none;
}

/* Focus ring (accessibility) */
.hb-store-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* The knob */
.hb-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.25),
    0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* no pointer events, the button handles clicks */
  pointer-events: none;
}

/* Slide right when open */
.hb-toggle-on .hb-toggle-knob {
  transform: translateX(22px);
}

.hb-toggle-off .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: 6px;
  flex-wrap: nowrap;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.hb-status-tab {
  /* reset <button> defaults */
  appearance: none;
  -webkit-appearance: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  cursor: pointer;
  font-family: var(--font);
  /* shared look */
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--c-text-2);
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease);
  flex-shrink: 0;
}

.hb-status-tab:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-dk);
}

.hb-tab-active {
  background: var(--c-navy);
  color: #fff !important;
  border-color: var(--c-navy);
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.28);
  transform: scale(1.03);
  cursor: default;
  pointer-events: none;
}

.hb-status-tab {
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

/* ─── Ajax table wrapper ──────────────────────────────
   Full-bleed: break out of the 16px side padding of
   .hb-dash-content so the table touches the viewport
   edges like a native app. The first & last cells get
   extra padding so text never collides with the edge.  */
.hb-ajax-table-wrap {
  margin-left: -16px;
  margin-right: -16px;
}

.hb-ajax-table-wrap .hb-table-wrap,
.hb-ajax-table-wrap .hb-orders-table-wrap {
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
}

/* First and last column cells get breathing room */
.hb-data-table th:first-child,
.hb-data-table td:first-child {
  padding-left: 16px;
}

.hb-data-table th:last-child,
.hb-data-table td:last-child {
  padding-right: 16px;
}

/* Invoice action cell: allow buttons to wrap */
.hb-inv-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
}

/* ─── Quick Pay Drawer ────────────────────────────── */
.hb-pay-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hb-pay-drawer-inner {
  background: var(--c-surface);
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 20px 20px 32px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  animation: hb-slide-up 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hb-slide-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.hb-pay-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.hb-pay-drawer-header strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

#hb-pay-drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--c-text-2);
  cursor: pointer;
  padding: 0 4px;
}


/* ═══════════════════════════════════════════════════
   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: 0.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: 0.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: 0.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: 0.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: 0.01em;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.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(0.97);
}

/* ═══════════════════════════════════════════════════════════════════════
   DISCOVER PAGE  –  Clean white light theme, matching mockup
   ═══════════════════════════════════════════════════════════════════════ */

/* Brand gold – for CTAs matching Horeka identity */
/* ── App Shell Reset ── */
.hbd-root {
  margin-top: -30px;
  /* Pull up to hide space if theme margin exists */
}

/* Hide common theme elements that disrupt the app feel */
header.site-header,
div.site-header,
.entry-header,
.page-header,
.breadcrumb,
.breadcrumbs,
.oceanwp-breadcrumb {
  display: none !important;
}

:root {
  --hb-main: #3b4266;
  --hb-accent: #c9a227;
  --hb-bg: #f8fafc;
  --c-gold: #c9a227;
  --c-gold-dk: #a8841f;
  --c-gold-lt: #fff8e7;
}

/* ── Root ── */
.hbd-root {
  font-family: var(--font);
  background: #f8fafc;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
}

.hbd-root svg {
  max-width: none !important;
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Button resets */
.hbd-root button {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}

.hbd-tab {
  border: none !important;
  outline: none !important;
}

.hbd-search-input {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* ── Top Bar ── */
.hbd-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hbd-tb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hbd-tb-loc {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.hbd-tb-loc svg {
  width: 18px !important;
  height: 18px !important;
}

.hbd-tb-logo {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.05em;
}

.hbd-tb-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hbd-tb-cart {
  position: relative;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.hbd-tb-cart svg {
  width: 20px !important;
  height: 20px !important;
}

.hbd-tb-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.hbd-tb-menu {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
}

.hbd-tb-menu svg {
  width: 20px !important;
  height: 20px !important;
}

/* ── Hero Section ── */
.hbd-hero-new {
  background: linear-gradient(180deg, #e0f2fe 0%, #fff 100%);
  padding: 0 20px 60px;
  /* Set top to 0 */
  position: relative;
}

.hbd-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Changed from center to align menu to top */
  margin-bottom: 24px;
}

.hbd-hero-info {
  flex: 1;
}

.hbd-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}

.hbd-hero-sub {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  max-width: 240px;
}

.hbd-hero-visual {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
}

.hbd-hero-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.hbd-hero-menu svg {
  width: 22px !important;
  height: 22px !important;
}

.hbd-hero-img-box {
  width: 100%;
  height: 100%;
  background: url('https://img.icons8.com/clouds/200/package.png') center no-repeat;
  background-size: contain;
}

/* ── Search Bar Wrapper ── */
.hbd-search-wrapper {
  position: absolute;
  bottom: -28px;
  left: 20px;
  right: 20px;
  z-index: 10;
}

.hbd-search-inner {
  background: #fff;
  border-radius: 16px;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hbd-search-icon {
  width: 20px !important;
  height: 20px !important;
  color: #94a3b8;
}

.hbd-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #0f172a;
  outline: none;
}

.hbd-search-input::placeholder {
  color: #94a3b8;
}

/* ── Tab Toggle ── */
.hbd-tabs-wrap {
  margin-top: 40px;
  padding: 10px 20px;
  background: #fff;
  display: flex;
  justify-content: center;
}

.hbd-tabs {
  display: flex;
  width: 100%;
  max-width: 400px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  /* Darker border */
}

.hbd-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  border-radius: 10px;
}

.hbd-tab-icon {
  width: 18px !important;
  height: 18px !important;
}

.hbd-tab-active {
  background: #fff;
  color: #c9a227;
  /* Gold or brand color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hbd-tab-active::after {
  display: none;
  /* remove bottom bar */
}

/* ── Category Pills Mini ── */
.hbd-catpills-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 20px;
  scrollbar-width: none;
}

.hbd-catpills-row::-webkit-scrollbar {
  display: none;
}

.hbd-catpill-mini {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.hbd-catpill-mini-active {
  background: #3b4266;
  color: #fff;
  border-color: #3b4266;
}

.hbd-cpm-img,
.hbd-cpm-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.hbd-cpm-more {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #3b4266;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.hbd-cpm-chevron {
  width: 14px !important;
  height: 14px !important;
}

/* ── Body ── */
.hbd-body {
  padding: 0 16px 40px;
  /* Reduced bottom padding since nav is gone */
}

.hbd-loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.hbd-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f1f5f9;
  border-top-color: #3b4266;
  border-radius: 50%;
  animation: hb-spin 0.8s linear infinite;
}

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

/* ── Bottom Nav ── */
.hbd-bottom-nav {
  display: none !important;
}

.hbd-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #94a3b8;
  transition: color 0.2s;
}

.hbd-nav-item svg {
  width: 22px !important;
  height: 22px !important;
}

.hbd-nav-item span {
  font-size: 10px;
  font-weight: 700;
}

.hbd-nav-active {
  color: #3b4266;
}

/* ══════════════════════════════════════════════════════
   SELLER CARD v3 — Banner layout matching mockup
   ══════════════════════════════════════════════════════ */
.hbd-seller-card3 {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  border: 1px solid #f1f5f9;
}

.hbd-sc3-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hbd-sc3-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #f8fafc;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px #e2e8f0;
}

.hbd-sc3-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hbd-sc3-avatar-init {
  font-size: 20px;
  font-weight: 700;
  color: #3b4266;
}

.hbd-sc3-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hbd-sc3-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.hbd-sc3-firm {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.hbd-sc3-firm a {
  color: inherit;
  text-decoration: none;
}

.hbd-sc3-verified-badge {
  background: #f1f5f9;
  color: #334155;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.hbd-sc3-verified-badge svg {
  width: 14px !important;
  height: 14px !important;
  color: #16a34a;
}

.hbd-sc3-type {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.hbd-sc3-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.hbd-sc3-location svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  color: #64748b;
  flex-shrink: 0;
}

.hbd-sc3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.hbd-sc3-tag {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
}

.hbd-sc3-divider {
  height: 1px;
  background: #e2e8f0;
  width: 100%;
  margin: 8px 0;
}

.hbd-sc3-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.hbd-sc3-metrics-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hbd-sc3-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.hbd-sc3-metrics .sep {
  color: #e2e8f0;
  margin: 0 2px;
}

.hbd-sc3-metrics strong {
  color: #1e293b;
  font-weight: 600;
}

.hbd-sc3-bulk-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.hbd-sc3-bulk-line svg {
  width: 16px !important;
  height: 16px !important;
  color: #3b82f6;
  /* Matching the checkmark color from mockup */
}

.hbd-sc3-visit-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.hbd-sc3-visit-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* ── Seller Grid & Mini Cards ── */
.hbd-seller-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.hbd-seller-card-mini {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.hbd-scm-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hbd-scm-avatar {
  width: 44px;
  height: 44px;
  background: #c9a227;
  /* Fallback brand color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
}

.hbd-scm-avatar:nth-child(even) {
  background: #3b4266;
}

.hbd-scm-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hbd-scm-avatar-init {
  font-size: 14px;
  font-weight: 700;
}

.hbd-scm-info {
  flex: 1;
  min-width: 0;
}

.hbd-scm-firm {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #0f172a;
}

.hbd-scm-firm a {
  color: inherit;
  text-decoration: none;
}

.hbd-scm-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.hbd-scm-loc svg {
  width: 12px !important;
  height: 12px !important;
}

.hbd-scm-gst {
  font-size: 9px;
  color: #94a3b8;
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbd-scm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.hbd-scm-skus {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.hbd-scm-contact {
  background: #3b4266;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   PRODUCT CARD v2 — Clean portrait grid card
   ══════════════════════════════════════════════════════ */
#hb-results-grid .hbd-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  background: transparent;
}

.hbd-product-card2 {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s;
}

.hbd-product-card2:active {
  transform: scale(0.98);
}

.hbd-pc2-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  background: #f8fafc;
  overflow: hidden;
}

.hbd-pc2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hbd-pc2-img-ph {
  width: 100%;
  height: 100%;
  background: #e8ecf2;
}

.hbd-pc2-body {
  padding: 12px 14px;
}

.hbd-pc2-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbd-pc2-price {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.hbd-pc2-price span {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.hbd-pc2-seller {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbd-pc2-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hbd-pc2-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbd-pc2-location svg {
  width: 13px;
  height: 13px;
  color: #64748b;
}

.hbd-pc2-view-shop-btn {
  background: #4c6ef5;
  /* Lighter shade of blue */
  color: #ffffff;
  border: none;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hbd-pc2-view-shop-btn:active {
  background: #1e293b;
}

/* ══════════════════════════════════════════════════════
   PRODUCTS HOME MODULES — Most Reordered + Recently Restocked
   ══════════════════════════════════════════════════════ */

/* Shared section wrapper */
.hbd-ph-section {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.hbd-ph-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

/* ── Most Reordered Products ─ */
.hbd-ph-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.hbd-ph-scroll::-webkit-scrollbar {
  display: none;
}

.hbd-ph-prod-card {
  flex-shrink: 0;
  width: 120px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hbd-ph-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hbd-ph-prod-img {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  background: #f1f5f9;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbd-ph-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hbd-ph-img-ph {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  border-radius: 10px;
}

.hbd-ph-prod-name {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  margin: 0 0 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbd-ph-price {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.hbd-ph-repeat-tag {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  margin: 0;
}

/* ── Recently Restocked ─ */
.hbd-ph-rs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hbd-ph-rs-head .hbd-ph-title {
  margin-bottom: 0;
}

.hbd-ph-rs-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0ea5e9;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.hbd-ph-rs-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}

.hbd-ph-rs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hbd-ph-rs-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e8ecf2;
  transition: border-color 0.15s;
}

.hbd-ph-rs-card:active {
  border-color: #0f172a;
}

.hbd-ph-rs-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbd-ph-rs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hbd-ph-rs-info {
  flex: 1;
  min-width: 0;
}

.hbd-ph-rs-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbd-ph-rs-price {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 4px;
}

.hbd-ph-rs-dot {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
}



/* 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 */
/* Cleaned up old Discover sections */


.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: 0.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(0.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);
}

/* ── Discover page spinner ────────────────────────────────── */
@keyframes hb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 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);
}

/* ═══════════════════════════════════════════════════
   MANAGE PRODUCTS PAGE  (hb-mp-*)
   ═══════════════════════════════════════════════════ */

.hb-mp-page {
  background: #f4f5f8;
  padding: 0 0 48px;
}

/* ── Page header ── */
.hb-mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hb-mp-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.hb-mp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  background: var(--c-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--ease),
    transform 80ms ease;
  white-space: nowrap;
}

.hb-mp-add-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hb-mp-add-btn:hover {
  background: var(--c-gold-dk);
  color: #fff;
  text-decoration: none;
}

.hb-mp-add-btn:active {
  transform: scale(0.97);
}

/* ── Column header ── */
.hb-mp-col-head {
  display: grid;
  grid-template-columns: 56px 1fr 68px 80px 36px;
  gap: 0;
  padding: 6px 12px;
  background: var(--c-navy);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hb-mp-col-head span {
  padding: 0 4px;
}

/* ── Product rows ── */
.hb-mp-list {
  background: #fff;
  border-radius: 0;
}

.hb-mp-row {
  display: grid;
  grid-template-columns: 56px 1fr 68px 80px 36px;
  gap: 0;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--ease);
}

.hb-mp-row:last-child {
  border-bottom: none;
}

.hb-mp-row:hover {
  background: var(--c-surface-2);
}

/* Thumbnail */
.hb-mp-thumb-wrap {
  flex-shrink: 0;
  padding-right: 8px;
}

.hb-mp-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  display: block;
}

.hb-mp-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-mp-thumb-placeholder svg {
  width: 20px;
  height: 20px;
  color: var(--c-border-dk);
}

/* Name col */
.hb-mp-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
  min-width: 0;
}

.hb-mp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-mp-model {
  font-size: 10px;
  color: var(--c-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price col */
.hb-mp-price-col {
  text-align: right;
  padding: 0 4px;
}

.hb-mp-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  font-family: var(--mono);
}

.hb-mp-price-na {
  font-size: 13px;
  color: var(--c-text-3);
}

/* Stock col */
.hb-mp-stock-col {
  padding: 0 4px;
}

.hb-mp-stock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.hb-mp-stock svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.hb-mp-stock-in {
  color: var(--c-success);
}

.hb-mp-stock-out {
  color: var(--c-danger);
}

/* Kebab menu */
.hb-mp-act-col {
  display: flex;
  justify-content: center;
}

.hb-mp-kebab-wrap {
  position: relative;
}

.hb-mp-kebab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  color: var(--c-text-3);
  transition:
    background var(--ease),
    color var(--ease);
  padding: 0;
}

.hb-mp-kebab-btn svg {
  width: 18px;
  height: 18px;
}

.hb-mp-kebab-btn:hover {
  background: var(--c-surface-2);
  color: var(--c-navy);
}

.hb-mp-kebab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
  display: none;
  animation: hb-fade-in 120ms ease;
}

@keyframes hb-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-mp-kebab-wrap.hb-mp-kebab-open .hb-mp-kebab-menu {
  display: block;
}

.hb-mp-kebab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--ease);
  border-bottom: 1px solid var(--c-border);
}

.hb-mp-kebab-item:last-child {
  border-bottom: none;
}

.hb-mp-kebab-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--c-text-3);
}

.hb-mp-kebab-item:hover {
  background: var(--c-surface-2);
  text-decoration: none;
  color: var(--c-navy);
}

.hb-mp-kebab-danger {
  color: var(--c-danger);
}

.hb-mp-kebab-danger svg {
  color: var(--c-danger);
}

.hb-mp-kebab-danger:hover {
  background: #fef2f2;
  color: var(--c-danger);
}

/* Empty state */
.hb-mp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 20px;
  text-align: center;
  color: var(--c-text-3);
}

.hb-mp-empty svg {
  width: 40px;
  height: 40px;
  color: var(--c-border-dk);
}

.hb-mp-empty p {
  font-size: 14px;
}

/* Count footer */
.hb-mp-count {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-3);
  padding: 14px 12px;
  background: #fff;
  border-top: 1px solid var(--c-border);
}

/* ═══════════════════════════════════════════════════
   PRODUCT FORM PAGE  (hb-pf-*)
   ═══════════════════════════════════════════════════ */

.hb-pf-page {
  background: #f4f5f8;
  padding: 0 0 80px;
}

/* Back nav */
.hb-pf-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 14px 16px 0;
  transition: color var(--ease);
}

.hb-pf-back-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hb-pf-back-link:hover {
  color: var(--c-navy);
  text-decoration: none;
}

/* Page title */
.hb-pf-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  padding: 8px 16px 4px;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Card sections */
.hb-pf-card {
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.hb-pf-card:first-of-type {
  margin-top: 12px;
}

/* Two-column card row */
.hb-pf-card-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 480px) {
  .hb-pf-card-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .hb-pf-card-row .hb-pf-field {
    flex: 1 1 120px;
  }
}

/* Field */
.hb-pf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Section label (bold, small caps) */
.hb-pf-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  display: block;
}

/* Field label (slightly larger) */
.hb-pf-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  margin: 0;
}

/* Inputs */
.hb-pf-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-surface);
  outline: none;
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.hb-pf-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.hb-pf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding: 0 36px 0 12px;
  height: 44px;
  line-height: 44px;
  cursor: pointer;
}

.hb-pf-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Rupee-prefixed input */
.hb-pf-rupee-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}

.hb-pf-rupee-input:focus-within {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.hb-pf-rupee-sign {
  padding: 10px 10px 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-3);
  flex-shrink: 0;
  background: var(--c-surface-2);
  border-right: 1px solid var(--c-border);
  line-height: 1;
}

.hb-pf-input-rupee {
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  flex: 1;
  min-width: 0;
}

.hb-pf-input-rupee:focus {
  border: none;
  box-shadow: none;
}

/* Photo card */
.hb-pf-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hb-pf-photo-preview {
  flex-shrink: 0;
}

.hb-pf-thumb-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  display: block;
}

.hb-pf-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  border: 1.5px dashed var(--c-border-dk);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-pf-thumb-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--c-border-dk);
}

.hb-pf-photo-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hb-pf-photo-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.3;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-pf-change-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--c-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--ease),
    transform 80ms ease;
  align-self: flex-start;
  white-space: nowrap;
}

.hb-pf-change-photo-btn:hover {
  background: var(--c-gold-dk);
}

.hb-pf-change-photo-btn:active {
  transform: scale(0.97);
}

.hb-pf-upload-status {
  font-size: 11px;
  color: var(--c-text-3);
  display: block;
}

/* Price row */
.hb-pf-price-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 400px) {
  .hb-pf-price-row {
    flex-direction: row;
    gap: 16px;
  }

  .hb-pf-price-row .hb-pf-field {
    flex: 1 1 0;
  }
}

/* Stock radio */
.hb-pf-radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hb-pf-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  transition:
    border-color var(--ease),
    background var(--ease);
  flex: 1;
  min-width: 120px;
}

.hb-pf-radio-label input[type="radio"] {
  display: none;
}

.hb-pf-radio-label:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-lt);
}

.hb-pf-radio-active {
  border-color: var(--c-gold);
  background: var(--c-gold-lt);
  color: var(--c-navy);
  font-weight: 600;
}

.hb-pf-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--c-border-dk);
  flex-shrink: 0;
  position: relative;
  background: #fff;
  transition:
    border-color var(--ease),
    background var(--ease);
}

.hb-pf-radio-active .hb-pf-radio-dot-green {
  border-color: var(--c-success);
  background: var(--c-success);
  box-shadow: inset 0 0 0 2px #fff;
}

.hb-pf-radio-active .hb-pf-radio-dot-grey {
  border-color: var(--c-text-3);
  background: var(--c-text-3);
  box-shadow: inset 0 0 0 2px #fff;
}

/* Checkbox row */
.hb-pf-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
}

.hb-pf-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-gold);
  flex-shrink: 0;
}

/* Error line */
.hb-pf-error {
  font-size: 12px;
  color: var(--c-danger);
  padding: 0 16px;
  margin-bottom: 8px;
}

/* Action buttons — sticky bar */
.hb-pf-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 10px rgba(13, 27, 42, 0.08);
  z-index: 20;
}

.hb-pf-btn-delete {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: transparent;
  color: var(--c-text-2);
  border: 1.5px solid var(--c-border-dk);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease);
  text-align: center;
}

.hb-pf-btn-delete:hover {
  border-color: var(--c-danger);
  color: var(--c-danger);
  background: #fef2f2;
  text-decoration: none;
}

.hb-pf-btn-save {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--c-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--ease),
    transform 80ms ease;
  letter-spacing: 0.01em;
}

.hb-pf-btn-save:hover {
  background: var(--c-gold-dk);
}

.hb-pf-btn-save:active {
  transform: scale(0.98);
}

.hb-pf-btn-save:disabled {
  background: var(--c-border-dk);
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════════
   GALLERY GRID  (used in both form + variation rows)
   ═══════════════════════════════════════════════════ */

.hb-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Each uploaded photo tile */
.hb-gallery-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface-2);
  flex-shrink: 0;
}

.hb-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove (×) button */
.hb-gallery-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background var(--ease);
}

.hb-gallery-remove svg {
  width: 10px;
  height: 10px;
}

.hb-gallery-remove:hover {
  background: var(--c-danger);
}

/* "Main" badge on first photo */
.hb-gallery-main-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 27, 42, 0.65);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* + Add button tile */
.hb-gallery-add-btn {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 1.5px dashed var(--c-border-dk);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--c-text-3);
  transition:
    border-color var(--ease),
    background var(--ease),
    color var(--ease);
}

.hb-gallery-add-btn svg {
  width: 22px;
  height: 22px;
}

.hb-gallery-add-btn:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-lt);
  color: var(--c-gold-dk);
}

/* Hint text */
.hb-pf-hint {
  font-size: 11px;
  color: var(--c-text-3);
  margin: 0 0 8px;
}

/* ═══════════════════════════════════════════════════
   VARIATIONS BUILDER  (hb-var-*)
   ═══════════════════════════════════════════════════ */

.hb-pf-var-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.hb-pf-var-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--c-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease);
  white-space: nowrap;
}

.hb-pf-var-add-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.hb-pf-var-add-btn:hover {
  background: var(--c-gold-dk);
}

.hb-var-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.hb-var-item {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px;
}

.hb-var-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.hb-var-name-input {
  flex: 1;
  min-width: 0;
}

.hb-var-remove-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--c-border-dk);
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-danger);
  transition:
    background var(--ease),
    border-color var(--ease);
  padding: 0;
}

.hb-var-remove-btn svg {
  width: 14px;
  height: 14px;
}

.hb-var-remove-btn:hover {
  background: #fef2f2;
  border-color: var(--c-danger);
}

/* ═══════════════════════════════════════════════════
   PRODUCT DETAIL PAGE:  GALLERY STRIP + VARIATION CHIPS
   ═══════════════════════════════════════════════════ */

/* Main image — smooth fade */
.hb-pd-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 10px;
  background: var(--c-surface-2);
  display: block;
  transition: opacity 150ms ease;
}

.hb-pd-main-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin-bottom: 10px;
  background: var(--c-surface-2);
}

/* Thumbnail strip */
.hb-pd-thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.hb-pd-thumb-strip::-webkit-scrollbar {
  display: none;
}

.hb-pd-thumb-btn {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--c-surface-2);
  transition:
    border-color var(--ease),
    opacity var(--ease);
  opacity: 0.7;
}

.hb-pd-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hb-pd-thumb-btn:hover {
  opacity: 1;
  border-color: var(--c-gold);
}

.hb-pd-thumb-active {
  border-color: var(--c-gold) !important;
  opacity: 1 !important;
}

/* Variation chip row */
.hb-pd-var-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hb-pd-var-chip {
  padding: 5px 14px;
  border: 1.5px solid var(--c-border-dk);
  border-radius: 20px;
  background: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition:
    border-color var(--ease),
    background var(--ease),
    color var(--ease);
  white-space: nowrap;
}

.hb-pd-var-chip:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-dk);
  background: var(--c-gold-lt);
}

.hb-pd-var-active {
  border-color: var(--c-gold) !important;
  background: var(--c-gold) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   HOREKA BULK — DISCOVER / HOME PAGE  (dark app-style theme)
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS tokens scoped to discover ─────────────────────────── */
.hbd-root {
  --hbd-bg: #f4f5f7;
  --hbd-surface: #ffffff;
  --hbd-surface-2: #f8f9fb;
  --hbd-border: #e0e5ec;
  --hbd-border-dk: #c4cdd8;
  --hbd-text: #1a2b42;
  --hbd-text-2: #5a6b80;
  --hbd-text-3: #8494a7;
  --hbd-gold: #c9a227;
  --hbd-gold-dk: #a8841f;
  --hbd-gold-lt: #fff8e7;
  --hbd-navy: #0d1623;
  --hbd-radius: 12px;
  --hbd-ease: 0.18s ease;
  --hbd-header-h: 106px;
  /* search + tabs */
  --hbd-nav-h: 64px;
}

.hbd-root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif !important;
  background: var(--hbd-bg) !important;
  min-height: 100vh;
  color: var(--hbd-text) !important;
  -webkit-font-smoothing: antialiased;
  padding: 0 !important;
  position: relative;
  /* ensure page body has room for sticky nav */
  padding-bottom: calc(var(--hbd-nav-h) + 16px) !important;

  /* Break out of standard WP container padding */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

/* ── Blanket resets ── */
.hbd-root *,
.hbd-root *::before,
.hbd-root *::after {
  box-sizing: border-box !important;
}

.hbd-root a {
  text-decoration: none !important;
  color: inherit;
}

.hbd-root h1,
.hbd-root h2,
.hbd-root h3,
.hbd-root h4,
.hbd-root p {
  margin: 0;
  padding: 0;
}

/* ── STICKY HEADER ──────────────────────────────────────────── */
.hbd-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hbd-border) !important;
  padding: 12px 14px 0 !important;
  margin: 0 !important;
}

/* Search row */
.hbd-search-row {
  margin-bottom: 12px;
}

.hbd-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  background: var(--hbd-surface);
  border: 1.5px solid var(--hbd-border-dk);
  border-radius: 10px;
  padding: 0 10px;
  transition: border-color var(--hbd-ease);
}

.hbd-search-box:focus-within {
  border-color: var(--hbd-gold);
}

.hbd-search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--hbd-text-3);
}

.hbd-search-input {
  flex: 1;
  height: 100%;
  min-width: 0;
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--hbd-text);
  font-size: 14px;
  font-family: inherit;
  caret-color: var(--hbd-gold);
}

.hbd-search-input::placeholder {
  color: var(--hbd-text-3);
}

.hbd-search-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hbd-surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--hbd-text-2);
  flex-shrink: 0;
  padding: 0;
  transition: background var(--hbd-ease);
}

.hbd-search-clear svg {
  width: 12px;
  height: 12px;
}

.hbd-search-clear:hover {
  background: var(--hbd-border-dk);
}

.hbd-search-submit {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--hbd-gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--hbd-navy);
  transition: background var(--hbd-ease);
  padding: 0;
}

.hbd-search-submit svg {
  width: 15px;
  height: 15px;
}

.hbd-search-submit:hover {
  background: var(--hbd-gold-dk);
}

/* Segmented tabs */
.hbd-tabs {
  display: flex;
  border: 1.5px solid var(--hbd-border-dk);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 0;
}

.hbd-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--hbd-text-3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition:
    background var(--hbd-ease),
    color var(--hbd-ease);
  border-bottom: 2px solid transparent;
}

.hbd-tab-active {
  background: var(--hbd-gold-lt);
  color: var(--hbd-gold) !important;
  font-weight: 700;
  border-bottom-color: var(--hbd-gold);
}

/* ── BODY ───────────────────────────────────────────────────── */
.hbd-body {
  padding: 12px 14px 0;
}

/* Status row (results for: X) */
.hbd-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0 10px;
}

.hbd-status-text {
  font-size: 13px;
  color: var(--hbd-text-2);
  margin: 0;
  line-height: 1.4;
}

.hbd-status-text strong {
  color: var(--hbd-text);
  font-weight: 700;
}

.hbd-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--hbd-surface-2);
  border: 1px solid var(--hbd-border-dk);
  border-radius: 20px;
  color: var(--hbd-text-2);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    border-color var(--hbd-ease),
    color var(--hbd-ease);
}

.hbd-clear-btn svg {
  width: 10px;
  height: 10px;
}

.hbd-clear-btn:hover {
  border-color: var(--hbd-gold);
  color: var(--hbd-gold);
}

/* Loading spinner */
.hbd-loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.hbd-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--hbd-border-dk);
  border-top-color: var(--hbd-gold);
  border-radius: 50%;
  animation: hb-spin 0.65s linear infinite;
}

/* No results */
.hbd-no-results {
  text-align: center;
  padding: 56px 16px;
  color: var(--hbd-text-3);
}

.hbd-no-results svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: #3a4258;
}

.hbd-no-results p {
  font-size: 14px;
  margin: 0;
}

/* Show More */
.hbd-show-more {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 14px 0;
  background: var(--hbd-surface);
  border: 1px solid var(--hbd-border-dk);
  border-radius: var(--hbd-radius);
  color: var(--hbd-text-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition:
    background var(--hbd-ease),
    border-color var(--hbd-ease);
}

.hbd-show-more:hover {
  border-color: var(--hbd-gold);
  color: var(--hbd-gold);
}

/* ═══════════════════════════════════════════════════════════════
   SELLER CARD  (Light theme + Logo + Categories)
   ═══════════════════════════════════════════════════════════════ */
.hbd-seller-card {
  display: block;
  background: var(--hbd-surface);
  border: 1px solid var(--hbd-border-dk);
  border-radius: var(--hbd-radius);
  margin-bottom: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--hbd-ease),
    box-shadow var(--hbd-ease),
    transform var(--hbd-ease);
}

.hbd-seller-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 16px rgba(13, 22, 35, 0.08);
  transform: translateY(-1px);
}

/* Card body */
.hbd-sc-body {
  padding: 14px 14px 12px;
}

/* Header Row: Logo + Firm (with Verify) */
.hbd-sc-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.hbd-sc-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--hbd-surface-2);
  border: 1px solid var(--hbd-border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbd-sc-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hbd-sc-logo-ph svg {
  width: 24px;
  height: 24px;
}

.hbd-sc-title-col {
  flex: 1;
  min-width: 0;
}

.hbd-sc-firm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--hbd-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.hbd-sc-verified {
  display: inline-flex;
  align-items: center;
}

.hbd-sc-sku-text {
  font-size: 12px;
  color: var(--hbd-text-3);
  margin: 0;
}

.hbd-sc-sku-text b {
  color: var(--hbd-text);
  font-weight: 700;
}

.hbd-sc-yrs {
  font-size: 11px;
  font-weight: 700;
  color: var(--hbd-text-2);
  background: var(--hbd-surface-2);
  border: 1px solid var(--hbd-border-dk);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Categories List */
.hbd-sc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hbd-sc-cat-chip {
  padding: 4px 10px;
  background: rgba(13, 22, 35, 0.04);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hbd-text-2);
  letter-spacing: 0.01em;
}

/* Footer meta strip */
.hbd-sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--hbd-surface-2);
  border-top: 1px solid var(--hbd-border);
}

.hbd-sc-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hbd-text-2);
}

.hbd-sc-catalog-btn {
  font-size: 13px;
  font-weight: 800;
  color: var(--hbd-gold-dk);
}

/* ═══════════════════════════════════════════════════════════════
   POPULAR SELLERS (Horizontal Scroll)
   ═══════════════════════════════════════════════════════════════ */
.hbd-popular-sellers {
  margin: 24px -14px 10px;
  /* pull out of body padding */
  padding-bottom: 8px;
}

.hbd-pop-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 12px;
  scrollbar-width: none;
}

.hbd-pop-scroll::-webkit-scrollbar {
  display: none;
}

.hbd-pop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96px;
  flex-shrink: 0;
  background: var(--hbd-surface);
  border: 1px solid var(--hbd-border-dk);
  border-radius: 12px;
  padding: 14px 8px;
  text-decoration: none;
  text-align: center;
  transition:
    border-color var(--hbd-ease),
    transform var(--hbd-ease),
    box-shadow var(--hbd-ease);
}

.hbd-pop-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 12px rgba(13, 22, 35, 0.08);
  transform: translateY(-2px);
}

.hbd-pop-logo {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 8px;
  border: 1px solid var(--hbd-border);
  background: var(--hbd-surface-2);
}

.hbd-pop-logo-ph {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  margin-bottom: 8px;
  border: 1px solid var(--hbd-border);
  background: var(--hbd-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbd-pop-firm {
  font-size: 12px;
  font-weight: 700;
  color: var(--hbd-text);
  margin: 0 0 2px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbd-pop-skus {
  font-size: 10px;
  color: var(--hbd-text-3);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT GRID  (2-col dark cards)
   ═══════════════════════════════════════════════════════════════ */
.hbd-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hbd-product-card {
  display: flex;
  flex-direction: column;
  background: var(--hbd-surface);
  border: 1px solid var(--hbd-border-dk);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--hbd-ease),
    transform var(--hbd-ease);
}

.hbd-product-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.hbd-pc-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--hbd-surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbd-pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hbd-pc-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hbd-pc-body {
  padding: 8px 10px 10px;
}

.hbd-pc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hbd-text);
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbd-pc-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--hbd-gold);
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}

.hbd-pc-price span {
  font-size: 10px;
  font-weight: 400;
  color: var(--hbd-text-3);
}

.hbd-pc-stock {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.hbd-pc-stock-in {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

.hbd-pc-stock-out {
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════
   TRENDING CATEGORIES (Horizontal Strip)
   ═══════════════════════════════════════════════════════════════ */
.hbd-trending {
  margin: 0 -14px 14px;
  padding-bottom: 4px;
}

.hbd-cat-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 4px;
  scrollbar-width: none;
}

.hbd-cat-grid::-webkit-scrollbar {
  display: none;
}

.hbd-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 74px;
  flex-shrink: 0;
  padding: 12px 6px;
  background: var(--hbd-surface);
  border: 1px solid var(--hbd-border-dk);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color var(--hbd-ease),
    background var(--hbd-ease),
    transform var(--hbd-ease),
    box-shadow var(--hbd-ease);
}

.hbd-cat-tile:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: var(--hbd-gold-lt);
  box-shadow: 0 4px 12px rgba(13, 22, 35, 0.08);
  transform: translateY(-2px);
}

.hbd-cat-icon {
  width: 40px;
  height: 40px;
  background: var(--hbd-surface-2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hbd-gold);
  border: 1px solid var(--hbd-border);
  transition: background var(--hbd-ease);
}

.hbd-cat-tile:hover .hbd-cat-icon {
  background: rgba(201, 162, 39, 0.2);
}

.hbd-cat-icon svg {
  width: 18px;
  height: 18px;
}

.hbd-cat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--hbd-text-2);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAV
   ═══════════════════════════════════════════════════════════════ */
.hbd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--hbd-nav-h);
  background: rgba(17, 19, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--hbd-border-dk);
  display: flex;
  align-items: stretch;
}

.hbd-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--hbd-text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--hbd-ease);
}

.hbd-nav-item svg {
  width: 22px;
  height: 22px;
  transition: stroke var(--hbd-ease);
}

.hbd-nav-item:hover,
.hbd-nav-active {
  color: var(--hbd-gold) !important;
}

.hbd-nav-active svg {
  stroke: var(--hbd-gold);
}

/* Active underline pill */
.hbd-nav-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--hbd-gold);
}

/* Notification badge */
.hbd-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  min-width: 16px;
  height: 16px;
  background: var(--hbd-gold);
  color: #111318;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Responsive: wider screens cap at phone-like width ─────── */
@media (min-width: 520px) {
  .hbd-root {
    max-width: 480px;
    margin: 0 auto;
  }

  .hbd-bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 480px;
  }

  .hbd-header {
    max-width: 480px;
  }
}

/* ═══════════════════════════════════════════════════
   SELLER STORE REFRESH (Quickkk Style)
   ═══════════════════════════════════════════════════ */
.hbs2-root {
  background: #f4f6f9;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

/* Header */
.hbs2-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  background: #fff;
  gap: 12px;
  position: sticky;
  top: var(--hb-site-header-h, 0px);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.hbs2-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1e23;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hbs2-back-btn:active {
  opacity: 0.7;
}

.hbs2-back-btn svg {
  width: 20px;
  height: 20px;
}



.hbs2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hbs2-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f7f9;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5460;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease;
}

.hbs2-icon-btn:active {
  transform: scale(0.95);
}

.hbs2-cart-svg {
  width: 20px !important;
  height: 20px !important;
  color: #4a5460;
  stroke-width: 1.5;
}

.hbs2-menu-svg {
  background: #fff;
  border: 1px solid #eef0f3;
}

.hbs2-menu-svg svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  color: #1a1e23;
}

.hbs2-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* Search Bar */
.hbs2-search-bar {
  padding: 12px 16px;
  background: #fff;
  display: flex;
  justify-content: center;
}

.hbs2-search-inner {
  width: 100%;
  position: relative;
}

.hbs2-search-inner input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 14px;
  border: 1px solid #dde1e6;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1e23;
  outline: none;
  background: #fff;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) inset;
  transition: border-color 0.2s ease;
}

.hbs2-search-inner input:focus {
  border-color: #abb3bd;
}

.hbs2-search-inner input::placeholder {
  color: #8e99a8;
}

/* New Seller Info Card */
.hbs2-seller-info-card {
  margin: 12px 14px 18px;
  background: linear-gradient(135deg, #e4effc 0%, #ffffff 40%);
  border-radius: 16px;
  padding: 20px 16px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hbs2-sic-top-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hbs2-sic-avatar {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hbs2-sic-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hbs2-sic-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 2px;
}

.hbs2-sic-firm {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.hbs2-sic-verified {
  background: #f1f5f9;
  color: #334155;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.hbs2-sic-verified svg {
  width: 14px;
  height: 14px;
  color: #16a34a;
}

.hbs2-sic-type {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 6px 0;
  font-weight: 500;
}

.hbs2-sic-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  margin: 0;
  font-weight: 500;
}

.hbs2-sic-loc svg {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
}

.hbs2-sic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hbs2-sic-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.hbs2-sic-divider {
  height: 1px;
  background: #e2e8f0;
  width: 100%;
  margin: 0;
}

.hbs2-sic-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.hbs2-sic-metrics .sep {
  color: #cbd5e1;
}

.hbs2-sic-metrics strong {
  color: #0f172a;
  font-weight: 700;
}

.hbs2-sic-contact {
  background: #2b395f;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hbs2-sic-contact svg {
  width: 18px;
  height: 18px;
}

.hbs2-sic-contact:active {
  background: #1e2946;
}

/* Category Scroll */
.hbs2-cat-scroll {
  display: flex;
  overflow-x: auto;
  padding: 8px 16px 20px 16px;
  gap: 16px;
  scrollbar-width: none;
  background: #fff;
  margin-bottom: 8px;
  /* space before grid */
}

.hbs2-cat-scroll::-webkit-scrollbar {
  display: none;
}

.hbs2-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 72px;
  flex-shrink: 0;
}

.hbs2-cat-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #94a3b8;
  font-weight: 500;
  font-size: 11px;
  transition: all 0.2s ease;
}

.hbs2-cat-all {
  background: #f8fafc;
  color: #475569;
}

.hbs2-cat-icon.active {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

.hbs2-cat-item span {
  font-size: 11px;
  color: #0f172a;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

/* Product Grid */
.hbs2-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #f4f6f9;
}

.hbs2-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Dual Unit Product Card */
.hbs2-dual-card {
  grid-column: 1 / -1;
  padding: 12px;
}

.hbs2-dual-top {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.hbs2-dual-img {
  width: 100px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
  background: #f4f6f9;
  border-radius: 8px;
  overflow: hidden;
}

.hbs2-dual-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 4px;
}

.hbs2-dual-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #eaf6ed;
  color: #1a6f44;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 2;
}

.hbs2-dual-badge.hbs2-badge-out {
  background: #fee2e2;
  color: #b91c1c;
}

.hbs2-dual-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hbs2-dual-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1e23;
  margin: 0 0 4px;
  line-height: 1.3;
}

.hbs2-dual-vendor {
  font-size: 12px;
  color: #475569;
  margin: 0 0 10px;
}

.hbs2-dual-vendor strong {
  color: #0f172a;
}

.hbs2-dual-toggle {
  display: flex;
  background: #eef2f6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hbs2-dt-btn {
  flex: 1;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hbs2-dt-btn.active {
  background: #2b395f;
  color: #fff;
}

.hbs2-dual-price-row {
  margin-top: auto;
}

.hbs2-dp-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.hbs2-dp-unit {
  font-size: 12px;
  color: #64748b;
}

.hbs2-dual-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eaf6ed;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.hbs2-db-icon {
  background: #2b6b4e;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.hbs2-db-text {
  font-size: 13px;
  color: #2b6b4e;
  line-height: 1.4;
}

.hbs2-db-text strong {
  font-size: 14px;
  color: #1a1e23;
}

.hbs2-db-text span {
  font-size: 11px;
  color: #475569;
}

.hbs2-dual-action .hbs2-btn-add {
  flex: none;
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

.hbs2-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.hbs2-card-img {
  width: 100%;
  padding-top: 80%;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.hbs2-card-img-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #eaf6ed;
  color: #1a6f44;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 10;
}

.hbs2-card-img-badge.hbs2-badge-out {
  background: #fee2e2;
  color: #b91c1c;
}

.hbs2-card-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 4px;
}

.hbs2-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hbs2-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1e23;
  margin: 0 0 4px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbs2-card-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  margin-bottom: 12px;
  flex: 1;
}

.hbs2-cp-main {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.hbs2-cp-unit {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.hbs2-cp-moq {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.hbs2-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hbs2-card-stock {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.hb-stock-in-bg {
  background: #def6e9;
  color: #1a6f44;
}

.hb-stock-out-bg {
  background: #fde8e8;
  color: #c81e1e;
}

.hbs2-btn-add {
  flex: 1;
  padding: 6px 4px;
  background: #2b395f;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.hbs2-btn-add:active {
  background: #1e2946;
  transform: scale(0.96);
}

.hbs2-btn-disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

/* Inline Cart Drawer (Bottom Sheet) */
.hbs2-cart-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 85vh;
  background: #fff;
  z-index: 1000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.hbs2-cart-drawer.open {
  bottom: 0;
}

.hbs2-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}

.hbs2-cd-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1e23;
  letter-spacing: -0.01em;
}

.hbs2-cd-close {
  background: #f5f7f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5460;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hbs2-cd-close:active {
  transform: scale(0.9);
}

.hbs2-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

/* Scope [horeka_bulk_cart] to adapt natively inside drawer */
.hbs2-cart-drawer-body .hb-cart-page {
  padding: 0;
  box-shadow: none;
  min-height: auto;
}

.hbs2-cart-drawer-body .hb-page-title {
  display: none;
  /* We use the drawer header title instead */
}

/* ═══════════════════════════════════════════════════════════
   MANAGE PRODUCTS – STOCK TOGGLE
   ═══════════════════════════════════════════════════════════ */

/* Wrapper: pill + label side by side */
.hb-stock-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

/* The pill track */
.hb-stock-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition:
    background 260ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 260ms ease;
}

.hb-stock-in {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.20);
}

.hb-stock-out {
  background: #94a3b8;
  box-shadow: none;
}

/* Focus ring */
.hb-stock-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* The sliding knob */
.hb-stock-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.28),
    0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hb-stock-in .hb-stock-knob {
  transform: translateX(18px);
}

.hb-stock-out .hb-stock-knob {
  transform: translateX(0);
}

/* Loading state: dim + pulse */
.hb-stock-toggle.hb-stock-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Label text */
.hb-stock-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 220ms ease;
  white-space: nowrap;
}

.hb-stock-label-in {
  color: #16a34a;
}

.hb-stock-label-out {
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════
   QUICK VIEW PRODUCT DRAWER
   ═══════════════════════════════════════════════════════════ */
.hbs2-quick-view-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 90vh;
  background: #f8fafc;
  z-index: 1000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.hbs2-quick-view-drawer.open {
  bottom: 0;
}

/* Clickable card elements (now <div>, not <a>) */
.hbd-open-qv {
  cursor: pointer;
}

.hbd-open-qv:active {
  opacity: 0.85;
  transform: scale(0.985);
}

.hbs2-qv-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}


.hbs2-qv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.hbs2-qv-htitle {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.hbs2-qv-close {
  background: none;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: -8px;
  cursor: pointer;
}

.hbs2-qv-body {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ── Quick View Gallery ── */
.hbqv-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  max-height: 500px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbqv-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 120ms ease;
  z-index: 1;
}

.hbqv-gallery .hbd-share-action {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

/* ── Thumbnail Strip (Overlayed & Fully Displayed) ── */
.hbqv-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  flex-wrap: wrap;
  /* Display fully, no scrolling */
  justify-content: center;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 20%, transparent);
  z-index: 5;
}

.hbqv-thumbs::-webkit-scrollbar {
  display: none;
}

.hbqv-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: #fff;
  transition: transform 0.2s, border-color 0.2s;
}

.hbqv-thumb:hover {
  transform: scale(1.05);
}

.hbqv-thumb-active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
}

.hbqv-thumb:hover:not(.hbqv-thumb-active) {
  border-color: #94a3b8;
}


.hbqv-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.hbqv-top-overlay .hbd-share-action {
  position: static;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-left: auto;
  /* Always pushes the button to the right side of the flex container */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  transition: all 0.2s ease;
}

.hbqv-top-overlay .hbd-share-action svg {
  width: 18px;
  height: 18px;
}

.hbqv-top-overlay .hbd-share-action:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ── Quick View Variation Chips ── */
.hbqv-var-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hbqv-var-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hbqv-var-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.hbqv-var-active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ── Quick View Info ── */
.hbqv-info {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbqv-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}

.hbqv-seller {
  font-size: 13px;
  color: #64748b;
  margin: -8px 0 0;
}

/* ── Categories ── */
.hbqv-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hbqv-cat-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f3e8ff;
  color: #7e22ce;
}

/* ── Pricing ── */
.hbqv-pricing {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hbqv-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hbqv-price-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.hbqv-price-unit {
  font-size: 13px;
  color: #64748b;
}

.hbqv-price-hint {
  font-size: 12px;
  color: #94a3b8;
}

/* ── Spec Table ── */
.hbqv-specs-table {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.hbqv-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}

.hbqv-spec-row:last-child {
  border-bottom: none;
}

.hbqv-spec-label {
  color: #64748b;
  font-weight: 500;
}

.hbqv-spec-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.hbqv-in {
  color: #16a34a;
}

.hbqv-out {
  color: #dc2626;
}

/* ── Note to Seller ── */
.hbqv-note-section {
  margin-top: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.hbqv-note-heading,
.hbqv-slider-heading {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.hbqv-note-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.hbqv-textarea {
  flex: 1;
  min-height: 60px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  resize: none;
  background: #fff;
  transition: border-color 0.2s;
}

.hbqv-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.hbqv-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #3b4266;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s;
}

.hbqv-mic-btn:active {
  transform: scale(0.9);
}

.hbqv-mic-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Description ── */
.hbqv-desc-block {
  margin-top: 4px;
}

.hbqv-desc-heading {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.hbqv-desc-body {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.hbqv-desc-body p {
  margin-top: 0;
  margin-bottom: 10px;
}

.hbqv-desc-body ul {
  padding-left: 20px;
  margin: 0 0 10px;
}

.hbs2-qv-desc-body ul,
.hbs2-qv-desc-body ol {
  padding-left: 20px;
  margin-bottom: 0;
}

/* ── Prevent body scroll when Quick View is open ── */
body.hbs2-open-modal {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.hbqv-desc-body li {
  margin-bottom: 4px;
}


.hbs2-qv-bottom-pad {
  padding-bottom: 80px;
  /* Spacer for fixed bottom bar */
}

/* Footer & Buttons */
.hbs2-qv-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 20px;
  border-top: 1px solid #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbs2-btn-add-primary {
  width: 100%;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  text-align: center;
}

.hbs2-btn-add-primary.hidden {
  display: none !important;
}

.hbs2-btn-add-primary:active {
  background: #1e293b;
  transform: scale(0.98);
}

.hbs2-btn-add-primary.hbs2-btn-disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  pointer-events: none;
}

.hbs2-qv-qty-controls {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 30px;
  padding: 4px;
  height: 50px;
}

.hbs2-qv-qty-controls.visible {
  display: flex !important;
}

.hbs2-qv-qty-btn {
  background: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.hbs2-qv-qty-btn:active {
  background: #e2e8f0;
  transform: scale(0.95);
}

.hbs2-qv-qty-btn svg {
  width: 20px;
  height: 20px;
}

.hbs2-qv-qty-input {
  background: transparent;
  border: none;
  text-align: center !important;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

/* ── Hide Page Titles on Horeka B2B Pages ── */
.hb-special-page h1.entry-title,
.hb-special-page h1.page-title,
.hb-special-page .page-header,
.hb-special-page .post-title,
.hb-special-page .entry-header {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────
   HBC — Cart Redesign  (Horeka Quickkk–inspired)
   ───────────────────────────────────────────────────────── */
.hbc-wrap {
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100%;
}

/* ── Header ── */
.hbc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.hbc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbc-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hbc-sku-pill {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.hbc-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.hbc-close-btn:hover {
  background: #e2e8f0;
}

.hbc-close-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Supplier bar ── */
.hbc-supplier-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex-wrap: wrap;
}

.hbc-supplier-verified-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hbc-supplier-label {
  font-size: 13px;
  color: #64748b;
}

.hbc-supplier-name {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

.hbc-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 20px;
  padding: 3px 9px;
}

/* ── Items list ── */
.hbc-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  margin: 0 16px 4px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9ecf0;
}

.hbc-item {
  display: flex;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.hbc-item:last-child {
  border-bottom: none;
}

.hbc-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f1f5f9;
}

.hbc-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hbc-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hbc-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.hbc-item-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hbc-item-meta strong {
  color: #1e293b;
}

.hbc-item-ppc {
  font-size: 11px;
  color: #94a3b8;
}

/* Qty row */
.hbc-item-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hbc-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  height: 34px;
}

.hbc-qty-btn {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #1e3a6a;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
  user-select: none;
}

.hbc-qty-btn:hover {
  background: #f8fafc;
}

.hbc-qty-btn:active {
  background: #e2e8f0;
}

.hbc-qty-val {
  min-width: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  padding: 0 4px;
}

.hbc-line-price {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.hbc-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #1e3a6a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: color 0.15s;
}

.hbc-remove:hover {
  color: #e53e3e;
}

.hbc-remove svg {
  width: 14px;
  height: 14px;
}

.hbc-units-line {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ── Summary ── */
.hbc-summary {
  background: #fff;
  margin: 4px 16px 16px;
  border-radius: 16px;
  border: 1px solid #e9ecf0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbc-summary-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.hbc-summary-count-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.hbc-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}

.hbc-subtotal-inline {
  color: #1e3a6a;
  font-weight: 700;
  margin-left: 4px;
}

.hbc-subtotal-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.hbc-summary-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Checkout button */
.hbc-checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #1e3a6a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-top: 4px;
  transition: background 0.18s, transform 0.1s;
}

.hbc-checkout-btn:hover {
  background: #162d54;
  color: #fff;
}

.hbc-checkout-btn:active {
  transform: scale(0.98);
}

/* ── Empty state ── */
.hbc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  gap: 12px;
  color: #94a3b8;
}

.hbc-empty svg {
  width: 64px;
  height: 64px;
  stroke: #cbd5e1;
  stroke-width: 1.5;
}

.hbc-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.hbc-empty p {
  font-size: 14px;
  margin: 0;
}

.hbc-discover-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  background: #1e3a6a;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.hbc-discover-btn:hover {
  background: #162d54;
  color: #fff;
}

/* Inside cart drawer: use full height */
.hbs2-cart-drawer-body .hbc-wrap {
  background: #f5f6fa;
}

.hbs2-cart-drawer-body .hbc-header {
  border-radius: 0;
}

/* Hide the built-in page title inside drawer */
.hbs2-cart-drawer-body .hb-page-title {
  display: none !important;
}