.brands-page {
    background-color: #f9fafb;
    min-height: 100vh;
    font-family: "Roboto Slab", serif;
}

.brands-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.search-container-brands {
    max-width: 36rem;
    margin: 0 auto 3rem auto;
    position: relative;
}

.brands-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.brands-search-input:focus {
    border-color: #4c5ca4;
}

.search-icon-brands {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1280px) {
    .brands-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.brand-card {
    background: white;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover {
    transform: scale(1.05);
    border-color: #4c5ca4;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.brand-card-img-box {
    width: 100%;
    height: 8rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.brand-card:hover .brand-card-img-box {
    background-color: #eff6ff;
}

.brand-name-text {
    font-family: "Alata", sans-serif;
    font-weight: bold;
    color: #343434;
    font-size: 1.125rem;
    text-align: center;
}

.brand-count-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    transition: color 0.3s;
}

.brand-card:hover .brand-count-badge {
    color: #4c5ca4;
}

.no-brands-found {
    text-align: center;
    padding: 5rem 0;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hidden-brand {
    display: none !important;
}
