/* =========================================
   RESET & BASE
========================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}


/* =========================================
   HEADER
========================================= */

header {
    background: #A020F0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Compensa o cabeçalho fixo para o conteúdo não ficar por baixo */
body {
    padding-top: 76px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-wrap img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-texto h1 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.logo-texto span {
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
    font-weight: 500;
}

/* Barra de pesquisa (header) — mesmo design da página inicial */
.busca-form {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 640px;
    margin: 0 24px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.busca-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    color: #222;
    background: transparent;
}

.busca-form button {
    border: none;
    background: #a020f0;
    color: #fff;
    width: 42px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.busca-form button:hover { background: #7d2fff; }

/* Ações do header (carrinho + hamburguer) */
.header-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Botão ícone do carrinho no header */
.btn-icone-carrinho {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-icone-carrinho:active {
    background: rgba(255,255,255,0.3);
}

.badge-carrinho {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b3b;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #A020F0;
}

/* Hamburguer */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    z-index: 300;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.hamburger:active {
    background: rgba(255,255,255,0.3);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aberto span:nth-child(2) { opacity: 0; }
.hamburger.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile — dropdown */
nav#nav-principal {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #8200c8;
    z-index: 250;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    padding: 6px 0;
}

nav#nav-principal.aberto {
    display: flex;
}

nav#nav-principal a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

nav#nav-principal a:last-of-type {
    border-bottom: none;
}

nav#nav-principal a:active,
nav#nav-principal a:hover {
    background: rgba(255,255,255,0.1);
}

nav#nav-principal a.ativo {
    font-weight: bold;
    background: rgba(255,255,255,0.12);
}


/* =========================================
   PÁGINA PRINCIPAL
========================================= */

.produtos-pagina {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 12px 40px;
}

.titulo-pagina {
    margin-bottom: 18px;
    padding: 0 4px;
}

.titulo-pagina h1 {
    font-size: 24px;
    color: #222;
    font-weight: 800;
}

.titulo-pagina p {
    color: #777;
    font-size: 14px;
    margin-top: 4px;
}


/* =========================================
   CATÁLOGO — filtro sempre acima dos cards
========================================= */

.catalogo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================
   FILTRO DE MARCAS — barra horizontal
========================================= */

.menu-marcas {
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

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

.menu-marcas h2 {
    display: none; /* escondido no mobile, aparece no desktop */
}

/* Linha de chips de marca */
.marcas-linha {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 2px 4px;
}

/* Chip de marca */
.marca {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border: 2px solid #e0d0f5;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.marca:active,
.marca:hover {
    background: #f3e8ff;
    border-color: #b05aff;
    color: #7b00d4;
}

.marca.ativo {
    background: #9b4dff;
    border-color: #9b4dff;
    color: #fff;
}

.icone {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Subcategorias — aparecem como linha extra abaixo dos chips */
.subcategorias {
    display: none;
}

.grupo-marca.aberto .subcategorias {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-left: 6px;
}

.subcategorias button {
    display: inline-flex;
    white-space: nowrap;
    border: 2px solid #e0d0f5;
    background: #faf5ff;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.subcategorias button:active,
.subcategorias button:hover {
    background: #f3e8ff;
    border-color: #b05aff;
    color: #7b00d4;
}

.subcategorias button.ativo {
    background: #c084fc;
    border-color: #c084fc;
    color: #fff;
    font-weight: 700;
}


/* =========================================
   ÁREA DE PRODUTOS
========================================= */

.area-produtos {
    min-width: 0;
}

.topo-produtos {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.topo-produtos h2 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.topo-produtos span {
    font-size: 12px;
    color: #999;
}


/* =========================================
   GRID DE CARDS — 2 colunas no mobile
========================================= */

.lista-produtos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nenhum-produto {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}


/* =========================================
   CARD DE PRODUTO
========================================= */

.produto-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    color: #222;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.produto-card:active {
    transform: scale(0.98);
}

/* Marca */
.produto-marca {
    color: #9b4dff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* Nome */
.produto-card h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #222;
}

/* Categoria */
.produto-categoria {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

/* Preço */
.produto-preco {
    font-size: 16px;
    font-weight: 800;
    color: #9b4dff;
    margin-bottom: 8px;
}

/* Botão */
.produto-botao {
    width: 100%;
    border: none;
    padding: 9px 6px;
    border-radius: 8px;
    background: #9b4dff;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
}

.produto-botao:active {
    background: #7d2fff;
}


/* =========================================
   CARROSSEL INTERNO DO CARD
========================================= */

.card-carrossel {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f5f5f5;
    touch-action: pan-y;
}

.card-fotos {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.card-fotos img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Setas internas */
.card-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(155, 77, 255, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.card-seta:active { background: #7d2fff; }
.card-prev { left: 4px; }
.card-next { right: 4px; }

/* Bolinhas */
.card-bolinhas {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.card-bolinha {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    transition: background 0.3s;
}

.card-bolinha.ativa {
    background: #9b4dff;
}


/* =========================================
   CARRINHO
========================================= */

.carrinho {
    background: #fff;
    border-radius: 14px;
    margin: 16px 12px 24px;
    padding: 18px 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.carrinho h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
}

.itens-carrinho {
    min-height: 80px;
    border: 1.5px dashed #ddd;
    border-radius: 10px;
    padding: 14px 12px;
    margin-bottom: 14px;
}

.carrinho-vazio {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}

/* Item do carrinho */
.item-carrinho {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-carrinho:last-child { border-bottom: none; }

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 120px;
    gap: 2px;
    min-width: 0;
}

.item-nome {
    font-weight: 700;
    font-size: 13px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-preco-unit {
    font-size: 11px;
    color: #888;
}

.item-controles {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-qtd {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #9b4dff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.btn-qtd:active { background: #7d2fff; }

.item-qtd {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.btn-remover {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.btn-remover:active { background: #ffe0e0; }

.item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: #9b4dff;
    min-width: 70px;
    text-align: right;
    width: 100%;
}

/* Total */
.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.total span {
    font-size: 20px;
    font-weight: 800;
    color: #9b4dff;
}

/* Botão finalizar */
.finalizar {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.finalizar:active { background: #18b354; }


/* =========================================
   NOTIFICAÇÃO FLUTUANTE
========================================= */

.notificacao-carrinho {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    background: #1f1f1f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    text-overflow: ellipsis;
    overflow: hidden;
}

.notificacao-carrinho.visivel {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* =========================================
   FOOTER
========================================= */

.footer {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 20px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.footer-coluna h2 {
    font-size: 22px;
    color: #c084fc;
    margin-bottom: 8px;
}

.footer-coluna h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-coluna p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.redes-sociais {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.rede {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    word-break: break-word;
    transition: color 0.2s;
}

.rede.instagram:hover  { color: #e1306c; }
.rede.whatsapp:hover   { color: #25d366; }
.rede.email:hover      { color: #c084fc; }

.footer-bottom {
    border-top: 1px solid #333;
    padding: 14px 20px;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 12px;
}


/* =========================================
   TABLET — 600 px +
========================================= */

@media (min-width: 600px) {

    header {
        padding: 8px 24px;
        min-height: 64px;
    }

    .logo-wrap img { width: 50px; height: 50px; }
    .logo-texto h1 { font-size: 20px; }
    .logo-texto span { font-size: 11px; }

    .produtos-pagina {
        padding: 20px 20px 50px;
    }

    .titulo-pagina h1 { font-size: 28px; }

    .lista-produtos {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .card-carrossel { height: 160px; }
    .produto-card h3 { font-size: 14px; }
    .produto-preco { font-size: 18px; }
    .produto-botao { font-size: 13px; }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    .footer-coluna { flex: 1 1 200px; max-width: 280px; }
}


/* =========================================
   DESKTOP — 960 px +
========================================= */

@media (min-width: 960px) {

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

    header {
        padding: 0 40px;
        min-height: 70px;
    }

    .logo-wrap img { width: 60px; height: 60px; }
    .logo-texto h1 { font-size: 22px; }

    /* Nav vira barra horizontal */
    .hamburger { display: none; }

    nav#nav-principal {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 32px;
        align-items: center;
    }

    nav#nav-principal a {
        padding: 0;
        border-bottom: none;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
    }

    nav#nav-principal a:hover { opacity: 0.75; }

    .btn-icone-carrinho {
        background: rgba(255,255,255,0.15);
    }

    /* No desktop: menu primeiro e carrinho no extremo direito */
    nav#nav-principal { order: 3; }
    .header-acoes { order: 4; }

    /* Catálogo — filtro em cima, cards embaixo */
    .produtos-pagina {
        padding: 32px 32px 60px;
    }

    .catalogo {
        flex-direction: column;
        gap: 20px;
    }

    .area-produtos {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .menu-marcas {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        position: static;
        border-radius: 14px;
        padding: 14px 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .menu-marcas h2 { display: none; }

    .marcas-linha {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 2px 0;
        width: 100%;
    }

    .grupo-marca {
        display: contents;
    }

    .grupo-marca.aberto .subcategorias {
        display: contents;
    }

    /* Grid 4 colunas no desktop */
    .lista-produtos {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .card-carrossel { height: 180px; }
    .produto-card { padding: 14px; border-radius: 14px; }
    .produto-card h3 { font-size: 15px; }
    .produto-preco { font-size: 20px; }
    .produto-botao { font-size: 14px; padding: 11px; }

    .produto-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.28);
    }

    /* Carrinho */
    .carrinho {
        margin: 0 32px 50px;
        padding: 28px 28px;
        border-radius: 16px;
    }

    .carrinho h2 { font-size: 22px; }
    .total { font-size: 18px; }
    .total span { font-size: 24px; }
    .finalizar { font-size: 17px; padding: 16px; }

    .item-subtotal {
        width: auto;
        text-align: right;
    }

    /* Notificação */
    .notificacao-carrinho {
        left: auto;
        right: 28px;
        bottom: 96px;
        transform: translateY(20px);
        font-size: 14px;
    }

    .notificacao-carrinho.visivel {
        transform: translateY(0);
    }

    /* Footer */
    .footer-container {
        padding: 50px 0;
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }

    .footer-coluna { flex: 1; max-width: none; }
}


/* =========================================
   DESKTOP LARGO — 1200 px +
========================================= */

@media (min-width: 1200px) {

    .lista-produtos {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Catálogo vira 2 colunas: barra lateral de marcas + área de produtos */
    .catalogo {
        flex-direction: row;
        align-items: flex-start;
        gap: 26px;
    }

    /* Área de produtos ocupa o espaço que sobra, sem passar da margem */
    .area-produtos {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    /* Barra lateral que desce até o final da margem da página */
    .menu-marcas {
        flex: 0 0 260px;
        width: 260px;
        height: calc(100vh - 110px);
        position: sticky;
        top: 90px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        border-radius: 14px;
        padding: 18px 16px;
        white-space: normal;
    }

    .menu-marcas h2 {
        display: block;
        font-size: 18px;
        margin-bottom: 14px;
        color: #222;
    }

    .marcas-linha {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        padding: 0;
        width: 100%;
    }

    .marca {
        width: 100%;
        justify-content: space-between;
        font-size: 14px;
        padding: 10px 12px;
    }

    .titulo-pagina h1 { font-size: 36px; }
}


/* =========================================
   CELULAR — barra de pesquisa em linha cheia
========================================= */

@media (max-width: 700px) {

    header {
        flex-wrap: wrap;
    }

    /* Cabeçalho fixo mais alto no mobile (logo + busca em 2 linhas) */
    body { padding-top: 120px; }
    html { scroll-padding-top: 132px; }

    /* Barra de pesquisa ocupa a linha inteira embaixo do logo + menu,
       assim fica larga e o texto digitado aparece por completo */
    .busca-form {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin: 10px 0 0;
    }
}

/* =========================================
   ANIMAÇÃO DO ÍCONE DO CARRINHO
========================================= */

@keyframes carrinho-brilho {
    0%   { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); transform: scale(1); }
    40%  { filter: drop-shadow(0 0 16px rgba(255,255,255,0.95)); transform: scale(1.28); }
    100% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); transform: scale(1); }
}

.btn-icone-carrinho.carrinho-brilho {
    animation: carrinho-brilho 0.7s ease;
}


/* =========================================
   MELHORIAS VISUAIS E ANIMAÇÕES
========================================= */

/* Cabeçalho com gradiente e profundidade */
header {
    background: linear-gradient(135deg, #7b2dd8 0%, #a020f0 55%, #9b4dff 100%);
    box-shadow: 0 4px 24px rgba(160, 32, 240, 0.35);
}

/* Títulos com detalhe inferior animado */
.titulo-pagina h1 {
    position: relative;
    display: inline-block;
}
.titulo-pagina h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    margin: 12px 0 0;
    background: linear-gradient(90deg, #a020f0, #9b4dff);
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.titulo-pagina h1:hover::after {
    transform: scaleX(1);
}

/* Cards de produto — elevação e zoom na foto */
.card {
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}
.card-fotos img {
    transition: transform 0.5s ease;
}
.card:hover .card-fotos img {
    transform: scale(1.08);
}

/* Botões com elevação e brilho */
.btn-comprar,
.finalizar,
.btn-qtd,
.card-seta {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-comprar:hover,
.finalizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(155, 77, 255, 0.5);
}
.btn-comprar:active,
.finalizar:active {
    transform: translateY(0);
}

/* Aparição suave ao rolar (ativa via JavaScript) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
}
.reveal.reveal-ativo {
    opacity: 1;
    transform: translateY(0);
}

/* Foco visível para acessibilidade */
button:focus-visible,
.busca-form input:focus-visible,
.busca-form button:focus-visible {
    outline: 3px solid rgba(160, 32, 240, 0.6);
    outline-offset: 2px;
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================================
   SEÇÃO NEWSLETTER (integração com o site)
========================================= */

.secao-newsletter {
    width: 100%;
    margin: 34px 0;
    padding: 0 12px;
    box-sizing: border-box;
}
.newsletter-box {
    background: linear-gradient(135deg, #7b2dd8 0%, #a020f0 55%, #9b4dff 100%);
    border-radius: 18px;
    padding: 36px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 12px 34px rgba(160, 32, 240, 0.35);
    position: relative;
    overflow: hidden;
}
.newsletter-box h2 {
    font-size: 26px;
    margin-bottom: 10px;
}
.newsletter-box p {
    font-size: 15px;
    opacity: 0.92;
    margin-bottom: 22px;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}
.newsletter-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #a020f0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
.newsletter-msg {
    margin-top: 16px;
    font-weight: 600;
    min-height: 20px;
}

@media (max-width: 600px) {
    .secao-newsletter { padding: 0 8px; }
    .newsletter-box h2 { font-size: 22px; }
}


/* =========================================
   BARRA FLUTUANTE DO CARRINHO (mobile)
========================================= */

.barra-carrinho-flutuante {
    position: fixed;
    left: 12px;
    right: 84px;
    bottom: 12px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 2px solid #9b4dff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(160, 32, 240, 0.35);
    padding: 10px 12px;
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1), opacity 0.3s ease;
}
.barra-carrinho-flutuante.visivel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.barra-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.barra-info span:first-child {
    font-size: 12px;
    color: #777;
}
.barra-info #barra-total {
    font-size: 18px;
    font-weight: 800;
    color: #9b4dff;
}
.barra-carrinho-flutuante button {
    border: none;
    background: linear-gradient(135deg, #7b2dd8, #a020f0);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.barra-carrinho-flutuante button:active {
    transform: scale(0.97);
}

/* No mobile a notificação sobe para não cobrir a barra do carrinho */
@media (max-width: 700px) {
    .notificacao-carrinho {
        bottom: 96px;
    }
}

@media (min-width: 701px) {
    .barra-carrinho-flutuante { display: none; }
}


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

.whatsapp-flutuante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-flutuante svg { width: 32px; height: 32px; }
.whatsapp-flutuante::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    z-index: -1;
    animation: pulso-whats 2.2s ease-out infinite;
}
@keyframes pulso-whats {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}
.whatsapp-flutuante:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-flutuante-tag {
    position: absolute;
    left: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #1f1f1f;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.whatsapp-flutuante:hover .whatsapp-flutuante-tag { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .whatsapp-flutuante::before { animation: none; }
}

/* Ícone do WhatsApp (imagem) */
.whatsapp-flutuante-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 0 0 3px #25D366;
}