.kap-vendor {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}
.kap-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #9c9083);
  text-decoration: none;
  transition: color 0.12s ease;
}
.kap-back:hover { color: #c9a15a; }
.kap-vendor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.kap-vendor-head h1 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.kap-vendor-head .sub {
  color: var(--text-muted, #8a8a8a);
  font-size: 0.88rem;
}
.kap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.kap-btn-primary {
  background: linear-gradient(135deg, #c9a15a, #9c6b3e);
  color: #1c1712;
  box-shadow: 0 4px 14px rgba(156, 107, 62, 0.32);
}
.kap-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(156, 107, 62, 0.42); }
.kap-btn-ghost {
  background: transparent;
  color: var(--text-muted, #aaa);
  border: 1px solid var(--border, #2c2c2c);
}
.kap-btn-ghost:hover { border-color: #555; color: #fff; }
.kap-btn-danger-ghost {
  background: transparent;
  color: #c9847a;
  border: 1px solid rgba(220, 90, 70, 0.35);
}
.kap-btn-danger-ghost:hover { background: rgba(220, 90, 70, 0.08); }
.kap-btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.kap-btn-block { width: 100%; justify-content: center; }

.kap-vlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kap-vcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border, #262626);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  transition: border-color 0.12s ease;
}
.kap-vcard:hover { border-color: #3a3a3a; }
.kap-vcard .thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bg-input, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
}
.kap-vcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.kap-vcard .body { flex: 1; min-width: 0; }
.kap-vcard .name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kap-vcard .meta {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  display: flex;
  gap: 8px;
  align-items: center;
}
.kap-vcard .price {
  font-weight: 700;
  color: #c9a15a;
}
.kap-vcard .actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.kap-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.kap-badge-active { background: rgba(79, 191, 114, 0.14); color: #4fbf72; }
.kap-badge-draft { background: rgba(200, 170, 90, 0.14); color: #d3ab5a; }
.kap-badge-out_of_stock { background: rgba(220, 90, 70, 0.14); color: #dc5a46; }

.kap-vempty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--border, #2c2c2c);
  border-radius: 16px;
  color: var(--text-muted, #888);
}
.kap-vempty .icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.6; }
.kap-vempty p { font-size: 0.9rem; margin-bottom: 18px; }

.kap-form-card {
  border: 1px solid var(--border, #262626);
  border-radius: 16px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.kap-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .kap-form-row { grid-template-columns: 1fr; }
}
.kap-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #aaa);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.kap-field input,
.kap-field select,
.kap-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--bg-input, #141414);
  color: inherit;
  font-family: inherit;
  transition: border-color 0.12s ease;
}
.kap-field input:focus,
.kap-field select:focus,
.kap-field textarea:focus {
  outline: none;
  border-color: #c9a15a;
}
.kap-field textarea { resize: vertical; min-height: 90px; }
.kap-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.kap-toast {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.kap-toast-success { background: rgba(79, 191, 114, 0.1); color: #4fbf72; }
.kap-toast-error { background: rgba(220, 90, 70, 0.1); color: #dc5a46; }

@media (min-width: 960px) {
  .kap-vendor {
    max-width: 1100px;
    padding: 48px 40px 100px;
  }
  .kap-vendor-head h1 { font-size: 1.9rem; }
  .kap-vendor-head .sub { font-size: 0.95rem; }
  .kap-vlist { gap: 14px; }
  .kap-vcard {
    padding: 18px 20px;
    border-radius: 16px;
  }
  .kap-vcard .thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    font-size: 1.6rem;
  }
  .kap-vcard .name { font-size: 1.05rem; }
  .kap-vcard .meta { font-size: 0.85rem; }
  .kap-form-card { max-width: 640px; padding: 32px; }
}


/* Buyer order-history aliases (orders.php no longer borrows vendor class names) */
.kap-order-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--border, #2c2c2c);
  border-radius: 16px;
  color: var(--text-muted, #888);
}
.kap-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kap-order-list { gap: 14px; }
.kap-order-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border, #262626);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  transition: border-color 0.12s ease;
}
.kap-order-card {
    padding: 18px 20px;
    border-radius: 16px;
  }
