/* ============================================================
   Supplier cart / checkout — page-specific styles
   ============================================================ */

.cart-main { padding: 28px 0 80px; }

.cart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.cart-head h1 {
  font-size: 36px;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-family: var(--font);
  font-weight: 600;
}
.cart-head .lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* ===== SUPPLIER GROUP ===== */
.supplier-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 14px;
}

.sg-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.sg-head .logo {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.sg-head .logo.dark { background: var(--dark); color: var(--signal); }
.sg-head .logo.gold { background: var(--signal); color: var(--signal-on); }
.sg-head .logo.muted { background: var(--surface-3); color: var(--text); }
.sg-info .n {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sg-info .n .verified { color: var(--info); font-size: 14px; }
.sg-info .m {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  gap: 12px;
}
.sg-info .m .item { display: inline-flex; align-items: center; gap: 4px; }
.sg-info .m .ms { font-size: 13px; }
.sg-info .m .star { color: var(--signal); font-variation-settings: 'opsz' 20, 'wght' 600, 'FILL' 1, 'GRAD' 0; }
.sg-delivery {
  text-align: right;
}
.sg-delivery .d {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--go);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sg-delivery .d .ms { font-size: 14px; }
.sg-delivery .t {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* item row */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }

.ci-photo {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: grid; place-items: center;
}
.ci-photo .ms { color: rgba(15,17,21,0.25); font-size: 30px; font-variation-settings: 'opsz' 32, 'wght' 300, 'FILL' 1, 'GRAD' 0; }
.ci-photo.bg-oil { background: linear-gradient(135deg, #efe9d6 0%, #ddd5b8 100%); }
.ci-photo.bg-tire { background: linear-gradient(135deg, #2a2c32 0%, #1c1e23 100%); }
.ci-photo.bg-tire .ms { color: rgba(247,246,242,0.3); }
.ci-photo.bg-parts { background: linear-gradient(135deg, #d8dbe2 0%, #b9bdc8 100%); }
.ci-photo.bg-cons { background: linear-gradient(135deg, #efeae0 0%, #d8d2c2 100%); }
.ci-photo.bg-chem { background: linear-gradient(135deg, #dee7f1 0%, #c4d3e3 100%); }
.ci-photo.bg-tool { background: linear-gradient(135deg, #e6e2d5 0%, #d2cdba 100%); }

.ci-info { min-width: 0; }
.ci-info .n {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ci-info .m {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ci-info .tag { font-size: 11px; padding: 2px 7px; }

.ci-qty {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
}
.ci-qty button {
  width: 28px; height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--text-2);
  border-radius: var(--r-pill);
  font-family: inherit;
}
.ci-qty button:hover { background: var(--surface-3); color: var(--text); }
.ci-qty .v {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
}

.ci-price {
  text-align: right;
}
.ci-price .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.ci-price .total {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.ci-remove {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--text-muted);
}
.ci-remove:hover { background: var(--busy-soft); color: var(--busy); }

/* group footer */
.sg-foot {
  padding: 12px 20px;
  background: var(--surface-2);
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.sg-foot .min-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.sg-foot .min-warning .ms { color: var(--go); font-size: 16px; }
.sg-foot .min-warning.warn { color: var(--wait); }
.sg-foot .min-warning.warn .ms { color: var(--wait); }
.sg-foot .sub {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.sg-foot .sub strong { font-weight: 600; }

/* ===== SUMMARY (right rail) ===== */
.summary-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--sh-2);
}
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.summary-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.summary-head .mono { font-size: 12px; color: var(--text-muted); }

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}
.sum-row .l { color: var(--text-muted); }
.sum-row .l .sub { color: var(--text-faint); font-size: 12px; margin-left: 4px; }
.sum-row .v {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
}
.sum-row.discount .v { color: var(--go); }
.sum-row.muted .v { color: var(--text-muted); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.summary-total .l {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.summary-total .v {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.summary-total .v .vat {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
}

.checkout-btn {
  width: 100%;
  padding: 14px 0;
  background: var(--dark);
  color: var(--text-on-dark);
  border: 0;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-btn:hover { background: var(--dark-2); }
.checkout-btn .ms { font-size: 18px; }

.summary-fineprint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.summary-fineprint .ms { color: var(--go); font-size: 14px; flex-shrink: 0; margin-top: 2px; }

/* delivery + payment cards */
.option-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option-card .ic {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.option-card .ic .ms { font-size: 20px; }
.option-card .body { flex: 1; min-width: 0; }
.option-card .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.option-card .val {
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.option-card .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.option-card .edit {
  background: transparent;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.option-card .edit:hover { color: var(--text); }

/* trust signals */
.trust-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.trust-item .ms { color: var(--go); font-size: 16px; }
.trust-item strong { font-weight: 600; color: var(--text); }
