:root {
  --b2b-ink: #162435;
  --b2b-steel: #3e4f63;
  --b2b-ash: #eef2f5;
  --b2b-white: #ffffff;
  --b2b-brand: #0e9c7f;
  --b2b-accent: #f29f05;
  --b2b-danger: #be2d2d;
  --b2b-radius: 14px;
  --b2b-shadow: 0 16px 40px rgba(8, 21, 33, 0.14);
}

.b2b-body {
  background: radial-gradient(circle at 12% 12%, #f4fbf8 0%, #ffffff 38%, #f7f8fb 100%);
  color: var(--b2b-ink);
}

.b2b-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8ef;
  backdrop-filter: blur(8px);
}

.b2b-header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
}

.b2b-nav {
  min-width: 0;
  overflow-x: auto;
}

.b2b-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--b2b-ink);
}

.b2b-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.b2b-logo span {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.b2b-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.b2b-nav-item {
  position: relative;
}

.b2b-nav-link {
  border: 0;
  background: transparent;
  color: var(--b2b-ink);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 10px;
  border-radius: 10px;
}

.b2b-nav-link:hover,
.b2b-nav-item:hover .b2b-nav-link {
  background: #f0f5fb;
  color: #0d3b66;
}

.b2b-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--b2b-white);
  border: 1px solid #dce4ed;
  border-radius: 12px;
  box-shadow: var(--b2b-shadow);
  display: none;
  padding: 8px;
  padding-top: 16px;
}

.b2b-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--b2b-steel);
  font-size: 0.88rem;
  padding: 9px 10px;
}

.b2b-dropdown button:hover {
  background: #f4f8fb;
  color: var(--b2b-ink);
}

.b2b-nav-item:hover .b2b-dropdown {
  display: block;
}

.b2b-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.b2b-search {
  position: relative;
  width: 290px;
}

.b2b-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #67809d;
}

.b2b-search input {
  width: 100%;
  border: 1px solid #d5dfe9;
  border-radius: 999px;
  padding: 10px 14px 10px 34px;
  font-size: 0.88rem;
  color: var(--b2b-ink);
  background: #f9fbfd;
}

.b2b-search input:focus {
  outline: none;
  border-color: #9ac6eb;
  box-shadow: 0 0 0 3px rgba(106, 173, 228, 0.22);
}

.b2b-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: var(--b2b-white);
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  box-shadow: var(--b2b-shadow);
  max-height: 420px;
  overflow-y: auto;
}

.b2b-search-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
}

.b2b-search-item:last-child {
  border-bottom: 0;
}

.b2b-search-item img {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
}

.b2b-search-meta h4 {
  font-size: 0.9rem;
  margin-bottom: 1px;
}

.b2b-search-meta p {
  margin: 0;
  font-size: 0.76rem;
  color: #6d7e90;
  line-height: 1.45;
}

.b2b-search-row {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.b2b-search-row strong {
  font-size: 0.82rem;
  color: var(--b2b-ink);
}

.b2b-search-row span {
  font-size: 0.72rem;
  font-weight: 700;
}

.b2b-search-row span.in {
  color: #187d5e;
}

.b2b-search-row span.out {
  color: var(--b2b-danger);
}

.b2b-account-menu {
  position: relative;
}

.b2b-account-trigger {
  width: 38px;
  height: 38px;
  border: 1px solid #d8e1ea;
  border-radius: 50%;
  background: #f8fbff;
  color: #1f3552;
}

.b2b-account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 196px;
  background: var(--b2b-white);
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  box-shadow: var(--b2b-shadow);
  padding: 8px;
  display: none;
}

.b2b-account-menu.open .b2b-account-dropdown {
  display: block;
}

.b2b-account-dropdown a,
.b2b-account-dropdown button {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--b2b-steel);
  font-size: 0.88rem;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}

.b2b-account-dropdown a:hover,
.b2b-account-dropdown button:hover {
  background: #f1f6fb;
  color: var(--b2b-ink);
}

.b2b-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid #d7e1ec;
  padding: 9px 12px;
  color: var(--b2b-ink);
  background: #fbfdff;
}

.b2b-cart-link span {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0c5565;
}

.b2b-cart-wrap {
  position: relative;
}

.b2b-cart-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  box-shadow: var(--b2b-shadow);
  padding: 12px;
  display: none;
  z-index: 15;
}

.ve-nav-account-link.ks-admin-nav-link {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  font-size: 13px;
}

.ve-nav-account-link.ks-admin-nav-link span {
  display: none;
}

.b2b-cart-wrap.open .b2b-cart-dropdown {
  display: block;
}

.b2b-cart-empty {
  color: var(--b2b-steel);
  margin: 0;
}

.b2b-cart-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.b2b-cart-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--b2b-steel);
}

.b2b-cart-mini-list li strong {
  color: var(--b2b-ink);
}

.b2b-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e4ebf2;
  font-size: 0.9rem;
  color: var(--b2b-steel);
}

.b2b-cart-subtotal strong {
  color: var(--b2b-ink);
}

.b2b-cart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.b2b-cart-btn {
  text-align: center;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #14375f;
  padding: 8px 10px;
  background: #f9fbff;
}

.b2b-cart-btn.primary {
  color: #fff;
  border-color: #0f65cc;
  background: #0f65cc;
}

.ks-account-orders-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ks-account-order-item {
  border: 1px solid #dce6f2;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f9fcff;
  display: grid;
  gap: 3px;
  font-size: 0.84rem;
  color: var(--b2b-steel);
}

.ks-account-order-item strong {
  color: var(--b2b-ink);
}

.ks-auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ks-auth-switch-btn {
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f7fafd;
  color: var(--b2b-steel);
  font-weight: 700;
  font-size: 0.82rem;
}

.ks-auth-switch-btn.active {
  background: #0d5fc6;
  color: #ffffff;
  border-color: #0d5fc6;
}

.ks-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
}

.ks-account-dashboard {
  margin-top: 28px;
}

.ks-account-dashboard .ks-aside-card {
  height: 100%;
}

.b2b-menu-toggle {
  display: none;
}

.b2b-hero {
  margin: 26px 24px 14px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(117deg, #142842 0%, #19537a 48%, #0e9c7f 100%);
  color: #eaf4ff;
}

.b2b-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  padding: 52px;
}

.b2b-hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 14px;
}

.b2b-hero p {
  color: rgba(237, 247, 255, 0.92);
  max-width: 620px;
}

.b2b-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b2b-hero-slider {
  transition: background-image 0.45s ease;
}

.b2b-hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.b2b-hero-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.b2b-hero-dots button.active {
  background: #ffffff;
  transform: scale(1.2);
}

.b2b-btn-primary,
.b2b-btn-secondary {
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 700;
}

.b2b-btn-primary {
  background: linear-gradient(130deg, #f8bd38 0%, #f29f05 100%);
  color: #2f250d;
}

.b2b-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.b2b-hero-panel {
  align-self: stretch;
  background: rgba(6, 21, 36, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 16px;
}

.b2b-hero-panel h4 {
  color: #f8fbff;
  margin-bottom: 10px;
}

.b2b-home-section {
  margin: 26px 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e3ebf3;
  padding: 26px;
}

.b2b-home-section h2 {
  margin-bottom: 2px;
}

.b2b-home-section p {
  margin-bottom: 20px;
  color: #66788b;
}

.b2b-home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.b2b-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e4f0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #24496c;
  background: #f8fbff;
}

.b2b-view-all:hover {
  color: #173655;
  border-color: #c6d8ea;
}

.b2b-row-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.b2b-row-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #bed0e2 #f4f8fc;
  padding: 6px 2px 10px;
}

.b2b-row-track::-webkit-scrollbar {
  height: 8px;
}

.b2b-row-track::-webkit-scrollbar-track {
  background: #f4f8fc;
}

.b2b-row-track::-webkit-scrollbar-thumb {
  background: #bed0e2;
  border-radius: 999px;
}

.b2b-row-track .b2b-product-card {
  flex: 0 0 clamp(220px, 23vw, 265px);
  max-width: 265px;
}

.b2b-home-empty {
  width: 100%;
  border: 1px dashed #d4e1ee;
  border-radius: 12px;
  background: #f9fbfe;
  color: #617489;
  padding: 18px 14px;
  text-align: center;
  font-size: 0.86rem;
}

.b2b-row-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #cddceb;
  background: #ffffff;
  color: #24496c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.b2b-row-arrow[disabled] {
  opacity: 0.38;
  cursor: default;
}

.b2b-row-single .b2b-row-arrow {
  visibility: hidden;
}

.b2b-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.b2b-product-card {
  position: relative;
  border: 1px solid #e0e8f0;
  border-radius: var(--b2b-radius);
  overflow: hidden;
  background: #ffffff;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.b2b-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b2b-shadow);
}

.b2b-product-image {
  display: block;
  position: relative;
}

.b2b-product-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.b2b-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ca2638;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}

.b2b-product-content {
  padding: 14px;
}

.b2b-product-content h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.b2b-product-content h3 a {
  color: var(--b2b-ink);
}

.b2b-product-content p {
  font-size: 0.84rem;
  color: #5f7186;
  line-height: 1.45;
  margin-bottom: 10px;
}

.b2b-price-wrap {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}

.b2b-price-wrap strong {
  font-size: 1rem;
  color: #0d2c48;
}

.b2b-price-wrap span {
  font-size: 0.82rem;
  color: #8e9bac;
  text-decoration: line-through;
}

.b2b-stock-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.b2b-stock-badge.in {
  background: #e2f7ef;
  color: #187c5d;
}

.b2b-stock-badge.out {
  background: #ffe8e8;
  color: #a22a2a;
}

.b2b-card-hover {
  position: absolute;
  inset: auto 0 0 0;
  transform: translateY(100%);
  background: linear-gradient(to top, rgba(11, 33, 52, 0.97), rgba(11, 33, 52, 0.75));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  transition: transform 240ms ease;
}

.b2b-product-card:hover .b2b-card-hover {
  transform: translateY(0);
}

.b2b-card-stock {
  font-size: 0.76rem;
  font-weight: 700;
}

.b2b-card-stock.in {
  color: #88f0cb;
}

.b2b-card-stock.out {
  color: #ffd2d2;
}

.b2b-add-cart {
  border: 0;
  background: #f7af2f;
  color: #2d2207;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 7px 10px;
}

.b2b-add-cart[disabled] {
  background: #9aa8b8;
  color: #eceff2;
}

.b2b-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.b2b-quick-link {
  display: block;
  border: 1px solid #dce6ef;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(140deg, #ffffff 0%, #f4f9fd 100%);
}

.b2b-quick-link strong {
  display: block;
  font-size: 0.96rem;
  color: #173251;
}

.b2b-quick-link span {
  display: block;
  font-size: 0.79rem;
  color: #6d8196;
  margin-top: 5px;
}

.b2b-footer {
  background: #0f1f31;
  color: #d8e5f3;
  margin-top: 32px;
  padding: 32px 24px;
}

.b2b-footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.b2b-footer h4 {
  color: #ffffff;
}

.b2b-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.b2b-footer nav a {
  color: #ced9e6;
  font-size: 0.86rem;
}

.b2b-mobile-panel {
  display: none;
  padding: 0 20px 14px;
  background: #ffffff;
  border-top: 1px solid #e6edf5;
}

.b2b-mobile-categories details {
  border-bottom: 1px solid #ecf1f6;
}

.b2b-mobile-categories summary {
  font-weight: 700;
  padding: 10px 0;
  cursor: pointer;
}

.b2b-mobile-sub {
  display: grid;
  gap: 6px;
  padding: 0 0 10px 8px;
}

.b2b-mobile-sub a {
  font-size: 0.84rem;
  color: #44586c;
}

@media (max-width: 1250px) {
  .b2b-nav-link {
    font-size: 0.84rem;
    padding: 9px 7px;
  }

  .b2b-search {
    width: 250px;
  }
}

@media (max-width: 991px) {
  .b2b-search {
    width: 220px;
  }

  .b2b-hero-grid {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

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

  .b2b-quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .b2b-header-shell {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .b2b-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d6e0ea;
    border-radius: 10px;
    background: #ffffff;
    margin-left: auto;
  }

  .b2b-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #253f5d;
    margin: 2px 0;
  }

  .b2b-nav {
    display: none;
  }

  .b2b-actions {
    width: 100%;
    order: 5;
  }

  .b2b-search {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .b2b-hero,
  .b2b-home-section {
    margin-left: 10px;
    margin-right: 10px;
  }

  .b2b-product-grid,
  .b2b-quick-links-grid {
    grid-template-columns: 1fr;
  }

  .b2b-home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .b2b-row-arrow {
    display: none;
  }

  .b2b-row-track .b2b-product-card {
    flex-basis: min(80vw, 290px);
  }

  .b2b-footer {
    padding: 22px 14px;
  }

  .b2b-footer-grid {
    flex-direction: column;
  }

  .b2b-mobile-panel {
    display: block;
  }
}

/* Navbar refresh: b2b + ve shared behavior */
.b2b-header {
  background: #ffffff;
  border-bottom: 1px solid #e7ecf3;
  box-shadow: 0 8px 24px rgba(17, 42, 74, 0.08);
}

.b2b-header-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
}

.b2b-nav {
  flex: 1;
  overflow: visible;
}

.b2b-nav ul {
  justify-content: flex-start;
  gap: 14px;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.b2b-nav-link {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 12px;
}

.b2b-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.b2b-search {
  width: 320px;
}

.b2b-search input {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 14px 10px 40px;
}

.b2b-search i {
  left: 14px;
  color: #7a8ca3;
}

.b2b-search input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.b2b-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.b2b-start-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  color: #ffffff;
}

.b2b-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #ffffff;
  color: #1b2f4b;
  font-size: 13px;
  line-height: 1;
}

.b2b-admin-link:hover {
  background: #f3f7ff;
  border-color: #c8d8f2;
  color: #1d4ed8;
}

.b2b-admin-link span {
  display: none;
}

.b2b-admin-link-floating {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.b2b-account-menu {
  position: relative;
}

.b2b-account-trigger {
  width: 40px;
  height: 40px;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: #ffffff;
  color: #1f3552;
}

.b2b-account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 210px;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 21, 33, 0.14);
  padding: 8px;
  display: none;
  z-index: 50;
}

.b2b-account-dropdown a,
.b2b-account-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #3e4f63;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}

.b2b-account-dropdown a:hover,
.b2b-account-dropdown button:hover {
  background: #f1f6fb;
  color: #162435;
}

.b2b-account-menu.open .b2b-account-dropdown {
  display: block;
}

.b2b-account-shortcuts,
.b2b-account-menu .b2b-account-shortcuts {
  display: none;
  align-items: center;
  gap: 8px;
}

.b2b-account-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--b2b-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.b2b-account-shortcuts a:hover {
  background: #f3f7ff;
  border-color: #c8d8f2;
  color: #1d4ed8;
}

.b2b-signout-btn {
  display: none;
}

.b2b-signout-btn:hover {
  border-color: #c8d8f2;
  background: #f3f7ff;
  color: #1d4ed8;
}

.ve-header {
  background: #ffffff;
  border-bottom: 1px solid #e7ecf3;
  box-shadow: 0 8px 22px rgba(17, 42, 74, 0.07);
}

.ve-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
}

.ve-nav {
  flex: 1;
}

.ve-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ve-nav ul li a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 10px;
}

.ve-nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ve-nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
}

.ve-nav-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8ca3;
}

.ve-nav-search-input {
  width: 100%;
  height: 42px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 14px 10px 40px;
  font-size: 15px;
  line-height: 1.4;
  color: #1b2f4b;
}

.ve-nav-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.ve-nav-account-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ve-nav-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 8px 10px;
  color: #1b2f4b;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.ve-nav-account-link:hover {
  background: #f3f7ff;
  border-color: #c8d8f2;
  color: #1d4ed8;
}

.ve-cta-btn {
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.ve-cta-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

@media (max-width: 1390px) {
  .ve-nav-account-link span,
  .b2b-account-shortcuts a span {
    display: none;
  }
}

@media (max-width: 1200px) {
  .ve-nav-tools,
  .b2b-account-shortcuts,
  .b2b-account-menu .b2b-account-shortcuts {
    display: none;
  }

  .b2b-search,
  .ve-nav-search {
    width: 260px;
  }
}

@media (max-width: 991px) {
  .b2b-header-shell {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .b2b-nav {
    display: none;
  }

  .b2b-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .b2b-actions {
    width: 100%;
    order: 5;
  }

  .b2b-search {
    flex: 1;
    width: auto;
  }

  .ve-nav {
    display: none;
  }

  .ve-nav-tools,
  .ve-nav-cta {
    display: none;
  }

  .ve-toggler {
    display: flex;
  }
}

@media (max-width: 767px) {
  .b2b-actions {
    gap: 8px;
  }

  .b2b-admin-link {
    width: 32px;
    height: 32px;
  }

  .b2b-start-btn,
  .b2b-btn-secondary.b2b-dark-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Mega menu routing/navigation refinements */
.b2b-header-shell {
  align-items: center;
}

.b2b-nav ul {
  align-items: center;
  gap: 10px;
}

.b2b-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.b2b-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.b2b-nav-link.active {
  background: #e8f1fe;
  color: #11407a;
}

.b2b-nav-toggle {
  border: 0;
  background: transparent;
  color: #506783;
  padding: 9px 5px;
  line-height: 1;
}

.b2b-static-item .b2b-nav-toggle {
  display: none;
}

.b2b-dropdown {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  min-width: 260px;
  z-index: 120;
}

.b2b-nav-mega .b2b-dropdown {
  min-width: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.b2b-sub-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #3f546a;
  font-size: 0.86rem;
  text-align: left;
}

.b2b-sub-link:hover {
  background: #f0f6fd;
  color: #1b3f6b;
}

.b2b-nav-item:hover .b2b-dropdown,
.b2b-nav-item.open .b2b-dropdown,
.b2b-nav-item:focus-within .b2b-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.b2b-mobile-top-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2a435f;
  padding: 10px 0;
  border-bottom: 1px solid #ecf1f6;
}

.b2b-mobile-view-all {
  font-weight: 700;
  color: #1f4f8d;
}

@media (max-width: 1200px) {
  .b2b-nav-link {
    font-size: 0.82rem;
    padding: 9px 7px;
  }

  .b2b-nav ul {
    gap: 6px;
  }

  .b2b-dropdown {
    left: 0;
    transform: translateY(8px);
  }

  .b2b-nav-item:hover .b2b-dropdown,
  .b2b-nav-item.open .b2b-dropdown,
  .b2b-nav-item:focus-within .b2b-dropdown {
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .b2b-nav-toggle {
    display: none;
  }

  .b2b-mobile-sub {
    gap: 8px;
  }

  .b2b-mobile-sub a {
    padding: 4px 0;
  }
}

/* Search layout safety overrides to prevent header overlap */
.b2b-header {
  z-index: 1300;
  isolation: isolate;
}

.b2b-header-shell {
  overflow: visible;
}

.b2b-actions,
.b2b-account-menu,
.b2b-cart-wrap,
.b2b-search {
  position: relative;
  z-index: 1310;
}

.b2b-actions {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 10px;
}

.b2b-search {
  position: relative;
  flex: 1 1 260px;
  width: auto;
  min-width: 180px;
  max-width: 300px;
  margin-right: 4px;
}

.b2b-search i {
  pointer-events: none;
}

.b2b-search input {
  height: 40px;
  padding-left: 38px;
}

.b2b-search-results {
  z-index: 1360;
}

.b2b-account-dropdown,
.b2b-cart-dropdown,
.b2b-mobile-panel {
  z-index: 1370;
}

@media (max-width: 1200px) {
  .b2b-search {
    flex-basis: 220px;
    min-width: 160px;
    max-width: 250px;
  }
}

@media (max-width: 991px) {
  .b2b-actions {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .b2b-search {
    order: 1;
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .b2b-search input {
    height: 38px;
    font-size: 14px;
  }
}

/* Final layout revert + small admin access fix
   Keeps the original header layout clean and places Admin Dashboard inside the Account dropdown only. */
.b2b-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  isolation: isolate;
}

.b2b-header-shell {
  overflow: visible;
}

.b2b-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.b2b-account-menu,
.b2b-cart-wrap,
.b2b-search {
  position: relative;
  z-index: 1310;
}

.b2b-account-dropdown,
.b2b-cart-dropdown,
.b2b-search-results,
.b2b-dropdown {
  z-index: 1370;
}

/* Admin access must not sit as a large header button. */
.b2b-admin-link-header,
.b2b-admin-link-floating {
  position: static !important;
  transform: none !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  font-size: 12px !important;
  flex-shrink: 0;
}

.b2b-admin-link-header span,
.b2b-admin-link-floating span {
  display: none !important;
}

.b2b-account-dropdown .b2b-admin-dropdown-link,
.ks-account-menu-list .ks-admin-nav-link {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  line-height: 1.25;
  color: #1f3552;
}

.b2b-account-dropdown .b2b-admin-dropdown-link i {
  font-size: 12px;
}

@media (max-width: 991px) {
  .b2b-actions {
    gap: 8px;
  }

  .b2b-account-dropdown,
  .b2b-cart-dropdown {
    right: 0;
  }
}

@media (max-width: 575px) {
  .b2b-account-dropdown {
    width: min(220px, calc(100vw - 24px));
  }

  .b2b-cart-dropdown {
    width: min(320px, calc(100vw - 24px));
  }
}
