/* ============================================================ */
/* B2B ORDERING ENHANCEMENTS                                    */
/* ============================================================ */

/* Top search + filter bar */
.shop-category-menu {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  margin-bottom: 0.4rem;
  scrollbar-width: none;
}

.shop-category-menu::-webkit-scrollbar {
  display: none;
}

.shop-category-menu__item {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.62rem 0.95rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.shop-category-menu__item:hover,
.shop-category-menu__item:focus-visible,
.shop-category-menu__item.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.shop-subcategory-menu {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 0 0.75rem;
  margin: -0.15rem 0 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 89, 96, 0.65) transparent;
}

.shop-subcategory-menu::-webkit-scrollbar {
  height: 6px;
}

.shop-subcategory-menu::-webkit-scrollbar-track {
  background: transparent;
}

.shop-subcategory-menu::-webkit-scrollbar-thumb {
  background: rgba(82, 89, 96, 0.65);
  border-radius: 999px;
}

.shop-subcategory-menu__item {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.48rem 0.8rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.shop-subcategory-menu__item:hover,
.shop-subcategory-menu__item:focus-visible,
.shop-subcategory-menu__item.is-active {
  background: rgba(215, 107, 45, 0.1);
  border-color: rgba(215, 107, 45, 0.45);
  color: var(--accent);
}

.b2b-topbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.b2b-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.b2b-search-icon {
  position: absolute;
  left: 0.85rem;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.b2b-search-field {
  width: 100%;
  padding: 0.78rem 2.6rem 0.78rem 2.45rem;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.b2b-search-field:focus {
  border-color: rgba(215, 107, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(215, 107, 45, 0.1);
}

.b2b-clear-btn {
  position: absolute;
  right: 0.7rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
}

.b2b-clear-btn:hover { color: var(--danger); background: rgba(180, 35, 24, 0.08); }

.b2b-filter-select {
  padding: 0.72rem 0.9rem;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  min-width: 150px;
  cursor: pointer;
}

.b2b-filter-select:focus {
  border-color: rgba(215, 107, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(215, 107, 45, 0.1);
}

.b2b-filter-select:disabled { opacity: 0.5; cursor: not-allowed; }

.b2b-view-btns {
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}

.b2b-view-btn {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.b2b-view-btn.is-active { background: var(--accent); color: #fff; }

.b2b-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.855rem;
  color: var(--muted);
}

.b2b-results-location {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.82rem;
}

/* Product / Cart / Orders table */
.b2b-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.b2b-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.b2b-table thead {
  background: linear-gradient(90deg, rgba(29, 77, 79, 0.06), rgba(215, 107, 45, 0.04));
  border-bottom: 2px solid rgba(148, 163, 184, 0.18);
}

.b2b-table th {
  padding: 0.82rem 0.9rem;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.b2b-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.b2b-sort-btn span {
  min-width: 0.85rem;
  color: rgba(29, 77, 79, 0.7);
}

.b2b-sort-btn.is-active {
  color: var(--accent);
}

.b2b-th--img { width: 52px; }
.b2b-th--qty { min-width: 148px; }

.b2b-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: background 0.1s;
}

.b2b-row:last-child { border-bottom: none; }
.b2b-row:hover { background: rgba(215, 107, 45, 0.035); }

.b2b-table td {
  padding: 0.7rem 0.9rem;
  vertical-align: middle;
}

.b2b-td-img { width: 52px; padding: 0.45rem 0.5rem; }

.b2b-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.b2b-thumb-fallback {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(29, 77, 79, 0.12), rgba(215, 107, 45, 0.1));
}

.b2b-sku {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  white-space: nowrap;
}

.b2b-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.b2b-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.b2b-cat {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.b2b-subcat { font-size: 0.76rem; color: var(--muted); }

.b2b-badge {
  display: inline-block;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.b2b-badge--warn { background: #fff2e8; color: var(--warning); }

.b2b-price {
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--primary-deep);
}

.b2b-uom { font-size: 0.78rem; color: var(--muted); }

.b2b-login-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Quantity control */
.b2b-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.b2b-qty-btn {
  width: 1.9rem;
  height: 1.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.13s;
}

.b2b-qty-btn:hover { background: rgba(215, 107, 45, 0.1); color: var(--primary-deep); }

.b2b-qty-inp {
  width: 3.4rem;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.3rem 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  background: transparent;
  -moz-appearance: textfield;
}

.b2b-qty-inp::-webkit-outer-spin-button,
.b2b-qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Add to Cart / Action button */
.b2b-add-btn {
  padding: 0.52rem 0.88rem;
  background: linear-gradient(135deg, var(--primary), #ef9658);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.b2b-add-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.b2b-add-btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(29, 77, 79, 0.25);
}

.b2b-remove-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: background 0.13s, color 0.13s;
}

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

/* Cart page */
.b2b-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.b2b-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.b2b-cart-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.b2b-td-total { text-align: right; white-space: nowrap; }
.b2b-td-remove { text-align: right; padding-right: 0.6rem; }
.b2b-td-total strong { color: var(--primary-deep); font-size: 0.97rem; }

/* Orders table status badges */
.b2b-order-num { font-size: 0.9rem; }
.b2b-order-actions { display: flex; gap: 0.35rem; align-items: center; white-space: nowrap; }
.b2b-status { font-size: 0.72rem; }
.b2b-status--pending { background: #fef3c7; color: #92400e; }
.b2b-status--approved, .b2b-status--confirmed { background: #dbeafe; color: #1e40af; }
.b2b-status--delivered, .b2b-status--completed { background: #d1fae5; color: #065f46; }
.b2b-status--cancelled { background: #fee2e2; color: #991b1b; }
.b2b-status--partdelivered, .b2b-status--invoiced { background: #ede9fe; color: #5b21b6; }
.b2b-payment { background: rgba(148, 163, 184, 0.14); color: var(--muted); font-size: 0.72rem; }

/* Responsive */
@media (max-width: 860px) {
  .b2b-topbar { flex-direction: column; align-items: stretch; }
  .b2b-filter-select { min-width: 100%; }
  .b2b-view-btns { align-self: flex-end; }
  .b2b-table th:nth-child(4),
  .b2b-table td:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  .b2b-table th:nth-child(2),
  .b2b-table td:nth-child(2) { display: none; }
  .b2b-qty-inp { width: 2.8rem; }
}

/* ============================================================ */
/* B2B HOME DASHBOARD                                           */
/* ============================================================ */

.b2b-dashboard { padding-bottom: 3rem; }

.b2b-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(29, 77, 79, 0.94), rgba(19, 31, 43, 0.97));
  box-shadow: var(--shadow-lg);
  color: #f0f9f9;
}

.b2b-welcome__left { display: flex; align-items: center; gap: 1rem; }

.b2b-welcome__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255,255,255,0.12);
  padding: 4px;
  flex-shrink: 0;
}

.b2b-welcome__eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.2rem;
  display: block;
}

.b2b-welcome__name {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #fff;
  line-height: 1.2;
}

.b2b-welcome__name span { color: #7dd3d6; }

.b2b-welcome__meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.b2b-welcome__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.b2b-add-btn--lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

/* Stats strip */
.b2b-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.b2b-stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.b2b-stat strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.b2b-stat span {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.b2b-stat--hi strong { color: var(--accent); }
.b2b-stat--muted strong { font-size: 0.95rem; }

/* Category chips */
.b2b-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.b2b-section-hd h3 { margin: 0; font-size: 1rem; }
.b2b-section-hd--mt { margin-top: 1.75rem; }
.b2b-link { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.b2b-link:hover { text-decoration: underline; }

.b2b-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.b2b-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.b2b-cat-chip:hover {
  background: rgba(29, 77, 79, 0.07);
  border-color: rgba(29, 77, 79, 0.3);
  transform: translateY(-1px);
}

.b2b-cat-chip__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29,77,79,0.12), rgba(215,107,45,0.1));
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}

.b2b-cat-chip__icon img { width: 100%; height: 100%; object-fit: cover; }
.b2b-cat-chip__name { font-size: 0.86rem; font-weight: 600; color: var(--text); }

.b2b-cat-chip__count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  background: rgba(29, 77, 79, 0.1);
  color: var(--accent);
}

.b2b-empty-orders {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.75);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: var(--muted);
}

.b2b-empty-orders a { color: var(--primary); font-weight: 600; }

/* ============================================================ */
/* B2B PORTAL GATE (home, not logged in)                        */
/* ============================================================ */

.b2b-gate-section { background: transparent; }

.b2b-gate {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  padding: 2.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-lg);
}

.b2b-gate__brand {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(29, 77, 79, 0.94), rgba(19, 31, 43, 0.97));
  color: #e8f5f5;
}

.b2b-gate__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255,255,255,0.12);
  padding: 6px;
  margin-bottom: 1rem;
  display: block;
}

.b2b-gate__mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #ef9658);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.b2b-gate__brand h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: #fff;
}

.b2b-gate__brand p {
  color: rgba(232, 245, 245, 0.75);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.b2b-gate__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.b2b-gate__contact-item {
  font-size: 0.84rem;
  color: rgba(232, 245, 245, 0.7);
  text-decoration: none;
}

.b2b-gate__contact-item:hover { color: #fff; }

.b2b-gate__hours {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: rgba(232, 245, 245, 0.6);
}

.b2b-gate__right { padding: 0.5rem 0; }

.b2b-gate__features {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.b2b-gate__feat {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.b2b-gate__feat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2.2rem;
  text-align: center;
}

.b2b-gate__feat strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.b2b-gate__feat p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.b2b-gate__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================ */
/* B2B PORTAL LOGIN                                             */
/* ============================================================ */

.b2b-portal-login { padding: 2rem 0 4rem; }

.b2b-login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.b2b-login-brand {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(29, 77, 79, 0.95), rgba(19, 31, 43, 0.97));
  color: #e8f5f5;
  box-shadow: var(--shadow-lg);
}

.b2b-login-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255,255,255,0.12);
  padding: 5px;
  margin-bottom: 1rem;
  display: block;
}

.b2b-login-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #ef9658);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.b2b-login-brand h2 { margin: 0 0 0.6rem; color: #fff; font-size: 1.4rem; }
.b2b-login-brand p { color: rgba(232, 245, 245, 0.72); font-size: 0.88rem; line-height: 1.65; margin: 0 0 1.25rem; }

.b2b-login-features { display: grid; gap: 0.55rem; margin: 1.25rem 0; }

.b2b-login-feat {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: rgba(232, 245, 245, 0.82);
}

.b2b-login-feat span:first-child {
  color: #7dd3d6;
  font-weight: 700;
  flex-shrink: 0;
}

.b2b-login-support {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(232, 245, 245, 0.55);
}

.b2b-login-support a { color: rgba(232, 245, 245, 0.8); text-decoration: underline; }

.b2b-login-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0;
}

.b2b-login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 77, 79, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.b2b-login-card h3 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.b2b-login-helper { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.1rem; }
.b2b-login-submit { width: 100%; margin-top: 1rem; padding: 0.95rem; border-radius: 12px; justify-content: center; }

.b2b-login-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.b2b-login-bottom .auth-link-button { font-size: 0.82rem; }

/* ============================================================ */
/* B2B CHECKOUT                                                 */
/* ============================================================ */

.b2b-page-title {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.b2b-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start;
}

.b2b-checkout-form-col { display: grid; gap: 1rem; }

.b2b-checkout-review-col { position: sticky; top: 7rem; }

.b2b-checkout-review-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1rem;
}

.b2b-table-wrap--tight .b2b-table th,
.b2b-table-wrap--tight .b2b-table td {
  padding: 0.55rem 0.75rem;
}

.b2b-checkout-totals {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.b2b-success-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-lg);
}

.b2b-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.b2b-success-card h2 { margin: 0 0 0.6rem; }
.b2b-success-card p { color: var(--muted); margin: 0 0 1rem; }
.b2b-success-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ============================================================ */
/* B2B ORDER DRAWER                                             */
/* ============================================================ */

.b2b-drawer { padding: 1.5rem; display: grid; gap: 1rem; align-content: start; }

.b2b-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.b2b-drawer-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.b2b-drawer-head h3 { margin: 0 0 0.2rem; }
.b2b-drawer-date { margin: 0; font-size: 0.84rem; color: var(--muted); }

.b2b-drawer-meta { }

.b2b-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}

.b2b-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.b2b-meta-grid span {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.b2b-meta-grid strong { font-size: 0.9rem; }

.b2b-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid rgba(148, 163, 184, 0.15);
  font-weight: 600;
}

.product-info-drawer {
  gap: 1.2rem;
}

.product-info-list {
  display: grid;
  gap: 1rem;
}

.product-info-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.product-info-block span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-info-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

/* ============================================================ */
/* RESPONSIVE — new layout breakpoints                          */
/* ============================================================ */

@media (max-width: 1080px) {
  .b2b-checkout-layout { grid-template-columns: 1fr; }
  .b2b-checkout-review-col { position: static; }
  .b2b-login-layout { grid-template-columns: 1fr; }
  .b2b-gate { grid-template-columns: 1fr; }
  .b2b-stats-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .b2b-welcome { flex-direction: column; align-items: flex-start; }
  .b2b-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .b2b-stat--muted { display: none; }
}

@media (max-width: 640px) {
  .b2b-stats-strip { grid-template-columns: 1fr 1fr; }
  .b2b-checkout-layout { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* B2B QUICK ORDER REFINEMENTS                                  */
/* ============================================================ */

.header-quick-search {
  flex: 1 1 320px;
  max-width: 460px;
}

.header-search-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.35rem 0.4rem 0.35rem 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(19, 19, 19, 0.04);
}

.header-search-shell__icon {
  position: absolute;
  left: 0.9rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.header-search-shell__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--text);
  outline: none;
}

.header-search-shell__button {
  border: none;
  border-radius: 10px;
  background: rgba(215, 107, 45, 0.12);
  color: var(--primary-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.b2b-ops-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.b2b-home-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-sm);
}

.b2b-home-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: var(--text);
}

.b2b-home-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.b2b-panel-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.b2b-home-search {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
}

.b2b-home-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--text);
  outline: none;
}

.b2b-home-search__input:focus {
  border-color: rgba(215, 107, 45, 0.45);
  box-shadow: 0 0 0 3px rgba(215, 107, 45, 0.08);
}

.b2b-home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.b2b-home-shortcut {
  display: block;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  background: rgba(244, 247, 249, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-decoration: none;
}

.b2b-home-shortcut strong,
.b2b-summary-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 0.9rem;
}

.b2b-home-shortcut span,
.b2b-summary-list span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.b2b-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.b2b-summary-list div {
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  background: rgba(244, 247, 249, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.b2b-shop-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(29, 77, 79, 0.95), rgba(19, 31, 43, 0.98));
  color: #edf7f7;
  box-shadow: var(--shadow-lg);
}

.b2b-shop-intro h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #fff;
}

.b2b-shop-intro p {
  margin: 0;
  max-width: 640px;
  color: rgba(237, 247, 247, 0.74);
}

.b2b-shop-intro__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 320px;
}

.b2b-shop-intro__meta div {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.b2b-shop-intro__meta strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.b2b-shop-intro__meta span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(237, 247, 247, 0.62);
}

@media (max-width: 1180px) {
  .header-quick-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

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

@media (max-width: 900px) {
  .b2b-home-shortcuts,
  .b2b-summary-list,
  .b2b-shop-intro__meta {
    grid-template-columns: 1fr;
  }

  .b2b-shop-intro {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-quick-search {
    display: none;
  }

  .b2b-home-search {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================ */
/* RESPONSIVE ALIGNMENT CLEANUP                                 */
/* ============================================================ */

.topbar > *,
.b2b-ops-grid > *,
.cart-layout > *,
.checkout-grid > *,
.b2b-checkout-layout > *,
.b2b-login-layout > *,
.account-grid > *,
.account-shell > *,
.b2b-gate > *,
.b2b-shop-intro > *,
.footer-grid > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .container,
  .container--wide,
  .container--narrow {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .page-section,
  .page-section--tight,
  .shop-page,
  .faq-page,
  .register-page,
  .auth-page,
  .b2b-gate-section,
  .b2b-dashboard {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }

  .topbar {
    gap: 0.85rem;
  }

  .header-actions {
    gap: 0.55rem;
  }

  .tabs {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 22px;
  }

  .stats-row,
  .detail-grid,
  .b2b-summary-list,
  .b2b-home-shortcuts,
  .b2b-shop-intro__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .toolbar--shop,
  .b2b-topbar,
  .b2b-results-bar,
  .b2b-section-hd,
  .account-hero,
  .account-hero--clean,
  .b2b-drawer-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .toolbar,
  .toolbar--shop,
  .b2b-topbar {
    gap: 0.75rem;
  }

  .b2b-search-wrap,
  .b2b-filter-select,
  .toolbar .field,
  .toolbar .select {
    width: 100%;
    min-width: 0;
  }

  .b2b-view-btns {
    margin-left: auto;
  }

  .b2b-gate,
  .b2b-login-brand,
  .b2b-login-card,
  .b2b-checkout-review-card,
  .b2b-home-card,
  .b2b-shop-intro,
  .account-hero--clean {
    padding: 1.2rem;
  }

  .b2b-gate {
    gap: 1.25rem;
  }

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

  .b2b-checkout-review-col {
    position: static;
  }

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

@media (max-width: 768px) {
  .container,
  .container--wide,
  .container--narrow {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .site-header {
    backdrop-filter: blur(14px);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.8rem 0;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand__mark {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 14px;
  }

  .brand__copy strong {
    font-size: 0.98rem;
  }

  .brand__copy small {
    font-size: 0.76rem;
  }

  .mobile-panel {
    padding: 0 0 0.85rem;
  }

  .mobile-panel__card {
    border-radius: 20px;
  }

  .stats-row,
  .b2b-stats-strip,
  .detail-grid,
  .b2b-summary-list,
  .b2b-home-shortcuts,
  .b2b-shop-intro__meta,
  .b2b-gate__features,
  .b2b-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 18px;
  }

  .tabs button {
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
    min-width: 0;
    padding: 0.72rem 0.85rem;
  }

  .account-hero,
  .account-hero--clean,
  .b2b-section-hd,
  .b2b-drawer-head,
  .b2b-cart-head {
    flex-direction: column;
    gap: 0.7rem;
  }

  .b2b-home-search,
  .b2b-gate__ctas,
  .b2b-welcome__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .b2b-home-search .b2b-add-btn,
  .b2b-gate__ctas .button,
  .b2b-gate__ctas .soft-button,
  .b2b-welcome__actions .b2b-add-btn,
  .b2b-welcome__actions .soft-button,
  .checkout-button {
    width: 100%;
    justify-content: center;
  }

  .b2b-shop-intro {
    flex-direction: column;
  }

  .b2b-shop-intro__meta {
    min-width: 0;
    width: 100%;
  }

  .b2b-results-bar {
    flex-direction: column;
    gap: 0.35rem;
  }

  .b2b-view-btns {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .b2b-order-actions {
    flex-wrap: wrap;
    white-space: normal;
  }

  .b2b-order-actions > * {
    flex: 1 1 140px;
    justify-content: center;
  }

  .b2b-drawer,
  .drawer {
    width: min(100vw - 1rem, 720px);
    max-height: calc(100vh - 1rem);
    padding: 1.1rem;
    border-radius: 22px;
  }

  .b2b-table th,
  .b2b-table td {
    padding: 0.72rem 0.65rem;
  }
}

@media (max-width: 640px) {
  .container,
  .container--wide,
  .container--narrow {
    width: min(calc(100% - 1rem), var(--container));
  }

  .page-section,
  .page-section--tight,
  .shop-page,
  .faq-page,
  .register-page,
  .auth-page,
  .b2b-gate-section,
  .b2b-dashboard {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .topbar {
    gap: 0.6rem;
  }

  .brand__copy small {
    display: none;
  }

  .button,
  .ghost-button,
  .soft-button,
  .nav-chip {
    min-height: 2.7rem;
  }

  .panel,
  .panel--tight,
  .summary-card,
  .legal-card,
  .legal-card--clean,
  .empty-state,
  .empty-state--card,
  .b2b-login-card,
  .b2b-home-card,
  .b2b-checkout-review-card,
  .b2b-gate,
  .b2b-shop-intro,
  .account-hero--clean,
  .b2b-welcome {
    padding: 1rem;
    border-radius: 18px;
  }

  .b2b-welcome__left {
    align-items: flex-start;
  }

  .b2b-welcome__name,
  .b2b-shop-intro h1,
  .account-hero h1,
  .account-hero--clean h1,
  .auth-header h1 {
    font-size: 1.25rem;
  }

  .tabs button {
    flex-basis: 100%;
  }

  .toolbar,
  .toolbar--shop,
  .b2b-topbar {
    padding: 0.85rem;
  }

  .b2b-search-field,
  .b2b-filter-select,
  .b2b-home-search__input,
  .field,
  .select,
  .textarea {
    font-size: 0.92rem;
  }

  .b2b-table {
    font-size: 0.84rem;
  }

  .b2b-qty-ctrl {
    width: 100%;
  }

  .b2b-qty-inp {
    min-width: 3.4rem;
  }

  .b2b-add-btn,
  .b2b-remove-btn,
  .checkout-button,
  .soft-button,
  .button {
    width: 100%;
  }

  .b2b-checkout-totals,
  .summary-card,
  .detail-list,
  .detail-grid,
  .b2b-drawer-total {
    gap: 0.65rem;
  }

  .b2b-drawer,
  .drawer {
    width: min(100vw - 0.6rem, 100%);
    max-height: calc(100vh - 0.6rem);
    padding: 0.9rem;
    border-radius: 18px;
  }

  .footer-grid {
    gap: 1rem;
  }
}

/* ── Value Props Strip ─────────────────────────────────────────────────── */
.value-strip {
  padding: 3rem 0 3.5rem;
  background: var(--bg-soft);
}

.value-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.value-card {
  background: var(--surface-strong);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
}

.value-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--text);
  font-family: "Clash Display", "Trebuchet MS", sans-serif;
}

.value-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
}

.value-strip__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Category Chips ────────────────────────────────────────────────────── */
.cat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.cat-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.categories-strip {
  background: transparent;
}

@media (max-width: 768px) {
  .value-strip__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-strip__cta {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Product Card (pcard) ──────────────────────────────────────────────── */
.pcard {
  background: var(--surface-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pcard:hover,
.pcard:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pcard:focus-visible {
  outline: 3px solid rgba(215, 107, 45, 0.28);
  outline-offset: 3px;
}

.pcard__badge {
  background: #27a244;
  color: #fff;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.38rem 0;
  text-transform: uppercase;
}

.pcard__badge--hidden {
  background: transparent;
  padding: 0.38rem 0;
  visibility: hidden;
}

.pcard__topbar {
  padding: 0.5rem 1rem 0;
  display: flex;
  justify-content: center;
}

.pcard__wishlist {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s;
}

.pcard__wishlist:hover {
  color: var(--primary);
}

.pcard__name-row {
  padding: 0.4rem 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.pcard__name-row--badge-only {
  justify-content: flex-end;
}

.pcard__name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  flex: 1;
}

.pcard__name:hover {
  color: var(--primary);
}

.pcard__pill {
  font-size: 0.67rem;
  background: var(--danger);
  color: #fff;
  border-radius: 4px;
  padding: 0.12rem 0.38rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pcard > .pcard__name {
  margin: 0.2rem 1rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.pcard__media {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 175px;
}

.pcard__img {
  max-width: 100%;
  max-height: 195px;
  object-fit: contain;
}

.pcard__img--art {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 12px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--muted);
}

.pcard__price-wrap {
  padding: 0.6rem 1rem 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.pcard__uom-tabs + .pcard__price-wrap,
.pcard__uom-tabs ~ .pcard__price-wrap {
  margin-top: 0.5rem;
  border-top: none;
}

.pcard__price-wrap--guest {
  text-align: center;
  padding: 1rem;
}

.pcard__login-cta {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.pcard__login-cta:hover {
  text-decoration: underline;
}

.pcard__contact {
  font-size: 0.85rem;
  color: var(--muted);
}

.pcard__uom1-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pcard__inc-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.pcard__unit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}

.pcard__unit-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.pcard__unit-ex {
  font-size: 0.78rem;
  color: var(--muted-soft);
  text-decoration: line-through;
}

.pcard__unit-inc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.pcard__footer {
  padding: 0.65rem 1rem 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.pcard__qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pcard__qty-btn {
  width: 32px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.pcard__qty-btn:hover {
  background: var(--line);
}

.pcard__qty-btn:active {
  background: var(--muted-soft, #e8e8e8);
}

.pcard__qty-inp {
  width: 40px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  outline: none;
  padding: 0.45rem 0.2rem;
  font-size: 0.88rem;
  text-align: center;
  background: transparent;
  -moz-appearance: textfield;
}

.pcard__qty-inp::-webkit-outer-spin-button,
.pcard__qty-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.pcard__add-btn {
  flex: 1;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pcard__add-btn:hover {
  background: var(--primary);
}

.product-grid--shop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.pcard--list {
  flex-direction: row;
}

.pcard--list .pcard__badge {
  writing-mode: vertical-lr;
  padding: 0.5rem 0.38rem;
}

.pcard--list .pcard__media {
  width: 130px;
  flex-shrink: 0;
  min-height: 130px;
  border-top: none;
  border-left: 1px solid var(--line);
  order: 1;
}

.pcard--list .pcard__price-wrap,
.pcard--list .pcard__footer {
  order: 2;
}

@media (max-width: 640px) {
  .product-grid--shop {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .pcard__uom1-price {
    font-size: 1.1rem;
  }

  .pcard__media {
    min-height: 140px;
  }

  .pcard__img {
    max-height: 150px;
  }
}

/* ── pcard UOM toggle tabs ────────────────────────────────── */
.pcard__uom-tabs {
  display: flex;
  gap: 0;
  margin: 0 1rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #f8f8f8);
}

.pcard__uom-tab {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.2;
  text-align: center;
}

.pcard__uom-tab + .pcard__uom-tab {
  border-left: 1px solid var(--line);
}

.pcard__uom-tab.is-active {
  background: var(--text);
  color: #fff;
}

.pcard__uom-tab:not(.is-active):hover {
  background: var(--line);
  color: var(--text);
}

/* ── pcard UOM2 reference price ───────────────────────────── */
.pcard__uom2-ref {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── table dual-price (productTableRow) ───────────────────── */
.b2b-dual-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.b2b-price--main {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.b2b-price--main .b2b-uom {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.2em;
}

.b2b-price--ref {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── home page search bar (logged-in dashboard) ───────────── */
.b2b-home-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.b2b-home-search-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.b2b-home-search-bar .b2b-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.b2b-home-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
}

.b2b-home-search__input::placeholder {
  color: var(--muted);
}

/* ── public home bottom CTA strip ─────────────────────────── */
.home-cta-strip {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--surface, #f8f8f8);
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.home-cta-strip p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.home-cta-strip .button,
.home-cta-strip .ghost-button {
  min-width: 200px;
}

@media (min-width: 540px) {
  .home-cta-strip {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .home-cta-strip p {
    width: 100%;
  }
}
