:root {
  --catalog-bg: #f7f2e8;
  --catalog-surface: rgba(255, 250, 242, 0.82);
  --catalog-card: rgba(255, 255, 255, 0.88);
  --catalog-text: #1f1a17;
  --catalog-muted: #6d6358;
  --catalog-line: rgba(79, 58, 37, 0.14);
  --catalog-accent: #b6542c;
  --catalog-accent-deep: #7c3117;
  --catalog-highlight: #f3ba6d;
  --catalog-shadow: 0 18px 40px rgba(71, 46, 19, 0.12);
  --catalog-radius: 28px;
  --catalog-radius-small: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--catalog-text);
  background:
    radial-gradient(circle at top left, rgba(243, 186, 109, 0.24), transparent 28%),
    radial-gradient(circle at right 12%, rgba(182, 84, 44, 0.14), transparent 22%),
    linear-gradient(180deg, #fbf7ef 0%, #f6efe1 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.catalog-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  grid-template-areas:
    "search search search"
    "brand nav actions";
  align-items: center;
  gap: 14px 20px;
  padding: 14px 0;
  backdrop-filter: blur(14px);
}

.catalog-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.catalog-brand__mark {
  width: auto; 
  height: 48px;
  display: flex;
  align-items: center;
}

.catalog-brand__logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.catalog-brand strong {
  display: block;
  font-size: 1rem;
}

.catalog-brand small {
  color: var(--catalog-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.catalog-nav {
  grid-area: nav;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 8px 16px;
  /* border: 1px solid var(--catalog-line); */
  /* border-radius: var(--catalog-radius-small); */
  /* background: rgba(255, 255, 255, 0.6); */
}

.catalog-nav a {
  position: relative;
  padding: 5px 0;
}

.catalog-nav a[data-catalog-nav]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--catalog-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.catalog-nav a[data-catalog-nav]:hover::after,
.catalog-nav a[data-catalog-nav].is-active::after {
  transform: scaleX(1);
}

.catalog-nav a,
.catalog-link {
  color: var(--catalog-muted);
}

.catalog-nav a:hover,
.catalog-nav a.is-active,
.catalog-link:hover {
  color: var(--catalog-text);
}

.catalog-header-search {
  grid-area: search;
  width: min(100%, 560px);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  border: 1px solid var(--catalog-line);
  border-radius: var(--catalog-radius-small);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(71, 46, 19, 0.08);
}

.catalog-header-search label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  color: var(--catalog-muted);
}

.catalog-header-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--catalog-text);
}

.catalog-header-search button,
.catalog-menu-toggle {
  border: 0;
  cursor: pointer;
}

.catalog-header-search button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--catalog-accent);
  color: #fff;
}

.catalog-nav__account {
  display: none;
}

.catalog-menu-toggle {
  grid-area: menu;
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--catalog-radius-small);
  background: var(--catalog-text);
  color: #fff;
}

.catalog-header__actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--catalog-radius-small);
  padding: 13px 20px;
  background: var(--catalog-accent);
  color: white;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.catalog-button:hover {
  transform: translateY(-1px);
  background: var(--catalog-accent-deep);
}

.catalog-button--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--catalog-text);
  border: 1px solid var(--catalog-line);
}

.catalog-hero,
.catalog-section,
.catalog-footer {
  border: 1px solid var(--catalog-line);
  background: var(--catalog-surface);
  box-shadow: var(--catalog-shadow);
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-template-areas:
    "copy panel"
    "covers covers";
  gap: 28px;
  padding: 42px;
  border-radius: calc(var(--catalog-radius) + 8px);
  margin-top: 16px;
  overflow: hidden;
  align-items: stretch;
}

.catalog-hero__copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  width: 100%;
  align-self: center;
  text-align: left;
}

.catalog-kicker {
  margin: 0 0 10px;
  color: var(--catalog-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.catalog-hero h1,
.catalog-section h2,
.catalog-results__header h2,
.catalog-empty h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  letter-spacing: 0;
}

.catalog-hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
  max-width: 30ch;
  margin: 0;
}

.catalog-hero__lede,
.catalog-section__meta,
.catalog-section__note,
.catalog-footer p,
.catalog-empty p {
  color: var(--catalog-muted);
  line-height: 1.7;
}

.catalog-hero__lede {
  max-width: 72ch;
  margin: 18px 0 24px;
  text-align: justify;
}

.catalog-hero__pills,
.catalog-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-hero__pills {
  justify-content: flex-start;
}

.catalog-pill,
.catalog-chip {
  border: 1px solid var(--catalog-line);
  background: rgba(255, 255, 255, 0.64);
  border-radius: var(--catalog-radius-small);
  padding: 9px 14px;
  color: var(--catalog-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.catalog-pill:hover,
.catalog-chip:hover,
.catalog-chip.is-active {
  color: white;
  background: var(--catalog-accent);
  border-color: transparent;
}

.catalog-hero__panel {
  grid-area: panel;
  padding: 10px;
}

.catalog-hero__covers {
  grid-area: covers;
  display: grid;
  grid-template-columns: repeat(5, minmax(84px, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 250px;
  padding: 12px 0 22px;
  perspective: 1400px;
}

.catalog-hero-cover {
  display: block;
  min-width: 0;
  aspect-ratio: 2 / 3;
  color: inherit;
  outline: 0;
  perspective: 1100px;
}

/* .catalog-hero-cover:nth-child(2n) {
  transform: translateY(18px);
}

.catalog-hero-cover:nth-child(3) {
  transform: translateY(-8px);
} */

.catalog-hero-cover__flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.58s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.catalog-hero-cover:hover .catalog-hero-cover__flip,
.catalog-hero-cover:focus-visible .catalog-hero-cover__flip {
  transform: rotateY(180deg);
}

.catalog-hero-cover:focus-visible .catalog-hero-cover__flip {
  outline: 3px solid rgba(182, 84, 44, 0.42);
  outline-offset: 5px;
  border-radius: 10px;
}

.catalog-hero-cover__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(117, 89, 64, 0.16);
  border-radius: 10px;
  background: #fff9ef;
  box-shadow: 0 18px 28px rgba(71, 46, 19, 0.16);
  backface-visibility: hidden;
}

.catalog-hero-cover__face--front img,
.catalog-hero-cover__placeholder {
  width: 100%;
  height: 100%;
}

.catalog-hero-cover__face--front img {
  object-fit: cover;
}

.catalog-hero-cover__placeholder {
  display: grid;
  place-items: center;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: rgba(124, 49, 23, 0.76);
  background: linear-gradient(135deg, rgba(243, 186, 109, 0.38), rgba(182, 84, 44, 0.2));
}

.catalog-hero-cover__label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(21, 15, 11, 0.72);
  color: #fff;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-hero-cover__face--back {
  justify-content: center;
  gap: 8px;
  padding: 16px;
  transform: rotateY(180deg);
  background: #241b17;
  color: #fff;
}

.catalog-hero-cover__face--back strong,
.catalog-hero-cover__face--back em,
.catalog-hero-cover__face--back span {
  display: block;
}

.catalog-hero-cover__face--back strong {
  font-family: "Source Serif 4", serif;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.15;
}

.catalog-hero-cover__face--back em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-style: normal;
}

.catalog-hero-cover__face--back span:not(.catalog-hero-cover__details):not(.catalog-hero-cover__cta) {
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.catalog-hero-cover__details {
  color: var(--catalog-highlight);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-hero-cover__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 4px;
  color: var(--catalog-highlight);
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.catalog-stat-card,
.catalog-card,
.catalog-category-card,
.catalog-sidebar__panel,
.catalog-empty,
.catalog-faq-item {
  background: var(--catalog-card);
  border: 1px solid rgba(117, 89, 64, 0.1);
  border-radius: var(--catalog-radius);
}

.catalog-stat-card {
  padding: 20px;
}

.catalog-stat-card span {
  display: block;
  color: var(--catalog-muted);
  font-size: 0.88rem;
}

.catalog-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.catalog-hero__note {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(124, 49, 23, 0.08);
}

.catalog-section {
  margin-top: 28px;
  border-radius: var(--catalog-radius);
  padding: 28px;
}

.catalog-publisher-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid rgba(182, 84, 44, 0.22);
  border-radius: var(--catalog-radius);
  background: #241b17;
  color: #fff;
  box-shadow: var(--catalog-shadow);
}

.catalog-publisher-callout__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--catalog-highlight);
  color: var(--catalog-accent-deep);
  font-size: 1.35rem;
}

.catalog-publisher-callout h2,
.catalog-publisher-callout p {
  margin: 0;
}

.catalog-publisher-callout h2 {
  margin-bottom: 5px;
  font-family: "Source Serif 4", serif;
  font-size: 1.35rem;
}

.catalog-publisher-callout p:not(.catalog-kicker) {
  color: rgba(255, 255, 255, 0.7);
}

.catalog-section__header,
.catalog-results__header,
.catalog-sidebar__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.catalog-section h2,
.catalog-results__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.catalog-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 18px;
  justify-content: start;
}

.catalog-grid {
  display: grid;
  gap: 18px;
}

.catalog-grid--results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: start;
}

.catalog-grid--categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card,
.catalog-category-card {
  overflow: hidden;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.catalog-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #f2dbc2, #f7f1e7);
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Source Serif 4", serif;
  font-size: 4rem;
  color: rgba(124, 49, 23, 0.75);
  background: linear-gradient(135deg, rgba(243, 186, 109, 0.28), rgba(182, 84, 44, 0.18));
}

.catalog-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--catalog-radius-small);
  background: rgba(21, 15, 11, 0.74);
  color: white;
  font-size: 0.8rem;
}

.catalog-sample-player {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(20, 16, 14, 0.84);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 16, 14, 0.28);
  backdrop-filter: blur(14px);
}

.catalog-sample-player__play {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--catalog-accent-deep);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.catalog-sample-player__play:hover {
  transform: scale(1.04);
  background: var(--catalog-highlight);
}

.catalog-sample-player__content {
  min-width: 0;
}

.catalog-sample-player__heading,
.catalog-sample-player__time {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.catalog-sample-player__heading {
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-sample-player__time {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.66rem;
}

.catalog-sample-player input[type="range"] {
  width: 100%;
  height: 4px;
  display: block;
  margin: 0;
  accent-color: var(--catalog-highlight);
  cursor: pointer;
}

.catalog-sample-player.is-playing {
  background: rgba(124, 49, 23, 0.9);
}

.catalog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 20px;
}

.catalog-card__eyebrow,
.catalog-card__seller,
.catalog-card__meta,
.catalog-results__meta {
  color: var(--catalog-muted);
}

.catalog-card__title {
  font-size: 1.25rem;
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card__author {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card__summary {
  color: var(--catalog-muted);
  line-height: 1.6;
  min-height: 4.8em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-card__eyebrow,
.catalog-card__seller {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card__bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.catalog-card__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.catalog-card__chips span {
  min-width: 0;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(182, 84, 44, 0.09);
  color: var(--catalog-accent-deep);
  font-size: 0.8rem;
}

.catalog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.catalog-price {
  font-size: 1.1rem;
  font-weight: 700;
}

.catalog-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--catalog-accent);
  font-weight: 700;
  white-space: nowrap;
}

.catalog-category-card {
  padding: 20px;
}

.catalog-category-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.catalog-category-card p {
  margin: 0;
  color: var(--catalog-muted);
  line-height: 1.6;
}

.catalog-section--library .catalog-library__layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 22px;
}

.catalog-sidebar {
  position: relative;
}

.catalog-sidebar__panel {
  position: sticky;
  top: 94px;
  padding: 18px;
}

.catalog-filter-group + .catalog-filter-group {
  margin-top: 18px;
}

.catalog-filter-group label,
.catalog-filter-group span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.catalog-filter-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--catalog-line);
  background: white;
}

.catalog-empty {
  text-align: center;
  padding: 48px 24px;
}

.catalog-empty i {
  font-size: 2rem;
  color: var(--catalog-accent);
}

.catalog-faq-list {
  display: grid;
  gap: 12px;
}

.catalog-faq-item {
  overflow: hidden;
}

.catalog-faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--catalog-text);
  cursor: pointer;
}

.catalog-faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--catalog-muted);
  line-height: 1.7;
}

.catalog-faq-item[aria-expanded="false"] p {
  display: none;
}

.catalog-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(130px, 1fr));
  gap: 32px;
  margin-top: 28px;
  padding: 38px;
  border-radius: var(--catalog-radius);
  background: #201815;
  color: #fff;
}

.catalog-footer__brand img {
  width: min(180px, 100%);
  height: auto;
  filter: brightness(0) invert(1);
}

.catalog-footer__brand p {
  max-width: 34ch;
}

.catalog-footer strong,
.catalog-footer__column strong {
  display: block;
  margin-bottom: 14px;
}

.catalog-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.catalog-footer a:hover {
  color: #fff;
}

.catalog-footer__publish {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--catalog-highlight) !important;
  font-weight: 700;
}

.catalog-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.catalog-footer__social a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.catalog-footer__social a:hover,
.catalog-footer__social a:focus-visible {
  border-color: var(--catalog-highlight);
  background: rgba(255, 255, 255, 0.1);
  color: var(--catalog-highlight);
  transform: translateY(-2px);
}

.catalog-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .catalog-header {
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
    grid-template-areas:
      "search search search search"
      "brand . actions menu";
  }

  .catalog-menu-toggle {
    display: inline-grid;
  }

  .catalog-nav {
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    left: 0;
    display: none;
    justify-self: stretch;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: var(--catalog-radius-small);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--catalog-shadow);
  }

  .catalog-nav.is-open {
    display: flex;
  }

  .catalog-nav a {
    padding: 12px 14px;
  }

  .catalog-nav__account {
    display: block;
    margin-top: 6px;
    border-radius: var(--catalog-radius-small);
    background: var(--catalog-accent);
    color: #fff !important;
    text-align: center;
    font-weight: 700;
  }

  .catalog-hero,
  .catalog-section--library .catalog-library__layout,
  .catalog-footer,
  .catalog-publisher-callout {
    grid-template-columns: 1fr;
  }

  .catalog-hero {
    grid-template-areas:
      "copy"
      "panel"
      "covers";
  }

  .catalog-hero__covers {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
  }

  .catalog-publisher-callout .catalog-button {
    justify-self: start;
  }

  .catalog-grid--featured,
  .catalog-grid--categories,
  .catalog-grid--results,
  .catalog-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-rail,
  .catalog-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
  }

  .catalog-sidebar__panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .catalog-shell {
    width: min(100% - 20px, 100%);
  }

  .catalog-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "search search search"
      "brand . menu";
    gap: 10px;
  }

  .catalog-header__actions {
    display: none;
  }

  .catalog-brand__mark {
    height: 38px;
  }

  .catalog-header-search {
    width: 100%;
  }

  .catalog-hero,
  .catalog-section,
  .catalog-footer {
    padding: 20px;
  }

  .catalog-hero__covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding-bottom: 8px;
  }

  .catalog-hero-cover:nth-child(n) {
    transform: none;
  }

  .catalog-hero-cover:nth-child(n + 5) {
    display: none;
  }

  .catalog-publisher-callout {
    padding: 20px;
  }

  .catalog-footer__bottom {
    flex-direction: column;
  }

  .catalog-grid--featured,
  .catalog-grid--categories,
  .catalog-grid--results,
  .catalog-rail,
  .catalog-stat-grid {
    grid-template-columns: 1fr;
  }

  .catalog-rail,
  .catalog-grid--featured {
    grid-template-columns: minmax(0, 1fr);
  }
}
/*  */
/* Contenedor principal de Google Translate */
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}

/* Estilizar el contenedor del combobox/dropdown que genera Google */
#google_translate_element .goog-te-gadget-simple {
  background-color: transparent !important; /* Fondo transparente */
  border: 1px solid #ccc !important;        /* Borde sutil (cambia al color de tu tema) */
  padding: 6px 12px !important;              /* Espaciado interno para que parezca un botón */
  border-radius: 4px !important;            /* Bordes redondeados */
  font-family: inherit !important;          /* Hereda la fuente de tu web */
  font-size: 14px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Efecto Hover (cuando pasas el mouse por encima) */
#google_translate_element .goog-te-gadget-simple:hover {
  background-color: rgba(0, 0, 0, 0.05) !important; /* Un fondo sutil al pasar el mouse */
  border-color: #999 !important;
}

/* Estilizar el texto dentro del selector */
#google_translate_element .goog-te-gadget-simple span {
  color: #333 !important; /* Cambia esto por el color de tu texto actual */
  font-weight: 500;
}

/* Ocultar el logo de Google y las flechas molestas si quieres un look más limpio */
#google_translate_element .goog-te-gadget-icon {
  display: none !important; /* Quita el icono del mundo de Google */
}

#google_translate_element img {
  display: none !important; /* Oculta el logo de Google "Powered by" pequeño */
}

/* Limpiar líneas divisorias que mete Google por defecto */
#google_translate_element .goog-te-menu-value span {
  border-left: none !important;
  padding-left: 0 !important;
}

