/* ==========================
   RESET DEV KESSIO
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Segoe UI',sans-serif;

    background:#f3f4f6;

    color:#111827;

    overflow:hidden;
}

/* ==========================
   HEADER DEV KESSIO
========================== */

.header{

    height:70px;

    background:#991b1b;

    color:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 25px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.15);
}

.logo{

    font-size:30px;

    font-weight:bold;
}

.header-info{

    font-size:18px;
}

/* ==========================
   APP DEV KESSIO
========================== */

.app{

    display:grid;

    grid-template-columns:

    250px

    1fr

    360px;

    height:
    calc(100vh - 70px);
}

/* ==========================
   SIDEBAR DEV KESSIO
========================== */

.sidebar{

    width:250px;

    display:flex;

    flex-direction:column;

    background:#fff;

    padding:16px;

    box-sizing:border-box;

}
.sidebar h2{

    margin:0 0 16px;

    font-size:18px;

    font-weight:700;

}

.sidebar hr{

    margin:18px 0;

}
.category{

    width:100%;

    border:none;

    background:#f9fafb;

    padding:15px;

    border-radius:12px;

    cursor:pointer;

    margin-bottom:10px;

    text-align:left;

    font-size:16px;

    transition:.3s;
}

.category:hover{

    background:#fee2e2;
}

.category.active{

    background:#dc2626;

    color:white;
}

.orders-btn{

    width:100%;

    border:none;

    padding:14px 16px;

    border-radius:12px;

    cursor:pointer;

    background:#2563eb;

    color:white;

    font-size:15px;

    font-weight:600;

    margin-bottom:12px;

    transition:.25s;

}

.orders-btn:hover{

    background:#1d4ed8;
}

/* ==========================
   MESAS DEV KESSIO
========================== */

#tablesGrid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:10px;

}

.table{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    width:95px;

    height:95px;

    border-radius:16px;

    cursor:pointer;

    color:white;

    user-select:none;

    transition:all .25s ease;

    box-shadow:0 6px 15px rgba(0,0,0,.18);

}

.table-title{

    font-size:14px;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:8px;

}

.table-number{

    font-size:42px;

    font-weight:800;

    line-height:1;

}

.table:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 24px rgba(0,0,0,.22);

}
.selected{

    border:4px solid #2563eb;

    box-shadow:0 0 0 5px rgba(37,99,235,.30);

    transform:scale(1.05);

}
.table.busy{

    background:#dc2626;
}

/* ==========================
   PRODUTOS DEV KESSIO
========================== */

.products{

    padding:20px;

    overflow:auto;
}

.products-header{

    margin-bottom:20px;
}

.products-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(240px,1fr));

    gap:20px;
}

.product-card{

    background:white;

    border-radius:20px;

    padding:20px;

    text-align:center;

    cursor:pointer;

    transition:.3s;

    box-shadow:
    0 3px 12px rgba(0,0,0,.08);
}

.product-card:hover{

    transform:translateY(-5px);

    box-shadow:
    0 10px 20px rgba(0,0,0,.12);
}

.product-icon{

    font-size:60px;

    margin-bottom:15px;
}

.product-title{

    font-size:22px;

    font-weight:600;
}

.product-price{

    margin-top:10px;

    color:#991b1b;

    font-size:24px;

    font-weight:bold;
}

/* ==========================
   CARRINHO DEV KESSIO
========================== */

.cart{

    background:white;

    border-left:1px solid #e5e7eb;

    display:flex;

    flex-direction:column;

    height:calc(100vh - 70px);

    overflow:hidden;

    padding:20px;

}

.cart h2{

    margin-bottom:20px;
}

#cartItems{

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    padding-right:8px;

    margin-bottom:15px;

    min-height:0;

}

.cart-item{

    display:flex;

    flex-direction:column;

    background:#f9fafb;

    border-radius:12px;

    padding:15px;

    margin-bottom:15px;

    gap:12px;
}

.cart-item button{

    border:none;

    background:#dc2626;

    color:white;

    width:30px;

    height:30px;

    border-radius:6px;

    cursor:pointer;
}

.cart-summary{

    border-top:2px solid #e5e7eb;

    padding-top:18px;

    background:white;

    position:sticky;

    bottom:0;

    z-index:10;

}

.cart-summary p{

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

    font-size:16px;

}

.cart-summary h2{

    display:flex;

    justify-content:space-between;

    margin-top:15px;

    color:#dc2626;

}

.checkout-btn{

    width:100%;

    border:none;

    background:#16a34a;

    color:white;

    padding:16px;

    border-radius:14px;

    cursor:pointer;

    font-size:18px;

    font-weight:bold;

    margin-top:18px;

    transition:.3s;

}

.checkout-btn:hover{

    background:#15803d;

}

/* ==========================
   MODAIS DEV KESSIO
========================== */

.modal{

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,.5);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:999;
}

.modal-content{

    background:white;

    width:800px;

    max-height:90vh;

    overflow:auto;

    border-radius:20px;

    padding:25px;
}

.modal-content h2{

    margin-bottom:20px;
}

.modal-content button{

    border:none;

    border-radius:10px;

    cursor:pointer;
}

/* ==========================
   ORDERS DEV KESSIO
========================== */

.orders-list{

    margin-top:20px;
}

.order-card{

    background:white;

    border:1px solid #e5e7eb;

    border-radius:15px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:
    0 3px 10px rgba(0,0,0,.05);
}

.order-item{

    margin-bottom:8px;

    font-size:15px;

    color:#374151;
}

.order-card h3{

    color:#dc2626;

    margin-bottom:10px;

    font-size:22px;
}

.order-date{

    color:#6b7280;

    font-size:14px;

    margin-bottom:10px;
}

.order-items{

    margin-top:10px;

    margin-bottom:15px;

    padding-left:20px;
}

.order-total{

    font-size:22px;

    font-weight:bold;

    color:#16a34a;

    margin-top:15px;
}

/* ==========================
   BOTÕES DEV KESSIO
========================== */

.order-actions{

    display:flex;

    gap:10px;

    margin-top:15px;
}

.pay-btn{

    flex:1;

    border:none;

    padding:12px;

    border-radius:10px;

    background:#16a34a;

    color:white;

    cursor:pointer;

    font-weight:bold;
}

.details-btn{

    flex:1;

    border:none;

    padding:12px;

    border-radius:10px;

    background:#dc2626;

    color:white;

    cursor:pointer;

    font-weight:bold;

    transition:.3s;
}

.details-btn:hover{

    background:#2563eb;
}

/* ==========================
   DETALHES PEDIDO DEV KESSIO
========================== */

.details-items{

    list-style:none;

    padding:0;
}

.details-items li{

    padding:12px;

    border-bottom:
    1px solid #e5e7eb;
}

.details-total{

    margin-top:20px;

    font-size:22px;

    font-weight:bold;

    color:#16a34a;
}

.payment-buttons{

    display:flex;

    gap:15px;

    margin-top:25px;
}

.payment-buttons button{

    flex:1;
}

/* ==========================
   PIZZA MODAL DEV KESSIO
========================== */

.pizza-form{

    display:flex;

    flex-direction:column;
}

.pizza-form label{

    margin-bottom:8px;

    font-weight:600;
}

.pizza-form select{

    padding:12px;

    border:1px solid #ddd;

    border-radius:10px;
}

.pizza-form textarea{

    min-height:100px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:10px;
}

/* ==========================
   BOTÕES PIZZA DEV KESSIO
========================== */

.pizza-form button{

    width:100%;

    border:none;

    padding:15px;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    margin-top:10px;

    transition:.3s;
}

/* ADICIONAR */

.pizza-form button:first-of-type{

    background:#16a34a;

    color:white;
}

.pizza-form button:first-of-type:hover{

    background:#15803d;
}

/* CANCELAR */

.pizza-form button:last-of-type{

    background:#dc2626;

    color:white;
}

.pizza-form button:last-of-type:hover{

    background:#b91c1c;
}

/* ==========================
   EXTRAS DEV KESSIO
========================== */

.extras-list{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:10px;

    margin-top:10px;

    margin-bottom:20px;
}

.extras-list label{

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:normal;
}

/* ==========================
   SCROLL DEV KESSIO
========================== */

::-webkit-scrollbar{

    width:8px;
}

::-webkit-scrollbar-thumb{

    background:#d1d5db;

    border-radius:10px;
}

/* ==========================
   RESPONSIVO DEV KESSIO
========================== */

@media(max-width:1200px){

    .app{

        grid-template-columns:

        300px

        1fr

        320px;
    }
}

@media(max-width:900px){

    .app{

        grid-template-columns:1fr;
    }

    .sidebar{

        display:none;
    }

    .cart{

        display:none;
    }
}
.cash-card{

    padding:20px;

    background:#f9fafb;

    border-radius:15px;
}

.cash-card h3{

    margin-bottom:20px;

    color:#dc2626;
}

.cash-card p{

    margin-bottom:12px;

    font-size:18px;
}
/* ==========================
   BOTÃO FECHAR MODAIS DEV KESSIO
========================== */

.modal-close{

    width:100%;

    margin-top:20px;

    border:none;

    padding:14px;

    border-radius:10px;

    background:#6b7280;

    color:white;

    font-size:16px;

    cursor:pointer;

    transition:.3s;
}

.modal-close:hover{

    background:#374151;
}
/* ==========================
   CARRINHO MELHORADO DEV KESSIO
========================== */

.cart-item-top{

    display:flex;

    flex-direction:column;

    gap:5px;
}

.cart-item-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.quantity-controls{

    display:flex;

    align-items:center;

    gap:8px;
}

.quantity-controls button{

    width:35px;

    height:35px;

    border:none;

    border-radius:8px;

    background:#dc2626;

    color:white;

    cursor:pointer;

    font-weight:bold;
}

.remove-btn{

    width:35px;

    height:35px;

    border:none;

    border-radius:8px;

    background:#dc2626;

    color:white;

    cursor:pointer;
}

/* ==========================
   CHECKOUT MODAL DEV KESSIO
========================== */

#checkoutModal .modal-content{

    width: 500px;

    max-width: 90%;
}

#checkoutModal button{

    width:100%;

    border:none;

    padding:15px;

    margin-top:12px;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    color:white;

    transition:.3s;
}

/* DINHEIRO DEV KESSIO */

#checkoutModal button:nth-of-type(1){

    background:#16a34a;
}

#checkoutModal button:nth-of-type(1):hover{

    background:#15803d;
}

/* CARTÃO DEV KESSIO */

#checkoutModal button:nth-of-type(2){

    background:#2563eb;
}

#checkoutModal button:nth-of-type(2):hover{

    background:#1d4ed8;
}

/* PAGAR DEPOIS DEV KESSIO */

#checkoutModal button:nth-of-type(3){

    background:#f59e0b;
}

#checkoutModal button:nth-of-type(3):hover{

    background:#d97706;
}

/* CANCELAR DEV KESSIO*/

#checkoutModal button:nth-of-type(4){

    background:#dc2626;
}

#checkoutModal button:nth-of-type(4):hover{

    background:#b91c1c;
}
.free{

    background:#16a34a;
}

.occupied{

    background:#ef4444;
}

.selected{

    border:4px solid #2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.25);
}

.payment-buttons{

    display:flex;

    gap:15px;

    margin-top:20px;
}

.cash-btn,
.card-btn{

    flex:1;

    padding:15px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;
}

.cash-btn{

    background:#16a34a;

    color:white;
}

.card-btn{

    background:#2563eb;

    color:white;
}

.cash-btn:hover,
.card-btn:hover{

    opacity:.9;
}

.order-card{

    background:#ffffff;

    padding:20px;

    border-radius:15px;

    border:1px solid #e5e7eb;

    margin-bottom:20px;

    box-shadow:
    0 4px 15px
    rgba(0,0,0,.08);
}

.order-card h3{

    color:#dc2626;

    margin-bottom:15px;

    font-size:22px;
}

.order-item{

    margin-bottom:8px;

    font-size:15px;

    color:#374151;
}

.payment-btn{

    width:100%;

    margin-top:15px;

    padding:12px;

    border:none;

    border-radius:10px;

    background:#16a34a;

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.payment-btn:hover{

    background:#15803d;

    transform:translateY(-2px);
}

.close-btn{

    width:100%;

    margin-top:15px;

    padding:12px;

    border:none;

    border-radius:10px;

    background:#ef4444;

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.close-btn:hover{

    background:#dc2626;

    transform:translateY(-2px);
}

.modal-close-btn{

    width:100%;

    margin-top:20px;

    padding:14px;

    border:none;

    border-radius:12px;

    background:#6b7280;

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.modal-close-btn:hover{

    background:#4b5563;
}

.sidebar-top{

    flex-shrink:0;
    
    margin-bottom:8px;

}

.sidebar-middle{

    flex:1;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    padding-right:6px;

}

.sidebar-bottom{

    background:#fff;

    padding:15px 0 5px;

}
.tables-scroll{

    height:620px;

    overflow-y:auto;

    overflow-x:hidden;

    padding-right:6px;

}
.tables-scroll::-webkit-scrollbar{

    width:8px;

}

.tables-scroll::-webkit-scrollbar-track{

    background:#f3f4f6;

    border-radius:10px;

}

.tables-scroll::-webkit-scrollbar-thumb{

    background:#c7c7c7;

    border-radius:10px;

}

.tables-scroll::-webkit-scrollbar-thumb:hover{

    background:#999;

}
.tables-scroll::-webkit-scrollbar{

    width:6px;

}

.tables-scroll::-webkit-scrollbar-track{

    background:transparent;

}

.tables-scroll::-webkit-scrollbar-thumb{

    background:#d4d4d4;

    border-radius:10px;

}

.tables-scroll::-webkit-scrollbar-thumb:hover{

    background:#bdbdbd;

}
.sidebar-bottom .orders-btn:last-child{

    margin-bottom:0;

}