/* Search page -- layout/sidebar/cards from directory.css; this file overrides only what differs */

html.browse-layout body {
  display: flex;
  flex-direction: column;
}
html.browse-layout main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Single-line header */
.sr-header {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  z-index: 10;
}
.sr-header-inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.sr-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--muted-foreground);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sr-back:hover {
  color: var(--foreground);
  background: var(--muted);
  border-color: var(--foreground);
}
.sr-searchbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0 0.5rem 0 1.125rem;
  height: 48px;
  width: 50%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.sr-searchbar:focus-within {
  background: #fff;
  border-color: #047c68;
  box-shadow: 0 0 0 3px rgba(4,124,104,0.10);
}
.sr-searchbar-icon { color: #9ca3af; flex-shrink: 0; }
.sr-searchbar-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  color: var(--foreground);
  font-family: inherit;
  min-width: 0;
}
.sr-searchbar-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background: #0a3d22;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(10,61,34,0.16);
  transition: background 0.15s, box-shadow 0.15s;
}
.sr-searchbar-btn:hover {
  background: #052e16;
  box-shadow: 0 10px 24px rgba(10,61,34,0.22);
}

/* Single-column ranked list -- one card per row */
.browse-content-area .browse-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Card becomes a horizontal row: avatar+name on left, desc+badges on right */
.browse-content-area .merch-card {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  height: 72px;
  padding: 0 1.25rem;
}
.browse-content-area .merch-card-header {
  flex-shrink: 0;
  width: 220px;
}
.browse-content-area .merch-card-desc {
  flex: 1;
  min-width: 0;
  -webkit-line-clamp: 1;
  margin: 0;
}
.browse-content-area .merch-card-badges {
  flex-shrink: 0;
  width: 120px;
  justify-content: flex-end;
}

.sr-cap {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #6ee7b7;
  white-space: nowrap;
}
