:root {
  --b2b-bg: #0f1c17;
  --b2b-bg-2: #162820;
  --b2b-surface: #1c3329;
  --b2b-card: #214033;
  --b2b-line: rgba(232, 220, 196, 0.14);
  --b2b-text: #f4efe4;
  --b2b-muted: #b7c4bb;
  --b2b-accent: #d4a017;
  --b2b-accent-2: #7cb518;
  --b2b-danger: #e85d4c;
  --b2b-radius: 14px;
  --b2b-font: "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.b2b-body {
  font-family: var(--b2b-font);
  /* bootstrap-rtl.min.css روی body مقدار text-align:left می‌گذارد؛
     کل پورتال راست‌چین است پس همین‌جا برمی‌گردانیم. */
  text-align: right;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(212, 160, 23, 0.18), transparent 60%),
    linear-gradient(180deg, var(--b2b-bg), #0b1511 40%, var(--b2b-bg-2));
  color: var(--b2b-text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
/* بوت‌استرپ به code رنگ صورتی می‌دهد؛ در پورتال همکاران خنثی باشد */
.b2b-body code { color: inherit; font-family: inherit; }
.b2b-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.b2b-container--narrow { width: min(640px, calc(100% - 32px)); }
.b2b-muted { color: var(--b2b-muted); }

.b2b-topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(15, 28, 23, 0.88);
  border-bottom: 1px solid var(--b2b-line);
}
.b2b-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap; padding: 8px 0;
}
.b2b-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.b2b-brand__logo {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.b2b-brand__text { font-size: 15px; }
.b2b-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; }
.b2b-nav a { opacity: 0.88; }
.b2b-nav a:hover { opacity: 1; color: var(--b2b-accent); }
.b2b-nav__cart, .b2b-nav__store {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--b2b-line); background: rgba(255,255,255,0.03);
}

.b2b-hero {
  padding: 64px 0 48px;
  background:
    linear-gradient(120deg, rgba(33, 64, 51, 0.65), rgba(15, 28, 23, 0.2)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.b2b-eyebrow {
  display: inline-block; margin: 0 0 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(212,160,23,0.15); color: var(--b2b-accent);
  font-size: 13px; font-weight: 600;
}
.b2b-hero h1 {
  margin: 0 0 16px; font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.35; font-weight: 800; max-width: 18ch;
}
.b2b-hero__lead { max-width: 54ch; color: var(--b2b-muted); font-size: 1.05rem; line-height: 1.8; }
.b2b-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.b2b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.b2b-btn--primary {
  background: linear-gradient(135deg, var(--b2b-accent), #e8b84a);
  color: #1a1405;
}
.b2b-btn--ghost {
  border-color: var(--b2b-line); background: rgba(255,255,255,0.04); color: var(--b2b-text);
}
.b2b-btn--accent2 { background: var(--b2b-accent-2); color: #071208; }
.b2b-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.b2b-section { padding: 48px 0; }
.b2b-section--alt { background: rgba(0,0,0,0.18); }
.b2b-section__title { margin: 0 0 24px; font-size: 1.45rem; }
.b2b-benefits, .b2b-tools, .b2b-dash-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.b2b-benefits article, .b2b-tool-card, .b2b-dash-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent), var(--b2b-card);
  border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius);
  padding: 18px;
}
.b2b-benefits h3, .b2b-tool-card strong, .b2b-dash-card strong { display: block; margin: 0 0 8px; }
.b2b-benefits p, .b2b-tool-card span, .b2b-dash-card span { display: block; color: var(--b2b-muted); font-size: 0.95rem; line-height: 1.8; }
.b2b-tool-card:hover { border-color: rgba(212,160,23,0.45); transform: translateY(-2px); transition: .2s ease; }

.b2b-page { padding: 36px 0 64px; }
.b2b-page h1 { margin: 0 0 10px; font-size: 1.7rem; }
.b2b-form { display: grid; gap: 12px; margin-top: 20px; }
.b2b-form label { display: grid; gap: 6px; font-size: 14px; color: var(--b2b-muted); }
.b2b-input, .b2b-select, .b2b-textarea {
  width: 100%; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--b2b-line); background: rgba(0,0,0,0.25);
  color: var(--b2b-text); padding: 10px 12px; font-family: inherit; font-size: 14px;
}
textarea.b2b-input { min-height: 110px; resize: vertical; }
.b2b-alert {
  margin: 14px 0; padding: 12px 14px; border-radius: 10px;
  background: rgba(232, 93, 76, 0.12); border: 1px solid rgba(232, 93, 76, 0.35);
}
.b2b-alert--ok {
  background: rgba(124, 181, 24, 0.12); border-color: rgba(124, 181, 24, 0.35);
}

.b2b-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
  margin: 18px 0 14px;
}
.b2b-toolbar label { flex: 1; min-width: 180px; }

.b2b-table-wrap {
  overflow: auto; border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius); background: rgba(0,0,0,0.2);
}
.b2b-table {
  width: 100%; border-collapse: collapse; min-width: 860px; font-size: 13px;
}
.b2b-table th, .b2b-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--b2b-line);
  text-align: right; vertical-align: middle;
}
.b2b-table th {
  position: sticky; top: 0; background: #1a2e25; z-index: 1;
  font-weight: 700; color: var(--b2b-accent);
}
.b2b-table tr:hover td { background: rgba(212,160,23,0.05); }
.b2b-qty {
  width: 88px; min-height: 38px; text-align: center;
  border-radius: 8px; border: 1px solid var(--b2b-line);
  background: rgba(0,0,0,0.35); color: var(--b2b-text); font-family: inherit;
}
.b2b-stock-ok { color: #9ad64b; }
.b2b-stock-low { color: #f0c34a; }
.b2b-stock-out { color: var(--b2b-danger); }
.b2b-sticky-actions {
  position: sticky; bottom: 12px; margin-top: 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 12px; border-radius: 14px;
  background: rgba(15, 28, 23, 0.92); border: 1px solid var(--b2b-line);
  backdrop-filter: blur(8px);
}
.b2b-price { font-variant-numeric: tabular-nums; font-weight: 700; color: #f3d27a; }
.b2b-footer { padding: 28px 0 40px; border-top: 1px solid var(--b2b-line); margin-top: 24px; font-size: 13px; color: var(--b2b-muted); }

.b2b-dash { direction: rtl; text-align: right; }
.b2b-dash__intro h1 { margin-bottom: 8px; }
.b2b-dash__intro p {
  margin: 0 0 22px;
  max-width: 42rem;
  color: var(--b2b-muted);
  line-height: 1.9;
}
.b2b-dash .b2b-dash-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.b2b-dash-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
  min-height: 118px;
}
.b2b-dash-card:hover {
  border-color: rgba(212,160,23,0.45);
  transform: translateY(-2px);
  transition: .2s ease;
}
.b2b-dash__orders-title { margin-top: 40px; }
.b2b-order-list { display: grid; gap: 16px; }
.b2b-order {
  border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius);
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}
.b2b-order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #1a2e25;
}
.b2b-order__head strong { display: block; font-size: 1rem; }
.b2b-order__head span { display: block; margin-top: 4px; color: var(--b2b-muted); font-size: 13px; }
.b2b-order__table { border: 0; border-radius: 0; background: transparent; }
.b2b-order-items { min-width: 0; }
.b2b-order-items th, .b2b-order-items td { text-align: right; }

@media (max-width: 900px) {
  .b2b-dash .b2b-dash-grid { grid-template-columns: 1fr; }
  .b2b-order__head { align-items: stretch; flex-direction: column; }
}

.b2b-quick { direction: rtl; text-align: right; font-size: 13px; }
.b2b-quick__intro h1 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.b2b-quick__intro p {
  margin: 0 0 14px;
  max-width: 42rem;
  color: var(--b2b-muted);
  line-height: 1.7;
  font-size: 12.5px;
}
.b2b-picker-block {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--b2b-line);
  border-radius: 12px;
  background: rgba(0,0,0,0.14);
}
.b2b-picker-block.is-disabled { opacity: 0.55; }
.b2b-picker-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.b2b-picker-block__head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.b2b-picker-block__chosen {
  color: var(--b2b-accent);
  font-size: 12px;
  font-weight: 600;
}
.b2b-picker-empty { margin: 0; font-size: 12.5px; }
.b2b-picker-grid {
  display: grid;
  gap: 8px;
}
.b2b-picker-grid--cars {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
/* کاشی مدل با عکس واقعی کمی بزرگ‌تر تا خودرو خوانا باشد */
.b2b-body--landing .b2b-picker-grid--cars {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px;
}
.b2b-body--landing .b2b-model-visual { height: 104px; }
.b2b-picker-grid--brands {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.b2b-picker-grid--brands .b2b-picker-card--brand {
  flex: 1 1 0;
  min-width: 132px;
  max-width: 180px;
}
.b2b-picker-card--brand {
  min-height: 168px;
  padding: 12px 10px;
  gap: 8px;
}
.b2b-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  border-radius: 12px;
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.b2b-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff !important;
  border-radius: 0;
  padding: 0;
}
.b2b-picker-card--brand strong {
  font-size: 13px;
}
.b2b-picker-card--brand > span {
  font-size: 12px;
}
.b2b-picker-grid--groups {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.b2b-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--b2b-line);
  background: rgba(255,255,255,0.03);
  text-align: center;
  min-height: 108px;
  transition: border-color .15s ease, transform .15s ease;
}
.b2b-picker-card img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 4px;
}
.b2b-picker-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}
.b2b-picker-card span {
  display: block;
  font-size: 11px;
  color: var(--b2b-muted);
  line-height: 1.3;
}
.b2b-picker-card--group {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-height: 158px;
  padding: 10px;
  text-align: center;
}
.b2b-group-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
  border-radius: 12px;
  color: #f3d27a;
  overflow: hidden;
  position: relative;
}
.b2b-group-visual svg {
  width: 78px;
  height: 58px;
  display: block;
  position: relative;
  z-index: 1;
}
.b2b-group-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14), transparent 45%),
    linear-gradient(145deg, rgba(212,160,23,0.18), rgba(0,0,0,0.18));
}
.b2b-group-visual--body { background: linear-gradient(145deg, #2d4a3d, #1a2e25); color: #e8c56a; }
.b2b-group-visual--electric { background: linear-gradient(145deg, #1f3d55, #122433); color: #7dd3fc; }
.b2b-group-visual--suspension { background: linear-gradient(145deg, #3a3f2a, #1f2418); color: #c4d47a; }
.b2b-group-visual--brake { background: linear-gradient(145deg, #4a2a2a, #261515); color: #f0a0a0; }
.b2b-group-visual--engine { background: linear-gradient(145deg, #3a3428, #1f1b14); color: #f0c34a; }
.b2b-group-visual--fuel { background: linear-gradient(145deg, #2f3a28, #171e14); color: #9ad64b; }
.b2b-group-visual--option { background: linear-gradient(145deg, #3a2f4a, #1d1728); color: #d8b4fe; }
.b2b-group-visual--service { background: linear-gradient(145deg, #2a3a4a, #141e28); color: #93c5fd; }
.b2b-group-visual--workshop { background: linear-gradient(145deg, #3a3228, #201a14); color: #fbbf24; }
.b2b-group-visual--consumable { background: linear-gradient(145deg, #2a4038, #14221d); color: #6ee7b7; }
.b2b-group-visual--food { background: linear-gradient(145deg, #40302a, #221814); color: #fdba74; }
.b2b-group-visual--commission { background: linear-gradient(145deg, #2f3640, #161a20); color: #cbd5e1; }
.b2b-group-visual--spare { background: linear-gradient(145deg, #2d4036, #16211c); color: #d4a017; }
.b2b-group-visual--other { background: linear-gradient(145deg, #333833, #1a1d1a); color: #a3a3a3; }
.b2b-group-visual--all { background: linear-gradient(145deg, #3a3420, #1f1b10); color: #f3d27a; }
.b2b-picker-card--group img,
.b2b-picker-card__all-icon { display: none; }
.b2b-picker-card__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.b2b-picker-card__meta strong {
  font-size: 12px;
  line-height: 1.35;
}
.b2b-picker-card__meta span {
  font-size: 11px;
  color: var(--b2b-muted);
}
.b2b-picker-card:hover {
  border-color: rgba(212,160,23,0.45);
  transform: translateY(-1px);
}
.b2b-picker-card.is-active {
  border-color: var(--b2b-accent);
  box-shadow: 0 0 0 1px rgba(212,160,23,0.35);
  background: rgba(212,160,23,0.08);
}
.b2b-quick .b2b-toolbar { justify-content: flex-start; margin: 0 0 10px; }
.b2b-quick .b2b-toolbar label { text-align: right; font-size: 12px; }
.b2b-toolbar--compact .b2b-input { min-height: 38px; font-size: 13px; }
.b2b-quick .b2b-btn { min-height: 38px; padding: 0 12px; font-size: 13px; }

.b2b-part-list {
  display: grid;
  gap: 10px;
}
.b2b-part-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 140px 120px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--b2b-line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.b2b-part-row__photo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--b2b-line);
  background: rgba(255,255,255,0.06);
  cursor: zoom-in;
}
.b2b-part-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b2b-part-row__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}
.b2b-part-row__title a { color: inherit; }
.b2b-part-row__title a:hover { color: var(--b2b-accent); }
.b2b-part-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--b2b-muted);
  font-size: 12.5px;
}
.b2b-part-row__meta code {
  font-family: inherit;
  color: var(--b2b-text);
  background: rgba(0,0,0,0.25);
  padding: 1px 6px;
  border-radius: 6px;
}
.b2b-part-row__price {
  display: grid;
  gap: 4px;
  text-align: center;
}
.b2b-part-row__price .b2b-price { font-size: 1.05rem; }
.b2b-part-row__qty label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--b2b-muted);
  text-align: center;
}
.b2b-part-row__qty .b2b-qty {
  width: 100%;
  min-height: 42px;
  font-size: 15px;
}
.b2b-quick .b2b-sticky-actions { padding: 10px; gap: 8px; }

.b2b-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 8, 0.84);
  backdrop-filter: blur(4px);
}
.b2b-lightbox[hidden] { display: none !important; }
.b2b-lightbox__img {
  max-width: min(920px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  background: #111;
}
.b2b-lightbox__close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.b2b-lightbox-open { overflow: hidden; }

@media (max-width: 900px) {
  .b2b-part-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .b2b-part-row__photo {
    width: 80px;
    height: 80px;
  }
  .b2b-part-row__price,
  .b2b-part-row__qty {
    grid-column: 1 / -1;
  }
  .b2b-part-row__qty label {
    text-align: right;
  }
}

.b2b-tiers {
  display: grid; gap: 8px; margin: 12px 0;
}
.b2b-tier-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--b2b-line); font-size: 13px;
}

@media (max-width: 768px) {
  .b2b-nav { width: 100%; }
  .b2b-hero { padding-top: 36px; }
}

/* ===== Landing: white theme like store ===== */
.b2b-body--landing {
  --b2b-bg: #ffffff;
  --b2b-bg-2: #f7f8fa;
  --b2b-surface: #ffffff;
  --b2b-card: #ffffff;
  --b2b-line: #e6e8ec;
  --b2b-text: #1f2937;
  --b2b-muted: #6b7280;
  --b2b-accent: #c99612;
  background: #ffffff;
  color: var(--b2b-text);
}
.b2b-body--landing .b2b-topbar {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #eceff3;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.b2b-body--landing .b2b-nav a { color: #374151; opacity: 1; }
.b2b-body--landing .b2b-nav a:hover { color: #c99612; }
.b2b-body--landing .b2b-nav__cart,
.b2b-body--landing .b2b-nav__store {
  background: #fff8e8;
  border-color: #f0d48a;
  color: #8a6508;
}
.b2b-body--landing .b2b-btn--ghost {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1f2937;
}
.b2b-body--landing .b2b-btn--ghost:hover {
  border-color: #c99612;
  color: #8a6508;
}

.b2b-hero-cover {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 600px);
  display: flex;
  align-items: stretch;
  direction: rtl;
  text-align: right;
  background: #0f1c17;
}
.b2b-hero-cover__media {
  position: absolute;
  inset: 0;
  background-position: 22% 52%;
  background-size: cover;
  background-repeat: no-repeat;
}
/* خواناییِ متن روی عکس: روشن در سمت متن، شفاف روی قطعات */
.b2b-hero-cover__scrim {
  position: absolute;
  inset: 0;
  /* متن در RTL سمت راست است: سفیدِ تقریباً مات از راست، محو شدن به سمت چپ روی عکس */
  background:
    linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0.98) 34%, rgba(255,255,255,0.86) 52%, rgba(255,255,255,0.42) 72%, rgba(255,255,255,0.10) 100%),
    radial-gradient(760px 380px at 12% 88%, rgba(212,160,23,0.18), transparent 62%);
}
.b2b-hero-cover::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 82%);
  pointer-events: none;
}
.b2b-hero-cover__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 64px 0 56px;
}
.b2b-hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}
.b2b-hero-stats li {
  flex: 1 1 150px;
  background: rgba(255,255,255,0.86);
  border: 1px solid #ecedf1;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  backdrop-filter: blur(4px);
}
.b2b-hero-stats strong {
  display: block;
  font-size: 0.98rem;
  color: #111827;
  margin-bottom: 2px;
}
.b2b-hero-stats span {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
}
.b2b-hero-cover__copy h1 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.45;
  font-weight: 800;
  color: #111827;
  max-width: 20ch;
}
.b2b-body--landing .b2b-eyebrow {
  background: #fff4d6;
  color: #8a6508;
}
.b2b-body--landing .b2b-hero__lead {
  color: #4b5563;
  max-width: 48ch;
}
.b2b-body--landing .b2b-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.b2b-hero-cover__panel {
  background: rgba(255,255,255,0.97);
  border: 1px solid #ebecef;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}
.b2b-hero-cover__panel-media {
  position: relative;
}
.b2b-hero-cover__panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  pointer-events: none;
}
.b2b-hero-cover__panel-media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
}
.b2b-hero-cover__panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b2b-hero-cover__panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 12px;
  text-align: right;
}
.b2b-hero-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  direction: rtl;
}
.b2b-hero-brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  padding: 8px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.b2b-hero-brands__item:hover {
  border-color: rgba(201,150,18,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.07);
}
/* اگر فایل لوگو نبود، نام برند نمایش داده می‌شود */
.b2b-hero-brands__item.is-fallback {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  background: #f8f9fb;
}
.b2b-hero-brands__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b2b-landing-section {
  direction: rtl;
  text-align: right;
  background: #fff;
}
.b2b-landing-section--soft { background: #f7f8fa; }
.b2b-body--landing .b2b-section__title {
  color: #111827;
  text-align: right;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.b2b-body--landing .b2b-section__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d4a017, rgba(212,160,23,0.15));
}
.b2b-body--landing .b2b-benefits,
.b2b-body--landing .b2b-tools {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  justify-items: stretch;
}
.b2b-benefit-card,
.b2b-body--landing .b2b-tool-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  padding: 14px;
  text-align: right;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  color: #1f2937;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.b2b-benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,150,18,0.45);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}
.b2b-benefit-card h3,
.b2b-body--landing .b2b-tool-card strong {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  color: #111827;
}
.b2b-benefit-card p,
.b2b-body--landing .b2b-tool-card > span {
  color: #6b7280;
  line-height: 1.8;
  font-size: 0.95rem;
}
.b2b-benefit-card__visual,
.b2b-tool-card__visual {
  position: relative;
  height: 158px;
  border-radius: 12px;
  overflow: hidden;
  background: #11181a;
}
/* لبه‌های تیره عکس‌ها را نرم می‌کند تا کارت‌ها یکدست دیده شوند */
.b2b-benefit-card__visual::after,
.b2b-tool-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212,160,23,0.10), rgba(17,24,39,0.06) 45%, rgba(17,24,39,0.42));
  pointer-events: none;
}
.b2b-benefit-card__visual img,
.b2b-tool-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.b2b-benefit-card:hover .b2b-benefit-card__visual img,
.b2b-body--landing .b2b-tool-card:hover .b2b-tool-card__visual img {
  transform: scale(1.05);
}
.b2b-tool-card__badge {
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: auto;
  z-index: 1;
  background: linear-gradient(180deg, #e9b423, #d4a017);
  color: #22180a;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
}
.b2b-body--landing .b2b-tool-card:hover {
  border-color: rgba(201,150,18,0.55);
  transform: translateY(-3px);
  transition: .2s ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.b2b-site-footer {
  margin-top: 24px;
  color: #e8edf0;
  background:
    linear-gradient(180deg, rgba(10,18,15,0.88), rgba(10,18,15,0.96)),
    url("https://zedfitwebp.s3.ir-thr-at1.arvanstorage.ir/zedfitwebp/a5803b6a-ca62-4321-92c0-a08532f6afe2.webp") center/cover no-repeat;
  direction: rtl;
  text-align: right;
}
.b2b-site-footer__middle { padding: 48px 0 28px; }
.b2b-site-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.b2b-site-footer__logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 14px;
}
.b2b-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.b2b-site-footer li,
.b2b-site-footer p,
.b2b-site-footer a {
  color: #e8edf0;
  line-height: 1.9;
  font-size: 14px;
}
.b2b-site-footer a:hover { color: #f3d27a; }
.b2b-site-footer h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #fff;
}
.b2b-site-footer__phones { margin-top: 14px; display: grid; gap: 4px; }
.b2b-site-footer__label {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.85;
}
.b2b-site-footer__hours { margin-top: 10px; opacity: 0.9; }
.b2b-site-footer .is-ltr {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}
.b2b-site-footer__trust { text-align: right; }
.b2b-site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
.b2b-site-footer__badges img {
  width: 130px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.b2b-site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0 24px;
}
.b2b-site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.b2b-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 13px;
}
.b2b-site-footer__social > span { opacity: 0.8; }
.b2b-site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.b2b-site-footer__social-wa { color: #4ade80; font-weight: 600; }
.b2b-site-footer__social-link--icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  justify-content: center;
}
.b2b-site-footer__social-link--icon img {
  display: block;
  width: 22px;
  height: 22px;
}

@media (max-width: 1100px) {
  .b2b-body--landing .b2b-benefits,
  .b2b-body--landing .b2b-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .b2b-hero-cover__inner,
  .b2b-site-footer__grid {
    grid-template-columns: 1fr;
  }
  .b2b-hero-cover__scrim {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.88) 46%, rgba(255,255,255,0.72) 100%),
      radial-gradient(700px 360px at 80% 6%, rgba(212,160,23,0.20), transparent 60%);
  }
  .b2b-hero-stats li { flex-basis: 120px; }
  .b2b-hero-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .b2b-hero-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2b-body--landing .b2b-benefits,
  .b2b-body--landing .b2b-tools {
    grid-template-columns: 1fr;
  }
  .b2b-benefit-card__visual,
  .b2b-tool-card__visual {
    height: 170px;
  }
}


/* ===================== صفحهٔ درخواست حساب همکار (Register) ===================== */
.b2b-reg-hero {
  position: relative;
  overflow: hidden;
  direction: rtl;
  text-align: right;
  background: #0f1c17;
}
.b2b-reg-hero__media {
  position: absolute;
  inset: 0;
  background-position: 30% 55%;
  background-size: cover;
  background-repeat: no-repeat;
}
.b2b-reg-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0.97) 30%, rgba(255,255,255,0.80) 55%, rgba(255,255,255,0.35) 78%, rgba(255,255,255,0.10) 100%),
    radial-gradient(620px 300px at 10% 100%, rgba(212,160,23,0.20), transparent 60%);
}
.b2b-reg-hero__inner {
  position: relative;
  z-index: 1;
  padding: 46px 0 40px;
  max-width: 720px;
}
.b2b-reg-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.5;
}
.b2b-reg-hero__lead {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  max-width: 62ch;
}

.b2b-reg-section { padding-top: 28px; }
.b2b-reg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 20px;
  align-items: start;
  direction: rtl;
  text-align: right;
}

/* ---- form ---- */
.b2b-reg-form { display: grid; gap: 16px; margin-top: 0; }
.b2b-reg-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.b2b-reg-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f1f4;
}
.b2b-reg-card__head > div > strong {
  display: block;
  color: #111827;
  font-size: 1.02rem;
}
/* فقط توضیح زیر عنوان؛ نشانگر شماره نباید تحت تاثیر باشد */
.b2b-reg-card__head > div > span {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
  margin-top: 2px;
}
.b2b-reg-card__step {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #22180a;
  background: linear-gradient(180deg, #e9b423, #d4a017);
  box-shadow: 0 6px 14px rgba(212,160,23,0.32);
}
.b2b-reg-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* ردیف‌ها از بالا چیده شوند تا ورودیِ فیلدِ بدون راهنما کشیده نشود
   و ارتفاع همهٔ ورودی‌های یک ردیف یکسان بماند */
.b2b-field { display: grid; gap: 6px; align-content: start; }
.b2b-field > .b2b-input { align-self: start; width: 100%; }
.b2b-field--wide { grid-column: 1 / -1; }
.b2b-field__label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.b2b-field__label i { color: #d4574c; font-style: normal; }
.b2b-field__hint { font-size: 11.5px; color: #9099a5; }
.b2b-body--landing .b2b-input,
.b2b-body--landing .b2b-select {
  background: #fbfbfc;
  border: 1px solid #e2e5ea;
  color: #111827;
  border-radius: 12px;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.b2b-body--landing .b2b-input::placeholder { color: #aeb4be; }
.b2b-body--landing .b2b-input:focus,
.b2b-body--landing .b2b-select:focus {
  outline: none;
  background: #fff;
  border-color: rgba(212,160,23,0.75);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.16);
}
.b2b-body--landing textarea.b2b-input { min-height: 110px; line-height: 1.9; }
.b2b-reg-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.b2b-reg-submit .b2b-btn { min-width: 190px; justify-content: center; }
.b2b-reg-submit__note { font-size: 12.5px; color: #6b7280; }
.b2b-reg-submit__note a { color: #a8791a; font-weight: 700; }
.b2b-body--landing .b2b-alert {
  background: #fff7e6;
  border: 1px solid #f3dfae;
  color: #7a5a10;
  border-radius: 12px;
  margin-bottom: 14px;
}
.b2b-body--landing .b2b-alert--ok {
  background: #eefaf0;
  border-color: #bfe6c8;
  color: #1f6b33;
}

/* ---- aside ---- */
.b2b-reg-aside { display: grid; gap: 16px; }
.b2b-reg-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eaee;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  aspect-ratio: 16 / 9;
  background: #11181a;
}
.b2b-reg-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2b-reg-box {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.b2b-reg-box h2 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: #111827;
}
.b2b-reg-steps {
  list-style: none;
  counter-reset: regstep;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.b2b-reg-steps li {
  counter-increment: regstep;
  position: relative;
  padding-inline-start: 38px;
}
.b2b-reg-steps li::before {
  content: counter(regstep);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #8a6508;
  background: #fdf3d8;
  border: 1px solid #f0dca9;
}
.b2b-reg-steps strong { display: block; color: #1f2937; font-size: 0.92rem; }
.b2b-reg-steps span { display: block; color: #6b7280; font-size: 0.82rem; line-height: 1.9; margin-top: 2px; }
.b2b-reg-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.b2b-reg-perks li {
  position: relative;
  padding-inline-start: 24px;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.9;
}
.b2b-reg-perks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e9b423, #d4a017);
}
.b2b-reg-box--contact p { margin: 0 0 10px; color: #6b7280; font-size: 0.85rem; }
.b2b-reg-phone {
  display: block;
  font-weight: 800;
  color: #111827;
  font-size: 1.02rem;
  padding: 8px 0;
  border-top: 1px dashed #edeef1;
}
.b2b-reg-phone:hover { color: #a8791a; }

@media (max-width: 980px) {
  .b2b-reg-grid { grid-template-columns: 1fr; }
  .b2b-reg-hero__scrim {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,0.8) 100%),
      radial-gradient(520px 260px at 82% 0%, rgba(212,160,23,0.18), transparent 60%);
  }
}
@media (max-width: 640px) {
  .b2b-reg-fields { grid-template-columns: 1fr; }
  .b2b-reg-submit .b2b-btn { width: 100%; }
}


/* ===================== پنل همکاران: داشبورد و سفارش سریع (پوستهٔ روشن) ===================== */
.b2b-body--landing .b2b-page { background: #f6f7f9; padding-bottom: 72px; }
.b2b-body--landing .b2b-page h1,
.b2b-body--landing .b2b-page h2 { color: #111827; }
.b2b-body--landing .b2b-muted { color: #6b7280; }

/* ---- داشبورد: هیرو ---- */
.b2b-dash__hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 18px 0 26px;
  background: #0f1c17;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}
.b2b-dash__hero-media {
  position: absolute; inset: 0;
  background-position: 26% 55%; background-size: cover; background-repeat: no-repeat;
}
.b2b-dash__hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 34%, rgba(255,255,255,0.65) 62%, rgba(255,255,255,0.12) 100%),
    radial-gradient(520px 260px at 8% 100%, rgba(212,160,23,0.20), transparent 62%);
}
.b2b-dash__hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 22px; align-items: center; padding: 28px 26px;
}
.b2b-dash__hero h1 { margin: 6px 0 8px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.b2b-dash__hero-lead { margin: 0 0 16px; color: #4b5563; line-height: 2; max-width: 52ch; }
.b2b-dash__hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b2b-dash__kpis {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.b2b-dash__kpis li {
  background: rgba(255,255,255,0.94);
  border: 1px solid #ebecef; border-radius: 14px;
  padding: 10px 14px; box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}
.b2b-dash__kpis span { display: block; font-size: 11.5px; color: #6b7280; }
.b2b-dash__kpis strong { display: block; font-size: 1.05rem; color: #111827; margin-top: 2px; }
.b2b-dash__section-title { margin: 26px 0 14px; }

/* ---- داشبورد: کارت ابزارها ---- */
.b2b-body--landing .b2b-dash .b2b-dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b2b-body--landing .b2b-dash-card {
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px;
  padding: 22px 18px; color: #1f2937; box-shadow: 0 8px 22px rgba(15,23,42,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.b2b-body--landing .b2b-dash-card:hover {
  transform: translateY(-3px); border-color: rgba(201,150,18,0.45);
  box-shadow: 0 16px 32px rgba(15,23,42,0.09);
}
.b2b-body--landing .b2b-dash-card strong { color: #111827; font-size: 1.04rem; margin: 6px 0 4px; display: block; }
.b2b-body--landing .b2b-dash-card > span:not(.b2b-dash-card__icon) { color: #6b7280; font-size: 0.88rem; line-height: 1.9; }
.b2b-dash-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 6px;
  background: #fdf3d8; border: 1px solid #f0dca9; color: #a8791a;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.b2b-dash-card__icon svg { width: 36px; height: 36px; }
.b2b-body--landing .b2b-dash-card:hover .b2b-dash-card__icon { transform: scale(1.06); }
.b2b-dash-card--primary { border-color: rgba(201,150,18,0.5) !important; background: linear-gradient(180deg,#fffdf6,#fff) !important; }
.b2b-dash-card--primary .b2b-dash-card__icon { background: linear-gradient(180deg,#e9b423,#d4a017); color: #22180a; border-color: transparent; }

/* ---- حالت خالی ---- */
.b2b-empty {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  background: #fff; border: 1px dashed #dfe3e8; border-radius: 16px; padding: 30px 20px;
}
.b2b-empty__icon { width: 46px; height: 46px; color: #c8ccd3; }
.b2b-empty__icon svg { width: 100%; height: 100%; }
.b2b-empty strong { color: #111827; }
.b2b-empty span { color: #6b7280; font-size: 0.88rem; }
.b2b-empty .b2b-btn { margin-top: 8px; }

/* ---- سفارش‌های قبلی ---- */
.b2b-body--landing .b2b-order {
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04); overflow: hidden;
}
.b2b-body--landing .b2b-order__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid #f0f1f4; background: #fcfcfd;
}
.b2b-order__head-info strong { display: block; color: #111827; }
.b2b-order__head-info span { display: block; color: #6b7280; font-size: 0.82rem; margin-top: 2px; }
.b2b-body--landing .b2b-table-wrap {
  background: #fff; border-color: #e8eaee; border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
.b2b-body--landing .b2b-table th { background: #fafbfc; color: #6b7280; font-weight: 700; }
.b2b-body--landing .b2b-table tbody td { background: #fff; }
.b2b-body--landing .b2b-table tbody tr:hover td { background: #fffdf6; }
.b2b-body--landing .b2b-table td { color: #1f2937; border-color: #f0f1f4; }
.b2b-body--landing .b2b-table code { background: #f4f5f7; color: #334155; padding: 1px 6px; border-radius: 6px; }

/* ---- سفارش سریع: هیرو و مراحل ---- */
.b2b-quick__hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px; align-items: center;
  background: #fff; border: 1px solid #e8eaee; border-radius: 20px;
  padding: 22px; margin: 18px 0 22px; box-shadow: 0 10px 28px rgba(15,23,42,0.05);
}
.b2b-quick__hero h1 { margin: 6px 0 8px; font-size: clamp(1.25rem, 2.1vw, 1.7rem); }
.b2b-quick__hero p { margin: 0; color: #6b7280; line-height: 2; }
.b2b-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.b2b-steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid #ecedf1; background: #fbfbfc;
}
.b2b-steps__num {
  flex: 0 0 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #8a6508; background: #fdf3d8; border: 1px solid #f0dca9;
}
.b2b-steps__text { font-size: 12px; color: #6b7280; }
.b2b-steps__text b { display: block; font-size: 13px; color: #111827; margin-top: 2px; }
.b2b-steps li.is-done { background: #fff; }
.b2b-steps li.is-done .b2b-steps__num { background: linear-gradient(180deg,#e9b423,#d4a017); color: #22180a; border-color: transparent; }
.b2b-steps li.is-current { border-color: rgba(201,150,18,0.55); box-shadow: 0 6px 16px rgba(212,160,23,0.14); }

/* ---- بلوک‌های انتخاب ---- */
.b2b-body--landing .b2b-picker-block {
  background: #fff; border: 1px solid #e8eaee; border-radius: 18px;
  padding: 18px; margin-bottom: 16px; box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
.b2b-body--landing .b2b-picker-block.is-disabled { opacity: .55; }
.b2b-body--landing .b2b-picker-block__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0f1f4;
}
.b2b-body--landing .b2b-picker-block__head h2 { margin: 0; font-size: 1rem; }
.b2b-body--landing .b2b-picker-block__chosen {
  font-size: 12px; font-weight: 700; color: #8a6508;
  background: #fdf3d8; border: 1px solid #f0dca9; border-radius: 999px; padding: 4px 12px;
}
.b2b-body--landing .b2b-picker-card {
  background: #fff; border: 1px solid #e8eaee; border-radius: 14px; color: #1f2937;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.b2b-body--landing .b2b-picker-card:hover {
  transform: translateY(-2px); border-color: rgba(201,150,18,0.5);
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
}
.b2b-body--landing .b2b-picker-card.is-active {
  border-color: #d4a017; background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
}
.b2b-body--landing .b2b-picker-card strong { color: #111827; }
.b2b-body--landing .b2b-picker-card span { color: #6b7280; }
.b2b-brand-logo.is-text { font-size: 13px; font-weight: 800; color: #334155; }

/* کاشی مدل خودرو: عکس واقعی یا لوگوی برند + نام مدل */
.b2b-model-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 86px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #fbfbfc, #f1f2f5);
  border: 1px solid #edeef1;
}
.b2b-model-visual img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: transparent; }
.b2b-model-visual.is-photo img { object-fit: cover; padding: 0; }
.b2b-model-visual.is-logo img { opacity: .22; filter: grayscale(1); padding: 12px; }
.b2b-model-visual__name {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #1f2937; padding: 6px 8px; text-align: center;
  line-height: 1.3;
}
.b2b-model-visual.is-photo .b2b-model-visual__name {
  inset: auto 0 0 0; background: linear-gradient(180deg, rgba(17,24,39,0), rgba(17,24,39,0.72));
  color: #fff; font-size: 13px; padding: 14px 8px 6px; display: block; text-align: center;
}
.b2b-picker-card--model { align-items: stretch; text-align: center; min-height: 150px; padding: 10px; }
.b2b-picker-card--model .b2b-picker-card__meta { display: block; margin-top: 8px; }

/* کاشی گروه قطعات با عکس واقعی */
.b2b-group-photo {
  position: relative; display: block; width: 100%; height: 96px;
  border-radius: 12px; overflow: hidden; background: #11181a;
}
.b2b-group-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2b-group-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(212,160,23,0.10), rgba(17,24,39,0.10) 45%, rgba(17,24,39,0.45));
}
.b2b-group-photo--icon, .b2b-group-photo.is-empty {
  background: linear-gradient(150deg, #1e2a24, #101a16);
  display: grid; place-items: center;
}
.b2b-group-photo--icon .b2b-group-visual { height: 100%; background: transparent !important; }

/* ---- بنر تخفیف پلکانی ---- */
.b2b-tier-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #fffdf5, #fff);
  border: 1px solid #f0dca9; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px;
}
.b2b-tier-banner--dash { margin: 22px 0 4px; }
.b2b-tier-banner__icon {
  flex: 0 0 42px; height: 42px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; color: #22180a;
  background: linear-gradient(180deg, #e9b423, #d4a017);
  box-shadow: 0 8px 18px rgba(212,160,23,0.3);
}
.b2b-tier-banner > div > strong { display: block; color: #111827; font-size: 0.96rem; }
/* فقط متن توضیح؛ آیکن «٪» نباید تحت تاثیر باشد */
.b2b-tier-banner > div > span { display: block; color: #6b7280; font-size: 0.84rem; line-height: 1.9; margin-top: 2px; }
.b2b-tier-banner .b2b-btn { margin-inline-start: auto; white-space: nowrap; }

/* ---- ردیف قطعه ---- */
.b2b-body--landing .b2b-part-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 150px 140px;
  gap: 14px; align-items: center;
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px;
  padding: 12px; margin-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.b2b-body--landing .b2b-part-row:hover { border-color: #dfe3e8; box-shadow: 0 8px 20px rgba(15,23,42,0.06); }
.b2b-body--landing .b2b-part-row.is-selected {
  border-color: rgba(201,150,18,0.6); background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(212,160,23,0.14);
}
.b2b-body--landing .b2b-part-row__photo {
  display: block; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid #eef0f3;
}
.b2b-body--landing .b2b-part-row__photo img { width: 100%; height: 100%; object-fit: contain; }
.b2b-body--landing .b2b-part-row__title a,
.b2b-body--landing .b2b-part-row__title strong { color: #111827; font-weight: 700; font-size: 0.98rem; line-height: 1.7; }
.b2b-body--landing .b2b-part-row__title a:hover { color: #a8791a; }
.b2b-part-row__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.b2b-chip {
  font-size: 11.5px; color: #4b5563; background: #f5f6f8;
  border: 1px solid #ebedf0; border-radius: 999px; padding: 3px 10px;
}
.b2b-chip code { background: transparent; color: #111827; font-weight: 700; }
.b2b-chip--ok { background: #eefaf0; border-color: #cbe9d3; color: #1f6b33; }
.b2b-chip--low { background: #fff4ed; border-color: #f6ddcb; color: #9a4a12; }

/* پله‌های تخفیف */
.b2b-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.b2b-tier {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1px dashed #e2e5ea; border-radius: 10px; padding: 4px 9px;
  font-size: 11.5px; color: #6b7280; background: #fcfcfd;
}
.b2b-tier b { color: #374151; font-weight: 700; }
.b2b-tier em { font-style: normal; color: #111827; font-weight: 800; }
.b2b-tier i { font-style: normal; color: #1f6b33; font-weight: 700; }
.b2b-tier--off { border-color: #cbe9d3; background: #f6fbf7; }
.b2b-tier.is-active {
  border-style: solid; border-color: #d4a017; background: #fffbef;
  box-shadow: 0 0 0 2px rgba(212,160,23,0.16);
}
.b2b-tier-hint {
  margin: 8px 0 0; font-size: 12px; color: #8a6508;
  background: #fdf3d8; border: 1px solid #f0dca9; border-radius: 10px; padding: 6px 10px;
  display: inline-block;
}
.b2b-tier-hint.is-reached { color: #1f6b33; background: #eefaf0; border-color: #cbe9d3; }
.b2b-tier-hint[hidden] { display: none; }

/* قیمت و تعداد */
.b2b-body--landing .b2b-part-row__price { text-align: center; }
.b2b-body--landing .b2b-part-row__price .b2b-muted { font-size: 11.5px; }
.b2b-body--landing .b2b-price { color: #111827; font-size: 1.02rem; font-weight: 800; }
.b2b-body--landing .b2b-part-row__price .b2b-price { display: block; margin-top: 2px; }
.b2b-body--landing td.b2b-price, .b2b-body--landing th.b2b-price { display: table-cell; font-size: 0.95rem; }
.b2b-part-row__line { display: block; margin-top: 4px; font-size: 12px; color: #1f6b33; font-weight: 700; }
.b2b-qty-label { display: block; font-size: 11.5px; color: #6b7280; margin-bottom: 6px; text-align: center; }
.b2b-qty-box {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #e2e5ea; border-radius: 12px; overflow: hidden; background: #fff;
}
.b2b-qty-btn {
  width: 38px; height: 42px; border: 0; background: #f7f8fa; color: #374151;
  font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1;
}
.b2b-qty-btn:hover { background: #fdf3d8; color: #8a6508; }
.b2b-body--landing .b2b-qty {
  width: 100%; min-width: 0; height: 42px; border: 0; text-align: center;
  font-size: 15px; font-weight: 700; color: #111827; background: #fff;
  -moz-appearance: textfield;
}
.b2b-body--landing .b2b-qty::-webkit-outer-spin-button,
.b2b-body--landing .b2b-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b2b-body--landing .b2b-qty:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(212,160,23,0.25); }

/* ---- نوار جمع‌بندی چسبان ---- */
.b2b-body--landing .b2b-sticky-actions {
  position: sticky; bottom: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  border: 1px solid #e8eaee; border-radius: 16px; padding: 12px 16px; margin-top: 14px;
  box-shadow: 0 16px 34px rgba(15,23,42,0.14);
}
.b2b-sticky-actions__totals { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: #6b7280; }
.b2b-sticky-actions__totals b { color: #111827; font-weight: 800; }
.b2b-sticky-actions__sum b { font-size: 1.05rem; }
.b2b-sticky-actions__save { color: #1f6b33; font-weight: 700; }
.b2b-sticky-actions__buttons { display: flex; gap: 10px; }

/* ---- واکنش‌گرا ---- */
@media (max-width: 1100px) {
  .b2b-body--landing .b2b-dash .b2b-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .b2b-dash__hero-inner, .b2b-quick__hero { grid-template-columns: 1fr; }
  .b2b-dash__hero-scrim {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.78) 100%),
      radial-gradient(420px 220px at 85% 0%, rgba(212,160,23,0.18), transparent 60%);
  }
  .b2b-body--landing .b2b-part-row { grid-template-columns: 76px minmax(0, 1fr); }
  .b2b-body--landing .b2b-part-row__photo { width: 76px; height: 76px; }
  .b2b-body--landing .b2b-part-row__price,
  .b2b-body--landing .b2b-part-row__qty { grid-column: 2 / -1; }
  .b2b-body--landing .b2b-part-row__price { text-align: right; display: flex; align-items: baseline; gap: 8px; }
  .b2b-qty-label { text-align: right; }
}
@media (max-width: 640px) {
  .b2b-body--landing .b2b-dash .b2b-dash-grid { grid-template-columns: 1fr; }
  .b2b-dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-tier-banner { flex-wrap: wrap; }
  .b2b-tier-banner .b2b-btn { margin-inline-start: 0; width: 100%; }
  .b2b-body--landing .b2b-sticky-actions { flex-direction: column; align-items: stretch; }
  .b2b-sticky-actions__buttons .b2b-btn { flex: 1; justify-content: center; }
}


/* ==================================================================
   ابزارهای همکاران: اکسل، جستجوی انبوه، لیست قیمت، پیش‌فاکتور، تکرار سفارش
   ================================================================== */

.b2b-body--landing .b2b-quick__hero--tool {
  align-items: stretch;
}

.b2b-quick__hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}

/* --- کارت نمونهٔ فرمت --- */
.b2b-sample-card {
  background: #fff; border: 1px solid #e8eaee; border-radius: 18px;
  padding: 16px; box-shadow: 0 10px 26px rgba(15,23,42,0.06);
  align-self: center; min-width: 0;
}
.b2b-sample-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 0.88rem; color: #6b7280;
}
.b2b-sample-card__head span { font-weight: 700; color: #111827; }
.b2b-sample-card__head em { font-style: normal; background: #f3f4f6; border-radius: 6px; padding: 2px 8px; font-size: 0.78rem; }
.b2b-sample-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.b2b-sample-table th, .b2b-sample-table td {
  border: 1px solid #e8eaee; padding: 8px 10px; text-align: right; color: #374151;
}
.b2b-sample-table thead th { background: #fdf8ec; color: #7c5b12; font-weight: 700; white-space: nowrap; }
.b2b-sample-table code { background: #f3f4f6; border-radius: 5px; padding: 1px 6px; direction: ltr; display: inline-block; }
.b2b-cellref {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 5px; background: #e5e7eb;
  color: #4b5563; font-size: 0.68rem; margin-left: 6px; direction: ltr;
}
.b2b-sample-card__note { margin: 10px 0 0; font-size: 0.8rem; color: #6b7280; }
.b2b-sample-pre {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px;
  font-family: "Vazirmatn", monospace; font-size: 0.85rem; line-height: 2; margin: 0;
  white-space: pre-wrap; direction: rtl; text-align: right;
}

/* --- کارت‌های توضیح فرمت --- */
.b2b-format-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 26px 0;
}
.b2b-format {
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px; padding: 18px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
.b2b-format > strong { display: block; color: #111827; margin-bottom: 10px; font-size: 0.98rem; }
.b2b-format ul { margin: 0; padding-right: 18px; color: #6b7280; font-size: 0.88rem; line-height: 2.1; }
.b2b-format code {
  background: #f3f4f6; border-radius: 5px; padding: 1px 7px;
  direction: ltr; display: inline-block; color: #374151;
}

/* --- شبکهٔ ابزار (فرم + جستجوی تکی) --- */
.b2b-tool-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start;
}
.b2b-card {
  background: #fff; border: 1px solid #e8eaee; border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
}
.b2b-card__title { font-size: 1.02rem; color: #111827; margin: 0 0 14px; font-weight: 700; }
.b2b-tool-card { display: flex; flex-direction: column; gap: 14px; }
.b2b-btn--block { width: 100%; justify-content: center; }

/* --- ناحیهٔ آپلود --- */
.b2b-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 2px dashed #d9dde3; border-radius: 16px; padding: 26px 18px; cursor: pointer;
  background: #fafbfc; text-align: center; transition: border-color .2s ease, background .2s ease;
}
.b2b-drop:hover, .b2b-drop.is-over { border-color: #d4a017; background: #fffdf6; }
.b2b-drop.has-file { border-style: solid; border-color: #d4a017; background: #fffdf6; }
.b2b-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.b2b-drop__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: #fdf3d8; border: 1px solid #f0dca9; color: #a8791a;
}
.b2b-drop__icon svg { width: 28px; height: 28px; }
.b2b-drop__text { color: #374151; font-weight: 600; font-size: 0.92rem; word-break: break-all; }
.b2b-drop__hint { color: #9ca3af; font-size: 0.8rem; direction: ltr; }

.b2b-or {
  display: flex; align-items: center; gap: 12px; color: #9ca3af; font-size: 0.82rem;
}
.b2b-or::before, .b2b-or::after {
  content: ""; flex: 1; height: 1px; background: #e8eaee;
}
.b2b-input--code {
  font-family: "Vazirmatn", monospace; line-height: 2; font-size: 0.9rem;
}

/* --- تایپ‌اِهد --- */
.b2b-typeahead { position: relative; }
.b2b-typeahead__panel {
  position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #e8eaee; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.b2b-typeahead__item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid #f1f2f4;
  text-align: right; cursor: pointer; transition: background .15s ease;
}
.b2b-typeahead__item:last-child { border-bottom: 0; }
.b2b-typeahead__item:hover { background: #fffdf6; }
.b2b-typeahead__item img { border-radius: 8px; object-fit: cover; background: #f3f4f6; }
.b2b-typeahead__title { color: #111827; font-weight: 600; font-size: 0.9rem; grid-column: 2; }
.b2b-typeahead__meta {
  grid-column: 2; color: #6b7280; font-size: 0.78rem;
}
.b2b-typeahead__meta code { direction: ltr; background: #f3f4f6; border-radius: 4px; padding: 0 5px; }
.b2b-typeahead__price { grid-row: 1 / span 2; grid-column: 3; color: #a8791a; font-weight: 700; font-size: 0.88rem; }
.b2b-typeahead__empty { margin: 0; padding: 14px; color: #9ca3af; font-size: 0.86rem; text-align: center; }

/* --- نتایج --- */
.b2b-result-head { margin: 8px 0 16px; }
.b2b-result-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.b2b-result-stat {
  background: #fff; border: 1px solid #e8eaee; border-radius: 999px;
  padding: 7px 16px; font-size: 0.86rem; color: #4b5563;
}
.b2b-result-stat b { color: #111827; }
.b2b-result-stat.is-ok { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.b2b-result-stat.is-ok b { color: #166534; }
.b2b-result-stat.is-warn { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.b2b-result-stat.is-warn b { color: #92400e; }

.b2b-part-row__source {
  margin: 0 0 6px; font-size: 0.78rem; color: #9ca3af;
}
.b2b-part-row__source span { color: #4b5563; direction: ltr; display: inline-block; }
.b2b-chip--match { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.b2b-chip--warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }

.b2b-alts { margin: -6px 0 14px; }
.b2b-alts > summary {
  cursor: pointer; color: #6b7280; font-size: 0.84rem; padding: 6px 4px;
  list-style: none;
}
.b2b-alts > summary::-webkit-details-marker { display: none; }
.b2b-alts > summary::before { content: "▾ "; color: #d4a017; }
.b2b-alt-list { display: grid; gap: 8px; margin-top: 8px; }
.b2b-alt {
  display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e8eaee; border-radius: 14px; padding: 10px 14px;
}
.b2b-alt img { border-radius: 9px; object-fit: cover; background: #f3f4f6; }
.b2b-alt__body { min-width: 0; }
.b2b-alt__body strong { display: block; color: #111827; font-size: 0.9rem; font-weight: 600; }
.b2b-alt__body span { color: #6b7280; font-size: 0.79rem; }
.b2b-alt__body code { direction: ltr; background: #f3f4f6; border-radius: 4px; padding: 0 5px; }
.b2b-alt--picked { border-color: #f0dca9; background: #fffdf6; }
.b2b-alt__remove {
  border: 0; background: none; color: #9ca3af; font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.b2b-alt__remove:hover { color: #dc2626; }
.b2b-part-list--picked:empty { display: none; }

.b2b-problem-list { display: grid; gap: 12px; }
.b2b-problem {
  background: #fff; border: 1px solid #f0dca9; border-radius: 16px; padding: 16px 18px;
}
.b2b-problem__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.b2b-problem__head strong { color: #111827; direction: ltr; }
.b2b-problem__badge {
  border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; font-weight: 600;
}
.b2b-problem__badge.is-stock { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.b2b-problem__badge.is-none { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.b2b-section__title--sm { font-size: 1.05rem; margin-top: 26px; }

/* --- نوار فیلتر لیست قیمت --- */
.b2b-filterbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px; padding: 16px 18px;
  margin: 22px 0; box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
.b2b-field--grow { flex: 1 1 260px; }
.b2b-pricelist__note { margin: 0 0 10px; font-size: 0.84rem; }
.b2b-pricelist td { vertical-align: middle; }
.b2b-pricelist__thumb { width: 52px; }
.b2b-pricelist__thumb img { border-radius: 8px; object-fit: cover; background: #f3f4f6; }
.b2b-pricelist code { direction: ltr; }
.b2b-qty-box--sm { transform: none; }
.b2b-qty-box--sm .b2b-qty { width: 54px; height: 32px; font-size: 0.88rem; }
.b2b-qty-box--sm .b2b-qty-btn { width: 28px; height: 32px; font-size: 1rem; }

/* --- تکرار سفارش --- */
.b2b-dash__kpis--tool { align-self: center; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.b2b-order-list--full { display: grid; gap: 16px; }
.b2b-order__head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.b2b-order.is-collapsed .b2b-order__table { display: none; }
.b2b-order-items tfoot th {
  background: #fafbfc; color: #111827; font-weight: 700; border-top: 2px solid #e8eaee;
}

/* --- پیش‌فاکتور --- */
.b2b-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.86rem; }
.b2b-kv dt { color: #6b7280; }
.b2b-kv dd { margin: 0; color: #111827; font-weight: 600; }
.b2b-kv dd.is-ltr { direction: ltr; text-align: right; }
.b2b-proforma__doc { margin-top: 24px; }
.b2b-proforma__doc-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid #f0dca9;
}
.b2b-proforma__doc-head strong { display: block; color: #111827; font-size: 1.05rem; }
.b2b-proforma__doc-head span { font-size: 0.84rem; }
.b2b-proforma__buyer { text-align: left; }
.b2b-proforma__buyer span { display: block; color: #111827; font-weight: 600; font-size: 0.9rem; }
.b2b-proforma__table tfoot th {
  background: #fdf8ec; color: #7c5b12; font-weight: 700; border-top: 2px solid #f0dca9;
}
.b2b-proforma__note { margin: 14px 0 0; font-size: 0.82rem; color: #9ca3af; }

/* --- صفحهٔ در حال افزودن --- */
.b2b-reorder-apply { text-align: center; margin-top: 30px; }
.b2b-reorder-apply__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 24px; margin-bottom: 14px;
  background: #fdf3d8; border: 1px solid #f0dca9; color: #a8791a;
}
.b2b-reorder-apply__icon svg { width: 34px; height: 34px; animation: b2b-spin 1.6s linear infinite; }
@keyframes b2b-spin { to { transform: rotate(-360deg); } }
.b2b-reorder-apply h1 { font-size: 1.24rem; color: #111827; margin: 0 0 8px; }
.b2b-reorder-apply__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

@media print {
  .b2b-topbar, .b2b-site-footer, .b2b-quick__hero, .b2b-format-grid,
  .b2b-sticky-actions, #toastContainer { display: none !important; }
  .b2b-proforma__doc { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff !important; }
}

@media (max-width: 960px) {
  .b2b-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .b2b-alt { grid-template-columns: 44px 1fr; row-gap: 8px; }
  .b2b-alt .b2b-qty-box--sm { grid-column: 2; justify-self: start; }
  .b2b-alt__remove { grid-row: 1; grid-column: 2; justify-self: end; }
  .b2b-typeahead__item { grid-template-columns: 36px 1fr; }
  .b2b-typeahead__price { grid-row: auto; grid-column: 2; }
  .b2b-filterbar { flex-direction: column; align-items: stretch; }
  .b2b-proforma__buyer { text-align: right; }
}


/* ==================================================================
   سفارش سریع: مراحل جمع‌شونده — انتخاب‌شده‌ها سمت راست جمع می‌شوند و
   مرحلهٔ باز سمت چپ نمایش داده می‌شود
   ================================================================== */

.b2b-wizard {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px; align-items: start; margin-bottom: 20px;
}
.b2b-wizard__rail { display: grid; gap: 10px; align-content: start; }

.b2b-wizard__card {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center; gap: 10px; width: 100%;
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px;
  padding: 12px 14px; text-align: right; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}
.b2b-wizard__card:hover:not(:disabled) { border-color: #f0dca9; transform: translateY(-1px); }
.b2b-wizard__card:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.b2b-wizard__card.is-current {
  border-color: #d4a017; background: #fffdf6;
  box-shadow: 0 12px 28px rgba(212,160,23,0.16);
}

.b2b-wizard__num {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: #f3f4f6; color: #9ca3af; font-weight: 800; font-size: 0.86rem;
}
.b2b-wizard__card.is-done .b2b-wizard__num { background: #ecfdf5; color: #047857; }
.b2b-wizard__card.is-current .b2b-wizard__num { background: #d4a017; color: #fff; }

.b2b-wizard__thumb {
  width: 54px; height: 40px; border-radius: 11px; overflow: hidden;
  background: #f5f6f8; border: 1px solid #edeef1; display: grid; place-items: center;
}
.b2b-wizard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2b-wizard__thumb.is-logo img { object-fit: contain; padding: 5px; background: #fff; }

.b2b-wizard__body { min-width: 0; }
.b2b-wizard__label { display: block; font-size: 0.76rem; color: #9ca3af; }
.b2b-wizard__value {
  display: block; color: #111827; font-size: 0.95rem; font-weight: 700; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.b2b-wizard__action {
  font-size: 0.75rem; color: #a8791a; background: #fdf3d8; border: 1px solid #f0dca9;
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.b2b-wizard__card.is-current .b2b-wizard__action { background: #d4a017; border-color: #d4a017; color: #fff; }
.b2b-wizard__card.is-locked .b2b-wizard__action,
.b2b-wizard__card.is-current:not(.is-done) .b2b-wizard__action { display: none; }

.b2b-wizard__result {
  background: #fdf8ec; border: 1px dashed #f0dca9; border-radius: 16px;
  padding: 12px 14px; text-align: center;
}
.b2b-wizard__result span { display: block; font-size: 0.78rem; color: #9a7b2e; }
.b2b-wizard__result strong { display: block; font-size: 1.1rem; color: #7c5b12; margin-top: 2px; }

.b2b-wizard__main > [data-b2b-step-panel] { display: none; }
.b2b-wizard[data-active-step="brand"] [data-b2b-step-panel="brand"],
.b2b-wizard[data-active-step="model"] [data-b2b-step-panel="model"],
.b2b-wizard[data-active-step="group"] [data-b2b-step-panel="group"] { display: block; }
.b2b-wizard__main > .b2b-picker-block { margin: 0; }

/* وقتی هر سه مرحله انتخاب شد، ریل افقی می‌شود و کل عرض به قطعات می‌رسد */
.b2b-wizard[data-active-step="parts"] { grid-template-columns: minmax(0, 1fr); }
.b2b-wizard[data-active-step="parts"] .b2b-wizard__rail {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.b2b-wizard[data-active-step="parts"] .b2b-wizard__main { display: none; }

@media (max-width: 900px) {
  .b2b-wizard,
  .b2b-wizard[data-active-step="parts"] .b2b-wizard__rail { grid-template-columns: minmax(0, 1fr); }
}


/* ==================================================================
   منوی بالا: آیکن هر آیتم + مینی‌سبد
   ================================================================== */

.b2b-nav a { display: inline-flex; align-items: center; gap: 7px; }
.b2b-nav__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: rgba(212,160,23,0.12); color: #d4a017;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.b2b-nav__icon svg { width: 15px; height: 15px; }
.b2b-nav a:hover .b2b-nav__icon { transform: translateY(-1px); }
.b2b-nav a.is-active { color: #d4a017; font-weight: 700; }
.b2b-nav a.is-active .b2b-nav__icon { background: #d4a017; color: #fff; }
.b2b-body--landing .b2b-nav__icon { background: #fdf3d8; color: #a8791a; }
.b2b-body--landing .b2b-nav a.is-active .b2b-nav__icon { background: #d4a017; color: #fff; }

.b2b-minicart { position: relative; flex: 0 0 auto; margin-inline-start: 8px; }
.b2b-logout { margin: 0; flex: 0 0 auto; order: 99; }
.b2b-logout__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(212,87,76,0.35); background: rgba(212,87,76,0.1);
  color: inherit; font-family: inherit; font-size: 0.86rem; font-weight: 700;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.b2b-logout__btn:hover { background: rgba(212,87,76,0.2); border-color: rgba(212,87,76,0.65); }
.b2b-logout__icon { display: inline-flex; color: #d4574c; }
.b2b-logout__icon svg { width: 19px; height: 19px; }
.b2b-body--landing .b2b-logout__btn {
  background: #fdf1f0; border-color: #f3d3cf; color: #a8382d;
}
.b2b-body--landing .b2b-logout__btn:hover { background: #fbe4e1; border-color: #e9b7b1; }

@media (max-width: 640px) {
  .b2b-logout__label { display: none; }
  .b2b-logout__btn { padding: 7px 10px; }
}

.b2b-minicart__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.35); background: rgba(212,160,23,0.1);
  color: inherit; text-decoration: none; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.b2b-minicart__toggle:hover { background: rgba(212,160,23,0.18); border-color: rgba(212,160,23,0.6); }
.b2b-body--landing .b2b-minicart__toggle { background: #fdf3d8; border-color: #f0dca9; color: #7c5b12; }
.b2b-minicart__icon { position: relative; display: inline-flex; color: #d4a017; }
.b2b-minicart__icon svg { width: 21px; height: 21px; }
.b2b-minicart__count {
  position: absolute; inset-inline-start: -8px; top: -7px; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 4px; border-radius: 999px;
  background: #d4574c; color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}
.b2b-minicart__label { font-size: 0.86rem; font-weight: 700; }

.b2b-topbar__inner { position: relative; }
.b2b-minicart { position: static; }
.b2b-minicart__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% - 2px); z-index: 60;
  width: min(360px, calc(100vw - 24px));
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px;
  box-shadow: 0 22px 48px rgba(15,23,42,0.18); padding: 14px; color: #1f2937;
}
.b2b-minicart__panel[hidden] { display: none; }
.b2b-minicart__items { max-height: min(56vh, 380px); overflow-y: auto; overscroll-behavior: contain; }
.b2b-minicart__items .product {
  display: grid; grid-template-columns: 1fr 54px auto; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #f1f2f4;
}
.b2b-minicart__items .product:last-child { border-bottom: 0; }
.b2b-minicart__items .product-title { margin: 0 0 3px; font-size: 0.86rem; font-weight: 700; line-height: 1.6; }
.b2b-minicart__items .product-title a { color: #111827; text-decoration: none; }
.b2b-minicart__items .product-title a:hover { color: #a8791a; }
.b2b-minicart__items .cart-product-info { font-size: 0.8rem; color: #6b7280; }
.b2b-minicart__items .cart-product-qty { color: #a8791a; font-weight: 700; }
.b2b-minicart__items .product-image-container { margin: 0; }
.b2b-minicart__items .cart-product-image img {
  width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #f4f5f7; display: block;
}
.b2b-minicart__items .btn-remove {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  color: #9ca3af; text-decoration: none; font-size: 1.1rem; line-height: 1;
}
.b2b-minicart__items .btn-remove:hover { background: #fef2f2; color: #dc2626; }
.b2b-minicart__items .btn-remove .icon-close::before { content: "×"; }
.b2b-minicart__items .empty-cart-message,
.b2b-minicart__items .mini-cart-loading__text { padding: 22px 8px; text-align: center; color: #9ca3af; font-size: 0.88rem; }
.b2b-minicart__items .mini-cart-loading__track { display: none; }

.b2b-minicart__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee7cf; }
.b2b-minicart__total {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; color: #111827; font-weight: 800;
}
.b2b-minicart__total .cart-total-price { font-size: 1.05rem; }
.b2b-minicart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b2b-minicart__actions .b2b-btn { justify-content: center; padding: 9px 10px; font-size: 0.88rem; }

/* ==================================================================
   ریل‌های پیشنهاد داشبورد
   ================================================================== */

.b2b-reco { margin: 26px 0; }
.b2b-reco__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.b2b-reco__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b2b-reco__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto;
  background: #fdf3d8; border: 1px solid #f0dca9; color: #a8791a;
}
.b2b-reco__icon svg { width: 24px; height: 24px; }
.b2b-reco__title h2 { margin: 0; font-size: 1.12rem; color: #111827; font-weight: 800; }
.b2b-reco__title > div > span { display: block; font-size: 0.83rem; color: #6b7280; margin-top: 2px; }
.b2b-reco__tools { display: flex; align-items: center; gap: 8px; }
.b2b-reco__more { font-size: 0.84rem; color: #a8791a; text-decoration: none; font-weight: 700; }
.b2b-reco__more:hover { text-decoration: underline; }
.b2b-reco__nav {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid #e8eaee; background: #fff;
  color: #6b7280; font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.b2b-reco__nav:hover { border-color: #d4a017; color: #a8791a; background: #fffdf6; }
.b2b-reco__empty {
  background: #fff; border: 1px dashed #e8eaee; border-radius: 16px;
  padding: 22px; text-align: center; margin: 0;
}

.b2b-reco__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr);
  gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: #d9dde3 transparent;
}
.b2b-reco__track::-webkit-scrollbar { height: 7px; }
.b2b-reco__track::-webkit-scrollbar-thumb { background: #d9dde3; border-radius: 999px; }

.b2b-reco-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e8eaee; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.b2b-reco-card:hover { border-color: #f0dca9; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,0.08); }
.b2b-reco-card.is-selected { border-color: #d4a017; background: #fffdf6; }

.b2b-reco-card__photo { position: relative; background: #f7f8fa; }
.b2b-reco-card__photo img {
  width: 100%; height: 132px; object-fit: contain; padding: 10px; display: block; background: #fff;
}
.b2b-reco-card__badge {
  position: absolute; inset-inline-start: 8px; top: 8px;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
  border-radius: 999px; padding: 3px 9px; font-size: 0.7rem; font-weight: 700;
}

.b2b-reco-card__body { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px 14px; flex: 1 1 auto; }
.b2b-reco-card__title { margin: 0; font-size: 0.88rem; font-weight: 700; line-height: 1.7; min-height: 2.9em; }
.b2b-reco-card__title a, .b2b-reco-card__title span {
  color: #111827; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.b2b-reco-card__title a:hover { color: #a8791a; }
.b2b-reco-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.74rem; }
.b2b-reco-card__meta code {
  direction: ltr; background: #f4f5f7; color: #4b5563; border-radius: 5px; padding: 1px 6px;
}
.b2b-reco-card__meta span { color: #6b7280; }
.b2b-reco-card__meta span.is-ok { color: #047857; }
.b2b-reco-card__meta span.is-low { color: #b45309; }
.b2b-reco-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: auto; }
.b2b-reco-card__price > span { font-size: 0.75rem; color: #9ca3af; }
.b2b-reco-card .b2b-tier-hint { margin: 0; font-size: 0.73rem; }
.b2b-reco-card__actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.b2b-reco-card__add { padding: 8px 10px; font-size: 0.85rem; justify-content: center; }

@media (min-width: 992px) {
  .b2b-topbar__inner { flex-wrap: nowrap; }
  .b2b-nav {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: flex-end;
    overflow-x: auto; gap: 6px 10px; scrollbar-width: none;
  }
  .b2b-nav::-webkit-scrollbar { display: none; }
  .b2b-nav a { white-space: nowrap; }
}

@media (max-width: 640px) {
  .b2b-reco__track { grid-auto-columns: minmax(178px, 1fr); }
  .b2b-reco-card__photo img { height: 112px; }
  .b2b-minicart__label { display: none; }
}


/* ==================================================================
   منوی کناری سمت راست (حالت همکار): جمع‌شده فقط آیکن، با hover باز می‌شود
   ================================================================== */

:root { --b2b-topbar-h: 80px; --b2b-side-w: 68px; --b2b-side-w-open: 262px; }

.b2b-side {
  position: fixed; inset-inline-start: 0; top: var(--b2b-topbar-h); bottom: 0; z-index: 35;
  width: var(--b2b-side-w); display: flex; flex-direction: column; justify-content: center;
  background: #fff; border-inline-end: 1px solid #e8eaee;
  box-shadow: -2px 0 18px rgba(15,23,42,0.06);
  transition: width .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease;
  overflow: visible;
}
.b2b-body:not(.b2b-body--landing) .b2b-side {
  background: rgba(15, 28, 23, 0.96); border-inline-end: 1px solid var(--b2b-line);
  box-shadow: -2px 0 18px rgba(0,0,0,0.25);
}
.b2b-side:hover, .b2b-side.is-open { width: var(--b2b-side-w-open); box-shadow: -6px 0 36px rgba(15,23,42,0.16); }

.b2b-side__nav {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 10px;
  overflow-y: auto; overflow-x: hidden; max-height: 100%;
  scrollbar-width: thin; scrollbar-color: #e0e3e8 transparent;
}
.b2b-side__nav::-webkit-scrollbar { width: 5px; }
.b2b-side__nav::-webkit-scrollbar-thumb { background: #e0e3e8; border-radius: 999px; }

.b2b-side__link {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center;
  gap: 10px; padding: 8px; border-radius: 14px; text-decoration: none;
  color: #4b5563; white-space: nowrap; text-align: right;
  transition: background .18s ease, color .18s ease;
}
.b2b-body:not(.b2b-body--landing) .b2b-side__link { color: rgba(255,255,255,0.82); }
.b2b-side__link:hover { background: #fffaef; color: #111827; }
.b2b-body:not(.b2b-body--landing) .b2b-side__link:hover { background: rgba(212,160,23,0.14); color: #fff; }
.b2b-side__link.is-active { background: #fdf3d8; color: #7c5b12; }
.b2b-body:not(.b2b-body--landing) .b2b-side__link.is-active { background: rgba(212,160,23,0.22); color: #fff; }

.b2b-side__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  background: #f4f5f7; color: #6b7280;
  transition: background .18s ease, color .18s ease;
}
.b2b-body:not(.b2b-body--landing) .b2b-side__icon { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.b2b-side__icon svg { width: 21px; height: 21px; }
.b2b-side__link:hover .b2b-side__icon { background: #fdf3d8; color: #a8791a; }
.b2b-side__link.is-active .b2b-side__icon { background: #d4a017; color: #fff; }

.b2b-side__text {
  min-width: 0; opacity: 0; transform: translateX(6px);
  transition: opacity .16s ease, transform .22s cubic-bezier(.4,0,.2,1);
}
.b2b-side:hover .b2b-side__text, .b2b-side.is-open .b2b-side__text { opacity: 1; transform: none; }
.b2b-side__text b {
  display: block; font-size: 0.9rem; font-weight: 700; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis;
}
.b2b-side__text em {
  display: block; font-style: normal; font-size: 0.73rem; color: #9ca3af;
  overflow: hidden; text-overflow: ellipsis;
}
.b2b-body:not(.b2b-body--landing) .b2b-side__text em { color: rgba(255,255,255,0.5); }
.b2b-side__link.is-active .b2b-side__text em { color: #a8791a; }

/* دستگیرهٔ کوچک که نشان می‌دهد منو باز می‌شود */
.b2b-side__grip {
  position: absolute; inset-inline-end: -11px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 46px; border-radius: 999px;
  display: grid; place-items: center; pointer-events: none;
  background: #fff; border: 1px solid #e8eaee; color: #b0b6bf;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  transition: opacity .18s ease, transform .22s ease;
}
.b2b-body:not(.b2b-body--landing) .b2b-side__grip { background: #16271f; border-color: var(--b2b-line); color: rgba(255,255,255,0.45); }
.b2b-side__grip svg { width: 14px; height: 14px; }
.b2b-side:hover .b2b-side__grip, .b2b-side.is-open .b2b-side__grip { opacity: 0; }

/* محتوای صفحه پشت ریل نرود */
.b2b-has-side main, .b2b-has-side .b2b-site-footer { padding-inline-start: var(--b2b-side-w); }

@media (max-width: 900px) {
  /* روی صفحهٔ کوچک، ریل به یک نوار افقی زیر هدر تبدیل می‌شود */
  .b2b-side {
    position: sticky; top: 0; bottom: auto; inset-inline-start: auto;
    width: 100%; flex-direction: row; justify-content: flex-start;
    border-inline-end: 0; border-bottom: 1px solid #e8eaee;
    box-shadow: 0 6px 16px rgba(15,23,42,0.05);
  }
  .b2b-side:hover, .b2b-side.is-open { width: 100%; box-shadow: 0 6px 16px rgba(15,23,42,0.05); }
  .b2b-side__nav {
    flex-direction: row; width: 100%; overflow-x: auto; overflow-y: hidden;
    padding: 8px 12px; gap: 6px;
  }
  .b2b-side__link { grid-template-columns: auto auto; padding: 6px 10px 6px 6px; }
  .b2b-side__icon { width: 38px; height: 36px; border-radius: 11px; }
  .b2b-side__icon svg { width: 18px; height: 18px; }
  .b2b-side__text { opacity: 1; transform: none; }
  .b2b-side__text em { display: none; }
  .b2b-side__text b { font-size: 0.84rem; }
  .b2b-side__grip { display: none; }
  .b2b-has-side main, .b2b-has-side .b2b-site-footer { padding-inline-start: 0; }
}

@media print {
  .b2b-side { display: none !important; }
  .b2b-has-side main, .b2b-has-side .b2b-site-footer { padding-inline-start: 0 !important; }
}
