*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f5f5;
    color:#333;
}

/* HEADER */
.header{
    position:sticky;
    top:0;
    z-index:1000;
    height:80px;
    background:#d62828;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
    color:white;
}

.logo{
    font-size:24px;
    font-weight:700;
}

.search-box{
    width:400px;
    max-width:100%;
    background:white;
    display:flex;
    align-items:center;
    padding:12px 15px;
    border-radius:10px;
}

.search-box input{
    border:none;
    outline:none;
    width:100%;
    font-size:15px;
}

.search-box i{
    color:#888;
}

.cart-icon{
    position:relative;
    cursor:pointer;
    font-size:24px;
}

.cart-icon span{
    position:absolute;
    top:-10px;
    right:-12px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#ffcc00;
    color:black;
    font-size:12px;
    font-weight:bold;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* BANNER */
.banner{
    height:420px;
    background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("https://images.unsplash.com/photo-1550547660-d9450f859349?w=1400");
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    padding:60px;
}

.banner-content{
    color:white;
    max-width:600px;
}

.banner-content h1{
    font-size:52px;
    margin-bottom:15px;
}

.banner-content p{
    font-size:18px;
    margin-bottom:25px;
}

.banner-content button{
    background:#ffcc00;
    border:none;
    padding:15px 30px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

/* CATEGORIAS */
.categorias{
    display:flex;
    gap:15px;
    padding:25px;
    overflow-x:auto;
}

.categoria{
    border:none;
    padding:12px 25px;
    border-radius:40px;
    cursor:pointer;
    background:white;
    font-weight:600;
    white-space:nowrap;
}

.categoria.active{
    background:#d62828;
    color:white;
}

/* PRODUTOS */
.produtos{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap:25px;
    padding:30px;
}

.card{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card-body{
    padding:20px;
}

.card-body h3{
    margin-bottom:10px;
}

.card-body p{
    color:#666;
    margin-bottom:20px;
}

.card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.card-footer span{
    font-size:20px;
    font-weight:700;
    color:#d62828;
}

.btn-add{
    border:none;
    background:#d62828;
    color:white;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}

/* MODAL */
.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal-overlay.active{
    display:flex;
}

.modal-box{
    width:95%;
    max-width:600px;
    background:white;
    border-radius:20px;
    padding:30px;
    position:relative;
    max-height:90vh;
    overflow-y:auto;
}

.close-modal{
    position:absolute;
    top:15px;
    right:15px;
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
}

.modal-box h2{
    color:#d62828;
    margin-bottom:20px;
}

.modal-box h3{
    margin-top:20px;
    margin-bottom:10px;
}

.ingredientes,
.extras{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.ingredientes label,
.extras label{
    background:#f7f7f7;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
}

textarea{
    width:100%;
    height:100px;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    resize:none;
    margin-top:10px;
}

.quantidade{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:20px;
}

.quantidade button{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#d62828;
    color:white;
    cursor:pointer;
}

.quantidade span{
    font-size:22px;
    font-weight:bold;
}

.add-cart-modal{
    width:100%;
    margin-top:25px;
    background:#d62828;
    color:white;
    border:none;
    padding:16px;
    border-radius:12px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

/* CARRINHO */
.carrinho{
    position:fixed;
    top:0;
    right:-450px;
    width:400px;
    max-width:100%;
    height:100vh;
    background:white;
    box-shadow:-5px 0 25px rgba(0,0,0,.15);
    transition:.4s;
    z-index:9998;
    padding:20px;
    overflow-y:auto;
}

.carrinho.ativo{
    right:0;
}

.carrinho-topo{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.carrinho-topo span{
    cursor:pointer;
    font-size:24px;
}

.item-carrinho{
    padding:15px 0;
    border-bottom:1px solid #ddd;
}

.total{
    margin-top:20px;
    font-size:22px;
    font-weight:bold;
}

.carrinho input, .carrinho select{
    width:100%;
    padding:12px;
    margin-top:15px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size: 15px;
    background: white;
}

.btn-whatsapp{
    width:100%;
    margin-top:20px;
    border:none;
    background:#25D366;
    color:white;
    padding:15px;
    border-radius:10px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

/* BOTÃO FLUTUANTE */
.abrir-carrinho{
    position:fixed;
    bottom:25px;
    right:25px;
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    background:#d62828;
    color:white;
    font-size:24px;
    cursor:pointer;
    z-index:9997;
}

#contador{
    position:absolute;
    top:-5px;
    right:-5px;
    width:25px;
    height:25px;
    border-radius:50%;
    background:#ffcc00;
    color:black;
    font-size:13px;
    font-weight:bold;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* RESPONSIVO */
@media(max-width:768px){
    .header{
        height:auto;
        flex-wrap:wrap;
        gap:15px;
        padding:15px;
    }
    .search-box{
        width:100%;
    }
    .banner{
        height:320px;
        padding:30px;
    }
    .banner-content h1{
        font-size:34px;
    }
    .produtos{
        grid-template-columns:1fr;
        padding:20px;
    }
    .carrinho{
        width:100%;
        right:-100%;
    }
    .modal-box{
        width:95%;
        padding:20px;
    }
}
