/* 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,
.hero-book-engine .hero-lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.92;
}

.hero-book-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-book-stats strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.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 .popular-searches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-book-engine .popular-searches a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.hero-book-engine .popular-searches a:hover {
  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: var(--color-primary);
  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: #c7d2fe;
  background: #eef2ff;
  color: var(--color-primary-dark);
}

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

@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;
  }
}

/* Genres directory (/kateg/) */

.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: var(--color-primary-dark);
}

.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%, #eef2ff 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, var(--color-primary), var(--color-primary));
  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: var(--color-primary);
}

.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: #c7d2fe;
  background: #eef2ff;
  color: var(--color-primary-dark);
}

.genres-featured-chip em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--color-primary);
  background: #eef2ff;
  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;
}

/*
 * Bootstrap grid for genre cards (same pattern as #brandsGrid).
 * critical.css sets `.row > [class*=col-] { width:auto }` which breaks BS column widths.
 * Shared by /kateg/ (#genresGrid) and homepage (.genres-cards-row).
 */
.genres-cards-row > .genres-grid-col,
#genresGrid > .genres-grid-col {
  min-width: 0;
}

.genres-cards-row > .col-6,
#genresGrid > .col-6 {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
}

@media (min-width: 768px) {
  .genres-cards-row > .col-md-4,
  #genresGrid > .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }
}

@media (min-width: 992px) {
  .genres-cards-row > .col-lg-3,
  #genresGrid > .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

@media (min-width: 1200px) {
  /* 5 per row — not a native Bootstrap fraction of 12 */
  .genres-cards-row > .genres-grid-col,
  #genresGrid > .genres-grid-col {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
  }
}

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

.genres-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

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

.genres-card-copy {
  min-width: 0;
  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: var(--color-primary-dark);
  font-size: 1.25rem;
  object-fit: cover;
}

.genres-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.genres-card-desc {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.genres-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.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: var(--color-primary-dark);
  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: var(--color-primary);
}

.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: var(--color-primary);
  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: #64748b;
  font-weight: 600;
  text-decoration: none;
}

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

.genre-header {
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
}

.genre-header-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
}

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

.genre-header-subgenres {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0 0.25rem;
  border: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.genre-header-subgenre-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.genre-header-subgenre-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  text-decoration: none;
}

.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 {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    text-align: center;
  }

  .genre-header-title {
    font-size: clamp(1.45rem, 5vw, 1.85rem);
  }

  .genre-header-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .genre-header-subgenres {
    justify-content: flex-start;
    margin-top: 0.35rem;
  }
}

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

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

/* 5 cards / row on xl+ — compact card chrome */
@media (min-width: 1200px) {
  .genres-card {
    border-radius: 0.85rem;
  }

  .genres-card-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem;
    padding-right: 0.85rem;
    padding-top: 2.35rem; /* count badge above title */
  }

  .genres-card-icon,
  .genres-card-image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    font-size: 1rem;
  }

  .genres-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    -webkit-line-clamp: 2;
  }

  .genres-card-desc {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
    -webkit-line-clamp: 2;
  }

  .genres-card-cta {
    font-size: 0.68rem;
  }

  .genres-card-count {
    top: 0.55rem;
    right: 0.55rem;
    min-width: 2.15rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
  }

  .genres-card-subgenres {
    padding: 0 0.75rem 0.75rem;
  }

  .genres-subgenre-chip,
  .genres-subgenre-more {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
  }
}

/* 4 cards / row on lg */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .genres-card-main {
    gap: 0.75rem;
    padding: 0.95rem;
    padding-right: 2.85rem;
  }

  .genres-card-title {
    font-size: 0.95rem;
  }

  .genres-card-desc {
    -webkit-line-clamp: 2;
  }
}

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

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

  .genres-card-main {
    flex-direction: column;
    padding: 0.9rem;
    padding-top: 2.25rem;
    gap: 0.55rem;
  }

  .genres-card-title {
    font-size: 0.92rem;
  }

  .genres-card-desc {
    -webkit-line-clamp: 2;
  }

  .genres-card-icon,
  .genres-card-image {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Very narrow phones: still 2-up, slightly tighter */
@media (max-width: 400px) {
  .genres-card-desc {
    display: none;
  }

  .genres-card-cta {
    font-size: 0.65rem;
  }
}

/* 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%, var(--color-primary-light) 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: var(--color-primary-dark);
  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: var(--color-primary-dark);
  font-size: 1rem;
}

.publisher-header-website {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}

@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/) — neutral palette */

.book-browse-chip--muted {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
}

.book-browse-chip--muted:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

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

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

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

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

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

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

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

.bookstores-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.bookstores-search-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.9375rem;
}

.bookstores-search-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

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

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

.bookstores-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.bookstores-alpha-letter {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bookstores-alpha-letter:hover:not(.is-disabled):not(.is-current) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

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

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

.bookstores-alpha-count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
}

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

.bookstores-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

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

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

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

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

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

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

.bookstores-card-cta {
  font-size: 0.75rem;
  color: #64748b;
}

.bookstores-card-cta i {
  font-size: 0.625rem;
  margin-left: 0.15rem;
}

.bookstores-card-rating {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
}

.bookstores-card-rating small {
  font-weight: 400;
  color: #94a3b8;
}

.bookstores-card-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
}

.bookstores-card-count small {
  font-weight: 500;
  color: #94a3b8;
}

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

.bookstores-no-results i,
.bookstores-empty i {
  font-size: 2rem;
  color: #cbd5e1;
}

.bookstores-empty-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.bookstores-empty-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

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

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

.bookstores-page-btn,
.bookstores-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.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  text-decoration: none;
}

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

.bookstores-page-summary {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

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

.bookstores-feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.bookstores-feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1rem;
}

.bookstores-feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

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

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

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

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

@media (max-width: 767px) {
  .bookstores-hero-stats {
    grid-template-columns: 1fr;
  }
}
