@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

body {
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    background: #ebebea;
}

a {
    text-decoration: none;
    color: black;
}

article {
    /* height: 25em; */
    width: 40em;
    overflow: hidden;
    margin: 2em auto;
    background: white;
    width: 11em;
    padding: 0.5em;
    border-radius: 1em;
    text-align: center;
    box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, 0.5);
}

article img {
    height: 10em;
    width: 11em;
    border-radius: 0.6em;

}

p {
    font-size: 1.2rem;
}

.custom-line {
    border: none;
    border-top: 1px solid #333;
    width: 80%;
}

.qty-selector {
    /* margin-bottom: 10%; */
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

.qty-decr {
    display: inline-block;
    width: 10%;
    background-color: red;
    color: #ffffff;
    border-radius: 50%;
}

.qty-input {
    width: 30%;
    margin: 0% 2%;
    border-width: 1px;
    border-radius: 5px;
}

.qty-incr {
    display: inline-block;
    width: 10%;
    background-color: green;
    color: #ffffff;
    border-radius: 50%;
}


button {
    background: orange;
    border: none;
    font-size: 1.1rem;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    /* margin: -3em 0; */
    transition: all 0.3s;
}

button:hover {
    background: #bf8000;
    cursor: pointer;
}

.rating {
    color: gold;
    margin: 3em 0;
}


/* Media Queries */
@media (max-width: 1024px) {
    .brands_contaner {
        /* padding: 0% 8%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly; */
        padding: 2% 8%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    article {
        width: auto;
        /* height: 25em; */
        margin: 3% 1%;
    }

    p {
        font-size: 1.1rem;
    }

    button {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .brands_contaner {
        /* padding: 0% 8%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly; */
        padding: 2% 2%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 1em;
    }

    article {
        width: 11em;
        /* height: 25em; */
        margin: 3% 1%;
    }

    p {
        font-size: 1rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.4em 0.8em;
    }
}

@media (max-width: 480px) {

    .brands_contaner {
        padding: 5% 0%;
        display: flex;
        justify-content: space-evenly;
        gap: 0.5em;
    }

    article {
        width: 10em;
        /* height: 25em; */
        /* padding: 1em; */
    }

    article img {
        height: 8em;
        width: 100%;
        max-width: 12em;
        border-radius: 0.5em;
    }

    p {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.85rem;
        padding: 0.4em 0.6em;
    }
}