
/* ========================================
   CONFIGURAÇÕES GERAIS
======================================== */

:root {
    --bpl-laranja: #f58220;
    --bpl-laranja-escuro: #dc6d12;
    --texto: #222222;
    --fundo: #f5f5f5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--fundo);
    color: var(--texto);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   CABEÇALHO
======================================== */

.topo {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    padding: 5px 16px;

    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: padding 0.25s ease, box-shadow 0.25s ease;
}

/* LOGO BPL */

.logo {
    display: block;
    width: 132px;
    height: 132px;
    text-decoration: none;
    flex-shrink: 0;
    transition: width 0.25s ease, height 0.25s ease;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* SLOGAN DA MARCA */

.slogan {
    margin: -19px 0 1px;
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-align: center;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    animation: sloganRevelar 1.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
    transition: opacity 0.2s ease, max-height 0.25s ease, margin 0.25s ease;
    max-height: 24px;
}

/* Animação discreta de entrada do logo */

.logo img {
    animation: logoEntrada 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes logoEntrada {
    from {
        opacity: 0;
        transform: translateY(9px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sloganRevelar {
    0% {
        opacity: 0.35;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Cabeçalho reduzido durante a rolagem */
.topo.compacto {
    gap: 2px;
    padding-top: 3px;
    padding-bottom: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.topo.compacto .logo {
    width: 76px;
    height: 76px;
}

.topo.compacto .slogan {
    max-height: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   MENU DE CATEGORIAS
======================================== */

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 2px 0 4px;
}

.menu a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 22px;

    color: #333333;
    background-color: #f1f1f1;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.menu a:hover {
    background-color: #e8e8e8;
}

.menu a:focus-visible {
    outline: 2px solid var(--bpl-laranja);
    outline-offset: 2px;
}

/* Categoria selecionada */

.menu a.ativo {
    color: #ffffff;
    background-color: var(--bpl-laranja);
    box-shadow: 0 3px 9px rgba(245, 130, 32, 0.28);
}

.menu a:active {
    transform: scale(0.96);
}

/* ========================================
   CATÁLOGO
======================================== */

.catalogo {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background-color: #ffffff;
}

.pagina {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-margin-top: 160px;
}

.pagina img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    margin: 0;
    background: #ffffff;
}

/* ========================================
   CHAMADAS DE AÇÃO ENTRE CATEGORIAS
======================================== */

.chamada-categoria {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    background: linear-gradient(110deg, #fff7f0, #ffffff);
    border-top: 1px solid #f4e2d2;
    border-bottom: 1px solid #f4e2d2;
}

.chamada-categoria p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.45;
}

.chamada-categoria p strong {
    font-size: 15px;
}

.chamada-categoria p span {
    color: #666666;
}

.chamada-categoria a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 11px 16px;
    border-radius: 24px;
    background: var(--bpl-laranja);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chamada-categoria a:hover {
    background: var(--bpl-laranja-escuro);
    transform: translateY(-1px);
}

.chamada-categoria a:focus-visible {
    outline: 2px solid var(--bpl-laranja-escuro);
    outline-offset: 3px;
}

/* ========================================
   RODAPÉ
======================================== */

.rodape {
    width: 100%;
    padding: 42px 24px 0;
    background-color: #202020;
    color: #ffffff;
}

.rodape-conteudo {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 36px;

    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.rodape-marca,
.rodape-links,
.rodape-contato {
    min-width: 0;
}

/* Marca BPL */

.rodape-logo {
    display: inline-block;
    margin-bottom: 12px;

    color: var(--bpl-laranja);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
}

.rodape-descricao {
    max-width: 280px;
    margin: 0;

    color: #dddddd;
    font-size: 15px;
    line-height: 1.7;
}

/* Títulos */

.rodape h2 {
    margin: 5px 0 18px;

    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

/* Links do catálogo */

.rodape-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.rodape-links h2 {
    margin-bottom: 6px;
}

.rodape-links a {
    color: #dddddd;
    font-size: 14px;
    text-decoration: none;

    transition: color 0.2s ease;
}

.rodape-links a:hover,
.rodape-links a:focus-visible {
    color: var(--bpl-laranja);
}

/* Contato */

.rodape-contato p {
    margin: 0 0 18px;

    color: #dddddd;
    font-size: 14px;
    line-height: 1.7;
}

.rodape-whatsapp {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 8px;

    background-color: #25d366;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.rodape-whatsapp:hover,
.rodape-whatsapp:focus-visible {
    background-color: #1ebe5d;
}

/* Instagram */

.rodape-instagram {
    display: block;
    width: fit-content;
    margin-top: 16px;

    color: var(--bpl-laranja);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: color 0.2s ease;
}

.rodape-instagram:hover,
.rodape-instagram:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

/* Faixa inferior */

.rodape-final {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;

    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 0;

    border-top: 1px solid #444444;
}

.rodape-final p {
    margin: 0;
    color: #aaaaaa;
    font-size: 12px;
    line-height: 1.6;
}

/* ========================================
   BOTÃO FLUTUANTE DO WHATSAPP
======================================== */

.whatsapp-flutuante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;
    border: none;
    border-radius: 50px;

    background-color: #25d366;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.whatsapp-flutuante:hover {
    transform: scale(1.05);
    background-color: #1ebe5d;
}

.whatsapp-flutuante:focus-visible {
    outline: 3px solid #128c45;
    outline-offset: 4px;
}

.whatsapp-icone {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
======================================== */

.acoes-flutuantes {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 999;
}

.botao-topo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.botao-topo.visivel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.botao-topo svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.botao-topo:focus-visible {
    outline: 3px solid var(--bpl-laranja);
    outline-offset: 3px;
}

/* ========================================
   RESPONSIVIDADE PARA TABLETS
======================================== */

@media (max-width: 900px) {

    .rodape-conteudo {
        grid-template-columns: 1fr 1fr;
    }

}

/* ========================================
   RESPONSIVIDADE PARA CELULARES
======================================== */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 145px;
    }

    .topo {
        gap: 2px;
        padding: 4px 8px;
    }

    /* Logo no celular */

    .logo {
        width: 104px;
        height: 104px;
    }

    .slogan {
        margin-top: -18px;
        margin-bottom: 0;
        font-size: 14px;
    }

    /* Menu horizontal deslizável */

    .menu {
        touch-action: pan-x;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 7px;

        overflow-x: auto;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 10px;
        padding: 3px 2px 6px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 9px 13px;
        font-size: 13px;
    }

    .topo.compacto {
        gap: 1px;
        padding: 2px 8px 4px;
    }

    .topo.compacto .logo {
        width: 58px;
        height: 58px;
    }

    .topo.compacto .menu {
        padding-top: 1px;
        padding-bottom: 2px;
    }

    .pagina {
        scroll-margin-top: 112px;
    }

    .chamada-categoria {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 17px 16px;
    }

    .chamada-categoria a {
        width: 100%;
        min-height: 44px;
    }

    /* Rodapé */

    .rodape {
        padding: 32px 20px 0;
    }

    .rodape-conteudo {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 26px;
    }

    .rodape-logo {
        font-size: 32px;
    }

    .rodape-descricao {
        max-width: 100%;
    }

    .rodape-final {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* WhatsApp */

    .whatsapp-flutuante {
        right: 14px;
        bottom: 14px;
        gap: 8px;

        padding: 13px 16px;
        font-size: 14px;
    }

    .whatsapp-icone {
        width: 22px;
        height: 22px;
    }

    .acoes-flutuantes {
        right: 14px;
        bottom: 78px;
    }

    .botao-topo {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
    }

}

/* ========================================
   ACESSIBILIDADE
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* ========================================
   ÁREAS CLICÁVEIS — SACOLA ALÇA CAMISETA
======================================== */

.pagina-com-cliques .imagem-interativa {
    position: relative;
    width: 100%;
    line-height: 0;
}

.pagina-com-cliques .imagem-interativa > img {
    display: block;
    width: 100%;
    height: auto;
}

.area-preco {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    line-height: normal;
}

.area-preco:hover {
    background: rgba(245, 130, 32, 0.12);
    outline: 2px solid rgba(245, 130, 32, 0.85);
    outline-offset: -2px;
}

.area-preco:focus-visible {
    outline: 3px solid #f58220;
    outline-offset: -3px;
    background: rgba(245, 130, 32, 0.14);
}

/* Modal de confirmação do pedido */
body.modal-pedido-aberto {
    overflow: hidden;
}

.modal-pedido {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
    line-height: 1.45;
}

.modal-pedido.aberto {
    display: flex;
}

.modal-pedido__painel {
    position: relative;
    width: min(100%, 440px);
    padding: 28px 24px 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.modal-pedido__painel h2 {
    margin: 0 28px 12px;
    color: #202020;
    font-size: 22px;
}

.modal-pedido__painel p {
    margin: 0 0 22px;
    color: #333333;
    font-size: 17px;
}

.modal-pedido__fechar {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333333;
    font-size: 27px;
    cursor: pointer;
}

.modal-pedido__acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-pedido__confirmar,
.modal-pedido__cancelar {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.modal-pedido__confirmar {
    background: #f58220;
    color: #ffffff;
}

.modal-pedido__cancelar {
    background: #eeeeee;
    color: #333333;
}

.modal-pedido__confirmar:hover {
    background: #dc6d12;
}

.modal-pedido__cancelar:hover {
    background: #e2e2e2;
}

@media (max-width: 480px) {
    .modal-pedido__painel {
        padding: 26px 18px 20px;
    }

    .modal-pedido__painel h2 {
        font-size: 20px;
    }

    .modal-pedido__painel p {
        font-size: 16px;
    }
}


/* Hotspots da página 4 (sacolas metalizadas), sem interferir na página 5. */
#sacolas { position: relative; }
#sacolas > .area-preco { position: absolute; }
