/* =========================================
   ÉLVARA STUDIO
   Desenvolvido pela VYRQENA Agência Digital
========================================= */

:root {
    --fundo: #F5F0E8;
    --bege: #C8B39D;
    --preto: #292622;
    --dourado: #A58B63;
    --branco: #FFFFFF;
    --texto: #6D655D;
    --borda: #E2D9CD;
    --fonte-titulo: 'Playfair Display', serif;
    --fonte-texto: 'DM Sans', sans-serif;
}

/* CONFIGURAÇÕES GERAIS */

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

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

body {
    background: var(--fundo);
    color: var(--preto);
    font-family: var(--fonte-texto);
    line-height: 1.6;
}

body.bloqueado {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

img {
    display: block;
    width: 100%;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 2px solid var(--dourado);
    outline-offset: 4px;
}

h1, h2, h3 {
    line-height: 1.2;
}

/* AVISO SUPERIOR */

.aviso {
    background: var(--preto);
    color: var(--branco);
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 2px;
}

/* CABEÇALHO */

.cabecalho {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--fundo);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 7%;
    border-bottom: 1px solid var(--borda);
}

.logo {
    font-family: var(--fonte-titulo);
    font-size: 34px;
    letter-spacing: 6px;
    line-height: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.logo span {
    font-family: var(--fonte-texto);
    font-size: 9px;
    letter-spacing: 7px;
    margin-top: 8px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.menu a {
    font-size: 14px;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--dourado);
}

.carrinho-botao,
.menu-toggle {
    border: none;
    background: transparent;
    color: var(--preto);
    display: flex;
    align-items: center;
    gap: 8px;
}

.carrinho-botao svg {
    width: 23px;
    height: 23px;
}

#contador {
    background: var(--preto);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    font-size: 11px;
    padding: 2px;
}

.menu-toggle {
    display: none;
}

/* HERO - PÁGINA INICIAL */

.hero {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 680px;
}

.hero-conteudo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 12%;
    background: #EDE4D8;
}

.etiqueta {
    display: inline-block;
    color: #806746;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--fonte-titulo);
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 25px;
}

.hero h1 em {
    display: block;
    color: #806746;
    font-weight: 400;
}

.hero p {
    color: var(--texto);
    max-width: 420px;
    font-size: 16px;
    margin-bottom: 35px;
}

.hero-imagem {
    background-color: var(--bege);
    background-image: url('imagens/hero-elvara.png');
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

/* BOTÕES */

.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--preto);
    color: var(--branco);
    border: 1px solid var(--preto);
    padding: 17px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}

.botao:hover {
    background: #806746;
    border-color: #806746;
}

.botao svg {
    width: 18px;
}

.botao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SEÇÕES */

.secao {
    padding: 100px 7%;
}

.titulo-secao {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-secao h2 {
    font-family: var(--fonte-titulo);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 400;
    margin-bottom: 15px;
}

.titulo-secao p {
    color: var(--texto);
    font-size: 15px;
}

/* CATEGORIAS */

.categorias {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.categoria {
    position: relative;
    overflow: hidden;
    height: 440px;
    background: var(--bege);
}

.categoria img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.categoria:hover img {
    transform: scale(1.05);
}

.categoria::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 40%,
        rgba(0, 0, 0, 0.7)
    );
}

.categoria-texto {
    position: absolute;
    bottom: 30px;
    left: 25px;
    color: white;
    z-index: 1;
}

.categoria-texto h3 {
    font-family: var(--fonte-titulo);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}

.categoria-texto span {
    font-size: 12px;
    letter-spacing: 1px;
}

/* CATÁLOGO */

.produtos {
    background: #FAF8F4;
}

.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filtro {
    padding: 10px 23px;
    border: 1px solid var(--borda);
    background: transparent;
    color: var(--texto);
    font-size: 13px;
    transition: all 0.3s;
}

.filtro:hover,
.filtro.ativo {
    background: var(--preto);
    border-color: var(--preto);
    color: white;
}

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 22px;
}

.produto-card {
    min-width: 0;
    background: transparent;
}

.produto-imagem {
    position: relative;
    overflow: hidden;
    background: #EDE4D8;
    aspect-ratio: 3 / 4;
}

.produto-imagem img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.produto-card:hover img {
    transform: scale(1.04);
}

.produto-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fundo);
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 1px;
}

.produto-info {
    padding: 18px 0;
}

.produto-info h3 {
    font-family: var(--fonte-titulo);
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 8px;
}

.produto-categoria {
    color: var(--texto);
    font-size: 12px;
    margin-bottom: 8px;
}

.produto-preco {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.produto-botao {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--preto);
    color: var(--preto);
    font-size: 12px;
    transition: all 0.3s;
}

.produto-botao:hover {
    background: var(--preto);
    color: white;
}

/* SOBRE A MARCA */

.sobre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.sobre-imagem {
    background-color: var(--bege);
    background-image: url('imagens/sobre-elvara.png');
    background-size: cover;
    background-position: center;
}

.sobre-conteudo {
    background: #E9DFD2;
    padding: 80px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.sobre h2 {
    font-family: var(--fonte-titulo);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 400;
    margin-bottom: 25px;
}

.sobre p {
    color: var(--texto);
    font-size: 15px;
    margin-bottom: 20px;
}

.sobre .botao {
    margin-top: 15px;
}

/* DIFERENCIAIS */

.diferenciais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 60px 7%;
    gap: 30px;
    text-align: center;
    border-bottom: 1px solid var(--borda);
}

.diferenciais svg {
    width: 30px;
    height: 30px;
    stroke: #806746;
    stroke-width: 1.4;
    margin-bottom: 15px;
}

.diferenciais h3 {
    font-family: var(--fonte-titulo);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}

.diferenciais p {
    font-size: 13px;
    color: var(--texto);
}

/* FUNDO DA SACOLA */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

/* SACOLA DE COMPRAS */

.carrinho {
    position: fixed;
    top: 0;
    right: 0;
    width: min(450px, 100%);
    height: 100dvh;
    background: var(--fundo);
    z-index: 210;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
}

.carrinho-topo {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--borda);
}

.carrinho-topo h2 {
    font-family: var(--fonte-titulo);
    font-size: 28px;
    font-weight: 400;
}

.carrinho-topo button {
    background: transparent;
    border: none;
    color: var(--preto);
}

.carrinho-itens {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.carrinho-vazio {
    color: var(--texto);
    text-align: center;
    padding: 40px 0;
}

.carrinho-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--borda);
}

.carrinho-item img {
    height: 110px;
    object-fit: cover;
}

.carrinho-item h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.carrinho-item p {
    font-size: 13px;
    color: var(--texto);
}

.quantidade {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quantidade button {
    background: transparent;
    border: 1px solid var(--borda);
    width: 30px;
    height: 30px;
}

.remover-item {
    background: transparent;
    border: none;
    text-decoration: underline;
    font-size: 11px;
    color: var(--texto);
    margin-top: 10px;
}

.carrinho-rodape {
    padding: 25px;
    border-top: 1px solid var(--borda);
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.carrinho-rodape .botao {
    width: 100%;
}

.carrinho-rodape p {
    text-align: center;
    font-size: 11px;
    color: var(--texto);
    margin-top: 15px;
}

/* MODAL DO PRODUTO */

.modal-produto {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(850px, 92%);
    max-height: 90dvh;
    overflow-y: auto;
    border: none;
    background: var(--fundo);
    color: var(--preto);
    padding: 0;
}

.modal-produto::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

#fechar-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--fundo);
    color: var(--preto);
    border: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    z-index: 2;
}

.detalhe-produto {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.detalhe-produto img {
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.detalhe-info {
    padding: 40px 30px;
}

.detalhe-info h2 {
    font-family: var(--fonte-titulo);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
}

.detalhe-info p {
    color: var(--texto);
    font-size: 14px;
    margin-bottom: 20px;
}

.detalhe-info label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.detalhe-info select {
    width: 100%;
    padding: 13px;
    background: transparent;
    border: 1px solid var(--borda);
    font: inherit;
    color: var(--preto);
    margin-bottom: 20px;
}

.detalhe-info .botao {
    width: 100%;
}

/* RODAPÉ */

.rodape {
    background: var(--preto);
    color: var(--fundo);
    text-align: center;
    padding: 65px 7% 30px;
}

.rodape .logo {
    margin-bottom: 20px;
}

.rodape p {
    font-size: 13px;
    color: #D2C7B9;
    margin-bottom: 15px;
}

.rodape-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0;
    font-size: 13px;
}

.rodape a:hover {
    color: var(--bege);
}

.rodape .demonstracao {
    border-top: 1px solid #504941;
    padding-top: 25px;
    max-width: 850px;
    margin: 30px auto 20px;
    font-size: 12px;
}

.demonstracao a {
    color: #D9C5A9;
    text-decoration: underline;
}

/* POLÍTICA DE PRIVACIDADE */

.pagina-privacidade {
    max-width: 850px;
    margin: 50px auto;
    padding: 40px 25px;
}

.pagina-privacidade h1 {
    font-family: var(--fonte-titulo);
    font-size: 40px;
    margin-bottom: 30px;
}

.pagina-privacidade h2 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.pagina-privacidade p {
    color: var(--texto);
    margin-bottom: 20px;
}

.pagina-privacidade .botao {
    margin-top: 20px;
}

/* RESPONSIVIDADE - TABLET */

@media (max-width: 1050px) {

    .cabecalho {
        padding: 20px 5%;
    }

    .menu {
        gap: 20px;
    }

    .hero {
        min-height: 550px;
    }

    .hero-conteudo {
        padding: 50px 9%;
    }

    .categoria {
        height: 340px;
    }

    .grade-produtos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* RESPONSIVIDADE - CELULAR */

@media (max-width: 768px) {

    .aviso {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .cabecalho {
        padding: 17px 5%;
    }

    .logo {
        font-size: 27px;
        letter-spacing: 4px;
    }

    .logo span {
        font-size: 8px;
        letter-spacing: 5px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--fundo);
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--borda);
    }

    .menu.ativo {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-conteudo {
        padding: 55px 7%;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-imagem {
        min-height: 420px;
    }

    .secao {
        padding: 65px 5%;
    }

    .categorias {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categoria {
        height: 420px;
    }

    .grade-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .produto-info h3 {
        font-size: 18px;
    }

    .produto-preco {
        font-size: 14px;
    }

    .filtro {
        padding: 9px 14px;
        font-size: 12px;
    }

    .sobre {
        grid-template-columns: 1fr;
    }

    .sobre-imagem {
        min-height: 400px;
    }

    .sobre-conteudo {
        padding: 55px 7%;
    }

    .diferenciais {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detalhe-produto {
        grid-template-columns: 1fr;
    }

    .detalhe-produto img {
        height: 320px;
        min-height: 0;
    }

    .detalhe-info {
        padding: 30px 22px;
    }

}

/* CELULARES MENORES */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 38px;
    }

    .hero-imagem {
        min-height: 320px;
    }

    .categoria {
        height: 340px;
    }

    .produto-info h3 {
        font-size: 16px;
    }

}

/* ACESSIBILIDADE */

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

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

}