/* ============================================================
   Supplier public profile (B2B)
   ============================================================ */

.sp-main { padding: 24px 0 80px; }

.sp-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 28px;
}

.sp-cover {
  height: 180px;
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 198, 0, 0.25), transparent 60%),
    linear-gradient(135deg, #2a2c32 0%, #1c1e23 100%);
  position: relative;
  overflow: hidden;
}
.sp-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,0.04) 24px 25px);
}
.sp-cover .ms {
  position: absolute;
  right: 40px; bottom: 20px;
  font-size: 120px;
  color: rgba(247, 246, 242, 0.08);
  font-variation-settings: 'opsz' 48, 'wght' 300, 'FILL' 1, 'GRAD' 0;
}

.sp-hero-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 24px 28px;
  align-items: center;
}
.sp-logo {
  width: 96px; height: 96px;
  border-radius: var(--r-md);
  background: var(--dark);
  color: var(--signal);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.04em;
  margin-top: -56px;
  border: 4px solid var(--surface);
  box-shadow: var(--sh-3);
}

.sp-title h1 {
  font-family: var(--font);
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-title h1 .ms { color: var(--info); font-size: 24px; }
.sp-title .meta {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.sp-title .meta .item { display: inline-flex; align-items: center; gap: 5px; }
.sp-title .meta .ms { font-size: 16px; color: var(--text-muted); }
.sp-title .meta .star { color: var(--signal); font-variation-settings: 'opsz' 20, 'wght' 600, 'FILL' 1, 'GRAD' 0; }

.sp-hero-actions { display: flex; gap: 8px; }

/* hero stats strip */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 28px 24px;
}
.sp-stats .stat {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.sp-stats .stat:first-child { padding-left: 0; }
.sp-stats .stat:last-child { border-right: 0; padding-right: 0; }
.sp-stats .l {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}
.sp-stats .v {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 4px;
}
.sp-stats .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* layout */
.sp-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.sp-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-bottom: 18px;
  overflow: hidden;
}
.sp-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.sp-sec-head h2 {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sp-sec-head h2 .mono { color: var(--text-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.sp-sec-body { padding: 20px 22px; }

/* about */
.sp-about p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}
.sp-about strong { color: var(--text); font-weight: 600; }
.sp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.sp-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-feature .ms { color: var(--signal); font-size: 18px; }
.sp-feature .n { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.sp-feature .d { font-size: 12px; color: var(--text-muted); }

/* regions */
.sp-regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sp-region {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.sp-region.primary { background: var(--dark); color: var(--text-on-dark); border-color: var(--dark); }
.sp-region.primary .ms { color: var(--signal); }
.sp-region .ms { color: var(--text-muted); font-size: 18px; }
.sp-region .info { flex: 1; min-width: 0; }
.sp-region .n { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.sp-region .d {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.7;
}

/* catalog tabs inside profile */
.sp-cat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sp-cat-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.sp-cat-tabs button.active { background: var(--dark); color: var(--text-on-dark); border-color: var(--dark); }
.sp-cat-tabs button .c {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
}
.sp-cat-tabs button.active .c { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

/* product mini grid */
.sp-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sp-product {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sp-product .photo {
  height: 110px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #efe9d6 0%, #ddd5b8 100%);
}
.sp-product .photo .ms { color: rgba(15,17,21,0.2); font-size: 36px; font-variation-settings: 'opsz' 32, 'wght' 300, 'FILL' 1, 'GRAD' 0; }
.sp-product.tire .photo { background: linear-gradient(135deg, #2a2c32 0%, #1c1e23 100%); }
.sp-product.tire .photo .ms { color: rgba(247, 246, 242, 0.2); }
.sp-product.parts .photo { background: linear-gradient(135deg, #d8dbe2 0%, #b9bdc8 100%); }
.sp-product .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-product .n { font-size: 12px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; min-height: 32px; }
.sp-product .pr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.sp-product .pr .v { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.sp-product .pr .add {
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--signal);
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
}
.sp-product .pr .add .ms { font-size: 14px; }

/* right rail */
.sp-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sp-contact-card {
  background: var(--dark);
  color: var(--text-on-dark);
  border-radius: var(--r-xl);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.sp-contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(242, 198, 0, 0.15), transparent 60%);
  pointer-events: none;
}
.sp-contact-card > * { position: relative; }
.sp-contact-card .label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(247, 246, 242, 0.55);
  margin-bottom: 8px;
}
.sp-contact-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.sp-contact-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 246, 242, 0.08);
  font-size: 13px;
  color: rgba(247, 246, 242, 0.85);
}
.sp-contact-card .row:last-child { border-bottom: 0; }
.sp-contact-card .row .ms { color: var(--signal); font-size: 18px; }
.sp-contact-card .row strong { color: var(--text-on-dark); font-weight: 600; }
.sp-contact-card .row .mono { font-family: var(--font-mono); }
.sp-contact-card .cta {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.sp-contact-card .cta button {
  flex: 1;
  padding: 12px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sp-contact-card .cta .primary { background: var(--signal); color: var(--signal-on); }
.sp-contact-card .cta .ghost { background: transparent; border: 1px solid rgba(247, 246, 242, 0.18); color: var(--text-on-dark); }

/* trust */
.sp-trust {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-trust .row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.sp-trust .row .ms { color: var(--go); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.sp-trust .row strong { color: var(--text); font-weight: 600; }
