@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');

#menu {
    display: flex;
    flex-wrap: wrap; /* povolí nech sa pokračuje na ďaľšom riadku */
    gap: 20px; 
    margin-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
}

.product {
    flex: 1 1 calc(25% - 20px); /* Každý produkt zaberie štvrtinu šírky */
    box-sizing: border-box;
    max-width: 25%;    
}

.product img {
    width: 100%;
    height: auto;
}

.pridat_do_kosika {
    background-color: #ffffff;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.5rem;
    color: black;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out; 
    font-family: "Montserrat", Roboto;
    font-weight: 600;
    font-size: 15px;
}

.pridat_do_kosika:hover {
    background-color: #f9fafb;
}

.product .button-group {
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 10px; 
}

.product {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    background: rgb(243, 243, 243);
}

.product_image {
    border: 1px solid transparent;
    border-radius: 10px;    
}


@media (max-width: 760px) {
    .product {
        flex: 1 1 100%; 
        max-width: 100%; /* Prevenia na horizontálny overflow */
    }
}

@media (min-width: 761px) and (max-width: 1024px) {
    .product {
        flex: 1 1 calc(50% - 20px); /* Každý produkt zaberie polovicu šírky */
        max-width: 50%;
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .product {
        flex: 1 1 calc(33.33% - 20px); /* Každý produkt zaberie tretinu šírky */
        max-width: 33.33%; 
    }
}

@media (min-width: 1401px) {
    .product {
        flex: 1 1 calc(25% - 20px); /* Každý produkt zaberie štvrtinu šírky */
        max-width: 25%;
    }
}
