body { background: #f3f7fd; color: #13233c; }
.merchant-shell { max-width: 1280px; margin: 0 auto; padding: 28px 20px 60px; }
.merchant-hero {
  min-height: 220px;
  display: grid;
  align-items: end;
  padding: 30px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(8,26,51,.74), rgba(16,42,67,.46)),
    url('/assets/images/original/picsum-merchant-center-1500x620.jpg') center/cover;
  color: #fff;
  box-shadow: 0 14px 32px rgba(18,46,89,.12);
  margin-bottom: 18px;
}
.merchant-hero span { color: rgba(255,255,255,.84); font-weight: 900; letter-spacing: .08em; }
.merchant-hero h1 { margin: 8px 0 10px; color: #fff !important; font-size: clamp(34px, 5vw, 56px); }
.merchant-hero p { max-width: 880px; color: rgba(255,255,255,.92) !important; line-height: 1.8; margin: 0 0 14px; }
.merchant-panel-card,
.merchant-card {
  background: #fff;
  border: 1px solid #d9e4f5;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(18,46,89,.08);
}
.merchant-panel-card { padding: 18px; margin-bottom: 16px; }
.merchant-list { display: grid; gap: 14px; }
.merchant-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; }
.merchant-card-body { padding: 16px; }
.merchant-card h3 { margin: 0 0 8px; color: #13233c; }
.merchant-card p,
.merchant-panel-card p { color: #4e607f; line-height: 1.75; margin: 8px 0; }
.merchant-media { width: 100%; height: 100%; min-height: 180px; object-fit: cover; background: #edf3fb; }
.merchant-meta,
.merchant-actions,
.merchant-toolbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.merchant-meta { color: #60799f; font-size: 13px; margin-bottom: 10px; }
.merchant-meta span,
.merchant-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #25559f;
  font-size: 13px;
  font-weight: 800;
}
.primary-btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid #d9e4f5;
  background: #f4f8ff;
  color: #25559f;
  font: inherit;
}
.primary-btn { background: linear-gradient(135deg,#2f7dff,#19c7b3); color: #fff; border: 0; }
.danger-btn { background: #fff1f0; color: #a8071a; border-color: #ffd6d1; }
.merchant-input {
  border: 1px solid #d9e4f5;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #13233c;
}
.merchant-toolbar .merchant-input { min-width: 220px; }
.merchant-summary,
.merchant-empty,
.merchant-loading {
  color: #4e607f;
  line-height: 1.7;
  margin-top: 12px;
}
.merchant-empty,
.merchant-loading {
  background: #fff;
  border: 1px solid #d9e4f5;
  border-radius: 14px;
  padding: 18px;
}
.merchant-warning { color: #a8071a !important; background: #fff1f0; border: 1px solid #ffd6d1; padding: 8px 10px; border-radius: 9px; }
.merchant-form { display: grid; gap: 14px; }
.merchant-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.merchant-form label { display: flex; flex-direction: column; gap: 7px; color: #13233c; font-weight: 900; }
.merchant-form label.full { grid-column: 1 / -1; }
.merchant-form textarea.merchant-input { resize: vertical; }
.merchant-edit-image { width: 220px; aspect-ratio: 1 / 1; border-radius: 12px; object-fit: cover; background: #edf3fb; }
.merchant-detail { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.merchant-detail-image { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; object-fit: cover; background: #edf3fb; box-shadow: 0 8px 22px rgba(18,46,89,.08); }
@media (max-width: 820px) {
  .merchant-card,
  .merchant-detail,
  .merchant-form-grid { grid-template-columns: 1fr; }
  .merchant-media { aspect-ratio: 16 / 10; min-height: 0; }
  .merchant-toolbar .merchant-input { min-width: min(100%, 220px); }
}
