/* products.css — Product Hub page only: intro section and the detail modal.
   The card grid itself is shared (components.css); this just makes cards
   clickable, scoped to this page since only products.html loads this file. */

.hub-intro { padding-top: var(--space-6); }
.hub-grid-wrap .card-grid { margin-top: var(--space-5); }
.product-card { cursor: pointer; }

/* Search — sits above the category chips because it's the broader
   filter: people who know what they want type, people who are browsing
   use the chips. */
.hub-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--space-5);
  max-width: 420px;
}
.hub-search .ph {
  position: absolute;
  left: var(--space-3);
  color: var(--text-tertiary);
  font-size: 18px;
  pointer-events: none;
}
.hub-search input {
  width: 100%;
  padding-left: calc(var(--space-3) + 26px);
}
/* Safari renders a proprietary clear button on type="search" that sits
   awkwardly against our own padding. */
.hub-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Category filter bar */
.category-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); }

/* Detail modal — base .modal-backdrop/.modal/.modal-close now live in
   components.css (shared); these are the extras specific to the product
   detail view only. */
.modal-thumb { aspect-ratio: 3 / 4; max-height: 340px; border-radius: 12px; background-color: var(--surface-2); background-size: contain; background-repeat: no-repeat; background-position: center; margin-bottom: var(--space-3); }
.modal-badges { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.modal h3 { font-size: 24px; margin-bottom: var(--space-2); }
.modal-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: var(--space-4); white-space: pre-line; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.modal-price { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
