.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--white-text-color);
    padding: 10px;
    overflow-x: auto;
    z-index: 10;
}

.tabs {
    margin-right: 1em;
    display: flex;
    white-space: nowrap;
    font-size: 1.3em;
}

.tabs .tab {
    background: none;
    border: none;
    color: var(--white-text-color);
    padding: 10px 25px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s;
    border-radius: 40px;
}

.tabs .tab.selected {
    background-color: var(--yelow-accent-color);
    color: var(--bg-color);
}

@media(max-width: 545px){
    .tabs .tab{
        border-radius: 10px 10px 0 0;
    }

    .navbar {
        padding: 10px 0 3px 0 !important;
    }

    .tabs .tab:first-child {
        margin-left: 30px;
    }
}

.content {
    padding: 4em 1em 2.5em;
    max-width: 1440px;
    margin: 0 auto;
}


.category-section {
    padding: 5em 0 1.6em 0;
}


.category-section h2 {
    font-weight: lighter;
    font-size: xx-large;
    color: var(--white-text-color);
    margin: 0;
    margin-bottom: 10px;
}

.category-section p {
    font-size: x-large;
    color: var(--white-text-color);
    margin: 0;
    margin-bottom: 40px;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}

.product-card {
    color: var(--white-text-color);
    box-sizing: border-box;
    flex-grow: 1;
    min-height: 25%;
    max-width: calc(50% - 10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 20px;
}

@media (min-width: 1200px) {
    .product-card {
        flex-basis: calc(25% - 11px);
        max-width: calc(25% - 11px);
    }
}
@media (max-width: 1199px) {
    .product-card {
        flex-basis: calc(33% - 10px);
        max-width: calc(33% - 10px);
    }
}

@media (max-width: 650px) {
  .product-card {
    flex-basis: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
    .category-section:not(:first-child){
        padding: 2em 0 1.6em 0;
    }
}

.product-card img {
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0 0;
}

.product-info {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
  height: auto;
  font-weight: lighter;
  color: var(--white-text-color);
  background: #515360;
  margin: 0;
    margin-bottom: 10px;
  padding: 15px 0;
  border-radius: 0 0 20px 20px;
    font-size: 1.3em;
}

.price-button {
    font-weight: bold;
    color:var(--bg-color);
    border: none;
    padding: 0.5em 0;
    transition: background-color 0.3s;
    font-size: 1.2em;
    margin-top: auto;
    border-radius: 30px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.price-button.quantity-mode {
    display: flex;
    justify-content: center;
    padding: 0.3em;
    background-color: var(--yelow-accent-color);
}

.decrease-button, .increase-button {
    background: none;
    border: none;
    font-size: 1.2em;
    color:var(--bg-color);
    cursor: pointer;
    width: 25%;
    align-self: center;
}

.quantity {
    font-size: 1.4em;
    text-align: center;
    color: var(--bg-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 1em;
    background-color: var(--bg-color);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.modal-photo-container{
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 1em;
}

.modal-description-container{
    padding: 15px 25px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 1em;
    margin-top: 10px;
    margin-bottom: 35px;
}

#modal-photo {
    border-radius: 1em;
    width: 100%;
    height: auto;
    display: block;
    margin:  0 auto;
    margin-bottom: 20px;
}

#modal-name {
    color:var(--white-text-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0;
    align-self: center;
}

#modal-description {
    color: var(--white-text-color);
    font-size: 1.2em;
    margin: 0;
    flex-grow: 1;
}

#modal-modifiers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modifier {
    box-sizing: border-box;
}

.modifier img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.modifier h4 {
    font-weight: lighter;
    font-size: 1em;
    margin: 10px 0;
    color: var(--bg-color);
}

#modifiers-text{
    display: none;
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.modifier .price-button {
    background-color: var(--yelow-accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 1.5em;
    padding: 0.5em 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
    margin: 0;
    height: 93px;
    min-width: 110px;
}

.selectedModifier {
    background-color: rgba(53, 152, 58, 0.62) !important;
}

#quantity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yelow-accent-color);
    border-radius: 50px;
    width: 65%;
    align-self: center;
    margin-bottom: 10px;
    color:var(--bg-color);
}

#decrease-quantity,
#increase-quantity {
    background-color: transparent;
    color:var(--bg-color);
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    width: 2.5em;
    height: 2.5em;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quantity-display {
    font-weight: bold;
    font-size: 1.6em;
    width: 5em;
    text-align: center;
}

#add-buttons {
    display: flex;
    justify-content: space-between;
    align-self: center;
    width: 65%;
    margin-bottom: 40px;
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
}

#modal-price-button,
#add-product {
    font-weight: bold;
    padding: 0.5em 2em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.2em;
    border-radius: 0.5em;
    /*width: 48%;*/
    display: flex;
    align-items: center;
    min-height: 2em;
}

#modal-price-button {
    background-color: var(--bg-color);
    color:var(--yelow-accent-color);
    border-radius: 20px 0 0 20px;
    font-size: 1.6em;
    width: 100%;
    display: flex;
    justify-content: center;
}

#add-product {
    background-color: var(--accent-bg);
    color:var(--yelow-accent-color);
    border: 2px solid var(--yelow-accent-color);
    border-radius: 20px;
}

.cart-container {
    position: fixed;
    width: 100%;
    bottom: 0;
    right: 0;
    z-index: 1000;
    display: block;
}

.cart-button {
    margin-top: 1em;
    font-weight: bold;
    background-color: var(--yelow-accent-color);
    color:var(--bg-color);
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1em 0;
    transition: background-color 0.3s;
    font-size: 1.3em;
    width: 100%;
    box-sizing: border-box;
}



@media (max-width: 600px) {
    #quantity-container {
        width: 100%;
    }
    #add-buttons {
        width: 100%;
    }
    .modal-content{
        padding: 30px 15px;
    }

    .product-info h3{
        padding: 15px 5px;
        font-size: 1.3em;
        height: 50px;
    }
}


@media (max-width: 490px) {
    .content{
        padding: 4em 0.5em 3em;
    }
    .products-list {
        gap: 15px;
    }

}
