.catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 43%);
  align-content: start;
}
.catalog > * { grid-column: 1 / -1; }
.catalog .crumb { padding-block: 14px 16px; }
.catalog-head { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.catalog-head h1 { font-size: clamp(29px, 3.1vw, 48px); letter-spacing: -.025em; }
.catalog-count { color: #795161; font-size: 15px; white-space: nowrap; }
.catalog-tools { display: contents; }
.catalog-browse-only { grid-column: 2; grid-row: 2; align-self: center; color: var(--muted); }
.catalog .search { grid-column: 2; grid-row: 2; width: 100%; max-width: none; align-self: center; }
.catalog .searchbox { border-radius: 12px; }
.catalog .chips { grid-column: 1 / -1; gap: 7px; margin: 18px 0 22px; }
.catalog .chips a { min-height: 44px; }
.catalog .chips a[aria-current] { background: var(--rose); border-color: var(--rose); }
.category-toggle { display: none; }
.catalog .products { align-items: stretch; gap: clamp(12px, 1.5vw, 24px); }
.catalog .product { position: relative; min-width: 0; border-color: #e6dbe0; border-radius: 17px; }
.catalog .product:hover, .catalog .product:focus-within { border-color: #bf7794; }
.catalog .product-photo {
  display: flex; align-items: flex-end; justify-content: center;
  height: clamp(185px, 17vw, 278px); padding: 13px 14px 11px;
  background: linear-gradient(155deg, #fffdfc 10%, #faf3f5 100%);
}
.catalog .product-photo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.catalog .product-info { padding: clamp(13px, 1.4vw, 22px); border-color: #eee2e7; }
.catalog .product h2 { margin: 4px 0 2px; font-size: clamp(18px, 1.48vw, 25px); line-height: 1.32; overflow-wrap: anywhere; }
.product-detail::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.product-detail:focus-visible { outline: none; }
.product-detail:focus-visible::after { outline: 3px solid #187478; outline-offset: -3px; }
.catalog .pack-size { margin: 3px 0 0; color: #5c3749; font-size: 16px; font-weight: 500; }
.card-end { margin-top: auto; padding-top: 16px; }
.catalog .product small { display: block; font-size: 12px; color: #735e69; }
.card-price, .quote-price {
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  min-height: 44px; font-size: clamp(18px, 1.55vw, 25px); font-weight: 600; color: var(--rose);
}
.card-price span, .quote-price span { font: 20px/1 Arial, sans-serif; }
.quote-price { position: relative; width: fit-content; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.catalog-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px 14px; margin-top: 28px; }
.catalog-pager p { width: 100%; text-align: center; color: var(--muted); font-size: 15px; }
.catalog-pager a, .catalog-pager button, .category-toggle {
  min-height: 44px; padding: 8px 20px; color: var(--rose); background: white;
  border: 1px solid #cf9aae; border-radius: 12px; font-weight: 500;
}
.catalog-pager a:hover, .catalog-pager button:hover { background: var(--tint); }
@media (max-width: 700px) {
  .catalog { display: block; }
  .catalog .crumb { padding-block: 8px 10px; }
  .catalog-head { gap: 4px 10px; margin-bottom: 9px; }
  .catalog-head h1 { font-size: clamp(26px, 7vw, 34px); }
  .catalog-count { font-size: 14px; }
  .catalog .search { gap: 6px; }
  .catalog .searchbox { padding-inline: 10px 4px; gap: 8px; }
  .catalog .search input { font-size: 16px; height: 44px; }
  .catalog .search .btn { padding-inline: 14px; }
  .catalog .category-toggle:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 8px 0 12px; padding: 8px 13px; font-size: 14px;
  }
  .category-toggle[aria-expanded=true] span { transform: rotate(180deg); }
  .catalog .chips { margin: 0 0 12px; }
  .catalog .category-toggle[aria-expanded=false]:not([hidden]) + .chips { display: none; }
  .catalog .products { gap: 9px; }
  .catalog .product { border-radius: 13px; }
  .catalog .product-photo { height: clamp(146px, 41vw, 216px); padding: 8px 7px; }
  .catalog .product-info { padding: 10px 11px 5px; }
  .catalog .product h2 { font-size: clamp(16px, 4.3vw, 20px); }
  .catalog .pack-size, .catalog .quote-price { font-size: 14px; }
  .card-end { padding-top: 10px; }
}
