/* Compact product browsing, scoped to the shop catalogue. */
.shop-catalogue #products { gap: 16px; }
.shop-catalogue #products .product-card { min-width: 0; border-radius: 14px; }
.shop-catalogue #products .product-card > a { display: flex; flex-direction: column; height: 100%; }
.shop-catalogue #products .product-card img {
  display: block; width: 100%; height: 180px; aspect-ratio: auto;
  object-fit: contain; padding: 8px; background: #0b121e;
}
.shop-catalogue #products .product-card > a > div {
  display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; padding: 14px;
}
.shop-catalogue #products .tag {
  align-self: flex-start; max-width: 100%; padding: 3px 8px;
  font-size: 10px; line-height: 1.3; overflow-wrap: anywhere;
}
.shop-catalogue #products h2 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.2px;
}
.shop-catalogue #products .product-price { font-size: 17px; line-height: 1.3; }
.shop-catalogue #products p { margin: 0; font-size: 12px; line-height: 1.4; }
.shop-catalogue #products .product-card > a > div > span:last-child {
  margin-top: auto; padding-top: 3px; font-size: 12px; line-height: 1.4; color: #cbdcff;
}

@media (max-width: 600px) {
  /* Three compact rows fit in a typical phone's browsing viewport. */
  .shop-catalogue #products { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .shop-catalogue #products .product-card > a {
    display: grid; grid-template-columns: 108px minmax(0, 1fr); min-height: 156px;
  }
  .shop-catalogue #products .product-card img {
    height: 100%; min-height: 156px; max-height: 180px; padding: 6px;
    border-right: 1px solid var(--line);
  }
  .shop-catalogue #products .product-card > a > div { gap: 5px; padding: 11px 12px; }
  .shop-catalogue #products h2 { font-size: 15px; line-height: 1.25; }
  .shop-catalogue #products .product-price { font-size: 15px; line-height: 1.25; }
  .shop-catalogue #products p { font-size: 11px; line-height: 1.3; }
  .shop-catalogue #products .tag { padding: 2px 6px; }
  .shop-catalogue #products .product-card > a > div > span:last-child { padding-top: 0; }
  .shop-catalogue #arrivalShelf > h2, .shop-catalogue #featuredShelf > h2 { font-size: 19px; }
  .shop-catalogue .arrival-strip { margin-bottom: 16px; }
}

@media (max-width: 360px) {
  .shop-catalogue #products .product-card > a { grid-template-columns: 88px minmax(0, 1fr); }
  .shop-catalogue #products .product-card > a > div { padding: 10px; }
  .shop-catalogue #products h2 { font-size: 14px; }
  .shop-catalogue #products .product-price { font-size: 14px; }
}
