.brands-page__filters {
    margin: 0 auto;
}

.brands-page-head {
    margin-bottom: 4rem;
}

.brands-page__filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Country Filter Dropdown */
.brands-page__country-filter {
    position: relative;
}

.brands-page__dropdown {
    position: relative;
    min-width: 14rem;
}

.brands-page__dropdown-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    background: var(--c-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-14);
    transition: all 0.3s ease;
    height: 5rem;
    gap: 1rem;
}

.brands-page__dropdown-btn:hover {
    border-color: var(--c-secondary);
}


.brands-page__dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.brands-page__dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.brands-page__dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    max-height: 19rem;
    overflow-y: auto;
}

.brands-page__dropdown-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--c-neutral-50);
    font-size: var(--fs-14);
}

.brands-page__dropdown-option:last-child {
    border-bottom: none;
}

.brands-page__dropdown-option:hover {
    background-color: #f8f9fa;
}

.brands-page__dropdown-option:active {
    background-color: #e9ecef;
}

/* Search Filter */
.brands-page__search-filter {
    flex: 1;
    position: relative;
}

.brands-page__search-filter i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

.brands-page__search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    background: var(--c-white);
    font-size: var(--fs-14);
    transition: border-color 0.3s ease;
    height: 5rem;
}

.brands-page__search-input:focus {
    outline: none;
    border-color: var(--c-secondary);
}

/* Brands Grid */
.brands-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 2rem;
    row-gap: 4rem;
}

.brands-page__card {
    flex: none;
    border-radius: 2.8rem;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



.brands-page__card-logo {
    flex: none;
    border-radius: 2.8rem;
    position: relative;
    padding: 4.5rem;
    width: 100%;
    display: flex;
    margin-bottom: 1.8rem;
    align-items: center;
    justify-content: center;
}


.brands-page__card-logo img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}


.brands-page__card-logo::before,
.brands-page__card-logo::after {
    content: "";
    background: linear-gradient(#ffffff, white) padding-box, linear-gradient(to bottom, #babfca7d, #babfca2b) border-box;
    border-radius: 2.8rem;
    display: block;
    border: 1.2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    transition: 0.3s ease;
    background-size: 100% 100%;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.brands-page__card-logo::before {
    border: 1px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(to bottom, var(--c-secondary), #cc967b33) border-box;
    opacity: 0;
    transition: 0.4s ease-out;
    clip-path: inset(0 0 100% 0);
}

.brands-page__card:hover .brands-page__card-logo::before {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.brands-page__card:hover .brands-page__card-logo::after {
    opacity: 0;
}

.brands-page__card-logo .shape {
    position: absolute;
    bottom: 0;
    width: 11rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    height: 0.8rem;
    border-radius: 0.6rem 0.6rem 0 0;
    pointer-events: none;
    overflow: hidden;
}

.brands-page__card-logo .shape::before,
.brands-page__card-logo .shape::after {
    content: "";
    position: absolute;
    background-color: var(--c-secondary);
    inset: 0;
    transition: 0.3s ease-in;
}

.brands-page__card-logo .shape::before {
    background-color: var(--c-neutral-50);
    transform-origin: top;
}

.brands-page__card-logo .shape::after {
    z-index: -1;
}

.brands-page__card:hover .shape::before {
    opacity: 0;
    transition-delay: 0.2s;
}

.brands-page__card-info {
    margin-bottom: 2rem;
    flex: 1;
}

.brands-page__card-name {
    font-size: var(--fs-20);

    margin-bottom: 1rem;
    line-height: 1.4;
}

.brands-page__card-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: var(--fs-16);
    color: var(--c-blue-150);
}

.brands-page__country-flag {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
    border-radius: 50%;
}

.brands-page__country-name {
    font-weight: 500;
}

.brands-page__card-actions {
    width: 100%;
}

.brands-page__view-btn {
    background: var(--c-neutral-100);
    text-decoration: none;
    min-width: 16.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.brands-page__view-btn:hover {
    background: var(--c-secondary);
    color: var(--c-white);
}


/* No Brands Message */
.brands-page__no-brands {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--c-neutral-50);
    border: 1px solid var(--c-neutral-100);
    border-radius: 1.2rem;
    margin: 2rem 0;
}

.brands-page__no-brands .brands-page__error-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
    opacity: .3;
}

.brands-page__no-brands .brands-page__error-title {
    font-size: var(--fs-22);
    margin-bottom: 1rem;
    font-weight: 600;
}

.brands-page__no-brands .brands-page__error-text {
    font-size: var(--fs-16);
    line-height: 1.6;
}

/* No Results Message */
.brands-page__no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 2rem;
    background: var(--c-neutral-50);
    border: 1px solid var(--c-neutral-100);
    border-radius: 1.2rem;
}

.brands-page__no-results .brands-page__error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: .2;
}

.brands-page__no-results .brands-page__error-title {
    font-size: var(--fs-22);
    margin-bottom: 1rem;
    font-weight: 600;
}

.brands-page__no-results .brands-page__error-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (width>=1024px) {
    .brands-page__filters {
        max-width: 60%;
    }

    .brands-page__dropdown {
        min-width: 20rem;
    }

    .brands-page__filter-group {
        gap: 2rem;
    }
}


/* Loading state */
.brands-page__grid.loading {
    opacity: 0.6;
    pointer-events: none;
}