/* Visual catalog modules below the existing homepage hero. The first visual stays untouched. */
body.home-page main .categories {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(76px, 8vw, 116px) max(20px, calc((100% - 1320px) / 2)) clamp(78px, 8vw, 112px);
  background: #f5f3ef;
  color: #191a1a;
}

body.home-page main .categories .section-topline {
  margin-bottom: 34px;
  color: #8a8277;
}

body.home-page main .categories .section-title {
  color: #191a1a;
}

body.home-page main .categories .section-title em {
  color: #88755d;
}

body.home-page main .categories .shop-head p {
  color: #70716f;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: clamp(34px, 5vw, 62px) auto 0;
}

.home-category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e3dd;
  background: #fff;
  color: #191a1a;
  text-decoration: none;
  transition: border-color .25s ease, transform .3s ease, box-shadow .3s ease;
}

.home-category-card[hidden],
.home-chair-card[hidden] {
  display: none;
}

.home-category-card:hover {
  transform: translateY(-4px);
  border-color: #d8cfc2;
  box-shadow: 0 16px 38px rgb(34 29 23 / 8%);
}

.home-category-art {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1.22 / 1;
  place-items: center;
  background: #f8f7f4;
}

.home-category-art img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vw, 28px);
  object-fit: contain;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.home-category-card:hover .home-category-art img {
  transform: scale(1.035);
}

.home-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  padding: 14px;
  color: #77736d;
  font-size: 12px;
  place-items: center;
  text-align: center;
}

.home-category-art.is-image-missing .home-image-fallback,
.home-chair-art.is-image-missing .home-image-fallback {
  display: grid;
}

.home-category-art.is-image-missing img,
.home-chair-art.is-image-missing img {
  visibility: hidden;
}

.home-category-meta {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.home-category-name {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 650;
  letter-spacing: -.045em;
}

.home-category-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: #77736d;
  font-size: 11px;
}

.home-category-count b {
  color: #282725;
  font-size: 14px;
  font-weight: 650;
}

.home-category-arrow {
  color: var(--accent, #ff4d00);
  font-size: 18px;
}

.home-collection {
  padding: clamp(74px, 8vw, 112px) max(20px, calc((100% - 1320px) / 2)) clamp(78px, 8vw, 110px);
  border-top: 1px solid #e9e6e1;
  background: #fff;
  color: #191a1a;
}

.home-collection-head {
  display: flex;
  max-width: 1320px;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin: 0 auto 34px;
}

.home-collection-heading {
  min-width: 0;
}

.home-collection-eyebrow {
  margin: 0 0 14px;
  color: var(--accent, #ff4d00);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.home-collection-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.home-collection-lead {
  max-width: 40ch;
  margin: 0 0 4px;
  color: #72716e;
  font-size: 14px;
  line-height: 1.85;
}

.home-chair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.home-chair-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.home-chair-art {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  place-items: center;
  background: #f6f5f2;
}

.home-chair-art img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2.4vw, 32px);
  object-fit: contain;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.home-chair-card:hover .home-chair-art img {
  transform: scale(1.045);
}

.home-chair-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 15px 2px 0;
}

.home-chair-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.home-chair-style {
  color: #8a8277;
  font-size: 11px;
}

.home-chair-model {
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-chair-code {
  color: #9b8e7a;
  font-size: 10px;
  letter-spacing: .12em;
}

.home-chair-arrow {
  padding-bottom: 2px;
  color: var(--accent, #ff4d00);
  font-size: 19px;
  transition: transform .2s ease;
}

.home-chair-card:hover .home-chair-arrow {
  transform: translate(3px, -3px);
}

.home-collection-action {
  display: flex;
  justify-content: center;
  margin: 42px auto 0;
}

.home-collection-action a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 23px;
  border: 1px solid #1a1a19;
  background: #1a1a19;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.home-collection-action a:hover {
  background: transparent;
  color: #1a1a19;
}

.home-collection-action span[aria-hidden="true"] {
  color: var(--accent, #ff4d00);
  font-size: 17px;
}

@media (max-width: 900px) {
  body.home-page main .categories {
    padding-right: 36px;
    padding-left: 36px;
  }

  .home-category-grid,
  .home-chair-grid {
    gap: 14px;
  }

  .home-category-meta {
    gap: 8px;
    padding: 15px 13px;
  }

  .home-category-foot {
    gap: 9px;
  }

  .home-collection {
    padding-right: 36px;
    padding-left: 36px;
  }
}

@media (max-width: 640px) {
  body.home-page main .categories {
    width: 100%;
    padding: 64px 20px 70px;
  }

  body.home-page main .categories .section-topline {
    margin-bottom: 24px;
  }

  body.home-page main .categories .shop-head {
    gap: 12px;
  }

  body.home-page main .categories .section-title {
    font-size: clamp(39px, 10.5vw, 56px);
  }

  .home-category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .home-category-card {
    display: grid;
    grid-template-columns: minmax(112px, .9fr) 1.1fr;
    align-items: center;
  }

  .home-category-art {
    aspect-ratio: 1 / 1;
  }

  .home-category-art img {
    padding: 10px;
  }

  .home-category-meta {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 12px 13px;
  }

  .home-category-name {
    font-size: clamp(17px, 5vw, 21px);
  }

  .home-category-foot {
    width: 100%;
    justify-content: space-between;
  }

  .home-collection {
    padding: 64px 20px 70px;
  }

  .home-collection-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .home-collection-eyebrow {
    margin-bottom: 11px;
  }

  .home-collection-title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .home-collection-lead {
    font-size: 13px;
  }

  .home-chair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .home-chair-art {
    aspect-ratio: .94 / 1;
  }

  .home-chair-art img {
    padding: 9px;
  }

  .home-chair-info {
    gap: 5px;
    padding-top: 11px;
  }

  .home-chair-copy {
    gap: 5px;
  }

  .home-chair-style {
    font-size: 9px;
  }

  .home-chair-model {
    font-size: 13px;
  }

  .home-chair-code {
    font-size: 9px;
  }

  .home-collection-action {
    margin-top: 32px;
  }

  .home-collection-action a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-category-card,
  .home-category-art img,
  .home-chair-art img,
  .home-chair-arrow,
  .home-collection-action a {
    transition: none;
  }
}

/* Keep the transition into style browsing compact after removing the old intro and CTA. */
.home-tilted-collection { padding-bottom: clamp(28px, 4vw, 52px); }
body.home-page main .categories { padding-top: clamp(30px, 3.5vw, 48px); }
.home-category-grid { margin-top: clamp(20px, 2.8vw, 34px); }
@media (max-width: 640px) {
  .home-tilted-collection { padding-bottom: 28px; }
  body.home-page main .categories { padding-top: 28px; }
  .home-category-grid { margin-top: 20px; }
}
/* Centered style selectors keep category labels and counts visually grouped. */
body.home-page main .home-category-card {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #e6e0d7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.home-page main .home-category-card:hover {
  transform: translateY(-1px);
  border-color: #ff4b16;
  background: #fffaf7;
  box-shadow: 0 6px 18px rgb(55 40 25 / 6%);
}
body.home-page main .home-category-card .home-category-meta {
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  text-align: center;
}
body.home-page main .home-category-card .home-category-name {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 650;
  line-height: 1.2;
}
body.home-page main .home-category-card .home-category-foot {
  width: auto;
  flex: 0 0 auto;
  justify-content: center;
}
body.home-page main .home-category-card .home-category-count {
  color: #817a70;
  font-size: 12px;
  white-space: nowrap;
}
body.home-page main .home-category-card .home-category-count b {
  color: #ff4b16;
  font-size: 14px;
}
@media (max-width: 640px) {
  body.home-page main .home-category-card {
    min-height: 72px;
    padding: 10px 16px;
  }
  body.home-page main .home-category-card .home-category-name {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page main .home-category-card:hover { transform: none; }
}
