.collection-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 78px 0 68px;
}

.collection-back {
  color: var(--paper);
  display: inline-block;
  font: 12px var(--mono);
  margin-bottom: 46px;
  text-decoration: none;
}

.collection-back::before {
  content: "<- ";
}

.collection-hero .eyebrow {
  color: var(--clay-light);
}

.collection-hero h1 {
  font: 600 clamp(44px, 6vw, 78px) / 0.98 var(--serif);
  letter-spacing: 0;
  margin: 14px 0 18px;
  max-width: 820px;
}

.collection-hero > .shell > p:not(.eyebrow) {
  color: #ccd3cb;
  font-size: 17px;
  line-height: 1.65;
  max-width: 650px;
}

.collection-meta {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 18px;
}

.collection-meta span {
  font: 12px var(--mono);
  text-transform: uppercase;
}

.collection-meta .text-link { color: var(--paper); }

.collection-switcher {
  border-bottom: 1px solid #d9ddd4;
  padding: 17px 0;
}

.collection-spotlight {
  background: #e7e2da;
  border-bottom: 1px solid #d6cdc2;
  padding: 68px 0;
}

.spotlight-stack {
  display: grid;
  gap: 68px;
}

.spotlight-layout {
  align-items: center;
  display: grid;
  gap: clamp(38px, 7vw, 104px);
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.spotlight-layout + .spotlight-layout {
  border-top: 1px solid #c7bdb1;
  padding-top: 68px;
}

.spotlight-layout:nth-child(even) .spotlight-image {
  order: 2;
}

.spotlight-image {
  background: #2d2525;
  overflow: hidden;
}

.spotlight-image img {
  display: block;
  height: 100%;
  max-height: 660px;
  min-height: 460px;
  object-fit: cover;
  width: 100%;
}

.spotlight-copy {
  max-width: 465px;
}

.spotlight-copy h2 {
  font: 600 clamp(36px, 4vw, 58px) / 1.02 var(--serif);
  letter-spacing: 0;
  margin: 0;
}

.spotlight-copy > p:not(.eyebrow) {
  color: #475048;
  font-size: 17px;
  line-height: 1.6;
  margin: 24px 0;
}

.spotlight-detail {
  border-bottom: 1px solid #c7bdb1;
  border-top: 1px solid #c7bdb1;
  color: #596159;
  font: 11px / 1.6 var(--mono);
  letter-spacing: 0.03em;
  margin: 0 0 28px;
  padding: 13px 0;
  text-transform: uppercase;
}

#collection-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-chip {
  border: 1px solid #cbd1c7;
  color: var(--ink);
  font: 12px var(--mono);
  padding: 9px 11px;
  text-decoration: none;
}

.collection-chip:hover,
.collection-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.collection-gallery-section { padding: 76px 0 96px; }

.collection-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.collection-heading h2 {
  font: 600 38px / 1.05 var(--serif);
  letter-spacing: 0;
  margin: 7px 0 0;
}

.collection-heading > p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 330px;
}

.product-gallery {
  column-count: 4;
  column-gap: 18px;
}

.product-gallery figure {
  break-inside: avoid;
  margin: 0 0 30px;
}

.product-gallery img {
  aspect-ratio: 4 / 5;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.product-gallery .product-image:nth-child(4n + 2) img { aspect-ratio: 1; }
.product-gallery .product-image:nth-child(4n + 3) img { aspect-ratio: 5 / 4; }
.product-gallery .product-image:nth-child(4n) img { aspect-ratio: 3 / 4; }

.product-image {
  background: #f0f2ed;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-image figcaption {
  display: grid;
  gap: 5px;
  min-height: 63px;
  padding: 12px 2px 4px;
}

.product-image figcaption strong {
  color: var(--ink);
  display: block;
  font: 600 15px/1.2 var(--sans);
  overflow-wrap: anywhere;
}

.product-image figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-gallery .product-image:first-child {
  align-items: stretch;
  background: #e5e9e2;
  column-span: all;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.7fr);
  margin-bottom: 38px;
}

.product-gallery .product-image:first-child img {
  aspect-ratio: 16 / 8;
  height: 100%;
  min-height: 310px;
}

.product-gallery .product-image:first-child figcaption {
  align-content: center;
  padding: 30px;
}

.product-gallery .product-image:first-child figcaption strong {
  font: 600 clamp(23px, 2.3vw, 34px) / 1.05 var(--serif);
  letter-spacing: 0;
}

.product-gallery .product-image:first-child figcaption span {
  font-size: 15px;
  line-height: 1.55;
  margin-top: 7px;
}

.product-gallery.gallery-european-four-piece,
.product-gallery.gallery-mosquito-net,
.product-gallery.gallery-blanket { column-count: 3; }

.product-gallery.gallery-milk-velvet-four-piece { column-count: 5; }

.product-gallery.gallery-cotton-quilt-comforter-insert { column-count: 3; }

.product-gallery.gallery-pillow {
  column-count: 2;
  max-width: 690px;
}

.product-gallery.gallery-grouped {
  column-count: auto;
  display: grid;
  gap: 52px;
}

.product-subgroup {
  border-top: 1px solid #d5dad2;
  padding-top: 17px;
}

.product-subgroup h3 {
  font: 600 28px / 1.1 var(--serif);
  letter-spacing: 0;
  margin: 0 0 18px;
}

.product-subgroup-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-subgroup-grid .product-image {
  background: transparent;
  display: flex;
  margin: 0;
  min-width: 0;
}

.product-subgroup-grid .product-image img {
  aspect-ratio: 1;
  flex: none;
  height: auto;
  min-height: 0;
}

.product-subgroup-grid .product-image:first-child {
  align-items: initial;
  background: transparent;
  column-span: none;
  display: flex;
  margin: 0;
}

.product-subgroup-grid .product-image:first-child figcaption {
  align-content: initial;
  min-height: 63px;
  padding: 12px 2px 4px;
}

.product-subgroup-grid .product-image:first-child figcaption strong {
  font: 600 15px / 1.2 var(--sans);
}

.product-subgroup-grid .product-image:first-child figcaption span {
  font-size: 13px;
  line-height: 1.35;
  margin-top: 0;
}

@media (max-width: 850px) {
  .collection-hero { padding: 56px 0; }
  .collection-spotlight { padding: 52px 0; }
  .spotlight-layout { grid-template-columns: 1fr; }
  .spotlight-layout:nth-child(even) .spotlight-image { order: initial; }
  .spotlight-copy { max-width: 620px; }
  .collection-heading { align-items: start; flex-direction: column; gap: 14px; }
  .product-gallery,
  .product-gallery.gallery-european-four-piece,
  .product-gallery.gallery-milk-velvet-four-piece,
  .product-gallery.gallery-cotton-quilt-comforter-insert,
  .product-gallery.gallery-waterproof-bedding,
  .product-gallery.gallery-mosquito-net,
  .product-gallery.gallery-blanket { column-count: 2; }

  .product-gallery .product-image:first-child {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .product-subgroup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery.gallery-grouped { column-count: auto; }
}

@media (max-width: 540px) {
  .collection-meta { align-items: start; flex-direction: column; gap: 16px; }
  .collection-spotlight { padding: 38px 0 46px; }
  .spotlight-image img { min-height: 0; }
  .spotlight-copy h2 { font-size: 37px; }
  .spotlight-copy > p:not(.eyebrow) { font-size: 16px; }
  .collection-gallery-section { padding: 54px 0 72px; }
  .product-gallery { gap: 9px; }
  .product-gallery,
  .product-gallery.gallery-european-four-piece,
  .product-gallery.gallery-milk-velvet-four-piece,
  .product-gallery.gallery-cotton-quilt-comforter-insert,
  .product-gallery.gallery-waterproof-bedding,
  .product-gallery.gallery-mosquito-net,
  .product-gallery.gallery-blanket,
  .product-gallery.gallery-pillow { column-count: 1; }
  .product-gallery .product-image:first-child { display: block; }
  .product-gallery .product-image:first-child img { min-height: 0; }
  .product-gallery .product-image:first-child figcaption { padding: 22px; }
  .product-subgroup-grid { grid-template-columns: 1fr; }
  .product-subgroup-grid .product-image figcaption,
  .product-subgroup-grid .product-image:first-child figcaption {
    min-height: 0;
    padding: 12px 0 26px;
  }
  .product-gallery.gallery-grouped .product-subgroup-grid .product-image,
  .product-gallery.gallery-grouped .product-subgroup-grid .product-image:first-child {
    display: flex;
  }
  .product-gallery.gallery-grouped { column-count: auto; }
  .collection-heading h2 { font-size: 31px; }
}

/* Shared B2B catalogue grid for every product category and ready-stock listing. */
.collection-gallery-section .shell {
  width: min(1440px, calc(100% - 48px));
}

.product-gallery,
.product-gallery.gallery-european-four-piece,
.product-gallery.gallery-milk-velvet-four-piece,
.product-gallery.gallery-cotton-quilt-comforter-insert,
.product-gallery.gallery-waterproof-bedding,
.product-gallery.gallery-mosquito-net,
.product-gallery.gallery-blanket,
.product-gallery.gallery-pillow {
  align-items: start;
  column-count: auto;
  display: grid;
  gap: 32px 24px;
  grid-auto-rows: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
}

.product-gallery.gallery-grouped {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}

.product-subgroup {
  border-top: 1px solid #d5dad2;
  min-width: 0;
  padding-top: 24px;
  width: 100%;
}

.product-subgroup h3 {
  font: 600 clamp(30px, 2.6vw, 42px) / 1.12 var(--serif);
  hyphens: none;
  letter-spacing: 0;
  margin: 0 0 26px;
  overflow-wrap: normal;
  word-break: normal;
}

.product-subgroup-grid {
  align-items: start;
  gap: 32px 24px;
  grid-auto-rows: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}

.product-gallery figure,
.product-subgroup-grid .product-image,
.product-subgroup-grid .product-image:first-child,
.product-gallery .product-image:first-child {
  align-items: stretch;
  background: #fffdfa;
  border: 1px solid #e3e0d8;
  break-inside: auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 0;
}

.product-gallery .product-image:first-child {
  column-span: none;
  grid-template-columns: none;
}

.product-image-frame {
  aspect-ratio: 1 / 1;
  background: #f5f3ef;
  overflow: hidden;
  width: 100%;
}

.product-gallery img,
.product-subgroup-grid .product-image img,
.product-subgroup-grid .product-image:first-child img,
.product-gallery .product-image:first-child img {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 300ms ease;
  width: 100%;
}

.product-gallery .product-image:first-child figcaption,
.product-subgroup-grid .product-image:first-child figcaption,
.product-image figcaption {
  align-content: start;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 18px;
}

.product-gallery .product-image:first-child figcaption strong,
.product-subgroup-grid .product-image:first-child figcaption strong,
.product-image figcaption strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--ink);
  display: -webkit-box;
  font: 600 17px / 1.25 var(--sans);
  hyphens: none;
  letter-spacing: 0;
  margin: 0;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.product-gallery .product-image:first-child figcaption span,
.product-subgroup-grid .product-image:first-child figcaption span,
.product-image figcaption span {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
}

.product-card-cta {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 9px;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.product-card-cta b {
  color: var(--clay);
  font: 16px var(--mono);
  transition: transform 200ms ease;
}

@media (hover: hover) {
  .product-image:hover {
    border-color: #cbc6bc;
    box-shadow: 0 5px 16px rgba(23, 35, 30, 0.05);
  }

  .product-image:hover img {
    transform: scale(1.02);
  }

  .product-card-cta:hover b {
    transform: translateX(4px);
  }
}

@media (max-width: 1279px) {
  .product-gallery,
  .product-gallery.gallery-european-four-piece,
  .product-gallery.gallery-milk-velvet-four-piece,
  .product-gallery.gallery-cotton-quilt-comforter-insert,
  .product-gallery.gallery-waterproof-bedding,
  .product-gallery.gallery-mosquito-net,
  .product-gallery.gallery-blanket,
  .product-gallery.gallery-pillow,
  .product-subgroup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .product-gallery,
  .product-gallery.gallery-european-four-piece,
  .product-gallery.gallery-milk-velvet-four-piece,
  .product-gallery.gallery-cotton-quilt-comforter-insert,
  .product-gallery.gallery-waterproof-bedding,
  .product-gallery.gallery-mosquito-net,
  .product-gallery.gallery-blanket,
  .product-gallery.gallery-pillow,
  .product-subgroup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-subgroup h3 {
    font-size: clamp(28px, 7vw, 34px);
  }
}

@media (max-width: 639px) {
  .collection-gallery-section .shell {
    width: min(100% - 32px, 1440px);
  }

  .product-gallery,
  .product-gallery.gallery-european-four-piece,
  .product-gallery.gallery-milk-velvet-four-piece,
  .product-gallery.gallery-cotton-quilt-comforter-insert,
  .product-gallery.gallery-waterproof-bedding,
  .product-gallery.gallery-mosquito-net,
  .product-gallery.gallery-blanket,
  .product-gallery.gallery-pillow,
  .product-subgroup-grid {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .product-image figcaption,
  .product-gallery .product-image:first-child figcaption,
  .product-subgroup-grid .product-image:first-child figcaption {
    padding: 16px;
  }
}
