/* HANZO — navy, gold, white B2B marketplace theme */
:root {
  --hanzo-navy: #0d1b2a;
  --hanzo-navy-light: #1b2838;
  --hanzo-gold: #c9a227;
  --hanzo-gold-dark: #a68520;
  --hanzo-bg: #ffffff;
  --hanzo-muted: #6c757d;
  --hanzo-border: #e8ecf1;
}

/* Prevent the loading overlay from blocking the page (especially when CDN JS is blocked). */
#spinner { display: none !important; }

body.hanzo-body {
  font-family: 'Open Sans', 'Roboto', system-ui, sans-serif;
  background-color: #f8fafc;
  color: #1a1a1a;
  overflow-x: hidden;
}

.letter-spacing-tight {
  letter-spacing: 0.04em;
}
.text-hanzo-gold { color: var(--hanzo-gold) !important; }
.bg-hanzo-navy { background-color: var(--hanzo-navy) !important; }
.bg-hanzo-navy-light { background-color: var(--hanzo-navy-light) !important; }
.border-hanzo-gold { border-color: var(--hanzo-gold) !important; }

.hanzo-topbar {
  background: linear-gradient(180deg, #0f2034 0%, var(--hanzo-navy) 100%);
  color: #cbd5e1;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hanzo-topbar a { color: #e2e8f0; text-decoration: none; font-weight: 500; }
.hanzo-topbar a:hover { color: var(--hanzo-gold); }
.hanzo-topbar-tagline {
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.hanzo-topbar-sep {
  opacity: 0.45;
  margin: 0 0.35rem;
}
.hanzo-topbar-auth-guest a {
  font-weight: 600;
}

.hanzo-shop-header-main {
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.06);
}
.hanzo-header-brand-col {
  min-width: 0;
}
.hanzo-header-brand-meta {
  line-height: 1.2;
}
.hanzo-search-cat {
  max-width: 200px;
  min-width: 0;
}
.hanzo-lang-switcher {
  max-width: 100%;
}
.hanzo-lang-label {
  line-height: 1;
}
.hanzo-mobile-lang-group {
  border-radius: 0.5rem;
  overflow: hidden;
}
.hanzo-mobile-lang-group .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hanzo-mobile-lang-switch .btn-group .btn {
  min-width: 0;
}

.hanzo-account-dd .dropdown-toggle::after {
  margin-left: 0.15rem;
  vertical-align: 0.2em;
}
.hanzo-account-trigger {
  background: #fff;
  border: 1px solid var(--hanzo-border);
  color: var(--hanzo-navy);
  border-radius: 999px;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.06);
  max-width: 100%;
}
.hanzo-account-trigger:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: #fffef8;
  color: var(--hanzo-navy);
}
.hanzo-account-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.hanzo-account-avatar {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hanzo-gold) 0%, var(--hanzo-gold-dark) 100%);
  color: var(--hanzo-navy);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hanzo-account-avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
}
.hanzo-account-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .hanzo-account-name {
    max-width: 11rem;
  }
}
.hanzo-account-menu {
  min-width: 15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--hanzo-border);
  margin-top: 0.35rem !important;
}
.hanzo-account-menu .dropdown-item {
  font-weight: 500;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.hanzo-account-menu .dropdown-item:active {
  background-color: rgba(201, 162, 39, 0.18);
  color: var(--hanzo-navy);
}
.hanzo-account-dd-nav .dropdown-menu {
  margin-top: 0 !important;
}
@media (min-width: 992px) {
  .hanzo-nav-account-mobile {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .hanzo-navbar .collapse.show .hanzo-nav-cta-wrap,
  .hanzo-navbar .collapsing .hanzo-nav-cta-wrap {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hanzo-border);
  }
}

.hanzo-brand {
  color: var(--hanzo-navy) !important;
}
.hanzo-brand-fallback {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hanzo-header-brand-col .hanzo-brand-fallback {
  color: var(--hanzo-navy);
  font-size: 1.2rem;
}
.hanzo-footer .hanzo-brand-fallback {
  font-size: 1.05rem;
}
.hanzo-header-brand-col .navbar-brand {
  display: inline-flex !important;
  align-items: center;
  max-width: 200px;
  overflow: hidden;
}
.hanzo-brand-logo {
  height: 40px;
  width: auto;
  max-width: 190px;
  display: block;
  object-fit: contain;
}
/* Hard guard: keep logo controlled even if class is missing/cached markup differs. */
.hanzo-shop-header-main .navbar-brand img[src*="assets/images/logo"] {
  display: block;
  width: auto !important;
  max-width: 200px !important;
  max-height: 44px !important;
  object-fit: contain;
}
.hanzo-footer-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.45rem;
  background: #fff;
  padding: 0.25rem;
}
/* Makes dark logos visible on dark backgrounds */
.hanzo-brand-logo-invert {
  filter: brightness(0) invert(1);
}

.hanzo-search-wrap {
  border: 2px solid var(--hanzo-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
}
.hanzo-search-wrap:focus-within {
  border-color: var(--hanzo-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.hanzo-search-wrap .form-control,
.hanzo-search-wrap .form-select {
  border: 0;
  box-shadow: none !important;
}
.hanzo-search-wrap .btn-hanzo-primary {
  border-radius: 0 999px 999px 0;
}

.btn-hanzo-primary {
  background: var(--hanzo-gold);
  border-color: var(--hanzo-gold);
  color: var(--hanzo-navy);
  font-weight: 600;
}
.btn-hanzo-primary:hover {
  background: var(--hanzo-gold-dark);
  border-color: var(--hanzo-gold-dark);
  color: #fff;
}

.btn-hanzo-outline {
  border: 2px solid var(--hanzo-navy);
  color: var(--hanzo-navy);
  font-weight: 600;
}
.btn-hanzo-outline:hover {
  background: var(--hanzo-navy);
  color: #fff;
}

.hanzo-navbar {
  background: #fff;
  border-bottom: 1px solid var(--hanzo-border);
}
.hanzo-navbar .nav-link {
  color: var(--hanzo-navy);
  font-weight: 600;
}
.hanzo-navbar .nav-link:hover,
.hanzo-navbar .nav-link.active {
  color: var(--hanzo-gold);
}

.hanzo-hero {
  background: linear-gradient(135deg, var(--hanzo-navy) 0%, var(--hanzo-navy-light) 55%, #243b53 100%);
  color: #fff;
  border-radius: 0.5rem;
  padding: 2.5rem 2rem;
}
.hanzo-hero h1 { font-weight: 700; }
.hanzo-hero .lead { color: #cbd5e1; }

.hanzo-sidebar {
  background: #fff;
  border: 1px solid var(--hanzo-border);
  border-radius: 0.5rem;
}
.hanzo-sidebar .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--hanzo-border);
  color: var(--hanzo-navy);
  font-weight: 500;
}
.hanzo-sidebar .list-group-item:last-child { border-bottom: 0; }
.hanzo-sidebar .list-group-item:hover,
.hanzo-sidebar .list-group-item.active {
  background: rgba(201, 162, 39, 0.12);
  color: var(--hanzo-navy);
}

.hanzo-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hanzo-navy);
  border-left: 4px solid var(--hanzo-gold);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.hanzo-card-product {
  background: #fff;
  border: 1px solid var(--hanzo-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hanzo-card-product:hover {
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.1);
  transform: translateY(-2px);
}
.hanzo-card-product .thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: #f1f5f9;
}
.hanzo-card-product .card-body { flex: 1; }
.hanzo-card-product .price-range {
  color: var(--hanzo-gold-dark);
  font-weight: 700;
  font-size: 0.95rem;
}
.hanzo-card-product .moq {
  font-size: 0.8rem;
  color: var(--hanzo-muted);
}
.hanzo-card-product .cat-badge {
  font-size: 0.75rem;
  background: #eef2f7;
  color: var(--hanzo-navy);
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
}

.hanzo-category-card-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.hanzo-category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.card:hover .hanzo-category-card-img {
  transform: scale(1.03);
}

/* Buyer dashboard */
.hanzo-buyer-dashboard .letter-spacing-tight {
  letter-spacing: 0.03em;
}
.hanzo-dash-stat-card {
  border-left: 4px solid var(--hanzo-gold);
}
.hanzo-dash-stat-value {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--hanzo-navy);
}
.hanzo-dash-stat-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.18);
  color: var(--hanzo-gold-dark);
  font-size: 1.15rem;
}
.hanzo-dash-table-wrap {
  border-color: var(--hanzo-border) !important;
}

/* Buyer & factory workspace sidebar, tables, forms (shared layout system) */
.hanzo-buyer-shell .letter-spacing-tight,
.hanzo-factory-shell .letter-spacing-tight {
  letter-spacing: 0.03em;
}
.hanzo-buyer-shell,
.hanzo-factory-shell {
  background: #f0f4f8;
  max-width: 100%;
  overflow-x: hidden;
}
.hanzo-buyer-mobile-bar,
.hanzo-factory-mobile-bar {
  background: #fff;
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}
.hanzo-buyer-sidebar,
.hanzo-factory-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-right: 1px solid var(--hanzo-border);
  min-height: min(calc(100vh - 8rem), 860px);
  box-shadow: inset -1px 0 0 rgba(13, 27, 42, 0.04);
}
.hanzo-buyer-workspace-label,
.hanzo-factory-workspace-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  padding-left: 0.5rem;
  border-left: 3px solid var(--hanzo-gold);
  line-height: 1.3;
}
.hanzo-buyer-sidebar-panel,
.hanzo-factory-sidebar-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 0.75rem;
  padding: 0.4rem;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
}
.hanzo-buyer-nav-stack {
  gap: 0.25rem !important;
}
.hanzo-buyer-shell a.hanzo-buyer-nav-link,
.hanzo-buyer-offcanvas a.hanzo-buyer-nav-link,
.hanzo-factory-shell a.hanzo-buyer-nav-link,
.hanzo-factory-offcanvas a.hanzo-buyer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.65rem 0.62rem 0.55rem;
  border-radius: 0.5rem;
  color: var(--hanzo-navy) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.hanzo-buyer-nav-link:hover {
  background: rgba(201, 162, 39, 0.14) !important;
  color: var(--hanzo-navy) !important;
}
.hanzo-buyer-nav-link.is-active {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.22) 0%, rgba(201, 162, 39, 0.08) 100%) !important;
  box-shadow: inset 3px 0 0 var(--hanzo-gold);
  color: var(--hanzo-navy) !important;
}
.hanzo-buyer-nav-link:focus-visible {
  outline: 2px solid var(--hanzo-gold);
  outline-offset: 2px;
}
.hanzo-buyer-nav-icon-wrap {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(13, 27, 42, 0.06);
  color: var(--hanzo-navy-light);
  font-size: 0.88rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.hanzo-buyer-nav-link:hover .hanzo-buyer-nav-icon-wrap {
  background: rgba(201, 162, 39, 0.25);
  color: var(--hanzo-navy);
}
.hanzo-buyer-nav-link.is-active .hanzo-buyer-nav-icon-wrap {
  background: rgba(201, 162, 39, 0.35);
  color: var(--hanzo-navy);
}
.hanzo-buyer-nav-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.hanzo-buyer-nav-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.35rem;
  padding: 0.15rem 0.4rem;
  text-align: center;
  background: #c9a227;
  color: #0d1b2a;
}
.hanzo-buyer-notif-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--hanzo-navy) !important;
}
.hanzo-buyer-notif-bar .hanzo-buyer-nav-badge {
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
}
.hanzo-buyer-sidebar-footer,
.hanzo-factory-sidebar-footer {
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.hanzo-buyer-shell a.hanzo-buyer-nav-foot,
.hanzo-buyer-offcanvas a.hanzo-buyer-nav-foot,
.hanzo-factory-shell a.hanzo-buyer-nav-foot,
.hanzo-factory-offcanvas a.hanzo-buyer-nav-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #64748b !important;
  text-decoration: none !important;
  transition: color 0.15s ease, background 0.15s ease;
}
.hanzo-buyer-nav-foot:hover {
  color: var(--hanzo-navy) !important;
  background: rgba(13, 27, 42, 0.05);
}
.hanzo-buyer-main-column,
.hanzo-factory-main-column {
  background: #f0f4f8;
  min-width: 0;
}
.hanzo-buyer-main-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}
.hanzo-buyer-page-head {
  border-left: 4px solid var(--hanzo-gold);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.hanzo-buyer-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hanzo-navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.hanzo-buyer-table-wrap {
  border: 1px solid var(--hanzo-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(13, 27, 42, 0.06);
  background: #fff;
}
.hanzo-buyer-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #64748b !important;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid var(--hanzo-border) !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  white-space: nowrap;
}
.hanzo-buyer-table tbody td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  vertical-align: middle;
  border-color: #eef2f7 !important;
}
.hanzo-buyer-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.06);
}
.hanzo-buyer-table tbody tr:last-child td {
  border-bottom: 0;
}
.hanzo-buyer-form-card {
  border-radius: 0.75rem;
  border: 1px solid var(--hanzo-border) !important;
  box-shadow: 0 4px 22px rgba(13, 27, 42, 0.06);
}
.hanzo-buyer-file-input.form-control[type='file'] {
  min-height: calc(1.6em + 0.85rem + 2px);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.hanzo-buyer-inline-actions .btn {
  min-width: 4.25rem;
}
.hanzo-buyer-offcanvas,
.hanzo-factory-offcanvas {
  max-width: min(320px, 92vw);
}
.hanzo-buyer-offcanvas-header,
.hanzo-factory-offcanvas-header {
  background: linear-gradient(135deg, var(--hanzo-navy) 0%, var(--hanzo-navy-light) 100%);
  color: #f8fafc;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.hanzo-buyer-offcanvas-header .offcanvas-title,
.hanzo-factory-offcanvas-header .offcanvas-title {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hanzo-buyer-offcanvas-header .btn-close,
.hanzo-factory-offcanvas-header .btn-close {
  opacity: 0.85;
  filter: invert(1) grayscale(1) brightness(1.8);
}

/* Factory dashboard hero & stat accents */
.hanzo-factory-hero {
  background: linear-gradient(135deg, var(--hanzo-navy) 0%, var(--hanzo-navy-light) 52%, #243b53 100%);
  color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 10px 32px rgba(13, 27, 42, 0.18);
  margin-bottom: 1.5rem;
}
.hanzo-factory-hero-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hanzo-gold);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.65rem;
}
.hanzo-factory-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.hanzo-factory-hero-meta {
  color: #cbd5e1;
  font-size: 0.875rem;
  margin-bottom: 0;
}
.hanzo-factory-stat-card.hanzo-dash-stat-card {
  border-left-color: var(--hanzo-navy-light);
}
.hanzo-factory-stat-card.hanzo-dash-stat-card.is-accent {
  border-left-color: var(--hanzo-gold);
}
.hanzo-factory-stat-icon {
  background: rgba(13, 27, 42, 0.1) !important;
  color: var(--hanzo-navy) !important;
}
.hanzo-factory-stat-card.is-accent .hanzo-factory-stat-icon {
  background: rgba(201, 162, 39, 0.22) !important;
  color: var(--hanzo-gold-dark) !important;
}
.hanzo-factory-callout {
  border-radius: 0.75rem;
  border: 1px solid var(--hanzo-border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 4px 18px rgba(13, 27, 42, 0.05);
}

.hanzo-footer {
  background: var(--hanzo-navy);
  color: #94a3b8;
  margin-top: 3rem;
}
.hanzo-footer a { color: #e2e8f0; text-decoration: none; }
.hanzo-footer a:hover { color: var(--hanzo-gold); }

.hanzo-admin-nav-email {
  max-width: min(100%, 15rem);
  vertical-align: middle;
}

.spinner-hanzo .spinner-border {
  color: var(--hanzo-gold);
}

.table-spec th {
  width: 35%;
  background: #f8fafc;
  color: var(--hanzo-navy);
}

/* --- Mobile & small-screen layout (shop, workspaces, public pages) --- */
@media (max-width: 575.98px) {
  .hanzo-buyer-page-title {
    font-size: 1.25rem;
  }
  .hanzo-shop-header-main {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  .hanzo-brand {
    font-size: 1.25rem;
  }
  .hanzo-header-brand-col .navbar-brand {
    max-width: 160px;
  }
  .hanzo-brand-logo {
    height: 32px;
    max-width: 150px;
  }
  .hanzo-shop-header-main .navbar-brand img[src*="assets/images/logo"] {
    max-width: 160px !important;
    max-height: 34px !important;
  }
  .hanzo-footer-logo {
    height: 36px;
    max-width: 180px;
  }
  .hanzo-shop-header-actions {
    width: 100%;
    justify-content: stretch !important;
  }
  .hanzo-shop-header-actions > .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .hanzo-account-dd {
    width: 100%;
    max-width: 100%;
  }
  .hanzo-account-trigger {
    width: 100%;
    justify-content: center;
  }
  .hanzo-header-lang-switch {
    width: 100%;
  }
  .hanzo-topbar-tagline {
    font-size: 0.75rem;
    line-height: 1.35;
  }
}

@media (max-width: 767.98px) {
  .hanzo-shop-header-main .row {
    row-gap: 0.75rem !important;
  }
  .hanzo-header-brand-col {
    text-align: left !important;
  }
  .hanzo-header-brand-meta {
    display: none !important;
  }
  .hanzo-search-wrap {
    flex-direction: column;
    align-items: stretch;
    border-radius: 0.75rem;
  }
  .hanzo-search-wrap .form-control {
    border-radius: 0.65rem 0.65rem 0 0 !important;
    min-height: 3rem;
  }
  .hanzo-search-wrap .form-select,
  .hanzo-search-wrap .hanzo-search-cat {
    max-width: 100% !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--hanzo-border) !important;
  }
  /* Native mobile select popups can overflow the header area.
     Hide category select on small screens and keep search stable. */
  .hanzo-search-wrap .hanzo-search-cat {
    display: none;
  }
  .hanzo-search-wrap .form-control {
    border-radius: 0.65rem 0.65rem 0 0 !important;
  }
  .hanzo-search-wrap .btn-hanzo-primary {
    border-radius: 0 0 0.65rem 0.65rem !important;
    width: 100%;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
  .hanzo-buyer-table-wrap {
    border-radius: 0.5rem;
  }
  .hanzo-buyer-table {
    font-size: 0.875rem;
  }
  .hanzo-navbar .navbar-toggler {
    margin-left: auto;
  }
  .hanzo-mobile-lang-switch {
    padding-top: 0.25rem;
    width: 100%;
  }
  .hanzo-mobile-lang-switch .hanzo-lang-switcher {
    width: 100%;
  }
  .hanzo-mobile-lang-switch .hanzo-mobile-lang-group .btn {
    font-size: 0.8rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hanzo-search-wrap .hanzo-search-cat {
    max-width: min(200px, 38vw);
  }
}
