*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#111;
    font-family:'Poppins',sans-serif;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:25px;
    overflow-x:hidden;
}

/* CONTENEDOR */

.menu-card{
    width:100%;
    max-width:1200px;
    height:760px;
    display:grid;
    grid-template-columns:420px 1fr;
    background:#f8f4ef;
    border-radius:28px;
    overflow:hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5);
}

/* LEFT */

.left-side{
    position:relative;
    overflow:hidden;
}

.left-side img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:1s;
}

.overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.82)
        );

    padding:35px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:20px;
    color:white;
}

/* INFO */

.restaurant-info h1{
    font-family:'Oswald',sans-serif;
    font-size:3rem;
    line-height:0.9;
    letter-spacing:3px;
}

.restaurant-info p{
    margin-top:12px;
    font-size:.78rem;
    letter-spacing:3px;
    opacity:.9;
}

/* CATEGORIES */

.categories{
    margin-top:35px;
    display:flex;
    flex-direction:column;
    gap:12px;

    max-height:320px;
    overflow-y:auto;
    padding-right:5px;
}

.categories::-webkit-scrollbar{
    width:5px;
}

.categories::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.4);
    border-radius:20px;
}

.category-btn{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    color:white;
    padding:13px 16px;
    border-radius:14px;
    cursor:pointer;
    transition:.35s;
    font-size:.75rem;
    letter-spacing:1px;
    text-transform:uppercase;
    backdrop-filter:blur(5px);

    outline:none;
    box-shadow:none;
    appearance:none;
    -webkit-appearance:none;
}

.category-btn:hover,
.category-btn:focus,
.category-btn:active{
    outline:none;
    box-shadow:none;
    text-decoration:none;
}

.category-btn:hover{
    background:#b08b60;
}

.category-btn.active{
    background:#b08b60;
}

/* HOURS */

.hours{
    border-top:1px solid rgba(255,255,255,.2);
    padding-top:18px;
}

.hours h3{
    font-family:'Oswald';
    letter-spacing:2px;
    margin-bottom:10px;
    font-size:1rem;
}

.hours p{
    font-size:.74rem;
    opacity:.85;
    margin:4px 0;
}

/* RIGHT */

.right-side{
    padding:35px;
    overflow-y:auto;
    position:relative;
    max-height:760px;
}

.right-side::-webkit-scrollbar{
    width:7px;
}

.right-side::-webkit-scrollbar-thumb{
    background:#b08b60;
    border-radius:20px;
}

/* TITLE */

.menu-title{
    font-family:'Oswald';
    color:#b08b60;
    font-size:2rem;
    margin-bottom:25px;
    letter-spacing:2px;
}

/* GRID */

.menu-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:18px;
}

/* ITEM */

.item{
    background:white;
    border-radius:20px;
    overflow:hidden;
    border:1px solid #eee;
    transition:.35s;
}

.item:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.item-image{
    width:100%;
    height:160px;
    object-fit:cover;
}

.item-content{
    padding:18px;
}

.item-top{
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.item-top h3{
    font-size:.8rem;
    color:#333;
    text-transform:uppercase;
    letter-spacing:1px;
    line-height:1.4;
}

.price{
    color:#b08b60;
    font-size:.8rem;
    font-weight:600;
    white-space:nowrap;
}

.item p{
    margin-top:10px;
    color:#777;
    font-size:.72rem;
    line-height:1.6;
}

/* BUTTON */

.add-btn{
    margin-top:14px;
    width:100%;
    border:none;
    background:#111;
    color:white;
    padding:12px;
    border-radius:12px;
    cursor:pointer;
    transition:.35s;
    font-size:.72rem;
    letter-spacing:1px;
}

.add-btn:hover{
    background:#b08b60;
}

/* CART FLOAT */

.cart-button{
    position:fixed;
    top:25px;
    right:25px;
    width:65px;
    height:65px;
    background:#111;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    z-index:999;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    transition:.35s;
}

.cart-button:hover{
    transform:scale(1.08);
}

.cart-count{
    position:absolute;
    top:-5px;
    right:-5px;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#b08b60;
    color:white;
    font-size:.7rem;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* CART PANEL */

.cart-panel{
    position:fixed;
    top:0;
    right:-420px;
    width:400px;
    height:100vh;
    background:#f8f4ef;
    z-index:1000;
    box-shadow:-10px 0 40px rgba(0,0,0,.25);
    transition:.45s;
    display:flex;
    flex-direction:column;
}

.cart-panel.active{
    right:0;
}

.cart-header{
    padding:25px;
    border-bottom:1px solid #ddd;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.cart-header h2{
    font-family:'Oswald';
    color:#b08b60;
    letter-spacing:2px;
}

.close-cart{
    font-size:1.5rem;
    cursor:pointer;
}

/* CART ITEMS */

.cart-items{
    flex:1;
    overflow-y:auto;
    padding:20px;
}

.cart-item{
    background:white;
    padding:16px;
    border-radius:16px;
    margin-bottom:15px;
    border:1px solid #eee;
    display:flex;
    gap:14px;
    align-items:flex-start;
}

.cart-thumb{
    width:70px;
    height:70px;
    border-radius:14px;
    object-fit:cover;
    flex-shrink:0;
}

.cart-info{
    flex:1;
}

.cart-item-top{
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.cart-remove{
    width:34px;
    height:34px;
    background:#ff3b30;
    border-radius:10px;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.3s;
    flex-shrink:0;
}

.cart-remove:hover{
    transform:scale(1.08);
    opacity:.9;
}

.cart-item h3{
    font-size:.76rem;
    line-height:1.4;
}

.cart-controls{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
}

.cart-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:12px;
}

.cart-controls button{
    width:28px;
    height:28px;
    border:none;
    border-radius:50%;
    background:#111;
    color:white;
    cursor:pointer;
}

.qty{
    font-size:.75rem;
}

/* TOTAL */

.cart-footer{
    padding:25px;
    border-top:1px solid #ddd;
}

.total{
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
    font-weight:600;
}

/* WHATSAPP */

.whatsapp-btn{
    width:100%;
    border:none;
    background:#25D366;
    color:white;
    padding:16px;
    border-radius:14px;
    cursor:pointer;
    font-weight:600;
    transition:.35s;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.whatsapp-btn:hover{
    background:#1ebe5d;
}

/* MAPA */

.footer-info{
    margin-top:30px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.contact-box{
    background:white;
    border-radius:18px;
    padding:20px;
}

.contact-box h3{
    font-family:'Oswald';
    color:#b08b60;
    margin-bottom:12px;
}

.contact-box p{
    font-size:.75rem;
    color:#666;
    margin:8px 0;
}

iframe{
    width:100%;
    height:220px;
    border:none;
    border-radius:18px;
}

/* MOBILE */

@media(max-width:950px){

    .menu-card{
        grid-template-columns:1fr;
        height:auto;
        min-height:auto;
    }

    .left-side{
        height:500px;
    }

    .right-side{
        max-height:none;
        overflow-y:visible;
    }

}

@media(max-width:700px){

    .menu-grid{
        grid-template-columns:1fr;
    }

    .footer-info{
        grid-template-columns:1fr;
    }

    .cart-panel{
        width:100%;
    }

}

/* CHECKOUT */

.checkout-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:3000;
    padding:20px;
}

.checkout-modal.active{
    display:flex;
}

.checkout-box{
    width:100%;
    max-width:450px;
    background:white;
    border-radius:24px;
    padding:30px;
}

.checkout-box h2{
    margin-bottom:20px;
    color:#b08b60;
    font-family:'Oswald';
    letter-spacing:2px;
}

.checkout-box input,
.checkout-box textarea,
.checkout-box select{
    width:100%;
    margin-bottom:15px;
    padding:14px;
    border-radius:12px;
    border:1px solid #ddd;
    font-family:'Poppins';
    outline:none;
}

.checkout-box textarea{
    min-height:100px;
    resize:none;
}

.delivery-time{
    background:#f4f4f4;
    padding:14px;
    border-radius:12px;
    margin-bottom:18px;
    font-size:.85rem;
}

.checkout-actions{
    display:flex;
    gap:12px;
}

.cancel-btn,
.confirm-btn{
    flex:1;
    border:none;
    padding:14px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

.cancel-btn{
    background:#ddd;
}

.confirm-btn{
    background:#25D366;
    color:white;
}

/* FLOATING WHATSAPP */

.floating-whatsapp{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    text-decoration:none;
    font-size:2rem;
    z-index:999;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
    transition:.35s;
}

.floating-whatsapp:hover{
    transform:scale(1.1);
}

/* CLOSED OVERLAY */

.closed-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    z-index:2500;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    color:white;
    text-align:center;
    padding:30px;
}

.closed-overlay h1{
    font-size:3rem;
    font-family:'Oswald';
    letter-spacing:3px;
    margin-bottom:20px;
}

.closed-overlay p{
    font-size:1rem;
    opacity:.9;
}

/* PRODUCT MODAL OPTIONS*/

.product-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:4000;
    padding:20px;
}

.product-modal.active{
    display:flex;
}

.product-box{
    width:100%;
    max-width:500px;
    max-height:90vh;

    background:white;
    border-radius:24px;
    padding:25px;

    overflow-y:auto;

    display:flex;
    flex-direction:column;
}

.product-box::-webkit-scrollbar{
    width:6px;
}

.product-box::-webkit-scrollbar-thumb{
    background:#b08b60;
    border-radius:20px;
}

.product-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.close-product{
    font-size:2rem;
    cursor:pointer;
}

.option-group{
    margin-bottom:20px;
}

.option-group h4{
    margin-bottom:10px;
    color:#b08b60;
}

.option-choice{
    display:flex;
    justify-content:space-between;
    padding:12px;
    border:1px solid #eee;
    border-radius:12px;
    margin-bottom:10px;
    cursor:pointer;
}

.option-choice input{
    margin-right:10px;
}

#product-note{
    width:100%;
    border:1px solid #ddd;
    border-radius:14px;
    padding:14px;
    min-height:100px;
    resize:none;
    font-family:'Poppins';
    font-size:.85rem;
    outline:none;
    transition:.3s;
}

#product-note:focus{
    border-color:#b08b60;
    box-shadow:0 0 0 3px rgba(176,139,96,.15);
}

.product-footer{
    margin-top:20px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    position:sticky;
    bottom:0;

    background:white;
    padding-top:15px;
}

.note-group{
    margin-top:10px;
}

.note-label{
    display:block;
    margin-bottom:10px;
    font-size:.85rem;
    color:#b08b60;
    font-weight:600;
}

.product-actions{
    display:flex;
    gap:10px;
}

.cancel-product-btn{
    border:none;
    background:#e5e5e5;
    padding:12px 18px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}

.cancel-product-btn:hover{
    background:#d6d6d6;
}

.modal-price{
    font-size:1.2rem;
    font-weight:600;
    color:#b08b60;
}

/* TOAST */

.toast{
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    background:#111;
    color:white;
    padding:16px 22px;
    border-radius:14px;
    z-index:5000;
    opacity:0;
    transition:.4s;
    font-size:.85rem;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.toast.show{
    opacity:1;
    bottom:50px;
}

@media(max-height:700px){
    .product-box{
        max-height:95vh;
    }
}

/* MODAL ANTICIPO */

.advance-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:flex-start;
    overflow-y:auto;
    z-index:5000;
    padding:40px 20px;
}

.advance-modal.active{
    display:flex;
}

.advance-box{
    width:100%;
    max-width:520px;
    background:white;
    border-radius:24px;
    padding:30px;
    margin:auto;
    max-height:90vh;
    overflow-y:auto;
}

.advance-box h2{
    font-family:'Oswald';
    color:#b08b60;
    letter-spacing:2px;

    margin-bottom:20px;
}

.advance-text{
    color:#555;
    line-height:1.7;
    font-size:.92rem;
}

.bank-box{
    margin-top:25px;

    background:#f7f7f7;
    border-radius:18px;

    padding:20px;
}

.bank-row{
    margin-bottom:14px;
}

.bank-row span{
    display:block;

    font-size:.75rem;
    color:#888;

    margin-bottom:4px;
}

.bank-row strong{
    color:#222;
}

.clabe-box{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.copy-btn{
    border:none;

    background:#111;
    color:white;

    padding:8px 14px;

    border-radius:10px;

    cursor:pointer;
    transition:.3s;
}

.copy-btn:hover{
    background:#b08b60;
}

.advance-total{
    margin-top:20px;

    background:#fff8ef;

    border:1px solid #f1dfc5;

    padding:16px;
    border-radius:14px;

    font-size:1rem;
}

.advance-total strong{
    color:#b08b60;
}

.advance-actions{
    display:flex;
    gap:12px;

    margin-top:25px;
}

.advance-actions button{
    flex:1;
}

.advance-box::-webkit-scrollbar{
    width:6px;
}

.advance-box::-webkit-scrollbar-thumb{
    background:#b08b60;
    border-radius:20px;
}

@media(min-width:900px){

    .advance-modal{

        align-items:center;

        padding:20px;

    }

}

@media(max-width:950px){

    .categories{
        max-height:220px;
    }

}

@media(max-width:700px){

    body{
        padding:12px;
    }

    .overlay{
        padding:25px;
    }

    .categories{
        flex-direction:row;
        overflow-x:auto;
        overflow-y:hidden;
        max-height:none;
        padding-bottom:8px;
    }

    .category-btn{
        min-width:max-content;
    }

    .category-btn:hover{
        transform:none;
    }

}