/* Center the catalog with side gutters and four desktop cards, matching detail cards. */
.catalog-section.container { width: min(1320px, 66vw); }
.catalog-section .product-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.catalog-section .product-family-card,
.catalog-section .product-card[data-catalog-product] {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}
.catalog-section .product-family-card .product-art,
.catalog-section .product-family-card .product-art.has-photo.photo-light {
  flex: 0 0 auto;
  min-height: 180px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.catalog-section .product-family-card .product-art .product-photo {
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 95%;
  object-fit: contain;
}
.catalog-section .product-card[data-catalog-product] .product-art .product-photo {
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 95%;
  object-fit: contain;
}
.catalog-section .product-family-card .product-info { flex: 1 0 auto; min-height: auto; padding: 14px 16px 16px; }
.catalog-section .product-family-card .retatrutide-info { gap: 12px; }
.catalog-section .product-family-card .retatrutide-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  min-height: 0;
}
.catalog-section .product-family-card .retatrutide-summary h3 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  overflow-wrap: break-word;
}
.catalog-section .product-family-card .product-variant-options {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px;
}
.catalog-section .product-family-card .product-variant-button {
  min-height: 32px;
  padding: 6px 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.catalog-section .product-family-card .product-variant-button.is-long-spec,
.catalog-section .product-family-card .product-variant-button.is-duplicate-spec {
  grid-column: span 2;
}
.catalog-section .product-family-card .product-price {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 12px;
}
.catalog-section .catalog-image-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  align-self: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 48px 12px 16px;
  text-align: center;
  color: #245f91;
  background: linear-gradient(145deg, #f8fbff, #e8f2fb);
}
.catalog-section .catalog-image-placeholder strong {
  min-width: 0;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  letter-spacing: .01em;
}
.catalog-section .catalog-image-placeholder-note {
  font-size: 10px;
  line-height: 1.4;
  color: #64748b;
}
@media (min-width: 640px) and (max-width: 960px) {
  .catalog-section.container { width: calc(100vw - 48px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .catalog-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .catalog-section .product-family-card .product-variant-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 700px) {
  .catalog-section.container { width: min(520px, calc(100vw - 36px)); }
}
@media (max-width: 639px) {
  .catalog-section.container { width: min(520px, calc(100% - 36px)); }
  .catalog-section .product-grid {
    max-width: none;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 16px;
    margin-inline: -16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .catalog-section .product-grid::-webkit-scrollbar { display: none; }
}
@media (max-width: 380px) {
  .catalog-section.container { width: calc(100vw - 28px); }
}
