/* Hallmark · shape: page · genre: editorial · theme: custom · job: discover · copy: verbatim · idea: "Comprehensive coupon hub, alphabet directory, verified deals, and fast client-side minisearch" · vibe: "crisp editorial white, midnight navy ink, tabular numbers, tactile hairlines" · paper: oklch(99.4% 0.002 255) · accent: oklch(47% 0.195 258) · display: Literata · body: Be Vietnam Pro · hero: search directory · nav: inherited from portal layout · footer: inherited from portal layout · imagery: brand-logos · signature: client-side inverted index filter with zero-wait suggestion dropdown · axes: light/editorial-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */

/* -----------------------------------------------------------------------------
   Page Wrapper & Container Hygiene
   ----------------------------------------------------------------------------- */
html {
  box-sizing: border-box;
  overflow-x: clip;
}

body {
  box-sizing: border-box;
  overflow-x: clip;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.n-tab:focus-visible,
.n-btn:focus-visible,
.c-brand-card:focus-visible,
.c-cat-card:focus-visible,
.c-alpha-chip:focus-visible,
.c-faq-summary:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}

a:active,
button:active {
  color: var(--n-ink);
}

button:disabled,
input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.c-hub-page,
.c-cat-page {
  box-sizing: border-box;
  overflow-x: clip;
  width: 100%;
}

.c-hub-page *,
.c-cat-page * {
  box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
   Hub Navigation Tabs & Sub-headers
   ----------------------------------------------------------------------------- */
.c-hub-tabs {
  margin: 0 0 24px 0;
  border-bottom: 1px solid var(--n-rule);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 24px;
}

.c-hub-tabs::-webkit-scrollbar {
  display: none;
}

.c-hub-tabs .n-tab {
  white-space: nowrap;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--n-muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.c-hub-tabs .n-tab:hover {
  color: var(--n-ink);
}

.c-hub-tabs .n-tab.is-active,
.c-hub-tabs .n-tab[aria-current="page"] {
  color: var(--n-accent);
  border-bottom-color: var(--n-accent);
  font-weight: 600;
}

.c-hub-tabs .n-tab:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: -2px;
}

/* -----------------------------------------------------------------------------
   Hero Head & Meta Information
   ----------------------------------------------------------------------------- */
.c-hub-head,
.c-cat-head {
  margin-bottom: 32px;
}

.c-hub-h1,
.c-cat-h1 {
  font-family: var(--n-font-serif);
  color: var(--n-ink);
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 8px 0 16px 0;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.c-hub-lead,
.c-cat-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--n-ink-2);
  margin: 0 0 16px 0;
  max-width: 840px;
}

.c-hub-meta,
.c-cat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--n-muted);
  margin-bottom: 20px;
}

.c-hub-meta span,
.c-cat-meta span {
  display: inline-flex;
  align-items: center;
}

.c-hub-disclosure {
  margin-bottom: 28px;
}

/* -----------------------------------------------------------------------------
   Interactive Search Hub & Dropdown Suggestions
   ----------------------------------------------------------------------------- */
.c-hub-search-box {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 0 32px 0;
}

.c-hub-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.c-hub-search-icon {
  position: absolute;
  left: 16px;
  color: var(--n-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-hub-search-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 96px 0 42px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--n-ink);
  background-color: var(--n-paper);
  border: 1px solid var(--n-rule-input);
  border-radius: var(--n-r-md);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.c-hub-search-input:focus {
  border-color: var(--n-accent);
  box-shadow: 0 0 0 3px var(--n-accent-wash);
  outline: none;
}

.c-hub-search-input:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 1px;
}

.c-hub-search-kbd {
  position: absolute;
  right: 16px;
  background-color: var(--n-paper-2);
  border: 1px solid var(--n-rule);
  color: var(--n-muted);
  font-size: 0.75rem;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.c-hub-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--n-paper);
  border: 1px solid var(--n-rule);
  border-radius: 12px;
  z-index: 50;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.c-hub-suggest-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.c-hub-suggest-item {
  margin: 0;
  padding: 0;
}

.c-suggest-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
  text-decoration: none;
  color: var(--n-ink);
  transition: background-color 120ms ease;
}

.c-hub-suggest-item.is-active .c-suggest-link,
.c-suggest-link:hover {
  background-color: var(--n-paper-2);
}

.c-suggest-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.c-suggest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.c-suggest-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--n-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-suggest-sub {
  font-size: 0.8125rem;
  color: var(--n-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-suggest-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  padding: 4px 8px;
}

.c-suggest-extra {
  font-size: 0.8125rem;
  color: var(--n-muted);
  flex-shrink: 0;
  margin-left: 12px;
}

.c-suggest-disc {
  font-weight: 600;
  color: var(--n-up);
}

.c-hub-suggest-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--n-muted);
}

.c-hub-suggest-footer {
  border-top: 1px solid var(--n-rule-soft);
  padding: 4px 8px;
  background-color: var(--n-paper-2);
}

.c-suggest-all-link {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--n-accent);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  text-align: center;
}

.c-suggest-all-link:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Section Headings & Layout Grid
   ----------------------------------------------------------------------------- */
.c-sec-head {
  margin-bottom: 20px;
}

.c-sec-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--n-ink);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.c-sec-sub {
  font-size: 0.9375rem;
  color: var(--n-muted);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Top Stores / Brand Grid (.c-brand-grid)
   ----------------------------------------------------------------------------- */
.c-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.c-brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
  background-color: var(--n-paper);
  text-decoration: none;
  color: var(--n-ink);
  min-height: 140px;
  min-width: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.c-brand-card:hover {
  border-color: var(--n-ink-2);
}

.c-brand-card:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}

.c-brand-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.c-brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--n-paper-2);
  border: 1px solid var(--n-rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.c-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.c-brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--n-accent-wash);
  color: var(--n-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.c-brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.c-brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--n-ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-brand-domain {
  font-size: 0.75rem;
  color: var(--n-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-brand-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--n-rule-soft);
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.8125rem;
  min-width: 0;
}

.c-brand-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--n-ink-2);
  font-weight: 500;
}

.c-brand-trust svg {
  color: var(--n-up);
}

.c-brand-offers {
  font-size: 12.5px;
  line-height: 20px;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Hot Deals & Top Coupons List (.c-deals-list)
   ----------------------------------------------------------------------------- */
.c-deals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.c-deal-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
  background-color: var(--n-paper);
  min-width: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.c-deal-row:hover {
  border-color: var(--n-ink-2);
}

.c-deal-badge-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-right: 1px dashed var(--n-rule);
  padding-right: 12px;
}

.c-deal-disc-pill {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--n-accent);
  line-height: 1.2;
}

.c-deal-tag {
  font-size: 0.6875rem;
  padding: 4px 8px;
}

.c-deal-main-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.c-deal-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.c-deal-brand-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--n-ink);
}

.c-deal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--n-ink);
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.c-deal-conditions {
  font-size: 0.8125rem;
  color: var(--n-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.c-deal-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.c-deal-code-box {
  display: inline-flex;
  align-items: center;
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 8px;
  background-color: var(--n-paper-2);
  border: 1px dashed var(--n-rule);
  border-radius: 6px;
  color: var(--n-ink);
}

.c-deal-btn {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--n-r-sm);
  width: 100%;
}

/* -----------------------------------------------------------------------------
   Categories Grid (.c-cat-grid)
   ----------------------------------------------------------------------------- */
.c-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.c-cat-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
  background-color: var(--n-paper);
  text-decoration: none;
  color: var(--n-ink);
  min-height: 130px;
  min-width: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.c-cat-card:hover {
  border-color: var(--n-accent);
}

.c-cat-card:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}

.c-cat-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.c-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--n-accent-wash);
  color: var(--n-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-cat-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--n-ink);
  line-height: 1.3;
}

.c-cat-desc {
  font-size: 0.8125rem;
  color: var(--n-muted);
  margin: 0 0 12px 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.c-cat-count {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--n-ink-2);
}

/* -----------------------------------------------------------------------------
   Alphabet Directory A-Z (.c-alpha-section)
   ----------------------------------------------------------------------------- */
.c-alpha-section {
  margin-bottom: 40px;
}

.c-alpha-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.c-alpha-chip {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--n-rule);
  background-color: var(--n-paper);
  color: var(--n-ink);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.c-alpha-chip:hover {
  background-color: var(--n-paper-2);
  border-color: var(--n-ink-2);
}

.c-alpha-chip.is-active,
.c-alpha-chip[aria-pressed="true"] {
  background-color: var(--n-ink);
  border-color: var(--n-ink);
  color: var(--n-paper);
}

.c-alpha-chip:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}

.c-alpha-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.c-alpha-group {
  border: 1px solid var(--n-rule-soft);
  border-radius: 10px;
  padding: 16px;
  background-color: var(--n-paper);
}

.c-alpha-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--n-accent);
  border-bottom: 2px solid var(--n-accent-wash);
  padding-bottom: 8px;
  margin: 0 0 12px 0;
}

.c-alpha-store-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-alpha-store-item {
  margin: 0;
  padding: 0;
}

.c-alpha-store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--n-ink);
  border-radius: 6px;
  transition: background-color 120ms ease;
}

.c-alpha-store-link:hover {
  background-color: var(--n-paper-2);
}

.c-alpha-store-name {
  font-size: 0.9375rem;
  font-weight: 500;
}

.c-alpha-store-count {
  font-size: 0.75rem;
  color: var(--n-muted);
}

/* -----------------------------------------------------------------------------
   Shopping Tips & Mega Sale Calendar Prose
   ----------------------------------------------------------------------------- */
.c-tips-card {
  padding: 24px;
  border: 1px solid var(--n-rule);
  border-radius: 14px;
  background-color: var(--n-paper);
  margin-bottom: 36px;
}

.c-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.c-tip-item {
  border: 1px solid var(--n-rule-soft);
  border-radius: var(--n-r-card);
  padding: 16px 18px;
  background-color: var(--n-paper-2);
}

.c-tip-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--n-ink);
  margin: 0 0 8px 0;
}

.c-tip-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--n-ink-2);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Category Page Specifics (.c-cat-page)
   ----------------------------------------------------------------------------- */
.c-cat-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.c-cat-stat-box {
  padding: 16px;
  background-color: var(--n-paper-2);
  border: 1px solid var(--n-rule-soft);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-cat-stat-label {
  font-size: 0.8125rem;
  color: var(--n-muted);
}

.c-cat-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--n-ink);
  line-height: 1.2;
}

.c-cat-table-wrap {
  margin-bottom: 36px;
}

/* -----------------------------------------------------------------------------
   FAQ Block Styles (WCAG Accessible Details)
   ----------------------------------------------------------------------------- */
.c-faq-section {
  margin-bottom: 40px;
}

.c-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-faq-item {
  border: 1px solid var(--n-rule);
  border-radius: 10px;
  background-color: var(--n-paper);
  overflow: hidden;
  transition: border-color 150ms ease;
}

.c-faq-item[open] {
  border-color: var(--n-rule-input);
}

.c-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--n-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.c-faq-summary::-webkit-details-marker {
  display: none;
}

.c-faq-summary:hover {
  background-color: var(--n-paper-2);
}

.c-faq-summary:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: -2px;
}

.c-faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--n-muted);
  transition: transform 150ms ease;
}

.c-faq-item[open] .c-faq-icon {
  transform: rotate(180deg);
}

.c-faq-body {
  padding: 0 16px 16px 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--n-ink-2);
  border-top: 1px solid var(--n-rule-soft);
  padding-top: 12px;
  margin-top: 4px;
}

.c-faq-body p {
  margin: 0 0 8px 0;
}

.c-faq-body p:last-child {
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Responsive Breakpoints & Fallbacks
   ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .c-brand-grid,
  .c-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .c-alpha-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .c-brand-grid,
  .c-cat-grid,
  .c-cat-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-deal-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .c-deal-action-col {
    grid-column: span 2;
    align-items: stretch;
    border-top: 1px dashed var(--n-rule-soft);
    padding-top: 12px;
    margin-top: 4px;
  }

  .c-tips-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .c-hub-h1,
  .c-cat-h1 {
    font-size: 1.75rem;
  }

  .c-brand-grid,
  .c-cat-grid {
    grid-template-columns: 1fr;
  }

  .c-deal-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .c-deal-badge-col {
    border-right: none;
    border-bottom: 1px dashed var(--n-rule);
    padding-right: 0;
    padding-bottom: 8px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .c-deal-action-col {
    grid-column: 1;
  }

  .c-alpha-groups {
    grid-template-columns: 1fr;
  }

  .c-cat-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -----------------------------------------------------------------------------
   Category Controls (Filter, Sort, Pagination)
   ----------------------------------------------------------------------------- */
.c-cat-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.c-cat-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.c-cat-filter-chips .n-chip {
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--n-paper, #ffffff);
  border: 1px solid var(--n-rule, #e2e8f0);
  color: var(--n-ink, #131c45);
  transition: all 0.2s ease;
}

.c-cat-filter-chips .n-chip:hover {
  border-color: var(--n-ink, #131c45);
}

.c-cat-filter-chips .n-chip.is-active {
  background: var(--n-ink, #131c45);
  color: #ffffff;
  border-color: var(--n-ink, #131c45);
}

.c-cat-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-cat-sort-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--n-muted, #64748b);
  white-space: nowrap;
}

.c-cat-sort-select {
  min-height: 44px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--n-ink, #131c45);
  background: var(--n-paper, #ffffff);
  border: 1px solid var(--n-rule, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
}

.c-cat-sort-select:focus-visible {
  outline: 2px solid var(--n-accent, #1d4ed8);
  outline-offset: 2px;
}

.c-cat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
}

.c-cat-pagination .n-page-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--n-rule, #e2e8f0);
  background: var(--n-paper, #ffffff);
  color: var(--n-ink, #131c45);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.c-cat-pagination .n-page-btn:hover:not(:disabled) {
  border-color: var(--n-ink, #131c45);
}

.c-cat-pagination .n-page-btn.is-active {
  background: var(--n-ink, #131c45);
  color: #ffffff;
  border-color: var(--n-ink, #131c45);
  font-weight: 600;
}

.c-cat-pagination .n-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.c-cat-offer-row.is-hidden {
  display: none !important;
}

/* -----------------------------------------------------------------------------
   Reduced Motion Accessibility
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .c-hub-page *,
  .c-cat-page * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------------------------------------------------------------------------
   Hub v2: nhịp khoảng cách đồng nhất, logo, A–Z, danh sách theo chữ cái
   --------------------------------------------------------------------------- */
.c-band { padding-block: 32px; }
.c-band + .c-band { border-top: 1px solid var(--n-rule); }
.c-hub-head { padding-bottom: 8px; }
.c-sec-head { margin-bottom: 16px; }
.c-brand-logo-wrap { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--n-rule); border-radius: 8px; background: var(--n-paper); overflow: hidden; }
.c-brand-logo { width: 32px; height: 32px; object-fit: contain; }
.c-brand-logo-wrap--sm { width: 32px; height: 32px; flex-basis: 32px; }
.c-brand-logo-wrap--sm .c-brand-logo { width: 24px; height: 24px; }
.c-brand-avatar { font-weight: 600; color: var(--n-ink); }
.c-brand-avatar[hidden], .c-brand-logo[hidden] { display: none !important; }
.c-brand-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-brand-max { font-size: var(--n-fs-small); color: var(--n-muted); font-variant-numeric: tabular-nums; }
.c-alpha-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
a.c-alpha-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 4px; border: 1px solid var(--n-rule); border-radius: 8px; color: var(--n-ink); text-decoration: none; font-weight: 600; }
a.c-alpha-chip small { font-weight: 400; font-size: 12px; color: var(--n-muted); font-variant-numeric: tabular-nums; }
a.c-alpha-chip:hover, a.c-alpha-chip.is-active { border-color: var(--n-ink); background: var(--n-paper-2); }
.c-letter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.c-letter-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--n-rule); color: var(--n-ink); text-decoration: none; }
.c-letter-row:hover .c-letter-name { text-decoration: underline; }
.c-letter-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; font-weight: 500; }
.c-letter-domain { font-size: 12px; font-weight: 400; color: var(--n-muted); }
.c-letter-count { font-size: var(--n-fs-small); color: var(--n-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-letter-count.has-offers { color: var(--n-ink); font-weight: 600; }
.c-hub-page > nav.c-alpha-chips { margin-block: 8px 0; }
a.c-alpha-chip.is-active { color: var(--n-ink); border-width: 2px; }
.c-page-numbers { display: flex; flex-wrap: wrap; gap: 4px; }
.c-page-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; color: var(--n-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.c-page-num.is-active { background: var(--n-ink); color: var(--n-paper); }
.c-hub-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) {
  .c-alpha-chips { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
  a.c-alpha-chip { min-height: 44px; }
  a.c-alpha-chip small { display: none; }
}
.c-deal-header-line { display: flex; align-items: center; gap: 8px; }
.c-deal-header-line .c-deal-brand-label { color: var(--n-ink); font-weight: 600; text-decoration: none; }
.c-deal-header-line .c-deal-brand-label:hover { text-decoration: underline; }
.c-deal-badge-col { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.c-deal-disc-pill { text-align: center; }
.c-deal-row { align-items: center; }
.c-deal-badge-col { align-self: stretch; }

/* Khớp thiết kế: sec-head mb 24 */
.c-hub-page .n-sec-head, .n-coupon-brand .n-sec-head { margin-bottom: 24px; }
