/* Book search engine UI accents */

.hero-book-engine .hero-content h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-book-engine .hero-content > p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.hero-book-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-book-stats strong {
  color: #fff;
}

.hero-search-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-search-hints span {
  opacity: 0.85;
}

.hero-search-hints a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-search-hints a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  color: #fff;
}

.hero-book-engine .search-box input::placeholder {
  color: #64748b;
}

.home-authors-grid .brand-item-name,
.home-publishers-grid .brand-item-name {
  font-size: 0.9rem;
  line-height: 1.25;
}

.srm-author-text {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.35;
}

.srm-author-text a {
  color: #475569;
  text-decoration: none;
}

.srm-author-text a:hover {
  color: #7C4A85;
  text-decoration: underline;
}

.srm-publisher-text {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.results-books-label {
  font-weight: 500;
}

.book-browse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.book-browse-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8125rem;
  text-decoration: none;
}

.book-browse-chip:hover {
  border-color: #E8B4BC;
  background: #F4E7F3;
  color: #4A2E4D;
}

.book-browse-chip i {
  opacity: 0.75;
}

.applied-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.applied-filters-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.applied-filter-chip {
  background: #F4E7F3;
  border-color: #E8B4BC;
  color: #4A2E4D;
  font-weight: 500;
}

.applied-filter-chip-remove {
  font-weight: 700;
  opacity: 0.7;
}

.applied-filter-chip:hover .applied-filter-chip-remove {
  opacity: 1;
}

.applied-filters-clear-all {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}

@media (max-width: 767px) {
  .hero-book-stats {
    font-size: 0.8125rem;
  }
}

/* Shared directory cards — authors & publishers (white / gray / ink) */

.directory-card-grid > .col,
.directory-card-grid > [class*="col-"],
.directory-grid-col {
  display: flex;
}

.directory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 5.5rem;
  height: 100%;
  padding: 1rem;
  padding-top: 2.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.directory-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.directory-card-count {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.25rem;
  padding: 0.2rem 0.35rem;
  border-radius: 0.45rem;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.directory-card-count small {
  font-size: 0.625rem;
  font-weight: 500;
  color: #64748b;
  text-transform: lowercase;
}

.directory-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  margin-bottom: 0.65rem;
  border-radius: 0.65rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.authors-card-avatar {
  border-radius: 999px;
}

.directory-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.directory-card-initial {
  color: #475569;
  font-size: 1.125rem;
  font-weight: 700;
}

.directory-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.directory-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  padding-right: 2.5rem;
}

.directory-card-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  min-height: 1.125rem;
  font-size: 0.6875rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.directory-card-meta--placeholder {
  visibility: hidden;
}

.directory-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.directory-card:hover .directory-card-cta {
  color: #0f172a;
}

/* Authors directory (/author/) */

.authors-page {
  padding: 1.5rem 0 3rem;
  background: #fafafa;
  min-height: 60vh;
}

.authors-breadcrumb {
  margin-bottom: 1.25rem;
}

.authors-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.authors-breadcrumb ol li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: #cbd5e1;
}

.authors-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.authors-breadcrumb a:hover {
  color: #0f172a;
}

.authors-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.authors-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.authors-hero-copy {
  flex: 1;
  min-width: 0;
}

.authors-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.authors-hero-subtitle {
  margin: 0 0 1rem;
  color: #64748b;
  max-width: 38rem;
  line-height: 1.55;
}

.authors-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-self: center;
  min-width: min(100%, 20rem);
}

.authors-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
}

.authors-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.authors-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.authors-featured {
  margin-bottom: 2rem;
}

.authors-section-head {
  margin-bottom: 1rem;
}

.authors-section-head--letter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.authors-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.authors-section-title i {
  color: #64748b;
  margin-right: 0.35rem;
}

.authors-section-lead,
.authors-section-count {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

.authors-letter-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.authors-toolbar {
  margin-bottom: 1rem;
}

.authors-search {
  position: relative;
  display: flex;
  align-items: center;
}

.authors-search-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.authors-search-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  font-size: 0.9375rem;
}

.authors-search-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.authors-search-clear {
  position: absolute;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.authors-search-count {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.authors-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}

.authors-alpha-letter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.35rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.authors-alpha-letter:hover:not(.is-disabled):not(.is-current) {
  background: #f1f5f9;
  color: #0f172a;
}

.authors-alpha-letter.is-current {
  background: #0f172a;
  color: #fff;
}

.authors-alpha-letter.is-disabled {
  color: #cbd5e1;
  cursor: default;
}

.authors-alpha-count {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.75;
}

.authors-no-results,
.authors-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
}

.authors-no-results i,
.authors-empty i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.authors-empty-btn {
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.authors-pagination {
  margin-top: 2rem;
}

.authors-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.authors-page-btn,
.authors-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
}

.authors-page-num.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.authors-page-summary {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Individual author browse header */

.author-header {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 60%, #ecfdf5 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.author-header-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-header-avatar {
  flex-shrink: 0;
}

.author-header-photo,
.author-header-initial {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  object-fit: cover;
}

.author-header-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
}

.author-header-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
}

.author-header-eyebrow a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}

.author-header-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.author-header-meta {
  margin: 0 0 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.author-header-bio {
  margin: 0 0 0.75rem;
  color: #475569;
  line-height: 1.55;
}

.author-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.author-header-stat {
  font-size: 0.875rem;
  color: #64748b;
}

.author-header-stat strong {
  color: #0f766e;
  font-size: 1rem;
}

.author-header-website {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .authors-hero {
    flex-direction: column;
  }

  .authors-hero-stats {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .authors-hero {
    padding: 1.25rem;
  }

  .authors-hero-stats {
    grid-template-columns: 1fr;
  }

  .author-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-header-stats {
    justify-content: center;
  }
}

/* Categories directory (/kateg/) — .genres-* kept as legacy dual-class aliases
   (canonical: .categories-* on the same elements; see categories.css). */

.genres-page {
  padding: 1.5rem 0 3rem;
  background: #f8fafc;
  min-height: 60vh;
}

.genres-breadcrumb {
  margin-bottom: 1.25rem;
}

.genres-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.genres-breadcrumb ol li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: #cbd5e1;
}

.genres-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.genres-breadcrumb a:hover {
  color: #4A2E4D;
}

.genres-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 55%, #F4E7F3 100%);
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.genres-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7C4A85, #A69BC1);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.genres-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
}

.genres-hero-subtitle {
  margin: 0 0 1rem;
  color: #64748b;
  max-width: 38rem;
  line-height: 1.55;
}

.genres-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-self: center;
  min-width: min(100%, 20rem);
}

.genres-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
}

.genres-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #7C4A85;
}

.genres-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.genres-featured {
  margin-bottom: 2rem;
}

.genres-section-head {
  margin-bottom: 1rem;
}

.genres-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.genres-section-title i {
  color: #f59e0b;
  margin-right: 0.35rem;
}

.genres-section-lead {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

.genres-featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genres-featured-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.genres-featured-chip:hover {
  border-color: #E8B4BC;
  background: #F4E7F3;
  color: #4A2E4D;
}

.genres-featured-chip em {
  font-style: normal;
  font-size: 0.75rem;
  color: #A69BC1;
  background: #F4E7F3;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.genres-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.genres-search {
  position: relative;
  flex: 1;
  min-width: min(100%, 18rem);
}

.genres-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.genres-search-input {
  width: 100%;
  padding: 0.85rem 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.genres-search-input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.genres-search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.genres-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.genres-sort-label {
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
}

.genres-sort-select {
  padding: 0.7rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.genres-showing-count {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.genres-card {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.genres-card-main {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.genres-card-icon-wrap {
  flex-shrink: 0;
}

.genres-card-icon,
.genres-card-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  color: #4A2E4D;
  font-size: 1.25rem;
  object-fit: cover;
}

.genres-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.genres-card-desc {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

.genres-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4A2E4D;
}

.genres-card-count {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.85);
  color: #4A2E4D;
  font-size: 0.8125rem;
  font-weight: 800;
}

.genres-card-count small {
  font-size: 0.625rem;
  font-weight: 600;
}

.genres-card-subgenres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 1rem;
}

.genres-subgenre-chip,
.genres-subgenre-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #334155;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.genres-subgenre-chip em,
.genres-subgenre-more {
  font-style: normal;
  color: #A69BC1;
}

.genres-no-results,
.genres-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
}

.genres-empty-btn {
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #7C4A85;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.genre-header-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.genre-header-eyebrow a {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
}

.genre-header-eyebrow a:hover {
  color: #0f172a;
}

.genre-header {
  margin-bottom: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

/* Minimal category top card — title, meta, subcats only */
.genre-header--minimal {
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 0;
  border-color: #e8e0e3;
  background: linear-gradient(180deg, #fbf8f9 0%, #fff 100%);
  box-shadow: none;
}

.genre-header--minimal .genre-header-inner {
  display: block;
  gap: 0;
}

.genre-header--minimal .genre-header-visual {
  display: none;
}

.genre-header--minimal .genre-header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.35rem;
}

.genre-header--minimal .genre-header-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  line-height: 1.15;
}

.genre-header--minimal .genre-header-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.4;
}

.genre-header--minimal .genre-header-meta-sep {
  margin: 0 0.15rem;
  opacity: 0.7;
}

.genre-header--minimal .genre-header-bio {
  margin: 0.15rem 0 0.65rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

.genre-header--minimal .genre-header-subgenres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #f0e6ea;
}

.genre-header--minimal .genre-header-subgenre-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eadfe4;
  border-radius: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.genre-header--minimal .genre-header-subgenre-chip:hover {
  color: #4A2E4D;
  border-color: #7C4A85;
  background: #fff;
}

.genre-header--minimal .genre-header-subgenre-chip em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
}

.genre-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.genre-header-visual {
  flex-shrink: 0;
}

.genre-header-image,
.genre-header-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.genre-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 1.5rem;
}

.genre-header-copy {
  flex: 1;
  min-width: 0;
}

.genre-header-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.genre-header-bio {
  margin: 0 0 0.85rem;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.9375rem;
  max-width: 42rem;
}

.genre-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.genre-header-stat {
  font-size: 0.875rem;
  color: #64748b;
}

.genre-header-stat strong {
  color: #0f172a;
  font-weight: 700;
}

.genre-header-guide {
  margin: 1rem 0 0.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.genre-header-guide-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.genre-header-guide-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.genre-header-guide-body p:last-child {
  margin-bottom: 0;
}

.genre-header-faq {
  margin-top: 1rem;
}
.genre-header-faq .genre-header-guide-title {
  margin-bottom: .75rem;
}
.category-faq-accordion {
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
}
.category-faq-accordion .accordion-item {
  border-bottom: 1px solid #e2e8f0;
}
.category-faq-accordion .accordion-item:last-child {
  border-bottom: none;
}
.category-faq-accordion .accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #fff;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  color: #0f172a;
  cursor: pointer;
}
.category-faq-accordion .accordion-header:hover {
  background: #f8fafc;
}
.category-faq-accordion .accordion-body {
  display: none;
  padding: 0 1rem 1rem;
  color: #475569;
  line-height: 1.65;
  font-size: .9375rem;
}
.category-faq-accordion .accordion-item.is-open .accordion-body {
  display: block;
}
.category-faq-accordion .accordion-item.is-open .accordion-header i {
  transform: rotate(180deg);
}
.category-faq-accordion .accordion-header i {
  color: #94a3b8;
  transition: transform .15s ease;
}

.genre-header-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 32rem;
  margin-bottom: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fafafa;
  overflow: hidden;
}

.genre-header-search-icon {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  color: #94a3b8;
}

.genre-header-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  color: #0f172a;
}

.genre-header-search-input:focus {
  outline: none;
}

.genre-header-search-btn {
  border: none;
  border-left: 1px solid #e2e8f0;
  background: #0f172a;
  color: #fff;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.genre-header-search-btn:hover {
  background: #1e293b;
}

.genre-header-browse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-header-subgenres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.genre-header-subgenre-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.genre-header-subgenre-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.genre-header-subgenre-chip em {
  font-style: normal;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.results-count-heading--toolbar {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .genre-header-inner {
    flex-direction: column;
  }

  .genre-header--minimal {
    padding: 0.85rem 0.95rem 0.95rem;
  }

  .genre-header--minimal .genre-header-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .genre-header-search {
    max-width: none;
  }
}

@media (max-width: 991.98px) {
  .genres-hero {
    flex-direction: column;
  }

  .genres-hero-stats {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .genres-hero {
    padding: 1.25rem;
  }

  .genres-hero-stats {
    grid-template-columns: 1fr;
  }

  .genres-card-main {
    flex-direction: column;
  }
}

/* Publishers directory (/brand/) */

.publishers-page {
  padding: 1.5rem 0 3rem;
  background: #fafafa;
  min-height: 60vh;
}

.publishers-breadcrumb {
  margin-bottom: 1.25rem;
}

.publishers-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.publishers-breadcrumb ol li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: #cbd5e1;
}

.publishers-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.publishers-breadcrumb a:hover {
  color: #0f172a;
}

.publishers-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.publishers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.publishers-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
}

.publishers-hero-subtitle {
  margin: 0 0 1rem;
  color: #64748b;
  max-width: 38rem;
  line-height: 1.55;
}

.publishers-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-self: center;
  min-width: min(100%, 20rem);
}

.publishers-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
}

.publishers-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.publishers-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.publishers-featured {
  margin-bottom: 2rem;
}

.publishers-section-head {
  margin-bottom: 1rem;
}

.publishers-section-head--letter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.publishers-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.publishers-section-title i {
  color: #64748b;
  margin-right: 0.35rem;
}

.publishers-section-lead,
.publishers-section-count {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

.publishers-letter-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.publishers-toolbar {
  margin-bottom: 1rem;
}

.publishers-search {
  position: relative;
}

.publishers-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.publishers-search-input {
  width: 100%;
  padding: 0.85rem 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.publishers-search-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.publishers-search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.publishers-search-count {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.publishers-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}

.publishers-alpha-letter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.35rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  font-size: 0.875rem;
}

.publishers-alpha-letter:hover:not(.is-disabled):not(.is-current) {
  background: #f1f5f9;
  color: #0f172a;
}

.publishers-alpha-letter.is-current {
  background: #0f172a;
  color: #fff;
}

.publishers-alpha-letter.is-disabled {
  color: #cbd5e1;
}

.publishers-alpha-count {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.8;
}

.publishers-no-results,
.publishers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
}

.publishers-empty-btn {
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.publishers-pagination {
  margin-top: 2rem;
}

.publishers-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.publishers-page-btn,
.publishers-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
}

.publishers-page-num.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.publishers-page-summary {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.publishers-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.publishers-feature-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

.publishers-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.publishers-feature-icon--discover,
.publishers-feature-icon--compare,
.publishers-feature-icon--trusted {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.publishers-feature-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.publishers-feature-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.publisher-header {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 60%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.publisher-header-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.publisher-header-logo,
.publisher-header-initial {
  width: 5rem;
  height: 5rem;
  border-radius: 0.85rem;
  object-fit: contain;
  background: #fff;
}

.publisher-header-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
}

.publisher-header-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
}

.publisher-header-eyebrow a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.publisher-header-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.publisher-header-bio {
  margin: 0 0 0.75rem;
  color: #475569;
  line-height: 1.55;
}

.publisher-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.publisher-header-stat {
  font-size: 0.875rem;
  color: #64748b;
}

.publisher-header-stat strong {
  color: #1d4ed8;
  font-size: 1rem;
}

.publisher-header-website {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.publisher-header-categories,
.brand-header-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.publisher-header-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.publisher-header-category-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.publisher-header-category-chip em {
  font-style: normal;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .publishers-hero {
    flex-direction: column;
  }

  .publishers-hero-stats {
    width: 100%;
    min-width: 0;
  }

  .publishers-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .publishers-hero {
    padding: 1.25rem;
  }

  .publishers-hero-stats {
    grid-template-columns: 1fr;
  }

  .publisher-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .publisher-header-stats {
    justify-content: center;
  }
}

/* Bookstores directory (/shop/) — flat minimal */

.bookstores-page .book-browse-chip,
.book-browse-chip--muted {
  background: transparent;
  border-color: #e5e5e5;
  color: #555;
  border-radius: 2px;
  box-shadow: none;
}

.book-browse-chip--muted:hover {
  background: #fafafa;
  border-color: #7C4A85;
  color: #0f172a;
}

.bookstores-page {
  padding: 1.25rem 0 3.5rem;
  background: #fff;
  min-height: 60vh;
}

.bookstores-breadcrumb {
  margin-bottom: 1.5rem;
}

.bookstores-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: #888;
}

.bookstores-breadcrumb ol li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: #ccc;
}

.bookstores-breadcrumb a {
  color: #888;
  text-decoration: none;
}

.bookstores-breadcrumb a:hover {
  color: #0f172a;
}

.bookstores-hero {
  margin-bottom: 2.25rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid #eee;
  background: transparent;
  border-radius: 0;
}

.bookstores-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.bookstores-hero-subtitle {
  margin: 0 0 0.85rem;
  color: #666;
  max-width: 36rem;
  line-height: 1.55;
  font-size: 0.9375rem;
}

.bookstores-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  color: #666;
}

.bookstores-hero-stats strong {
  font-weight: 700;
  color: #111;
}

.bookstores-stat-sep {
  color: #ccc;
}

.bookstores-browse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bookstores-featured {
  margin-bottom: 2rem;
}

.bookstores-section-head {
  margin-bottom: 0.75rem;
}

.bookstores-section-head--letter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #eee;
}

.bookstores-section-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  color: #111;
}

.bookstores-section-title strong {
  font-weight: 700;
  color: #7C4A85;
}

.bookstores-section-lead,
.bookstores-section-count {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #888;
}

.bookstores-section-head--letter .bookstores-section-count {
  margin: 0;
}

.bookstores-toolbar {
  margin-bottom: 1rem;
}

.bookstores-search {
  position: relative;
  max-width: 28rem;
}

.bookstores-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  font-size: 0.8125rem;
}

.bookstores-search-input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 2.35rem;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font-size: 0.875rem;
  box-shadow: none;
}

.bookstores-search-input:focus {
  outline: none;
  border-color: #7C4A85;
  box-shadow: none;
}

.bookstores-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #aaa;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.bookstores-search-count {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: #888;
}

.bookstores-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eee;
}

.bookstores-alpha-letter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  min-width: 1.65rem;
  padding: 0.4rem 0.45rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.bookstores-alpha-letter:hover:not(.is-disabled):not(.is-current) {
  color: #111;
  background: transparent;
  border-bottom-color: #ddd;
}

.bookstores-alpha-letter.is-current {
  background: transparent;
  border-bottom-color: #7C4A85;
  color: #111;
}

.bookstores-alpha-letter.is-disabled {
  opacity: 0.28;
  cursor: default;
}

.bookstores-alpha-count {
  font-size: 0.625rem;
  font-weight: 500;
  color: #aaa;
}

.bookstores-alpha-letter.is-current .bookstores-alpha-count {
  color: #7C4A85;
}

.bookstores-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.bookstores-grid-col {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.bookstores-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  gap: 0.5rem;
  padding: 1rem 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  position: relative;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.bookstores-card:hover {
  background: #fafafa;
  border-color: #7C4A85;
  box-shadow: none;
}

.bookstores-card:hover .bookstores-card-name {
  color: #7C4A85;
}

.bookstores-card-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 2px;
  background: #f5f5f5;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

.bookstores-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.bookstores-card-initial {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
}

.bookstores-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
}

.bookstores-card-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  word-break: break-word;
}

.bookstores-card-meta {
  font-size: 0.6875rem;
  color: #888;
}

.bookstores-card-meta small {
  color: #aaa;
}

.bookstores-card-count {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #555;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
  line-height: 1.2;
  text-align: center;
}

.bookstores-card-count small {
  display: none;
}

.bookstores-card-arrow {
  display: none;
}

.bookstores-no-results,
.bookstores-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0;
  text-align: left;
  color: #888;
  font-size: 0.875rem;
}

.bookstores-empty-btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: none;
}

.bookstores-empty-btn:hover {
  border-color: #7C4A85;
  color: #7C4A85;
  background: #fff;
}

.bookstores-pagination {
  margin: 1.75rem 0;
}

.bookstores-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.bookstores-page-btn,
.bookstores-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 2px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #555;
  font-size: 0.8125rem;
  text-decoration: none;
  box-shadow: none;
}

.bookstores-page-num.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.bookstores-page-summary {
  text-align: left;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: #aaa;
}

.bookstores-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #eee;
}

.bookstores-feature {
  padding: 0;
  background: transparent;
  border: none;
}

.bookstores-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: #111;
}

.bookstores-feature p {
  margin: 0;
  font-size: 0.8125rem;
  color: #777;
  line-height: 1.5;
}

.results-count-heading--bookstore em {
  font-style: normal;
  font-weight: 600;
  color: #111;
}

@media (max-width: 1199px) {
  .bookstores-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (max-width: 767px) {
  .bookstores-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bookstores-features {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .bookstores-card-count {
    display: none;
  }
}
