.use-cases {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1.2rem;margin:1.5rem 0}
.use-cases article {border-top:1px solid #c5a56a;padding:1rem 0}
.custom-development {margin:3rem 0 0;padding:clamp(1.5rem,4vw,3rem);background:#073d30;color:#faf8f1;border:1px solid #c5a56a;border-radius:.6rem}
.custom-development p,.category>p {max-width:70ch;line-height:1.8}
.custom-development .gold {margin-top:.75rem;background:#c5a56a;color:#073d30}
.sku-dialog {max-width:96vw;max-height:96dvh;padding:.7rem;background:#faf8f1;border:1px solid #c5a56a;border-radius:.5rem}
.sku-dialog::backdrop {background:#021a16df}
.sku-dialog img {display:block;max-width:100%;max-height:77dvh;width:auto;height:auto;margin:auto;object-fit:contain}
.sku-dialog button {display:block;margin:.2rem 0 .6rem auto;color:#073d30;background:white;border:1px solid #c5a56a;border-radius:.35rem;padding:.45rem .8rem}

/* Product catalogue on both language landing pages and category pages. */
.poster-grid.catalogue-cards,
.product-detail:has(.milk-storage) .poster-grid.catalogue-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.6rem, 1.4vw, 1.15rem);
}
/* Each card spans two tracks so partial rows can shift by half a card plus half a gap. */
.catalogue-cards article[data-sku] {
  grid-column-end: span 2;
  padding: 0;
  margin: 0;
  background: #faf8f1;
  border: 1px solid rgb(197 165 106 / 44%);
  border-radius: .3rem;
}
.catalogue-cards article[data-sku] img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: .25rem .25rem 0 0;
}
.catalogue-cards article[data-sku] h4 {
  margin: 0;
  padding: .4rem .55rem .55rem;
  font-size: clamp(.94rem, 1.15vw, 1.1rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: break-word;
}
.sku-dialog .pack-detail {margin: .45rem .3rem .15rem; text-align: center}
@media (min-width: 660px) {
  .poster-grid.catalogue-cards,
  .product-detail:has(.milk-storage) .poster-grid.catalogue-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .poster-grid.catalogue-cards,
  .product-detail:has(.milk-storage) .poster-grid.catalogue-cards {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (width < 660px) {
  .catalogue-cards > article:nth-child(2n + 1):nth-last-child(1) { grid-column-start: 2; }
}
@media (660px <= width < 1100px) {
  .catalogue-cards > article:nth-child(3n + 1):nth-last-child(1) { grid-column-start: 3; }
  .catalogue-cards > article:nth-child(3n + 1):nth-last-child(2) { grid-column-start: 2; }
}
@media (width >= 1100px) {
  .catalogue-cards > article:nth-child(4n + 1):nth-last-child(1) { grid-column-start: 4; }
  .catalogue-cards > article:nth-child(4n + 1):nth-last-child(2) { grid-column-start: 3; }
  .catalogue-cards > article:nth-child(4n + 1):nth-last-child(3) { grid-column-start: 2; }
}

.category > p.category-description, .product-intro p.category-description {
  text-align: left;
  line-height: 1.8;
  margin-block: 1rem;
  font-family: Inter, "Noto Sans Thai", sans-serif;
}
