.brands-hero {
    padding: 1.5rem 0 0.75rem;
    color: var(--color-gray-900);
}

.brands-hero__content {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
    position: relative;
    overflow: hidden;
}

.brands-hero__content::before {
    display: none;
}

.brands-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.brands-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-gray-700);
}

.brands-hero__badge i {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.brands-hero__stats-compact {
    display: flex;
    gap: 0.5rem;
}

.brands-hero__stat-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--color-gray-700);
    font-weight: 500;
}

.brands-hero__stat-compact i {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.brands-hero__stat-compact strong {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.brands-hero__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
    position: relative;
}

.brands-hero__main h1 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 0 0 0.5rem;
    letter-spacing: 0;
    line-height: 1.2;
    color: var(--color-gray-900);
}

.brands-hero__main p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 560px;
}

.brands-hero__search-wrapper {
    position: sticky;
    top: 1rem;
}

.brands-hero__search {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 0.875rem;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
    transition: all var(--transition-normal);
}

.brands-hero__search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.brands-hero__search label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}

.brands-hero__search label i {
    color: var(--color-primary);
}

.brands-hero__search-box {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    transition: all var(--transition-normal);
    position: relative;
}

.brands-hero__search-box:focus-within {
    background: #fff;
    border-color: var(--color-primary);
}

.brands-hero__search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--color-gray-900);
    font-size: 0.875rem;
    outline: none;
    font-weight: 500;
}

.brands-hero__search-box input::placeholder {
    color: var(--color-gray-400);
    font-weight: 400;
}

.brands-hero__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-gray-200);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    flex-shrink: 0;
}

.brands-hero__clear:hover {
    background: var(--color-gray-300);
    color: var(--color-gray-900);
}

.brands-hero__search-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.brands-hero__search-status {
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-gray-600);
    font-size: 0.75rem;
    line-height: 1.4;
}

.brands-hero__search-status i {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.brands-grid {
    padding: 0.75rem 0 2rem;
}

.brands-grid__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.875rem;
    align-items: stretch;
}

.brand-card {
    display: flex;
    gap: 0.75rem;
    position: relative;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 0.875rem;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-1px);
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.brand-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--color-gray-100);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-gray-200);
}

.brand-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.brand-card__logo--placeholder {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    color: var(--color-gray-800);
}

.brand-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: var(--color-gray-500);
    margin: 0 0 0.2rem;
}

.brand-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-card h3::after {
    content: url("/content/assets/images/check-verify.svg");
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.brand-card__desc {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-card__actions {
    margin-top: auto;
}

.brand-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.brand-card__actions .btn {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
}

.brands-empty {
    margin: 1.25rem auto;
    max-width: 620px;
    text-align: center;
    padding: 1.25rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-800);
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
}

.brands-empty__icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    display: grid;
    place-items: center;
    margin: 0 auto 0.75rem;
    color: var(--color-primary);
}

/* Tablet landscape - 1024px */
@media (max-width: 1024px) {
    .brands-hero__header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brands-hero__content {
        padding: 1rem;
    }

    .brands-hero__search-wrapper {
        position: static;
    }

    .brands-hero__search {
        max-width: none;
    }

    .brands-grid__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }
}

/* Tablet portrait - 768px */
@media (max-width: 768px) {
    .brands-hero {
        padding: 1rem 0 0.75rem;
    }

    .brands-hero__content {
        padding: 1rem;
        border-radius: 8px;
    }

    .brands-hero__content::before {
        width: 300px;
        height: 300px;
    }

    .brands-hero__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .brands-hero__main h1 {
        font-size: 1.35rem;
    }

    .brands-hero__main p {
        font-size: 0.85rem;
    }

    .brands-grid__list {
        gap: 0.75rem;
    }

    .brand-card {
        padding: 0.8rem;
        gap: 0.65rem;
    }

    .brand-card__logo {
        width: 60px;
        height: 60px;
    }

    .brand-card h3 {
        font-size: 0.95rem;
    }

    .brand-card__desc {
        font-size: 0.8rem;
    }
}

/* Mobile landscape - 640px */
@media (max-width: 640px) {
    .brands-hero__content {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .brands-hero__badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .brands-hero__stat-compact {
        font-size: 0.75rem;
        padding: 0.35rem 0.55rem;
    }

    .brands-hero__main h1 {
        margin-bottom: 0.75rem;
    }

    .brands-hero__main p {
        font-size: 0.82rem;
    }

    .brands-grid__list {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .brand-card {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .brand-card__logo {
        width: 56px;
        height: 56px;
    }

    .brand-card__actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 0.75rem;
    }

    .brands-empty {
        padding: 1.25rem 1rem;
    }
}

/* Mobile portrait - 480px */
@media (max-width: 480px) {
    .brands-hero {
        padding: 0.875rem 0 0.625rem;
    }

    .brands-hero__content {
        padding: 0.875rem;
    }

    .brands-hero__content::before {
        display: none;
    }

    .brands-hero__top {
        margin-bottom: 0.875rem;
    }

    .brands-hero__badge {
        font-size: 0.72rem;
    }

    .brands-hero__stats-compact {
        flex-wrap: wrap;
    }

    .brands-hero__stat-compact {
        font-size: 0.72rem;
        padding: 0.3rem 0.5rem;
    }

    .brands-hero__header {
        gap: 0.875rem;
    }

    .brands-hero__main h1 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .brands-hero__main p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .brands-hero__search {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .brands-hero__search label {
        font-size: 0.78rem;
    }

    .brands-hero__search-box {
        padding: 0.5rem 0.65rem;
    }

    .brands-hero__search-status {
        font-size: 0.72rem;
    }

    .brand-card {
        flex-direction: row;
        padding: 0.75rem;
    }

    .brand-card__logo {
        width: 56px;
        height: 56px;
    }

    .brand-card h3 {
        font-size: 0.95rem;
    }

    .brand-card__eyebrow {
        font-size: 0.65rem;
    }

    .brand-card__desc {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .brands-empty__icon {
        width: 52px;
        height: 52px;
    }

    .brands-empty h2 {
        font-size: 1rem;
    }

    .brands-empty p {
        font-size: 0.8rem;
    }
}
