/* ==========================================================================
   pages/d2c.css — D2C Brands page (v2.18).
   Page header with title + secondary CTA, plus a clean centered empty
   state that escapes the .clg grid layout for proper vertical centering.
   ========================================================================== */

/* Page header — replaces the legacy .sh button-only row. */
.d2c-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  gap: 12px;
}

.d2c-page-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.d2c-page-add {
  flex-shrink: 0;
}

/* Empty state — when the grid host has no brand cards, JS swaps its
   class to .d2c-empty-host so this rule wins over .clg's grid layout
   and the inner .d2c-empty can vertically center properly. */
.d2c-empty-host {
  display: block;
  width: 100%;
}

.d2c-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.d2c-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.d2c-empty-icon svg {
  display: block;
}

.d2c-empty-title {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.d2c-empty-sub {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.5;
  margin: 0;
}

.d2c-empty-cta {
  margin-top: 4px;
  width: auto;
}

/* Responsive */
@media (max-width: 700px) {
  .d2c-page-header { padding: 16px 16px 0; }
  .d2c-page-title  { font-size: 18px; }
  .d2c-empty       { min-height: calc(100vh - 100px); }
}
