.catalog-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 120px;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
}

.catalog-sidebar h2 {
  margin: 12px 0;
  font-size: 28px;
}

.catalog-sidebar p {
  color: var(--muted);
  font-size: 14px;
}

.catalog-sidebar nav {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.catalog-sidebar nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: #657689;
  font-size: 14px;
}

.catalog-sidebar nav a.active {
  color: var(--blue);
  font-weight: 700;
}

.catalog-sidebar nav sup {
  color: #9cabb8;
}

.catalog-help {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.catalog-help small {
  color: #9eb2c2;
}

.catalog-help strong {
  margin-top: 5px;
}

.catalog-help>span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--lime);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.catalog-toolbar p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.catalog-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.catalog-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(24, 47, 74, .1);
}

.catalog-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.42;
  overflow: hidden;
  background: #e8f0f5;
}

.catalog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(18, 34, 53, .22));
  opacity: 0;
  transition: opacity .25s;
}

.catalog-card:hover .catalog-media::after {
  opacity: 1;
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.catalog-card:hover .catalog-media img {
  transform: scale(1.045);
}

.catalog-model {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(18, 34, 53, .82);
  color: #fff;
  font-size: 10px;
}

.catalog-open {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 13px;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s;
}

.catalog-card:hover .catalog-open {
  opacity: 1;
  transform: none;
}

.catalog-copy {
  padding: 22px;
}

.catalog-copy>span {
  color: var(--cyan);
  font-size: 12px;
}

.catalog-copy h2 {
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.4;
}

.catalog-copy p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-copy>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.catalog-copy small {
  color: #8a98a6;
}

.catalog-copy>div a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

/* Commerce product detail */.shop-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8);
}

.shop-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 19, .34);
}

.shop-hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.shop-hero-copy span {
  font-size: 13px;
  letter-spacing: .14em;
}

.shop-hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
}

.shop-catalog {
  padding-top: 58px;
  padding-bottom: 110px;
}

.shop-filters {
  padding: 4px 26px;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 18px;
  box-shadow: 0 10px 35px rgba(39, 35, 29, .06);
}

.shop-filters nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-filters nav::-webkit-scrollbar {
  display: none;
}

.shop-filters nav+nav {
  border-top: 1px solid #ecebe8;
}

.shop-filters a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #9297a0;
  font-size: 14px;
  white-space: nowrap;
}

.shop-filters a.active {
  color: #272a30;
  font-weight: 600;
}

.shop-filter-primary a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 0;
  background: #272a30;
}

.shop-filter-secondary a.active {
  color: #272a30;
  font-weight: 600;
}

.shop-filter-secondary a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background: #2c6fe8;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 44px 0 22px;
}

.shop-toolbar strong {
  font-size: 20px;
  font-weight: 500;
}

.shop-toolbar span {
  color: #9a9da3;
  font-size: 13px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 100px;
}

.shop-card {
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(33, 30, 24, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(33, 30, 24, .12);
}

.shop-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.04);
}

.shop-badge {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  padding: 4px 8px;
  border-radius: 3px;
  background: #3f5cf4;
  color: #fff;
  font-size: 10px;
}

.shop-card-copy {
  padding: 18px 18px 20px;
}

.shop-card-copy small {
  color: #9297a0;
  font-size: 11px;
}

.shop-card-copy h2 {
  margin: 8px 0 5px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.shop-card-copy p {
  display: -webkit-box;
  min-height: 39px;
  margin: 0;
  overflow: hidden;
  color: #9b9da1;
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eeeeec;
}

.shop-card-bottom strong {
  color: #ff4b4b;
  font-size: 16px;
  font-weight: 500;
}

.shop-card-bottom a {
  color: #3f5cf4;
  font-size: 12px;
}

.shop-card-bottom a span {
  margin-left: 5px;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-hero {
    min-height: 300px;
  }

  .shop-hero-copy h1 {
    font-size: 46px;
  }

  .shop-catalog {
    padding-top: 28px;
    padding-bottom: 70px;
  }

  .shop-filters {
    padding: 12px 15px 2px;
  }

  .shop-filters nav {
    gap: 20px;
    min-height: 43px;
  }

  .shop-filters a {
    font-size: 13px;
    min-height: 39px;
  }

  .shop-toolbar {
    padding: 30px 0 16px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-card-copy {
    padding: 13px 12px 14px;
  }

  .shop-card-copy h2 {
    font-size: 15px;
  }

  .shop-card-copy p {
    font-size: 11px;
  }

  .shop-card-bottom {
    margin-top: 12px;
    padding-top: 10px;
  }

  .shop-card-bottom strong {
    font-size: 14px;
  }
}

/* Product center display imagery follows the supplied furniture reference */
.shop-card-media img {
  opacity: 0;
}

.shop-card:nth-child(1) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050910182095.jpg') center/contain no-repeat;
}

.shop-card:nth-child(2) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050910524817.jpg') center/contain no-repeat;
}

.shop-card:nth-child(3) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050910571875.jpg') center/contain no-repeat;
}

.shop-card:nth-child(4) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050910304815.jpg') center/contain no-repeat;
}

.shop-card:nth-child(5) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050910313617.jpg') center/contain no-repeat;
}

.shop-card:nth-child(6) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050910365063.jpg') center/contain no-repeat;
}

.shop-card:nth-child(7) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050818033092.jpg') center/contain no-repeat;
}

.shop-card:nth-child(8) .shop-card-media {
  background: #fafafa url('/assets/images/ref-2026050818033492.jpg') center/contain no-repeat;
}

/* One shared header across every route */