/* CouponsHaven brands directory */
.brands-page-main {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 55px;
    padding-top: 42px;
}
.brands-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #7b8494;
    font-size: 13px;
}
.brands-page-breadcrumb a { color: #687386; text-decoration: none; }
.brands-page-heading {
    margin-bottom: 30px;
    text-align: center;
}

.brands-page-breadcrumb span:last-child {
    color: #f36b12;
    font-weight: 700;
}

.brands-eyebrow {
    color: #f36b12;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.brands-page-heading h1 {
    margin: 7px 0 8px;
    color: #182337;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -.04em;
}
.brands-page-heading p {
    margin: 0;
    color: #697586;
    font-size: 14px;
    line-height: 1.6;
}
.brands-directory-section { margin-top: 32px; }
.brands-directory-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}
.brands-directory-section-heading h2 {
    margin: 0;
    color: #243147;
    font-size: 21px;
}
.brands-directory-section-heading span {
    color: #778195;
    font-size: 12px;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.brand-tile {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 14px 15px;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(24, 39, 75, .035);
    color: #263348;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.brand-tile:hover {
    transform: translateY(-3px);
    border-color: #ffc69e;
    box-shadow: 0 9px 22px rgba(24, 39, 75, .08);
}
.brand-tile-logo {
    display: flex;
    width: 100%;
    height: 82px;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 29px;
    font-weight: 800;
}
.brand-tile-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 76px;
    object-fit: contain;
}
.brand-tile-name {
    max-width: 100%;
    overflow: hidden;
    color: #273449;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-tile-arrow {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #c1c8d2;
    font-size: 14px;
    transition: color .18s ease;
}
.brand-tile:hover .brand-tile-arrow { color: #f36b12; }
.brands-empty-state {
    padding: 45px 20px;
    border: 1px dashed #d8dee8;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}
.brands-empty-state h2 { margin: 0 0 8px; color: #263348; }
.brands-empty-state p { margin: 0; color: #778195; font-size: 13px; }

@media (max-width: 1000px) {
    .brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
}
@media (max-width: 700px) {
    .brands-page-main { width: min(100% - 28px, 1200px); padding-top: 13px; }
    .brands-page-heading { margin-bottom: 25px; }
    .brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .brand-tile { min-height: 125px; padding: 13px 8px 12px; gap: 8px; border-radius: 11px; }
    .brand-tile-logo { height: 68px; }
    .brand-tile-logo img { max-height: 62px; }
    .brand-tile-name { font-size: 11px; }
}
@media (max-width: 420px) {
    .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .brand-tile, .brand-tile-arrow { transition: none; }
}


/* Brand directory search */
.brands-directory-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -10px 0 25px;
}
.brands-directory-search {
    display: flex;
    width: min(100%, 440px);
    min-height: 44px;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
    color: #8a94a4;
}
.brands-directory-search:focus-within {
    border-color: #f3a16e;
    box-shadow: 0 0 0 3px rgba(243, 107, 18, .08);
}
.brands-directory-search span { font-size: 21px; line-height: 1; }
.brands-directory-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #263348;
    font: inherit;
    font-size: 13px;
}
.brands-directory-tools p {
    margin: 0;
    color: #778195;
    font-size: 12px;
    white-space: nowrap;
}
.brand-tile[hidden],
.brands-directory-section[hidden] { display: none !important; }
@media (max-width: 560px) {
    .brands-directory-tools { align-items: stretch; flex-direction: column; gap: 8px; }
    .brands-directory-search { width: 100%; }
    .brands-directory-tools p { text-align: right; }
}

.brands-search-no-results { margin-top: 18px; }
.brands-search-no-results[hidden] { display: none !important; }
