.category-page {
  display: grid;
  gap: 1.35rem;
}

.top-category-shell {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.generated-category-shell {
  margin-bottom: 0.9rem;
}

.generated-category-sections {
  display: grid;
  gap: 0.95rem;
}

.top-category-hero {
  margin: 0;
  border: 1px solid #d9d9d9;
  overflow: hidden;
  background: #fff;
}

.top-category-hero img {
  width: 100%;
  aspect-ratio: 1280 / 614;
  object-fit: cover;
}

.top-category-intro {
  border: 1px solid #dedede;
  background: #fff;
  padding: 1.28rem 1.45rem;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.top-category-intro--overlay {
  margin-top: -5.4rem;
  margin-left: 1.8rem;
  margin-right: 1.8rem;
  position: relative;
}

.top-category-intro--no-hero {
  margin-top: 0.15rem;
}

.top-category-intro--no-hero h1 {
  font-size: 2.55rem;
}

.top-category-intro h1 {
  margin: 0 0 0.62rem;
  font-size: 3.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.top-category-intro p {
  margin: 0 0 0.72rem;
}

.top-category-intro p:last-child {
  margin-bottom: 0;
}

.top-category-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.top-category-note,
.top-category-quicklinks {
  background: #fff;
  border: 1px solid #e7e7e7;
  padding: 0.8rem 0.95rem;
}

.top-category-note h2,
.top-category-quicklinks h2,
.top-category-section h2 {
  margin: 0 0 0.62rem;
  font-size: 1.72rem;
}

.top-category-note ul,
.top-category-quicklinks ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.top-category-section {
  display: grid;
  gap: 0.72rem;
}

.top-category-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.top-category-tile {
  border: 1px solid #e5e5e5;
  background: #fff;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.72rem;
  align-items: center;
  padding: 0.7rem;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.top-category-tile img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.top-category-tile h3 {
  grid-column: 2;
  margin: 0 0 0.34rem;
  font-size: 1.36rem;
}

.top-category-tile p {
  grid-column: 2;
  margin: 0;
  color: #505050;
  font-size: 0.93rem;
}

.top-category-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.85rem;
}

.top-category-icon-item {
  border: 1px solid #e7e7e7;
  background: #fff;
  padding: 0.75rem 0.82rem;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 98px 1fr;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.top-category-icon-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.top-category-icon-item h3 {
  grid-column: 2;
  margin: 0 0 0.26rem;
  font-size: 1.35rem;
}

.top-category-icon-item p {
  grid-column: 2;
  margin: 0;
  color: #545454;
  font-size: 0.92rem;
}

.top-category-icon-item > a:first-child,
.top-category-tile > a:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.top-category-icon-item:hover,
.top-category-icon-item:focus-within,
.top-category-tile:hover,
.top-category-tile:focus-within {
  border-color: #d3b19f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.top-category-icon-item a,
.top-category-tile a {
  color: inherit;
}

.top-category-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.top-category-chip {
  border: 1px solid #dbdbdb;
  background: #fff;
  color: #202020;
  padding: 0.55rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.top-category-chip:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.top-category-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.top-category-steps article {
  border: 1px solid #e2e2e2;
  background: #fff;
  padding: 0.8rem;
}

.top-category-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.top-category-steps p {
  margin: 0;
  color: #505050;
  font-size: 0.9rem;
}

.books-page-shell {
  display: grid;
  gap: 1rem;
}

.books-hero {
  margin: 0;
  border: 1px solid #d8d8d8;
  background: #fff;
  overflow: hidden;
}

.books-hero img {
  width: 100%;
  aspect-ratio: 1280 / 614;
  object-fit: cover;
}

.books-intro-card {
  margin-top: -5.35rem;
  margin-left: 1.8rem;
  margin-right: 1.8rem;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.95rem;
  padding: 1rem 1.1rem 1.1rem;
}

.books-intro-copy h1 {
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.books-intro-copy h2 {
  margin: 0.32rem 0 0.6rem;
  font-size: 1.52rem;
}

.books-intro-copy p {
  margin: 0;
  font-size: 0.96rem;
  color: #2f2f2f;
}

.books-top-search {
  border: 1px solid #e0dfd5;
  background: #f7f6ed;
  padding: 0.7rem 0.75rem;
  display: grid;
  gap: 0.32rem;
}

.books-top-search label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.books-top-search > div {
  display: grid;
  grid-template-columns: 1fr 46px;
}

.books-top-search input {
  height: 40px;
  border: 1px solid #d9d9d9;
  border-right: 0;
  padding: 0 0.62rem;
}

.books-top-search button {
  border: 1px solid #e9531b;
  background: #e9531b;
  color: #fff;
  cursor: pointer;
}

.books-top-search p {
  margin: 0;
  min-height: 1rem;
  font-size: 0.82rem;
  color: #5f5f5f;
}

.books-curated-lanes {
  display: grid;
  gap: 1.15rem;
}

.books-lane {
  border-top: 1px solid #e6e6e6;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.books-lane aside h3 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
}

.books-lane aside p {
  margin: 0 0 0.72rem;
  color: #4d4d4d;
  font-size: 0.94rem;
}

.books-lane aside a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d6859;
  color: #fff;
  border-radius: 20px;
  min-height: 40px;
  padding: 0 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.books-lane-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.books-lane-items a {
  display: grid;
  gap: 0.38rem;
  color: #222;
}

.books-lane-items img {
  width: 100%;
  aspect-ratio: 300 / 300;
  object-fit: cover;
  border: 1px solid #e8e8e8;
}

.books-lane-items span {
  font-size: 0.84rem;
  line-height: 1.28;
}

.books-lane--authors {
  grid-template-columns: 240px minmax(0, 1fr);
}

.books-author-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}

.books-author-grid a {
  display: grid;
  gap: 0.36rem;
}

.books-author-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #e9e9e9;
}

.books-author-grid span {
  font-size: 0.8rem;
}

.category-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #666;
}

.category-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.65rem;
  color: #999;
}

.category-breadcrumb li.is-current {
  color: #2b2b2b;
}

.category-hero {
  margin: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #f5f5f5;
}

.category-hero img {
  width: 100%;
  aspect-ratio: 1280 / 614;
  object-fit: cover;
}

.category-intro {
  margin-top: 0;
  padding: 0 2.4rem;
  position: relative;
  z-index: 2;
}

.category-intro.has-hero {
  margin-top: -4.1rem;
}

.category-intro-card {
  background: #efefef;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 1.55rem;
}

.category-intro-card h1 {
  margin: 0 0 0.9rem;
  font-size: 2.7rem;
  line-height: 1.1;
}

.category-intro-copy p {
  margin: 0 0 0.95rem;
  color: #252525;
}

.category-intro-copy p:last-child {
  margin-bottom: 0;
}

.category-teasers {
  display: grid;
  gap: 0.95rem;
}

.category-teasers h2 {
  margin: 0;
  font-size: 1.5rem;
}

.category-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-teaser {
  border: 1px solid #e2e2e2;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.category-teaser:hover,
.category-teaser:focus-within {
  border-color: #d3b19f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.category-teaser-link {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem;
  color: inherit;
  text-decoration: none;
}

.category-teaser-media {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}

.category-teaser-media img {
  max-width: 84px;
  max-height: 84px;
  width: auto;
  height: auto;
}

.category-teaser-body {
  min-width: 0;
}

.category-teaser h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.category-teaser p {
  margin: 0;
  color: #555;
  font-size: 0.93rem;
}

.category-link-index {
  border: 1px solid #e2e2e2;
  background: #fff;
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.75rem;
}

.category-link-index h2 {
  margin: 0;
  font-size: 1.4rem;
}

.category-link-index-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
}

.category-link-index-grid a {
  color: #1f1f1f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  line-height: 1.35;
}

.category-link-index-grid a:hover,
.category-link-index-grid a:focus-visible {
  color: var(--color-brand);
  border-bottom-color: currentColor;
}

.category-product-section {
  display: grid;
  gap: 1rem;
}

.category-product-header {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.category-product-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.search-component {
  display: grid;
  gap: 0.35rem;
}

.category-search-label {
  display: inline-block;
  margin: 0;
  font-weight: 700;
  font-size: 0.87rem;
  text-transform: uppercase;
  color: #2d2d2d;
}

.category-search-input {
  width: min(100%, 400px);
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  height: 40px;
  padding: 0 0.72rem;
  font-size: 0.96rem;
}

.search-status {
  min-height: 1.2rem;
  color: #6a6a6a;
  font-size: 0.88rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  overflow: hidden;
}

.product-image-link {
  display: block;
  background: #f7f7f7;
}

.product-image-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.product-content {
  padding: 0.75rem;
}

.product-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 700;
}

.product-meta {
  margin: 0.4rem 0 0;
  color: #666;
  font-size: 0.86rem;
}

.product-price {
  margin: 0.45rem 0 0;
  font-weight: 700;
  color: #222;
}

.product-add-inline {
  margin-top: 0.55rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #262626;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.55rem;
  cursor: pointer;
}

.product-add-inline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.category-actions {
  display: flex;
  justify-content: center;
}

#load-more {
  border: 0;
  padding: 0.76rem 1.15rem;
  border-radius: 3px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#load-more[disabled] {
  opacity: 0.65;
  cursor: default;
}

@media (max-width: 1100px) {
  .top-category-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-lane {
    grid-template-columns: 1fr;
  }

  .books-lane-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .books-author-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-link-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top-category-intro--overlay {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.25rem;
  }

  .top-category-intro--no-hero {
    margin-top: 0;
  }

  .top-category-split {
    grid-template-columns: 1fr;
  }

  .top-category-intro h1 {
    font-size: 2.2rem;
  }

  .top-category-icon-grid,
  .top-category-tile-grid {
    grid-template-columns: 1fr;
  }

  .books-intro-card {
    margin: 0;
    padding: 0.95rem;
  }

  .books-intro-copy h1 {
    font-size: 2.2rem;
  }

  .books-intro-copy h2 {
    font-size: 1.32rem;
  }

  .books-lane-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-author-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-intro.has-hero {
    margin-top: -2.2rem;
  }

  .category-intro {
    padding: 0 1rem;
  }

  .category-intro-card h1 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-category-intro {
    padding: 1rem;
  }

  .top-category-intro h1 {
    font-size: 1.7rem;
  }

  .top-category-intro--no-hero h1 {
    font-size: 1.58rem;
  }

  .category-teaser-grid {
    grid-template-columns: 1fr;
  }

  .category-link-index-grid {
    grid-template-columns: 1fr;
  }

  .category-teaser {
    display: block;
  }

  .category-teaser-link {
    grid-template-columns: 64px 1fr;
  }

  .category-teaser-media {
    width: 64px;
    height: 64px;
  }

  .category-teaser-media img {
    max-width: 64px;
    max-height: 64px;
  }

  .category-intro {
    margin-top: 0;
    padding: 0;
  }

  .category-intro-card {
    padding: 1rem;
  }

  .top-category-icon-item,
  .top-category-tile {
    grid-template-columns: 74px 1fr;
    padding: 0.62rem;
  }

  .top-category-icon-item img,
  .top-category-tile img {
    width: 72px;
    height: 72px;
  }

  .top-category-icon-item h3,
  .top-category-tile h3 {
    font-size: 1.12rem;
  }

  .top-category-icon-item p,
  .top-category-tile p {
    font-size: 0.97rem;
    line-height: 1.36;
  }

  .books-lane-items,
  .books-author-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
