/* ==========================
   RESET E BASE
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 600;
}

/* ==========================
   HEADER / NAV
========================== */
header {
    background: #ff3e00; /* cor estilo iFood */
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

header img.logo {
    width: 130px;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #ffd100;
}

/* ==========================
   STATUS SITE
========================== */
#mensagem-status {
    text-align: center;
    font-weight: 600;
    color: #ff3e00;
    margin: 15px 0;
}

/* ==========================
   PRODUTOS / CATEGORIAS
========================== */
#categorias {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.categoria h2 {
    margin-bottom: 15px;
    color: #111;
    border-bottom: 2px solid #ff3e00;
    display: inline-block;
    padding-bottom: 5px;
}

.produto {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    width: 200px;
    text-align: center;
}

.produto:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.produto img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.produto h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.produto p {
    font-weight: 500;
    margin-bottom: 10px;
}

/* ==========================
   QUANTIDADE + / -
========================== */
.qtd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qtd button {
    background: #ff3e00;
    border: none;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.qtd button:hover {
    background: #e63600;
}

.qtd span {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
}

/* ==========================
   CARRINHO
========================== */
#carrinho {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#carrinho p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

#total {
    font-weight: 700;
    color: #ff3e00;
    font-size: 1.2rem;
}

/* ==========================
   BOTﾃグ PAGAR
========================== */
button#finalizar {
    background: #ff3e00;
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    width: 100%;
    transition: 0.3s;
}

button#finalizar:hover {
    background: #e63600;
}

/* ==========================
   RESPONSIVO
========================== */
@media (min-width: 768px) {
    #categorias {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .produto {
        width: 220px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav a {
        margin-left: 0;
    }

    .produto {
        width: 100%;
    }
}

.btn-voltar {
    position: fixed;       /* Fica sempre visível */
    top: 10px;             /* Ajuste de acordo com seu header */
    right: 20px;            /* Distância da borda esquerda */
    background: #ff3e00;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.btn-voltar:hover {
    background: #e63600;
}