.menu-container{
    padding: 5px;
}

.menu{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    justify-content: center;
}

.product-card{
    padding: 5px;
    background: var(--ivory-2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 calc((100% - 5px) / 2);
    min-width: 0;
}

.product-card img{
    width: 150px;
    height: 150px;
    border-radius: 5px;
    box-shadow: 3px 3px 5px 2px rgba(0,0,0,.2);
    margin-top: 2px;
}

.product-card h3,
.product-card span{
    padding: 0 2px;
    font-family: "Cairo";
    color:var(--primary-color);
    margin: 0px;
    width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
    margin-top:auto;
}

.product-card span{
    color: black;
    font-weight: bold;
}   


.product-controls {
    position: relative;

    width: 110px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.product-quantity-box {
    position: absolute;

    width: 0;

    opacity: 0;

    border: solid var(--primary-color) 1px;
    border-radius: 5px;

    background-color: #EEEFFF;

    font-weight: bold;

    padding-top: 2px;
    padding-bottom: 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    transition:
        width 0.3s ease,
        opacity 0.2s ease;
}

.product-quantity-button {
    flex: 0 0 30px;
    height: 30px;
    margin: 3px;
    background-color: white;
    border-radius: 50%;
    border: solid var(--primary-color) 1px;
    font-size: 1.1em;
     transition:
        transform 0.25s ease
}

.product-quantity-text{
    font-size: 1.3em;
}


.product-add-button {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: white;
    font-size: 1.4em;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

.product-card.selected .product-quantity-box {
    width: 110px;
    opacity: 1;
}

.product-card.selected .product-add-button {
    opacity: 0;
    transform: scale(0.7);
}

.product-add-button:active{
    transform: scale(0.7);
}

.product-quantity-button:active{
    transform: scale(0.7);
}

@media(min-width:768px) and (max-width: 1023px){
.product-card{
    flex: 0 0 calc((100% - 16px) / 4);
}
}

@media(min-width: 1024px){
.product-card{
    flex: 0 0 calc((100% - 16px) / 6);
}
}
