/* Hearts retain the card's heading row and the client's coral selected state. */
.material-favorite {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px;
  background: transparent; color: #45346f; cursor: pointer;
}
.material-card__frame > .material-favorite { position: absolute; left: 0; top: 0; z-index: 2; }
body .material-card .material-card__heading { padding-inline: 30px; }
.material-favorite svg, .catalog-favorites-link svg { flex: 0 0 24px; }
body .material-favorite[aria-pressed="true"] { color: #f05969 !important; }
.material-favorite[aria-pressed="true"] svg path { fill: currentColor; }
.material-favorite:hover { background: #ddd3f1; }
.material-favorite:disabled { cursor: progress; opacity: .6; }
.material-favorite--labelled { width: auto; height: auto; min-height: 44px; padding: 8px 12px; border: 1px solid #b58ddb; font-size: 16px; }
body :is(.home-catalog,.catalog-page) .catalog-tools { grid-template-columns: minmax(0, 1fr) auto 48px; }
.catalog-favorites-link { display: flex; align-items: center; justify-content: center; position: relative; width: 48px; height: 48px; border: 1px solid #b58ddb; border-radius: 10px; background: #f8f4fc; }
.catalog-favorites-link [data-favorite-count] { position: absolute; top: -8px; right: -8px; box-sizing: border-box; width: max-content; min-width: 20px; height: auto; aspect-ratio: 1; padding: 2px; border-radius: 50%; background: #f05969; color: white !important; font-size: 14.6667px; line-height: 1; text-align: center; }
.catalog-favorites-link [data-favorite-count]:not([hidden]) { display: grid; place-items: center; }
.favorites-page__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.favorites-page__header h1 { margin: 0; }
.favorites-page__hint { margin-bottom: 28px; }
.favorites-page__hint a { text-decoration: underline; }
.favorites-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.favorites-pagination button { min-height: 44px; }
.favorites-error { color: #a02f2f !important; }
.favorites-status { position: fixed; z-index: 10001; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; border: 1px solid #b58ddb; border-radius: 10px; background: #fff; box-shadow: 0 4px 20px #45346f33; }
/* Owner's 22 October reference: 24 pt / 22 pt at the established mockup scale. */
@media(min-width:681px) {
 body :is(.home-catalog,.catalog-page) .catalog-tools .search-field,
 body :is(.home-catalog,.catalog-page) .catalog-filters:not([open])>summary { font-size: 16px !important; line-height: 1.2; }
 body :is(.home-catalog,.catalog-page) .catalog-filters:not([open])>summary { justify-content: center; gap: 8px; font-weight: 700; list-style: none; }
 body :is(.home-catalog,.catalog-page) .catalog-filters:not([open])>summary::before { content: ''; display: block; flex: 0 0 auto; width: 0; height: 0; border-block: 3px solid transparent; border-left: 6px solid currentColor; }
 body .catalog-tools .search-submit { top: 50%; transform: translateY(-50%); margin: 0; }
}
@media(min-width:1081px) {
 body :is(.home-catalog,.catalog-page) .catalog-tools { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 22px; }
 body :is(.home-catalog,.catalog-page) .catalog-tools>.search-form { grid-column: 1 / span 2; grid-row: 1; }
 body :is(.home-catalog,.catalog-page) .catalog-tools>.catalog-filters:not([open]) { grid-column: 3; grid-row: 1; width: calc(100% - 62px); min-width: 0; padding-inline: 8px; }
 body :is(.home-catalog,.catalog-page) .catalog-tools>.catalog-favorites-link { grid-column: 3; grid-row: 1; justify-self: end; }
 body :is(.home-catalog,.catalog-page) .catalog-tools>.catalog-filters[open] { grid-column: 1 / -1; grid-row: 2; }
}
@media(min-width:1081px) and (max-width:1180px) {
 body .catalog-tools>.catalog-filters:not([open]) .catalog-filter-full { display: none; }
}
@media(max-width:680px) {
 body :is(.home-catalog,.catalog-page) .catalog-tools { grid-template-columns: minmax(0, 1fr) 48px; }
 .catalog-tools > .search-form { grid-column: 1 / -1; }
 body .catalog-tools > .catalog-filters:not([open]) { width: 100%; min-width: 0; }
 body .material-grid > .material-card .material-card__frame { padding-top: 44px !important; }
 body .material-card .material-card__heading { padding-inline: 0; }
 .material-card__frame > .material-favorite { left: 2px; top: 0; }
}
