/* A visible clothing directory with readable labels and full-size touch targets. */
body[data-page="catalog"] .catalog-hero { padding-top: 28px; padding-bottom: 26px; }
body[data-page="catalog"] .catalog-back { margin-bottom: 20px; font-size: 14px; }
body[data-page="catalog"] .catalog-heading { align-items: end; gap: 24px; margin-bottom: 0; }
body[data-page="catalog"] .catalog-heading .eyebrow { margin-bottom: 10px; font-size: 12px; }
body[data-page="catalog"] .catalog-heading h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.1; letter-spacing: -.045em; }
body[data-page="catalog"] .catalog-heading > p { max-width: 380px; font-size: 16px; line-height: 1.6; }
body[data-page="catalog"] .catalog-collection { padding-top: 0; }
.catalog-directory { margin-bottom: 22px; }
.catalog-directory-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.catalog-directory-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.catalog-directory-heading p { margin: 5px 0 0; color: #62675d; font-size: 15px; line-height: 1.5; }
.catalog-directory-all, .catalog-results-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 1px solid #c9cdc2; border-radius: 14px; background: #fff; color: #22251f; font: 500 15px/1.4 Onest, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.catalog-directory-all:hover, .catalog-results-reset:hover { border-color: #22251f; background: #e9ebe2; }
.catalog-directory-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalog-directory-panel { --directory-ink: #174b82; --directory-line: #bdd3ee; --directory-active: #d8e9ff; --directory-glow: rgba(33, 100, 177, .14); min-width: 0; padding: 22px; border: 1px solid var(--directory-line); border-radius: 22px; background: #eef5ff; }
.catalog-directory-panel[data-directory-gender="girl"] { --directory-ink: #863353; --directory-line: #e8c2d0; --directory-active: #f8dce8; --directory-glow: rgba(173, 62, 109, .14); background: #fff0f5; }
.catalog-directory-panel.is-selected { border-color: var(--directory-ink); box-shadow: 0 0 0 2px var(--directory-glow); }
.catalog-quick-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; min-height: 70px; padding: 13px 16px; border: 1px solid var(--directory-line); border-radius: 13px; background: #fff; color: var(--directory-ink); text-decoration: none; line-height: 1.35; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.catalog-quick-name { max-width: 100%; font-size: 17px; font-weight: 500; overflow-wrap: break-word; hyphens: manual; }
.catalog-quick-count { font-size: 13px; line-height: 1.4; color: #62675d; }
.catalog-quick-link:hover { border-color: var(--directory-ink); background: var(--directory-active); }
.catalog-quick-link[aria-current="true"] { border-color: var(--directory-ink); background: var(--directory-active); box-shadow: 0 0 0 2px var(--directory-glow); }
.catalog-quick-link[aria-current="true"] .catalog-quick-name::after { content: " ✓"; }
.catalog-quick-link[data-empty="true"] .catalog-quick-count { font-style: italic; }
.catalog-directory-gender { flex-direction: row; align-items: center; justify-content: space-between; min-height: 54px; margin-bottom: 14px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--directory-line); border-radius: 0; background: transparent; }
.catalog-directory-gender h3 { margin: 0; font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
.catalog-directory-gender .catalog-quick-count { flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--directory-line); border-radius: 999px; color: var(--directory-ink); font-size: 14px; background: #fff; }
.catalog-directory-gender:hover, .catalog-directory-gender[aria-current="true"] { background: transparent; box-shadow: none; }
.catalog-directory-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-directory-types .catalog-quick-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
.catalog-directory-all:focus-visible, .catalog-quick-link:focus-visible, .catalog-results-reset:focus-visible { outline: 3px solid #2323ff; outline-offset: 4px; }
body[data-page="catalog"] .catalog-sections { margin: 22px 0; }
body[data-page="catalog"] .catalog-sections a { min-height: 48px; font-size: 15px; }
body[data-page="catalog"] .catalog-market-note { margin: 0 0 28px; font-size: 14px; line-height: 1.6; }
.catalog-results-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 24px; margin-bottom: 20px; border-top: 1px solid #d8dbd0; }
.catalog-results-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.04em; }
#catalog-active-summary { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #62675d; }
#catalog-results { scroll-margin-top: 110px; }
#catalog-results:focus { outline: none; }
#catalog-results:focus-visible .catalog-results-heading { outline: 2px solid #2323ff; outline-offset: 4px; }
.catalog-results-reset[hidden] { display: none; }
.catalog-collection .catalog-toolbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "search filters" "count count"; gap: 12px 16px; }
.catalog-toolbar .catalog-search { grid-area: search; }
.catalog-toolbar .catalog-toolbar-count { grid-area: count; text-align: left; font-size: 14px; line-height: 1.5; white-space: normal; }
.catalog-toolbar .catalog-filter-toggle { grid-area: filters; gap: 9px; width: auto; height: auto; min-height: 52px; padding: 12px 16px; font-size: 15px; line-height: 1.4; }
.catalog-filter-label { white-space: nowrap; }
@media (max-width: 760px) {
  body[data-page="catalog"] .catalog-hero { padding-top: 22px; padding-bottom: 24px; }
  body[data-page="catalog"] .catalog-back { margin-bottom: 18px; min-height: 30px; }
  body[data-page="catalog"] .catalog-heading { display: block; }
  body[data-page="catalog"] .catalog-heading h1 { font-size: 38px; }
  body[data-page="catalog"] .catalog-heading > p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
  .catalog-directory-heading { margin-bottom: 16px; }
  .catalog-directory-heading h2 { font-size: 21px; }
  .catalog-directory-heading p { font-size: 14px; }
  .catalog-directory-all { padding: 10px 14px; font-size: 14px; }
  .catalog-directory-panels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog-directory-panel { padding: 16px; border-radius: 18px; }
  .catalog-directory-gender { margin-bottom: 12px; }
  .catalog-directory-gender h3 { font-size: 25px; }
  .catalog-directory-types { gap: 9px; }
  .catalog-quick-link { min-height: 72px; padding: 12px; }
  .catalog-directory-gender { padding: 0 0 12px; min-height: 48px; }
  .catalog-quick-name { font-size: 16px; }
  #catalog-results { scroll-margin-top: 20px; }
  .catalog-collection .catalog-toolbar { grid-template-areas: "search search" "count filters"; gap: 12px; }
  .catalog-toolbar .catalog-filter-toggle { min-height: 48px; padding: 10px 12px; font-size: 14px; }
  .catalog-toolbar .catalog-toolbar-count { align-self: center; padding: 0; }
}
@media (max-width: 360px) {
  body[data-page="catalog"] .catalog-heading h1 { font-size: 33px; }
  .catalog-directory-panel { padding: 13px; }
  .catalog-directory-gender h3 { font-size: 23px; }
  .catalog-directory-types { gap: 8px; }
  .catalog-quick-link { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-quick-link { transition: none; } }

/* School uniforms are a retail subsection, with their own context and controls. */
html[data-catalog-mode="school"] [data-regular-catalog],
html[data-catalog-mode="regular"] [data-school-catalog],
[data-regular-catalog][hidden], [data-school-catalog][hidden],
.catalog-toolbar[hidden], .catalog-results-heading[hidden], .catalog-source-note[hidden],
.category-filters[hidden], .catalog-facet[hidden] { display: none !important; }
.catalog-school-entry { display: flex; align-items: center; gap: 20px; min-height: 112px; padding: 22px 26px; margin: 0 0 26px; border: 1px solid #d3caee; border-radius: 20px; background: #f0ebfc; color: #423176; text-decoration: none; }
.catalog-school-icon { display: grid; place-items: center; width: 62px; height: 62px; flex-shrink: 0; border-radius: 17px; background: #fff; }
.catalog-school-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.catalog-school-copy strong { font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.catalog-school-copy > span { color: #625879; font-size: 15px; line-height: 1.5; }
.catalog-school-action { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 20px; flex-shrink: 0; font-size: 16px; line-height: 1.4; }
.catalog-school-entry:hover { background: #e7def9; border-color: #a28bc9; }
.catalog-school-entry:focus-visible, .catalog-school-context a:focus-visible, .catalog-school-empty a:focus-visible { outline: 3px solid #2323ff; outline-offset: 4px; }
.catalog-school-context { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 26px; }
.catalog-school-context a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid #c9cdc2; border-radius: 13px; background: #fff; color: #22251f; font-size: 15px; line-height: 1.5; text-decoration: none; }
.catalog-school-context > span { padding: 8px 12px; border-radius: 12px; background: #e9eddf; color: #4e6040; font-size: 14px; line-height: 1.5; }
.catalog-school-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: none; padding: clamp(26px, 4vw, 52px); border: 1px solid #d3caee; border-radius: 24px; background: #f0ebfc; text-align: left; }
.catalog-school-empty h2 { margin: 0; max-width: 700px; font-size: clamp(29px, 4vw, 44px); line-height: 1.15; letter-spacing: -.04em; }
.catalog-school-empty p { max-width: 640px; margin: 0; font-size: 17px; line-height: 1.7; color: #625879; }
.catalog-school-empty-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #fff; color: #53398a; }
.catalog-school-empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.catalog-school-empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid #423176; border-radius: 14px; background: #423176; color: #fff; font-size: 16px; line-height: 1.5; text-decoration: none; }
.catalog-school-empty a + a { border-color: #c2b5da; background: #fff; color: #423176; }
body[data-catalog-mode="school"] .catalog-help { display: none; }
body[data-catalog-mode="school"] .catalog-market-note { display: none; }
@media (max-width: 760px) {
  .catalog-school-entry { flex-wrap: wrap; gap: 14px; min-height: 0; padding: 20px; border-radius: 18px; margin-bottom: 24px; }
  .catalog-school-icon { width: 44px; height: 44px; border-radius: 12px; }
  .catalog-school-icon svg { width: 29px; height: 29px; }
  .catalog-school-copy { flex: 1; }
  .catalog-school-copy strong { font-size: 23px; }
  .catalog-school-copy > span { font-size: 14px; }
  .catalog-school-action { justify-content: space-between; width: 100%; margin: 0; padding: 12px 0 0; border-top: 1px solid #d3caee; font-size: 15px; }
  .catalog-school-context { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .catalog-school-context a { font-size: 14px; }
  .catalog-school-context > span { font-size: 13px; }
  .catalog-school-empty { gap: 18px; padding: 26px 22px; border-radius: 20px; }
  .catalog-school-empty p { font-size: 16px; line-height: 1.65; }
  .catalog-school-empty-actions { flex-direction: column; width: 100%; }
  .catalog-school-empty a { width: 100%; font-size: 16px; }
}
