/* Estilo de alinhamento e reset global */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    background: #FF1015;
}

body {
    background-color: #FF1015;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

.conteudo-principal {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Padrão */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 20px;
    max-height: 12vh;
    background-color: whitesmoke;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .imagem {
    width: 110px;
    height: auto;
    display: flex;
    align-items: center;
}

header #logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navegação e Ícones */
header .itens {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem; /* Tamanho fixo para melhor legibilidade */
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
}

header .itens div {
    margin-right: 30px;
}

header .itens div:last-child {
    margin-right: 0;
}

header .itemTexto {
    text-decoration: none;
    display: inline-block;
    position: relative;
    color: #FF1015;
}

header .itemTexto::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF1015;
    transform-origin: center;
    transition: transform 0.25s ease-out;
}

header .itemTexto:hover::after {
    transform: scaleX(1);
}

/* Estado ativo para o link da página atual */
.itemTexto.ativo {
    cursor: default;
    pointer-events: none;
}

.itemTexto.ativo::after {
    transform: scaleX(1) !important;
}

/* Ícones Sociais e de Compras */
header .social {
    display: flex;
    gap: 30px;
}

header .social i {
    color: black;
    font-size: 1.6rem; /* Tamanho fixo para melhor legibilidade */
    transition: transform 0.3s ease;
}

header #facebook:hover {
    color: blue;
}

header #instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

header #compras {
    font-size: 3rem; /* Aumentado para dar destaque em telas maiores */
}

header #compras a {
    color: #FF1015;
    text-decoration: none;
}

/* Footer Padrão */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background-color: whitesmoke;
    margin-top: auto;
}

footer .imagem {
    width: 90px;
    height: auto;
}

footer .imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

footer .info p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    white-space: normal;
    text-align: center;
}

footer #direitos p {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

/* Botão Voltar ao Topo */
#btnVoltar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FF1015;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#btnVoltar.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnVoltar:hover {
    background-color: #cc0d12;
    transform: scale(1.1);
}

/* Media Queries para responsividade de Header e Footer */
@media (max-width: 1024px) {
    header {
        padding: 8px 18px;
        gap: 12px;
    }
    header .imagem {
        width: 90px;
    }
    header .itens {
        font-size: 1rem;
        gap: 16px;
    }
    header .social {
        gap: 20px;
    }
    header .social i {
        font-size: 1.4rem;
    }
    header #compras {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        padding: 8px 12px;
        gap: 8px;
        align-items: center;
    }
    header .imagem {
        width: 60px;
        flex-shrink: 0;
    }
    header .itens {
        order: 4;
        width: 100%;
        font-size: 10px;
        justify-content: center;
        gap: 8px;
    }
    header .itens div {
        margin-right: 0;
    }
    header .social {
        order: 2;
        margin-left: auto;
        gap: 12px;
    }
    header .social i {
        font-size: 18px;
    }
    header #compras {
        order: 3;
        font-size: 18px;
    }
    footer {
        flex-direction: column;
        padding: 12px;
        gap: 6px;
    }
    footer .imagem {
        width: 60px;
    }
    footer .info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    footer .info p, footer #direitos p {
        font-size: 10px;
        white-space: normal;
        text-align: center;
    }
    #btnVoltar {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 6px 10px;
        gap: 6px;
    }
    header .imagem {
        width: 50px;
    }
    header .itens {
        font-size: 9px;
        gap: 6px;
    }
    header .social {
        gap: 10px;
    }
    header .social i {
        font-size: 16px;
    }
    header #compras {
        font-size: 16px;
    }
    footer {
        padding: 10px;
        gap: 4px;
    }
    footer .imagem {
        width: 50px;
    }
    footer .info p, footer #direitos p {
        font-size: 9px;
    }
    #btnVoltar {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 5px 8px;
    }
    header .imagem {
        width: 45px;
    }
    header .itens {
        font-size: 8px;
        gap: 4px;
    }
    header .social {
        gap: 8px;
    }
    header .social i {
        font-size: 14px;
    }
    header #compras {
        font-size: 14px;
    }
    footer {
        padding: 10px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    footer .imagem {
        width: 45px;
        flex-basis: 100%;
        text-align: center;
    }
    footer .info {
        flex-basis: 100%;
    }
    footer .info p, footer #direitos p {
        font-size: 9px;
        margin: 2px 0;
    }
    #btnVoltar {
        bottom: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    header {
        padding: 4px 6px;
    }
    header .imagem {
        width: 40px;
    }
    header .itens {
        font-size: 7px;
    }
    header .social i {
        font-size: 12px;
    }
    header #compras {
        font-size: 12px;
    }
    footer {
        padding: 10px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    footer .imagem {
        width: 40px;
        flex-basis: 100%;
        text-align: center;
    }
    footer .info {
        flex-basis: 100%;
    }
    footer .info p, footer #direitos p {
        font-size: 9px;
        margin: 2px 0;
    }
}

