html {
    scroll-behavior: smooth;
}

body {
    background-color: #a7b6bd;
    color: white;
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
}

header {
    background-color: #1697a1;
    border: 4px solid black;
    border-radius: 15px;
    padding: 5px 10px;
    margin-bottom: 20px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.4);

    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

h1 {
    color: white;
    font-size: 56px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: bold;
    text-shadow:
        3px 3px 0px black,
        5px 5px 0px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

h2 {
    color: #222;
    margin-bottom: 20px;
    text-shadow: none;
}

.status-loja {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #222;
    color: white;
    font-weight: bold;
    margin-top: 8px;
}

.banner {
    background-color: #ffcc00;
    color: black;
    font-weight: bold;
    padding: 14px;
    border: 3px solid black;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

.busca-area {
    margin-bottom: 20px;
}

#campoBusca {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 15px;
    border: 3px solid black;
    font-size: 18px;
    outline: none;
}

.menu {
    position: sticky;
    top: 0;
    z-index: 999;

    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 10px;

    flex-wrap: wrap;

    background-color: #1fb7c1;
    border-bottom: 3px solid rgba(0,0,0,0.3);
}

.menu a {
    background-color: #1697a1;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid black;
    transition: 0.2s;
}

.menu a:hover {
    background-color: #117780;
    transform: scale(1.05);
}

section {
    margin-bottom: 45px;
}

.titulo-categoria {
    cursor: pointer;
    background-color: rgba(255,255,255,0.35);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.25);
}

.titulo-categoria::after {
    content: "  ▼";
    font-size: 16px;
}

.produtos {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 18px;
    justify-content: start;
}

.produtos.fechado {
    display: none;
}

.produto {
    background-color: #2b2b2b;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    transition: 0.2s;
}

.produto:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 18px rgba(0,0,0,0.6);
}

.produto img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
    border-radius: 10px;
}

.produto h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 22px;
}

.produto p {
    margin-top: 8px;
    margin-bottom: 8px;
}

.preco {
    color: #00ff88;
    font-size: 26px;
    font-weight: bold;
}

.selo {
    background-color: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    animation: pulsar 1.2s infinite alternate;
}

@keyframes pulsar {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.lado {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.vazio {
    color: #eaeaea;
    font-style: italic;
    opacity: 0.8;
}

.carrinho {
    background-color: #222;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 0 10px black;
}

.carrinho h2 {
    color: white;
}

#totalFinal {
    color: #00ff88;
    font-size: 32px;
    margin-top: 10px;
}

.item-carrinho {
    background-color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.controles-carrinho {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.controles-carrinho button,
.produto button,
#btnWhatsApp {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.controles-carrinho button {
    background-color: #ffcc00;
    color: black;
}

.remover-item {
    background-color: #cc3333 !important;
    color: white !important;
}

.dados-pedido {
    background-color: #333;
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.dados-pedido h3 {
    margin-top: 0;
}

.dados-pedido input,
.dados-pedido select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
}

.opcoes {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.opcoes label {
    background-color: #222;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

#limparCarrinho {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background-color: #cc3333;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
}

#limparCarrinho:hover {
    background-color: #aa2222;
}

.avisoPedido {
    background-color: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

#btnWhatsApp {
    width: 100%;
    font-size: 18px;
    padding: 16px;
}

#botaoCarrinhoFlutuante {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
    min-width: 70px;
    height: 60px;
    border: 3px solid black;
    border-radius: 50px;
    background-color: #25d366;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
    font-weight: bold;
}

#contadorCarrinho {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 14px;
    vertical-align: top;
}

#topo {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 55px;
    height: 55px;
    border: 3px solid black;
    border-radius: 50%;
    background-color: #ffcc00;
    color: black;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.4);
    transition: 0.2s;
}

#topo:hover,
#botaoCarrinhoFlutuante:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .produtos {
        grid-template-columns: 1fr;
    }

    .lado {
        display: none;
    }

    h1 {
        font-size: 36px;
    }

    header {
        justify-content: center;
    }

    .menu {
        gap: 8px;
        padding: 8px;
    }

    .menu a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .produto img {
        height: 220px;
    }
}