
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul: #0086ff;
    --azul-escuro: #0066cc;
    --amarelo: #ffdd00;
    --texto: #333;
    --fundo: #f4f5f7;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--fundo);
    color: var(--texto);
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
}

.container {
    width: min(1200px, 94%);
    margin: auto;
}

/* CABEÇALHO */

header {
    background: var(--azul);
    color: white;
}

.topo {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    color: white;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -2px;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--amarelo);
}

.busca {
    flex: 1;
    max-width: 550px;
    height: 43px;
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.busca input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0 15px;
    color: #333;
}

.busca button {
    background: white;
    color: var(--azul);
    padding: 0 17px;
}

.acoes {
    display: flex;
    align-items: center;
    gap: 23px;
}

.acao {
    color: white;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    text-align: left;
}

.acao i {
    font-size: 21px;
}

.acao strong {
    display: block;
    font-size: 12px;
}

.menu {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
}

.menu a {
    color: white;
    text-decoration: none;
}

.menu a:hover {
    text-decoration: underline;
}

/* LOCALIZAÇÃO */

.localizacao {
    background: #eaf5ff;
    padding: 13px 0;
}

.localizacao-conteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.local-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.local-info > i {
    font-size: 22px;
    color: var(--azul);
}

.local-info strong {
    font-size: 12px;
    display: block;
}

.local-info p {
    font-size: 11px;
    color: #697785;
    margin-top: 3px;
}

#statusLocal {
    font-size: 11px;
    color: #52616c;
    margin-top: 5px;
}

.btn-local {
    background: var(--azul);
    color: white;
    border-radius: 5px;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
}

.btn-local:hover {
    background: var(--azul-escuro);
}

.btn-local:disabled {
    opacity: .65;
    cursor: wait;
}

/* CONTEÚDO */

main {
    padding: 25px 0 60px;
}

/* BANNER */

.banner {
    min-height: 310px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(90deg, #003c77 0%, #0058a9e8 43%, #0058a900 100%),
        url("https://images.unsplash.com/photo-1607082349566-187342175e2f?auto=format&fit=crop&w=1500&q=85")
        center/cover;
    display: flex;
    align-items: center;
    color: white;
}

.banner-texto {
    padding: 40px;
    max-width: 530px;
}

.banner-texto small {
    color: var(--amarelo);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 11px;
}

.banner h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    margin: 13px 0;
    letter-spacing: -2px;
}

.banner p {
    font-size: 13px;
    line-height: 1.7;
    color: #e2efff;
}

.banner button {
    margin-top: 23px;
    padding: 13px 22px;
    background: var(--amarelo);
    color: #222;
    font-weight: 800;
    border-radius: 5px;
    font-size: 12px;
}

/* TÍTULOS */

.titulo-secao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 20px;
}

.titulo-secao h2 {
    font-size: 20px;
    letter-spacing: -0.6px;
}

.titulo-secao span {
    color: var(--azul);
    font-size: 12px;
    font-weight: 700;
}

/* CATEGORIAS */

.categorias {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.categoria {
    background: white;
    border-radius: 8px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    transition: .2s;
    color: #333;
}

.categoria:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 20px #0000000d;
}

.categoria i {
    font-size: 27px;
    color: var(--azul);
}

.categoria span {
    font-size: 11px;
    font-weight: 700;
}

/* PRODUTOS */

.produtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.produto {
    background: white;
    border-radius: 8px;
    padding: 17px;
    transition: .2s;
    position: relative;
}

.produto:hover {
    box-shadow: 0 5px 22px #00000012;
    transform: translateY(-3px);
}

.produto img {
    width: 100%;
    height: 165px;
    object-fit: contain;
    margin-bottom: 15px;
}

.desconto {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e8f8ed;
    color: #168a43;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 4px;
}

.produto h3 {
    font-size: 12px;
    line-height: 1.5;
    min-height: 38px;
    font-weight: 500;
}

.antigo {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-top: 12px;
}

.preco {
    font-size: 22px;
    font-weight: 800;
    margin-top: 3px;
    color: #222;
}

.parcela {
    color: #68727b;
    font-size: 10px;
    margin-top: 5px;
}

.btn-comprar {
    width: 100%;
    padding: 11px;
    margin-top: 15px;
    background: var(--azul);
    color: white;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.btn-comprar:hover {
    background: var(--azul-escuro);
}

.nenhum-produto {
    text-align: center;
    padding: 35px;
    font-size: 13px;
    color: #777;
}

/* RODAPÉ */

footer {
    background: #172b40;
    color: white;
    padding: 35px 0;
    margin-top: 30px;
}

.footer-conteudo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

footer h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

footer p {
    font-size: 11px;
    color: #b9c8d5;
    line-height: 1.8;
}

.copyright {
    border-top: 1px solid #ffffff20;
    margin-top: 25px;
    padding-top: 18px;
    font-size: 10px;
    color: #aab8c4;
}

/* RESPONSIVIDADE */

@media(max-width: 850px) {

    .topo {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .busca {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .acoes {
        gap: 13px;
    }

    .categorias {
        grid-template-columns: repeat(3, 1fr);
    }

    .produtos {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 480px) {

    .logo {
        font-size: 25px;
    }

    .acao span {
        display: none;
    }

    .menu {
        gap: 20px;
    }

    .localizacao-conteudo {
        align-items: flex-start;
        flex-direction: column;
    }

    .banner {
        min-height: 300px;
        background-position: 60% center;
    }

    .banner-texto {
        padding: 25px;
    }

    .categorias {
        gap: 9px;
    }

    .categoria {
        min-height: 95px;
    }

    .produto {
        padding: 12px;
    }

    .produto img {
        height: 125px;
    }

    .preco {
        font-size: 19px;
    }

}
