#masthead, #masthead .topbar { height: auto; }
.brandProducts { padding: clamp(24px, 4vw, 52px) 0 72px; }
.brandProducts__trail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.brandProducts__trail a:hover { text-decoration: underline; }
.brandProducts__intro { max-width: 70ch; margin: 16px 0 28px; }
.brandProducts__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 26px; }
.brandProducts__toolbar .brandProducts__count, .brandProducts__toolbar .woocommerce-ordering { float: none; margin: 0; }
.brandProducts__toolbar .woocommerce-ordering { position: static; }
.brandProducts--directory { background: #ebebeb; }
.brandDirectory { margin-top: clamp(24px,3vw,44px); }
.brandDirectory [hidden] { display: none !important; }
.brandDirectory__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-block: 1px solid #c9c8c4; flex-wrap: wrap; }
.brandDirectory__letters { display: flex; flex-wrap: wrap; gap: 3px; }
.brandDirectory__letters a { display: grid; place-items: center; min-width: 33px; min-height: 38px; font-weight: 600; color: #222; }
.brandDirectory__letters a:hover, .brandDirectory__letters a:focus-visible { color: #fff; background: var(--color-red); }
.brandDirectory__search input { font: inherit; font-size: 16px; line-height: 1.3; background: white; border: 1px solid #8d8b87; border-radius: 24px; color: #151515; padding: 9px 18px; min-height: 42px; width: 17rem; max-width: 100%; }
.brandDirectory__section { display: grid; grid-template-columns: clamp(40px,6vw,92px) 1fr; align-items: start; gap: 12px; padding: 24px 0; border-bottom: 1px solid #c9c8c4; scroll-margin-top: 190px; }
.brandDirectory__letter { margin: 0; color: var(--color-red); }
.brandDirectory__cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.brandDirectory__cards li { min-width: 0; }
.brandDirectory__card { height: 100%; background: #fff; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.17); border-radius: 10px; overflow: hidden; color: #171717; text-decoration: none; }
.brandDirectory__card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .brandDirectory__logo > * { transition: transform .25s ease; }
    .brandDirectory__card:hover .brandDirectory__logo > * { transform: scale(1.04); }
}
.brandDirectory__logo { overflow: hidden; padding: 4px 14px; min-height: 106px; display: flex; align-items: center; justify-content: center; text-align: center; }
.brandDirectory__logo img { height: 98px; width: 152px; max-width: 100%; display: block; object-fit: contain; }
.brandDirectory__caption { margin-top: auto; padding: 12px 18px 16px; border-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 56px; }
.brandDirectory__caption strong, .brandDirectory__caption small { display: block; line-height: 1.25; }
.brandDirectory__caption strong { font-size: 17px; }
.brandDirectory__caption small { font-size: 14px; margin-top: 2px; }
.brandDirectory__caption small, .brandDirectory__status { color: #575653; }
.brandDirectory__arrow { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--color-red); border-radius: 50%; }
.brandDirectory__arrow::before { content: ''; width: 24px; height: 24px; background: url("../images/arrow-white.svg") center / contain no-repeat; }
.brandDirectory__status { margin: 14px 0; }
@media (max-width: 980px) { .brandDirectory__cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
    .brandDirectory__tools { gap: 8px; align-items: stretch; flex-direction: column-reverse; }
    .brandDirectory__search input { width: 100%; }
    .brandDirectory__letters a { min-width: 30px; min-height: 36px; }
    .brandDirectory__section { display: block; padding: 18px 0; }
    .brandDirectory__letter { margin-bottom: 8px; }
    .brandDirectory__cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .brandDirectory__caption { padding: 8px; }
    .brandDirectory__logo { padding: 6px; min-height: 70px; }
    .brandDirectory__logo img { height: 66px; }
    .brandDirectory__caption strong { font-size: 15px; }
    .brandDirectory__caption small { font-size: 13px; }
}
