.brands {
    margin: 30px 0;
}

.brands .box .brand img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: 0.3s ease all;
    filter: brightness(0.0);
}

.brands .box .brand img:hover {
    filter: none;
}

.brands .box .brand h3 {
    position: absolute;
    bottom: 10px;
    left: 0;
    display: flex;
    line-height: 16px;
    background: var(--primary-color);
    width: 100%;
    height: 40px;
    color: #fff;
    font-size: 15px;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.9;
    transition: 0.3s linear all;
}
.brands .box .brand span {
    font-size: 22px;
    font-weight: bold;
}
.brands .box .brand:hover img {
    transform: scale(1.05);
    transition: 0.3s ease all;
}

.brands .box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 20px;
    margin-top: 30px;
    margin: 0 200px;
}

.brands .box .brand {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    aspect-ratio: 16/12;
    padding: 20px;
    border: 1px solid #e3e3e3;
}

.brands .box .brand a {
    color: black;
}

.brands .box .brand span {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
}

.brands .box img {
    height: auto;
}

.brand-detail-title {
    font-size: 18px;
}

.brand-detail-main {
    padding-left: 0px;
    margin-top: 4px;
}

.brand-detail-main label {
    font-weight: 600;
}

.brand-detail-child {
    margin-left: 20px;
}
@media (max-width: 960px) {
    .brands {
        margin: 5px 0;
        .box {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            margin: auto;
            padding: 0 5px;
        }
    }
}
