/* 貼貼賞商戶專頁 */

.page-merchants .app-content {
  max-width: 1080px;
}

.merchants-page-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.merchants-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.merchants-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgb(15 23 42 / 10%);
  background: #fff;
  box-shadow: 0 2px 10px rgb(15 23 42 / 5%);
}

.merchants-search-icon {
  color: var(--color-muted, #64748b);
  flex-shrink: 0;
}

.merchants-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--color-text, #0f172a);
  outline: none;
}

.merchants-search-input::placeholder {
  color: var(--color-muted, #94a3b8);
}

.merchants-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.merchants-filter {
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: #fff;
  color: var(--color-muted, #64748b);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.merchants-filter.active {
  background: var(--color-primary-light, #eef2ff);
  border-color: rgb(91 127 255 / 35%);
  color: var(--color-brand-blue, #5b7fff);
}

.merchants-count {
  margin: 0;
  font-size: 0.85rem;
}

.merchants-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 0.65rem;
}

.merchants-grid .home-paste-merchant-tile {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.merchants-empty {
  margin: 2rem 0;
  text-align: center;
}

@media (min-width: 769px) {
  .merchants-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  .page-merchants .app-content {
    max-width: 1080px;
  }
}

@media (min-width: 1280px) {
  .page-merchants .app-content {
    max-width: 1180px;
  }

  .merchants-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .merchants-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

[data-theme='dark'] .merchants-search-wrap,
[data-theme='dark'] .merchants-filter {
  background: #1a2242;
  border-color: rgb(255 255 255 / 10%);
  color: #c5cee8;
}

[data-theme='dark'] .merchants-search-input {
  color: #eef1ff;
}

[data-theme='dark'] .merchants-filter.active {
  background: rgb(91 127 255 / 18%);
  color: #9db4ff;
}
