/* Scoped to the brand directory; manufacturer and product images keep their colours. */
.f4m-brands { --f4m-accent: #ffd02e; color: #24282d; padding: 0 0 28px; }
.f4m-brands, .f4m-brands * { box-sizing: border-box; }
.f4m-brands ul { list-style: none; padding: 0; margin: 0; }
.f4m-brands li { margin: 0; padding: 0; }
.f4m-brands [hidden] { display: none !important; }
.f4m-brands a { color: inherit; text-decoration: none; }
.f4m-brands a:focus-visible, .f4m-brands button:focus-visible, .f4m-brands input:focus-visible { outline: 3px solid #b38b00; outline-offset: 3px; }
.f4m-brands-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.f4m-brands-intro { font-size: 14px; line-height: 1.5; margin: 0; color: #646b74; }
.f4m-brands-count { display: inline-block; margin-left: 12px; font-size: 12px; color: #858c95; }
.f4m-brands-search { position: relative; flex: 0 1 300px; margin: 0; }
.f4m-brands-search input { display: block; width: 100%; height: 44px; border: 1px solid #dce0e5; border-radius: 8px; padding: 10px 46px 10px 14px; background: #fff; color: #24282d; font: inherit; font-size: 16px; }
.f4m-brands-search input:focus { border-color: #b38b00; }
.f4m-brands-search button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: transparent; color: #555f6b; cursor: pointer; border-radius: 8px; }
.f4m-brands-search svg { fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: middle; }
.f4m-brands-alphabet { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid #eceef1; }
.f4m-brands-alphabet a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 36px; padding: 6px 9px; border-radius: 6px; font-size: 13px; line-height: 1.2; color: #626b75; }
.f4m-brands-alphabet a:hover { background: #f3f4f6; }
.f4m-brands-alphabet a[aria-current="true"] { background: var(--f4m-accent); color: #24282d; font-weight: 600; }
.f4m-brands-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.f4m-brands-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 112px; padding: 16px 12px; border: 1px solid #e6e8ec; border-radius: 9px; background: #fff; text-align: center; transition: border-color .16s, box-shadow .16s; }
.f4m-brands-card:hover { border-color: #d4aa16; box-shadow: 0 3px 12px rgba(25, 30, 40, .06); }
.f4m-brands-card img { display: block; width: 100%; max-width: 140px; height: 48px; object-fit: contain; }
.f4m-brands-logo-caption { font-size: 12px; line-height: 1.2; color: #6d747d; overflow-wrap: anywhere; }
.f4m-brands-wordmark { font-size: 18px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.f4m-brands-message { margin: 24px 0; font-size: 15px; color: #656d77; }
.f4m-brands-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.f4m-brands-back { display: inline-block; margin: 0 0 14px; font-size: 14px; color: #69717b !important; }
.f4m-brands-back:hover { text-decoration: underline; }
.f4m-brands-product-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.f4m-brands-product-heading h2 { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.3; }
.f4m-brands-muted { font-size: 13px; color: #737b86; }
.f4m-brands-profile { padding: 16px 18px; margin: -4px 0 20px; border: 1px solid #e6e8ec; border-left: 3px solid var(--f4m-accent); border-radius: 8px; background: #fafbfc; }
.f4m-brands-profile-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; line-height: 1.5; color: #555f6b; }
.f4m-brands-profile-label { color: #7a828c; }
.f4m-brands-profile p { max-width: 850px; margin: 9px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.f4m-brands-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.f4m-brands-products li { min-width: 0; }
.f4m-brands-product { display: flex; flex-direction: column; height: 100%; padding: 14px; border: 1px solid #e6e8ec; border-radius: 9px; background: #fff; }
.f4m-brands-product:hover { border-color: #d4aa16; }
.f4m-brands-product-image { display: flex; justify-content: center; align-items: center; height: 165px; margin-bottom: 14px; }
.f4m-brands-product-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.f4m-brands-image-placeholder { color: #b4bbc4; font-weight: 600; }
.f4m-brands-product-category { font-size: 11px; color: #7a828e; line-height: 1.4; margin-bottom: 5px; }
.f4m-brands-product-name { font-size: 14px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.f4m-brands-product-open { margin-top: auto; padding-top: 16px; font-size: 12px; color: #78808b; }
.f4m-brands-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; font-size: 14px; }
.f4m-brands-pagination a { padding: 10px 15px; border: 1px solid #dce0e5; border-radius: 7px; }
.f4m-brands-pagination a:hover { background: #fff8df; border-color: #d4aa16; }
@media (min-width: 1200px) { .f4m-brands-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 850px) { .f4m-brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .f4m-brands-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .f4m-brands-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .f4m-brands-search { flex-basis: auto; }
    .f4m-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .f4m-brands-card { height: 100px; padding: 12px 8px; }
    .f4m-brands-card img { max-width: 105px; height: 38px; }
    .f4m-brands-wordmark { font-size: 15px; }
    .f4m-brands-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .f4m-brands-product { padding: 10px; }
    .f4m-brands-profile { padding: 12px 14px; }
    .f4m-brands-product-image { height: 125px; }
}
@media (max-width: 360px) { .f4m-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (pointer: coarse) { .f4m-brands-alphabet a { min-width: 44px; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .f4m-brands-card { transition: none; } }
