/* Browse Stores — Turbo Reviews layout, ReviewDecode light theme */

.bs-page {
  background: linear-gradient(180deg, #fff 0%, var(--sc-shell-bg, #f4f7fc) 100%);
  padding: 2rem 0 4rem;
}

.bs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bs-header {
  margin-bottom: 2rem;
}

.bs-header__top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bs-header__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.bs-title {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--sc-shell-text, #0f172a) 0%, var(--brand, #1a73e8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bs-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--sc-shell-muted, #64748b);
}

.bs-viewToggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bs-viewBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  background: #fff;
  color: var(--sc-shell-text, #0f172a);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.2s, transform 0.2s;
}

.bs-viewBtn:hover {
  border-color: color-mix(in oklab, var(--brand, #1a73e8) 35%, #fff);
  color: var(--brand, #1a73e8);
}

.bs-viewBtn.is-active {
  background: var(--brand, #1a73e8);
  border-color: var(--brand, #1a73e8);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in oklab, var(--brand, #1a73e8) 28%, transparent);
}

/* Filters */
.bs-filters {
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.bs-filters__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bs-filters__form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }
}

.bs-filters__field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sc-shell-text, #0f172a);
}

.bs-filters__field input,
.bs-filters__field select,
.bs-filters__select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--sc-shell-text, #0f172a);
  transition: border-color 0.15s;
}

.bs-filters__field input:focus,
.bs-filters__field select:focus {
  outline: none;
  border-color: var(--brand, #1a73e8);
}

.bs-filters__submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--brand, #1a73e8);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px color-mix(in oklab, var(--brand, #1a73e8) 25%, transparent);
  transition: filter 0.15s, transform 0.15s;
}

.bs-filters__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
}

/* Alpha jump */
.bs-alpha {
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.bs-alpha__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.bs-alpha__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand, #1a73e8);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bs-alpha__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px color-mix(in oklab, var(--brand, #1a73e8) 30%, transparent);
}

.bs-alpha__btn--disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Letter sections */
.bs-letterSection {
  scroll-margin-top: calc(var(--sc-nav-h, 64px) + 1rem);
  margin-bottom: 3rem;
}

.bs-letterSection.is-section-hidden {
  display: none;
}

.bs-letterHead {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid color-mix(in oklab, var(--brand, #1a73e8) 25%, #fff);
}

.bs-letterHead__letter {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand, #1a73e8), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bs-letterHead__meta {
  font-size: 1rem;
  color: var(--sc-shell-muted, #64748b);
}

/* Grid + cards */
.bs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .bs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bs-grid--page {
  margin-bottom: 2rem;
}

.bs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bs-card:hover {
  border-color: color-mix(in oklab, var(--brand, #1a73e8) 35%, #fff);
  box-shadow: 0 14px 36px color-mix(in oklab, var(--brand, #1a73e8) 14%, transparent);
  transform: translateY(-3px);
  color: inherit;
}

.bs-card.is-filter-hidden {
  display: none;
}

.bs-card.is-search-hit {
  border-color: var(--brand, #1a73e8);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand, #1a73e8) 20%, transparent);
}

.bs-card__logo {
  width: 100%;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bs-card__logo img {
  max-height: 5rem;
  max-width: 100%;
  object-fit: contain;
}

.bs-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand, #1a73e8);
}

.bs-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sc-shell-text, #0f172a);
  line-height: 1.25;
}

.bs-card__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--brand, #1a73e8) 10%, #fff);
  color: var(--brand, #1a73e8);
  font-size: 0.75rem;
  font-weight: 700;
}

.bs-card__offers {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sc-shell-muted, #64748b);
}

/* Empty + pagination */
.bs-empty {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.bs-empty h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.bs-empty p {
  margin: 0 0 1.5rem;
  color: var(--sc-shell-muted, #64748b);
}

.bs-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  background: #fff;
  color: var(--sc-shell-text, #0f172a);
  font-weight: 600;
  text-decoration: none;
}

.bs-pagination .page-numbers.current {
  background: var(--brand, #1a73e8);
  border-color: var(--brand, #1a73e8);
  color: #fff;
}

.bs-pagination .page-numbers:hover:not(.current) {
  border-color: var(--brand, #1a73e8);
  color: var(--brand, #1a73e8);
}

html {
  scroll-behavior: smooth;
}
