/* Catalog Home page CSS — PR 4.4 full rewrite. All selectors are scoped under
 * .page-catalog-home except global tokens.
 */

.page-catalog-home {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-2) var(--space-4) var(--space-5);
}

/* Shared section title — same treatment as "Discover by intent", reused by the
 * search and providers sections so all headings align and match. */
.page-catalog-home__section-head {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.page-catalog-home__section-spark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  stroke: var(--color-accent);
}
.page-catalog-home__section-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.page-catalog-home__section-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent-text);
}

.page-catalog-home__search-section,
.page-catalog-home__results-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ===== Header (high-specificity to beat any inherited page-header rules) ===== */

.page-catalog-home .page-header {
  display: block;
  width: 100%;
}

.page-catalog-home .page-header .page-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}

.page-catalog-home .page-header .page-header__title-wrap {
  flex: 1 1 0%;
  min-width: 0;
}

.page-catalog-home .page-header .page-header__actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
  margin-left: auto;
}

.page-catalog-home .page-header__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.page-catalog-home .page-header__name {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent-text);
}

.page-catalog-home .page-header__subtitle {
  margin: var(--space-3) 0 0;
  max-width: 760px;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.page-catalog-home .page-header__subtitle strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== Search row (single row, mockup layout, white card) ===== */

.page-catalog-home__search-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* Neutralize the standalone .search-input styling so the field blends into
 * the card. We rebuild the look inline below. */
.page-catalog-home__search-row .search-input {
  flex: 1;
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-catalog-home__search-row .search-input__icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.page-catalog-home__search-row .search-input__field {
  flex: 1;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--color-text);
  font-size: var(--text-md);
  font-family: inherit;
}
.page-catalog-home__search-row .search-input__field::placeholder {
  color: var(--color-text-subtle);
}

/* Dual keycaps — ⌘ and K rendered as two separate small pills */
.page-catalog-home__search-row .search-input__keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.page-catalog-home__search-row .search-input__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.page-catalog-home__control-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Sort trigger — ghost-style dropdown button */
.page-catalog-home__sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease);
}
.page-catalog-home__sort-trigger:hover { background: var(--color-surface-muted); }
.page-catalog-home__sort-caret { width: 14px; height: 14px; color: var(--color-text-muted); }

/* View segmented toggle — Providers | Products */
.page-catalog-home__view-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
}

.page-catalog-home__view-toggle-btn {
  padding: 6px 14px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease),
              color var(--motion-fast) var(--motion-ease);
}
.page-catalog-home__view-toggle-btn:hover { color: var(--color-text); }
.page-catalog-home__view-toggle-btn.is-active {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

/* Save / Compare row actions */
.page-catalog-home__row-action {
  flex-shrink: 0;
}
.page-catalog-home__row-action:first-of-type {
  margin-left: auto;  /* push the Save/Compare cluster to the right */
}

.page-catalog-home__compare-count {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* ===== Discover ===== */

.page-catalog-home__discover {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-catalog-home__discover-head {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.page-catalog-home__discover-spark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  stroke: var(--color-accent);
}

.page-catalog-home__discover-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.page-catalog-home__discover-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent-text);
}

.page-catalog-home__discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* ===== Results meta ===== */

.page-catalog-home__results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.page-catalog-home__results-count {
  font-size: var(--text-md);
  color: var(--color-text-muted);
}
.page-catalog-home__results-count strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Filter bar sits on the right of the results-meta line. */
.page-catalog-home__results-meta .filter-row {
  margin-left: auto;
}

/* ===== Results list ===== */

.page-catalog-home__results {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-3);
  min-height: 200px;
}

.page-catalog-home__empty {
  padding: var(--space-7) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.page-catalog-home__empty h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.page-catalog-home__empty p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== Pagination ===== */

.page-catalog-home__pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-3);
}

/* =============================================================
 * PR 4.6 — loading skeletons, provider expansion, product cards
 * ============================================================= */

/* Skeleton provider card — same silhouette, pulsing blocks */
.provider-card--skeleton {
  pointer-events: none;
}
.provider-card--skeleton .provider-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: var(--space-4, 16px) 0;
}

/* Skeleton pulse animation (in case base .skeleton lacks one) */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-muted, #F4F5F8);
  border-radius: var(--radius-sm, 6px);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent);
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}
.skeleton--text   { height: 0.85em; margin: 2px 0; }
.skeleton--rect   { width: 100%; height: 100%; }
.skeleton--circle { border-radius: 50%; }
.skeleton-group   { display: flex; flex-direction: column; gap: 6px; }

/* Provider wrapper — holds card + expandable products panel */
.page-catalog-home__provider-wrap {
  display: flex;
  flex-direction: column;
}
.page-catalog-home__provider-wrap.is-expanded .provider-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Products panel — appears below an expanded provider card */
.page-catalog-home__products-panel {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E9EBF1);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg, 14px) var(--radius-lg, 14px);
  padding: var(--space-4, 16px) var(--space-5, 20px) var(--space-5, 20px);
  margin-top: -1px;
}
.page-catalog-home__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.page-catalog-home__products-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.page-catalog-home__products-empty {
  margin: 0;
  color: var(--color-text-muted, #6B7280);
  font-size: var(--text-sm, 0.875rem);
}

/* Product card */
.product-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #E9EBF1);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--motion-fast, 120ms) var(--motion-ease, ease),
              box-shadow var(--motion-fast, 120ms) var(--motion-ease, ease);
}
.product-card:hover {
  border-color: var(--color-accent, #3D64E5);
  box-shadow: var(--shadow-ring, 0 0 0 3px rgba(61,100,229,0.12));
}
.product-card--skeleton { gap: 8px; }
.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.product-card__name {
  margin: 0;
  font-size: var(--text-md, 1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text, #0F1729);
}
.product-card__quality {
  flex-shrink: 0;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: var(--color-success-text, #1A8B53);
  background: var(--color-success-soft, #E7F5E8);
  padding: 2px 8px;
  border-radius: var(--radius-full, 999px);
}
.product-card__desc {
  margin: 0;
  font-size: var(--text-xs, 0.8rem);
  line-height: 1.45;
  color: var(--color-text-muted, #6B7280);
}
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider, #EEF0F5);
}
.product-card__chip {
  font-size: var(--text-xs, 0.72rem);
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-full, 999px);
  background: var(--color-surface-muted, #F4F5F8);
  color: var(--color-text-muted, #6B7280);
}
.product-card__chip--cat {
  background: var(--color-accent-soft, #ECF0FF);
  color: var(--color-accent-text, #3D64E5);
  font-weight: 600;
}

/* Search-in-progress: dim + soften the current results instead of blanking
 * them to skeletons, so cards don't vanish on every keystroke. */
.page-catalog-home__results.is-searching {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 120ms ease;
}

/* =============================================================
 * PR 4.7 — search button, functional filter selects
 * ============================================================= */

/* Search button inside the search field cluster */
.page-catalog-home__search-btn {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-md, 10px);
  background: var(--color-accent, #425FE9);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  cursor: pointer;
  transition: background var(--motion-fast, 120ms) var(--motion-ease, ease);
}
.page-catalog-home__search-btn:hover { background: var(--color-accent-press, #3651D0); }

/* Filter selects — native dropdowns styled as chips */
.filter-bar__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full, 999px);
  background: var(--color-ink, #0C1124);
  color: #fff;
  font-size: var(--text-sm, 0.85rem);
  font-weight: 600;
}
.filter-bar__select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm, 0.85rem);
}
.filter-bar__select-label { color: var(--color-text-muted, #6B7280); }
.filter-bar__select {
  font: inherit;
  font-size: var(--text-sm, 0.85rem);
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--color-border, #E9EBF1);
  border-radius: var(--radius-full, 999px);
  background: var(--color-surface, #fff);
  color: var(--color-text, #0F1729);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.12s, background-color 0.12s;
}
.filter-bar__select:hover { border-color: var(--color-text-muted, #9aa1ad); }
.filter-bar__select.is-active {
  background-color: var(--color-accent-soft, #ECF0FF);
  border-color: var(--color-accent, #425FE9);
  color: var(--color-accent-text, #3D64E5);
  font-weight: 600;
}
.filter-bar__clear:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* =============================================================
 * PR 4.8 — functional sort select, products-view grid
 * ============================================================= */

.page-catalog-home__sort-select {
  font: inherit;
  font-size: var(--text-sm, 0.85rem);
  font-weight: 600;
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--color-border, #E9EBF1);
  border-radius: var(--radius-md, 10px);
  background: var(--color-surface, #fff);
  color: var(--color-text, #0F1729);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  margin-left: 6px;
}
.page-catalog-home__sort-select:hover { border-color: var(--color-text-muted, #9aa1ad); }

/* Sort relocated to the right end of the filter line — small divider to
 * separate it from the filter cluster / Clear all. */
.page-catalog-home__sort-control {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--color-divider, #EEF0F5);
}

/* Top-level products grid (products view) — roomier than the in-panel grid */
.page-catalog-home__products-grid--top {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* =============================================================
 * PR 4.9 — filter panel (checkbox groups), enriched product card
 * ============================================================= */

/* Filter row — horizontal dropdowns */
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-sm, 0.9rem);
  color: var(--color-text, #0F1729);
}
.filter-row__icon { width: 16px; height: 16px; }
.filter-row__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-full, 999px);
  background: var(--color-accent, #425FE9); color: #fff;
  font-size: var(--text-xs, 0.72rem); font-weight: 700;
}

/* Dropdown */
.filter-dd { position: relative; }
.filter-dd__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--color-border, #E9EBF1);
  border-radius: var(--radius-full, 999px);
  background: var(--color-surface, #fff);
  color: var(--color-text, #0F1729);
  font: inherit;
  font-size: var(--text-sm, 0.85rem);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s;
}
.filter-dd__trigger:hover { border-color: var(--color-text-muted, #9aa1ad); }
.filter-dd__trigger.is-active {
  background: var(--color-accent-soft, #ECF0FF);
  border-color: var(--color-accent, #425FE9);
  color: var(--color-accent-text, #3D64E5);
}
.filter-dd.is-open .filter-dd__trigger {
  border-color: var(--color-accent, #425FE9);
  box-shadow: 0 0 0 3px var(--color-accent-soft, #ECF0FF);
}
.filter-dd__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-full, 999px);
  background: var(--color-accent, #425FE9); color: #fff;
  font-size: 0.7rem; font-weight: 700;
}
.filter-dd__trigger.is-active .filter-dd__count { background: var(--color-accent, #425FE9); color: #fff; }
.filter-dd__caret { width: 14px; height: 14px; color: var(--color-text-muted, #6B7280); }
.filter-dd.is-open .filter-dd__caret { transform: rotate(180deg); }

/* Popover */
.filter-dd__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #E9EBF1);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(15,23,41,0.12));
  padding: 6px;
}
.filter-dd__list { list-style: none; margin: 0; padding: 0; }
.filter-dd__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm, 6px);
}
.filter-dd__item:hover { background: var(--color-surface-muted, #F4F5F8); }
.filter-dd__option {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; flex: 1;
  font-size: var(--text-sm, 0.85rem);
  color: var(--color-text, #0F1729);
}
.filter-dd__checkbox {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--color-accent, #425FE9); cursor: pointer;
}
.filter-dd__item-count {
  font-size: var(--text-xs, 0.72rem);
  color: var(--color-text-muted, #6B7280);
  flex-shrink: 0;
}
.filter-row__clear {
  margin-left: auto;
  background: transparent; border: 0;
  color: var(--color-accent-text, #3D64E5);
  font: inherit; font-weight: 600; font-size: var(--text-sm, 0.85rem);
  cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm, 6px);
}
.filter-row__clear:hover { background: var(--color-accent-soft, #ECF0FF); }
.filter-row__clear:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* Enriched product card */
.product-card__name--link {
  color: var(--color-accent-text, #3D64E5);
  text-decoration: none;
  cursor: pointer;
}
.product-card__name--link:hover { text-decoration: underline; }
.product-card__company {
  font-size: var(--text-xs, 0.78rem);
  font-weight: 600;
  color: var(--color-text-muted, #6B7280);
  margin-top: -2px;
}
.product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__desc.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.product-card__viewmore {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-xs, 0.8rem);
  font-weight: 600;
  color: var(--color-accent-text, #3D64E5);
  cursor: pointer;
}
.product-card__viewmore:hover { text-decoration: underline; }
.product-card__why {
  background: var(--color-accent-soft, #ECF0FF);
  border-radius: var(--radius-md, 10px);
  padding: 8px 10px;
  margin-top: 2px;
}
.product-card__why-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-text, #3D64E5);
  margin-bottom: 2px;
}
.product-card__why-text {
  margin: 0;
  font-size: var(--text-xs, 0.8rem);
  line-height: 1.45;
  color: var(--color-text, #0F1729);
  /* Cap at 15 lines; overflow is ellipsized. */
  display: -webkit-box;
  -webkit-line-clamp: 15;
  line-clamp: 15;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.filter-dd__empty {
  padding: 10px 8px;
  font-size: var(--text-sm, 0.85rem);
  color: var(--color-text-muted, #6B7280);
  text-align: center;
}

/* Saved view — unsave control on a saved product card. */
.product-card__foot {
  margin-top: var(--space-3, 12px);
  padding-top: var(--space-3, 12px);
  border-top: 1px solid var(--color-divider, #EEF0F5);
  display: flex;
  gap: var(--space-2, 8px);
}
.product-card__unsave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  background: var(--color-accent-soft, #ECF0FF);
  color: var(--color-accent-text, #4338CA);
  border: 1px solid var(--color-accent, #4F46E5);
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition: background 120ms ease;
}
.product-card__unsave:hover { background: var(--color-surface, #FFFFFF); }
.product-card__unsave:disabled { opacity: 0.6; cursor: default; }
.product-card__unsave-icon { width: 15px; height: 15px; }

.product-card__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  background: transparent;
  color: var(--color-text-muted, #5B6172);
  border: 1px solid var(--color-border, #E3E6EE);
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.product-card__compare:hover {
  background: var(--color-surface-muted, #F7F8FB);
  color: var(--color-text, #1A1D26);
}
.product-card__compare.is-active {
  background: var(--color-accent-soft, #ECF0FF);
  color: var(--color-accent-text, #4338CA);
  border-color: var(--color-accent, #4F46E5);
}
.product-card__compare:disabled { opacity: 0.6; cursor: default; }
.product-card__compare-icon { width: 15px; height: 15px; }

/* ===== Event mode: request-meeting button in the card's action column,
   beneath Team (bottom-right corner of the card) ===== */
/* Stacked: priority on its own row, the button beneath it, both hugging the
   right edge of the action column. Side by side the two controls set the
   card's minimum width; stacked, the bar is only as wide as the button. */
.page-catalog-home__reqmeet {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.page-catalog-home__reqmeet .btn { white-space: nowrap; }

/* ---------- meeting-request priority (event mode) ---------- */
.page-catalog-home__reqmeet-pick {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-right: 0;
}
.page-catalog-home__reqmeet-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text-muted, #667085);
}
.page-catalog-home__reqmeet-priority {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #667085);
  margin-right: 10px;
}
/* Unrequest is a step back, not a call to action — it should read quieter than
   Request meeting and only warm up on hover. */
.page-catalog-home__reqmeet-undo:hover {
  border-color: var(--color-danger-border, #fda29b);
  color: var(--color-danger, #b42318);
}
@media (max-width: 720px) {
  .page-catalog-home__reqmeet-pick { margin: 0 0 8px; }
}
