/* Top bar brand + filter row + category tabs + load more. */
.brand { display: flex; align-items: center; text-decoration: none; }
/* logo with the name in it (logo-wide.png); height set by the width/height attributes */
.brand-logo { display: block; width: auto; }

.field-label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.field {
  height: 44px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-box {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
.search-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 15px; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  background: var(--gold); color: var(--bg); border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 600;
}
.btn-outline {
  height: 44px; padding: 0 28px;
  background: var(--card); border: 1px solid var(--gold); border-radius: 8px; font-size: 15px;
}
.btn-outline[disabled] { opacity: 0.6; cursor: wait; }
.btn-wide { width: 100%; }
/* one-line text that shrinks to fit (fitText in utils/dom.js) */
.fit-line { min-width: 0; white-space: nowrap; overflow: hidden; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.tab {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.tab.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
/* first tab "★ รายการโปรด": gold outline, filled star when it is the active tab */
.tab-fav { display: flex; align-items: center; gap: 6px; border-color: rgba(245, 179, 1, 0.55); color: var(--gold); }
.tab-fav.is-active { color: var(--bg); }
.tab-fav.is-active svg { fill: currentColor; }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 480px) {
  .topbar .brand-logo { height: 53px; }   /* 68px on wide screens (topbar.js) */
  .topbar .field-label > span { display: none; }   /* room for the logo; the picker keeps its aria-label */
  .filter-row .field-label { flex: 1 1 40%; }
  .filter-row .field { flex: 1; min-width: 0; }
  .filter-row .btn-gold { flex: none; }
}
