@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --text-caption: 12px;
  --text-small: 14px;
  --text-body: 16px;
  --text-product: 17px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: var(--text-body);
}

.search input {
  font-size: var(--text-body);
}
.saved-toggle,
.community-link,
.menu-panel a,
.category-link,
.page-heading p,
.store-name,
.store-band-heading h2,
.filters legend,
.discount-option,
.price-form input,
.trust-note strong,
.vip-link,
.feed-modes button,
.sort-label,
.sort-label select,
.filter-toggle,
.pagination,
.footer-brand,
.detail-store,
.detail-reference,
.detail-saving,
.history-table,
.history-note,
.primary-button,
.connection-banner,
.empty-state p,
.toast {
  font-size: var(--text-small);
}

.saved-toggle b,
.eyebrow,
.feed-info,
.verified-label,
.store-count,
.text-button,
.price-form label,
.range-dash,
.trust-note p,
#results-count,
.filter-chip,
.catalog-footer,
.footer,
.detail-verification,
.detail-history-heading span {
  font-size: var(--text-caption);
}
.filter-heading h2 {
  font-size: var(--text-body);
}
.trust-note p {
  line-height: 1.65;
}
.price-form input {
  height: 40px;
}
.sort-label select {
  min-height: 40px;
  max-width: 195px;
}
.catalog-controls,
.catalog-toolbar {
  min-width: 0;
}
.catalog-toolbar > div {
  min-width: 0;
}
.feed-modes {
  gap: 20px;
  min-width: 0;
}
.feed-modes button {
  min-height: 48px;
}
.image-fallback {
  font-size: var(--text-caption);
  padding: 8px;
}

.card-meta,
.card-category,
.card-age,
.home-merchant-grid .card-age {
  font-size: var(--text-caption);
  line-height: 1.5;
}
.card-meta {
  min-height: 30px;
}
.card-age svg,
.home-merchant-grid .card-age svg {
  width: 14px;
  height: 14px;
}
.card-title {
  font-size: var(--text-product);
  line-height: 1.4;
  height: 72px;
  min-height: 72px;
}
.price-row {
  min-height: 38px;
}
.price-row strong {
  font-size: 28px;
}
.price-row.wide-price strong {
  font-size: 24px;
}
.discount-badge {
  font-size: 13px;
  padding: 4px 6px;
}
.card-reference,
.card-saving {
  font-size: var(--text-small);
  line-height: 1.5;
}
.card-reference {
  min-height: 22px;
}
.card-bottom {
  font-size: 13px;
  min-height: 46px;
  gap: 8px;
  padding: 10px 0;
}
.card-bottom svg {
  width: 16px;
  height: 16px;
}
.store-pill {
  font-size: var(--text-caption);
}
.store-pill .store-letter {
  width: 20px;
  height: 20px;
}
.detail-copy h2 {
  font-size: 25px;
}
.detail-history-heading h3 {
  font-size: 18px;
}
.detail-prices strong {
  font-size: 36px;
}
.detail-discount {
  font-size: var(--text-small);
}
.detail-history-heading {
  flex-wrap: wrap;
}

.hero-intro {
  font-size: var(--text-body);
}
.hero-shortcut strong {
  font-size: 15px;
  line-height: 1.4;
  min-width: 0;
}
.hero-shortcut {
  min-height: 44px;
}
.home-store-sidebar h2 {
  font-size: 24px;
}
.home-store-nav-link,
.home-store-nav-link[data-home-store="all"] {
  font-size: 15px;
}
.home-more-stores summary {
  font-size: var(--text-small);
}
.merchant-heading {
  flex-wrap: wrap;
  row-gap: 8px;
}
.merchant-heading h2 {
  font-size: 34px;
}
.merchant-heading p {
  font-size: var(--text-body);
}
.merchant-controls {
  gap: 14px;
  margin-left: auto;
  max-width: 100%;
}
.home-feed-status {
  font-size: 13px;
  max-width: 230px;
  line-height: 1.5;
}
.home-sort-label select {
  font-size: var(--text-small);
  width: 185px;
  height: 42px;
}
.home-view-store {
  font-size: var(--text-small);
}
.home-merchant-grid .card-meta {
  min-height: 34px;
}
.home-merchant-grid .card-title {
  font-size: var(--text-product);
  line-height: 1.4;
  height: 49px;
  min-height: 49px;
}
.home-merchant-grid .price-row {
  min-height: 38px;
}
.home-merchant-grid .price-row strong {
  font-size: 32px;
}
.home-merchant-grid .price-row.wide-price strong {
  font-size: 26px;
}
.home-merchant-grid .discount-badge {
  font-size: 14px;
  padding: 4px 6px;
}
.home-merchant-grid .card-reference,
.home-merchant-grid .card-saving {
  font-size: 15px;
}
.home-merchant-grid .card-bottom {
  font-size: 14px;
  min-height: 46px;
  gap: 8px;
}
.home-merchant-grid .card-bottom svg {
  width: 16px;
  height: 16px;
}
.home-merchant-grid .store-pill {
  font-size: var(--text-caption);
}
.home-section-heading h2 {
  font-size: 25px;
}
.home-section-heading > a,
.other-stores-heading p {
  font-size: var(--text-small);
}
.other-stores-heading {
  flex-wrap: wrap;
  gap: 5px 15px;
}
.other-offer-meta {
  font-size: var(--text-small);
  flex-wrap: wrap;
  row-gap: 4px;
}
.other-offer-meta .card-age {
  font-size: var(--text-caption);
}
.other-offer h3 {
  font-size: var(--text-body);
  line-height: 1.4;
  height: 45px;
  max-height: none;
}
.other-offer .price-row strong {
  font-size: 26px;
}
.other-offer .price-row.wide-price strong {
  font-size: 23px;
}
.other-offer .discount-badge {
  font-size: var(--text-caption);
}
.other-offer .card-reference,
.other-offer-bottom .card-saving,
.other-offer-bottom a,
.other-offer-image .image-fallback {
  font-size: var(--text-caption);
}
.other-offer .card-reference {
  min-height: 20px;
}
.other-offer-bottom {
  row-gap: 3px;
}
.home-store strong,
.category-directory a {
  font-size: var(--text-body);
}
.home-store small,
.category-directory a small {
  font-size: 13px;
}
.category-directory h2 {
  font-size: 23px;
}
.home-footer nav a,
.home-footer-about p {
  font-size: var(--text-small);
}
.home-footer nav h2,
.home-footer-about .home-disclaimer,
.home-footer-bottom {
  font-size: var(--text-caption);
}
.home-loading,
.home-empty p {
  font-size: var(--text-small);
}
.home-empty h3 {
  font-size: 20px;
}

@media (max-width: 1390px) {
  .merchant-heading h2 {
    font-size: 32px;
  }
  .home-merchant-grid .price-row strong {
    font-size: 30px;
  }
  .home-merchant-grid .price-row.wide-price strong {
    font-size: 25px;
  }
  .merchant-controls {
    gap: 12px;
  }
}

@media (max-width: 1100px) {
  .hero-shortcut strong {
    font-size: var(--text-small);
  }
  .home-store-sidebar h2 {
    font-size: 22px;
  }
  .home-store-nav-link,
  .home-store-nav-link[data-home-store="all"] {
    font-size: var(--text-small);
  }
  .merchant-controls {
    width: 100%;
    margin: 0 0 14px;
    flex-direction: row;
  }
}

@media (max-width: 800px) {
  .hero-intro {
    font-size: 15px;
  }
  .hero-shortcuts {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .home-store-sidebar h2 {
    font-size: 22px;
  }
  .home-store-nav-link {
    min-height: 44px;
  }
  .home-more-stores summary {
    font-size: var(--text-small);
    min-height: 44px;
  }
  .merchant-heading h2 {
    font-size: 30px;
  }
  .merchant-heading p {
    max-width: none;
  }
  .home-feed-status {
    max-width: 230px;
  }
  .merchant-heading {
    min-height: 0;
  }
  .other-offer h3 {
    height: 45px;
    max-height: none;
  }
  .home-section-heading h2 {
    font-size: 23px;
  }
}

@media (max-width: 640px) {
  .brand-line {
    font-size: 12px;
  }
  .search {
    height: 44px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading p {
    font-size: var(--text-small);
  }
  .feed-info {
    max-width: 115px;
  }
  .store-name,
  .store-band-heading h2 {
    font-size: var(--text-small);
  }
  .feed-modes {
    gap: 12px;
    overflow-x: auto;
  }
  .feed-modes button {
    font-size: 13px;
    flex-shrink: 0;
  }
  .sort-label select {
    font-size: 13px;
    max-width: 145px;
  }
  #results-count {
    line-height: 1.5;
  }
  .card-meta {
    min-height: 36px;
  }
  .card-title,
  .home-merchant-grid .card-title {
    font-size: 15px;
    line-height: 1.45;
    height: 66px;
    min-height: 66px;
  }
  .price-row,
  .home-merchant-grid .price-row {
    min-height: 62px;
    gap: 6px;
    align-content: center;
  }
  .price-row strong,
  .home-merchant-grid .price-row strong {
    font-size: 25px;
  }
  .price-row.wide-price strong,
  .home-merchant-grid .price-row.wide-price strong {
    font-size: 21px;
  }
  .discount-badge,
  .home-merchant-grid .discount-badge {
    font-size: var(--text-caption);
    padding: 3px 5px;
  }
  .card-reference,
  .card-saving,
  .home-merchant-grid .card-reference,
  .home-merchant-grid .card-saving {
    font-size: 13px;
  }
  .card-bottom,
  .home-merchant-grid .card-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    font-size: 13px;
    min-height: 70px;
    padding: 6px 0;
  }
  .card-bottom a,
  .home-merchant-grid .card-bottom a {
    min-height: 28px;
    gap: 5px;
  }
  .card-bottom svg,
  .home-merchant-grid .card-bottom svg {
    width: 15px;
    height: 15px;
  }
  .store-pill,
  .home-merchant-grid .store-pill {
    font-size: var(--text-caption);
  }
  .home-merchant-grid .store-pill .store-letter {
    width: 20px;
    height: 20px;
  }
  .detail-copy h2 {
    font-size: 23px;
  }
  .detail-prices strong {
    font-size: 32px;
  }
  .hero-intro {
    font-size: var(--text-small);
  }
  .hero-shortcut {
    gap: 5px;
    padding: 5px 4px;
    min-height: 44px;
  }
  .hero-shortcut strong {
    font-size: 12px;
  }
  .shortcut-icon svg {
    width: 16px;
    height: 16px;
  }
  .merchant-heading h2 {
    font-size: 28px;
  }
  .merchant-heading p {
    font-size: var(--text-small);
  }
  .merchant-controls {
    margin: 2px 0 14px;
    gap: 10px;
  }
  .home-feed-status {
    font-size: var(--text-caption);
    max-width: 155px;
  }
  .home-sort-label select {
    width: 153px;
    font-size: 13px;
    height: 40px;
  }
  .home-section-heading {
    flex-wrap: wrap;
    align-items: center;
  }
  .home-section-heading h2 {
    font-size: 22px;
  }
  .home-section-heading > a {
    font-size: 13px;
    max-width: none;
  }
  .other-stores-heading p {
    font-size: 13px;
  }
  .home-store strong,
  .category-directory a {
    font-size: var(--text-small);
  }
  .home-store small {
    font-size: var(--text-caption);
  }
  .category-directory h2 {
    font-size: 22px;
  }
  .home-footer nav a {
    font-size: var(--text-small);
  }
}
