.menu-title {
    font-size: 2.7em;
    font-family: var(--coffee-font-alt);
    font-weight: bold;
    color: #3d250f;
    margin-top: 2em;
    margin-bottom: 2em;
    text-align: center;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    justify-content: center;
    margin-bottom: 5em;
}

.menu-btn {
    width: 470px;
    max-width: 100vw;
    height: 100px;
    background: var(--coffee-accent);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1.4em;
    font-family: var(--coffee-font);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    margin-bottom: 0.5em;
    transition: background 0.2s, transform 0.1s;
}

.menu-btn:hover {
    background: var(--coffee-accent-dark);
    transform: scale(1.03);
}

.menu-section {
    margin-top: 1em;
    text-align: center;
}





@media(min-width:600px) {
    .menu-title {
        color: var(--testing-tablet); 
    }

    .menu-btn {
        width: 600px;
        max-width: 100vw;
        height: 100px;
    }
    .menu-modal{
    max-width: 120vw;
    max-height: 90vh;
    }

}



@media (min-width: 768px) {




    .menu-title {
        color: var(--testing-desktop);
        font-size: 3em;
    }

    .menu-btn {
        width: 750px;
        max-width: 100vw;
        height: 100px;
        font-size: 1.1em;
    }

    .menu-section {
        margin-top: 2em;
    }

}



















.menu-list-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5em;
    margin-bottom: 1em;
    margin-left: 8vw;
}

.back-btn {
    background: #fff;
    border: 1px solid #c6a77b;
    color: #6a3c16;
    font-family: inherit;
    font-size: 1em;
    padding: 0.7em 1.6em;
    border-radius: 7px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.back-btn:hover {
    background: var(--coffee-bg);
    border-color: var(--coffee-accent);
}

.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2d6c3;
    border-radius: 8px;
    padding: 0.2em 1em;
    width: 60vw;
    min-width: 220px;
}

.search-icon {
    margin-right: 0.6em;
    color: #c6a77b;
    font-size: 1.2em;
}

#search-input {
    border: none;
    outline: none;
    font-size: 1em;
    background: transparent;
    width: 100%;
    padding: 0.5em 0;
    color: #3d250f;
}

.category-title {
    text-align: left;
    font-size: 2em;
    font-family: var(--coffee-font);
    font-weight: bold;
    margin: 1.2em 0 0.2em 8vw;
    color: #432311;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2em;
    padding: 0 8vw 2em 8vw;
}






.menu-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s;
    border: 1px solid #f5eee7;
    display: flex;

    flex-direction: column;
    margin-bottom: 0;
    cursor: pointer;
}

.menu-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.menu-card-content {
    padding: 1.1em 1.2em 1.2em 1.2em;
    flex: 1 1 auto;
}

.menu-card-content h3 {
    font-size: 1.18em;
    font-weight: bold;
    margin-bottom: 0.3em;
    color: #3d250f;
}

.menu-card-content p {
    font-size: 1em;
    margin-bottom: 0.6em;
    color: var(--coffee-grey-text);
}

.menu-card-content .price {
    color: var(--coffee-accent);
    font-weight: bold;
    font-size: 1.08em;
}

/* Horizontally scrollable menu for mobile */
@media (max-width: 900px) {
    .menu-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 1.3em;
        padding: 0 1vw 2em 1vw;
        scrollbar-width: thin;
        scrollbar-color: #c6a77b #f5eee7;
    }

    .menu-card {
        min-width: 260px;
        max-width: 70vw;
        flex: 0 0 auto;
        border-radius: 14px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
        margin-bottom: 0;
    }

    .category-title,
    .menu-list-header {
        margin-left: 2vw;
    }

    .menu-list::-webkit-scrollbar {
        height: 7px;
        background: #f5eee7;
        border-radius: 4px;
    }

    .menu-list::-webkit-scrollbar-thumb {
        background: #c6a77b;
        border-radius: 4px;
    }
}

/* Menu modal (item details) */
.modal-bg {
    position: fixed;
    z-index: 98;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 12, 10, 0.65);
}

.menu-modal {
    position: fixed;
    z-index: 99;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    max-width: 80vw;
    max-height:90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(60, 40, 30, 0.16);
    padding: 1.8em 1.5em 1.5em 1.5em;
    font-family: var(--coffee-font);
    animation: modalPop 0.22s;
}






@keyframes modalPop {
    0% {
        transform: translateX(-50%) scale(0.92);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2em;
    color: #6a3c16;
    cursor: pointer;
}

.modal-title {
    font-family: var(--coffee-font-alt);
    font-size: 2em;
    color: #3d250f;
    margin-bottom: 0.6em;
}

.modal-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1em;
}

.modal-desc {
    font-size: 1;
    margin-bottom: 1.2em;
        text-align: center;
}

.modal-section {
    margin-bottom: 1.5em;
}

.modal-label {
    font-weight: bold;
    font-size: 1.04em;
    color: #4d2c12;
    display: block;
    margin-bottom: 0.7em;
}

.modal-sizes {
    display: flex;
    gap: 1.2em;
    margin-bottom: 0.3em;
}

.size-btn {
    background: var(--coffee-grey-bg2);
    color: #6a3c16;
    border: none;
    border-radius: 7px;
    padding: 0.7em 1.1em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.2em;
    transition: background 0.14s;
}

.size-btn.selected,
.size-btn:hover {
    background: var(--coffee-accent);
    color: #fff;
}

.modal-addons,
.modal-condiments {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.addon-row,
.condiment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.addon-qty-controls,
.condiment-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.addon-minus,
.addon-plus,
.condiment-minus,
.condiment-plus {
    background: var(--coffee-grey-bg2);
    color: #6a3c16;
    border: none;
    border-radius: 4px;
    padding: 0.3em 0.9em;
    font-size: 1.02em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.14s;
}

.addon-minus:hover,
.addon-plus:hover,
.condiment-minus:hover,
.condiment-plus:hover {
    background: #c6a77b;
    color: #fff;
}

.addon-count,
.condiment-count {
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.modal-actions {
    display: flex;
    gap: 1.5em;
    margin-top: 1.7em;
}

.reset-btn {
    background: #fff;
    border: 1px solid #c6a77b;
    color: #6a3c16;
    font-family: inherit;
    font-size: 1em;
    padding: 0.7em 1.6em;
    border-radius: 7px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.reset-btn:hover {
    background: var(--coffee-bg);
    border-color: var(--coffee-accent);
}

.add-cart-btn {
    background: var(--coffee-accent);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1em;
    font-weight: 600;
    padding: 0.7em 2.1em;
    cursor: pointer;
    transition: background 0.17s;
}

.add-cart-btn:hover {
    background: var(--coffee-accent-dark);
}



@media (max-width: 768px) {
   .modal-desc{
    font-size: large;
   }
}