/* ========================================
   CONFIGURAÇÕES GERAIS
======================================== */

:root {
    --preto: #151412;
    --preto-suave: #24211e;
    --creme: #f7f3ed;
    --branco: #ffffff;
    --dourado: #b68a4a;
    --dourado-claro: #d7b77d;
    --castanho: #6d4c35;
    --cinzento: #77736e;
    --cinzento-claro: #e9e4dc;
    --vermelho: #a53838;
    --verde: #1f7a4d;
    --sombra: 0 20px 60px rgba(38, 29, 20, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--creme);
    color: var(--preto);
    line-height: 1.6;
}

body.sem-rolagem {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.escondido {
    display: none !important;
}

/* ========================================
   CABEÇALHO
======================================== */

.cabecalho {
    min-height: 86px;
    padding: 16px 6%;
    background: rgba(247, 243, 237, 0.96);
    border-bottom: 1px solid rgba(109, 76, 53, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.marca {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--preto);
    text-decoration: none;
}

.marca-simbolo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--preto);
    color: var(--dourado-claro);
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: 1px;
}

.marca-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.marca-texto strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
}

.marca-texto small {
    margin-top: 4px;
    color: var(--cinzento);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    position: relative;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.menu a::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--dourado);
    position: absolute;
    left: 0;
    bottom: -7px;
    transition: 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

.acoes-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
}

.botao-admin,
.botao-whatsapp-pequeno {
    padding: 11px 17px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s;
}

.botao-admin {
    border: 1px solid var(--preto);
    background: transparent;
    color: var(--preto);
}

.botao-admin:hover {
    background: var(--preto);
    color: var(--branco);
}

.botao-whatsapp-pequeno {
    background: var(--verde);
    color: var(--branco);
}

.botao-whatsapp-pequeno:hover {
    transform: translateY(-2px);
}

/* ========================================
   DESTAQUE PRINCIPAL
======================================== */

.hero {
    min-height: 670px;
    padding: 70px 6%;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(215, 183, 125, 0.20),
            transparent 35%
        ),
        linear-gradient(135deg, #171512, #2b241e);
    color: var(--branco);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    overflow: hidden;
}

.hero-conteudo {
    max-width: 680px;
}

.etiqueta,
.subtitulo {
    display: inline-block;
    color: var(--dourado);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(55px, 7vw, 96px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -3px;
}

.hero-conteudo > p {
    max-width: 590px;
    color: #d9d1c8;
    font-size: 19px;
}

.hero-botoes {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.botao-principal,
.botao-secundario {
    min-height: 51px;
    padding: 14px 25px;
    border: none;
    border-radius: 3px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.25s;
}

.botao-principal {
    background: var(--dourado);
    color: var(--branco);
}

.botao-principal:hover {
    background: var(--dourado-claro);
    color: var(--preto);
    transform: translateY(-2px);
}

.botao-secundario {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--branco);
}

.botao-secundario:hover {
    border-color: var(--dourado-claro);
    color: var(--dourado-claro);
}

.hero-dados {
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hero-dados div {
    display: flex;
    flex-direction: column;
}

.hero-dados strong {
    font-size: 13px;
}

.hero-dados span {
    margin-top: 5px;
    color: #a9a19a;
    font-size: 11px;
}

.hero-visual {
    min-height: 530px;
    position: relative;
}

.cartao-moda {
    overflow: hidden;
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
}

.cartao-moda::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75),
            transparent 55%
        ),
        radial-gradient(
            circle at 65% 25%,
            rgba(255, 255, 255, 0.30),
            transparent 25%
        );
}

.cartao-moda span {
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
}

.cartao-um {
    width: 55%;
    height: 440px;
    left: 5%;
    top: 30px;
    background:
        linear-gradient(145deg, #b49277, #5d4033);
    transform: rotate(-4deg);
}

.cartao-dois {
    width: 52%;
    height: 470px;
    right: 2%;
    top: 5px;
    background:
        linear-gradient(145deg, #82796e, #282622);
    transform: rotate(5deg);
}

.cartao-tres {
    width: 45%;
    height: 240px;
    left: 29%;
    bottom: 0;
    background:
        linear-gradient(145deg, #d5bfa4, #836a52);
    transform: rotate(1deg);
}

/* ========================================
   CATEGORIAS
======================================== */

.categorias {
    padding: 28px 6%;
    background: var(--branco);
    border-bottom: 1px solid var(--cinzento-claro);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.categoria {
    padding: 11px 20px;
    border: 1px solid var(--cinzento-claro);
    border-radius: 30px;
    background: var(--branco);
    color: var(--preto);
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s;
}

.categoria:hover,
.categoria.activa {
    border-color: var(--preto);
    background: var(--preto);
    color: var(--branco);
}

/* ========================================
   PRODUTOS
======================================== */

.seccao-produtos {
    padding: 90px 6%;
}

.titulo-seccao {
    margin-bottom: 45px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.titulo-seccao h2,
.contacto h2 {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.area-pesquisa input {
    width: 300px;
    padding: 15px 19px;
    border: 1px solid #d6d0c7;
    border-radius: 30px;
    outline: none;
    background: var(--branco);
}

.area-pesquisa input:focus {
    border-color: var(--dourado);
    box-shadow: 0 0 0 3px rgba(182, 138, 74, 0.12);
}

.lista-produtos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.produto {
    overflow: hidden;
    background: var(--branco);
    border: 1px solid rgba(109, 76, 53, 0.10);
    position: relative;
    transition: 0.3s;
}

.produto:hover {
    transform: translateY(-7px);
    box-shadow: var(--sombra);
}

.produto-imagem {
    height: 360px;
    overflow: hidden;
    background:
        linear-gradient(145deg, #ded7cd, #b9aa98);
    position: relative;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.produto:hover .produto-imagem img {
    transform: scale(1.04);
}

.sem-imagem {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: grid;
    place-items: center;
    color: rgba(21, 20, 18, 0.55);
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.selo-promocao {
    padding: 7px 11px;
    background: var(--vermelho);
    color: var(--branco);
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.produto-informacao {
    padding: 21px;
}

.produto-categoria {
    color: var(--dourado);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.produto h3 {
    margin: 7px 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 500;
}

.produto-descricao {
    min-height: 48px;
    color: var(--cinzento);
    font-size: 13px;
}

.preco {
    margin: 16px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.preco-normal {
    font-size: 20px;
    font-weight: 800;
}

.preco-antigo {
    color: #96918b;
    font-size: 14px;
    text-decoration: line-through;
}

.preco-promocional {
    color: var(--vermelho);
    font-size: 21px;
    font-weight: 800;
}

.data-promocao {
    margin-top: -8px;
    margin-bottom: 14px;
    color: var(--vermelho);
    font-size: 11px;
    font-weight: 700;
}

.botao-comprar {
    width: 100%;
    min-height: 48px;
    border: none;
    background: var(--preto);
    color: var(--branco);
    font-weight: 800;
    transition: 0.25s;
}

.botao-comprar:hover {
    background: var(--verde);
}

.sem-produtos {
    padding: 60px 20px;
    border: 1px dashed #c8bfb4;
    text-align: center;
}

.sem-produtos h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
}

.sem-produtos p {
    margin-top: 6px;
    color: var(--cinzento);
}

/* ========================================
   VANTAGENS
======================================== */

.vantagens {
    padding: 80px 6%;
    background: var(--preto);
    color: var(--branco);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.vantagens article {
    padding: 30px 45px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.vantagens article:last-child {
    border-right: none;
}

.vantagens span {
    color: var(--dourado);
    font-size: 12px;
    font-weight: 800;
}

.vantagens h3 {
    margin: 14px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.vantagens p {
    color: #aaa39b;
    font-size: 14px;
}

/* ========================================
   CONTACTO
======================================== */

.contacto {
    padding: 90px 6%;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255, 255, 255, 0.14),
            transparent 30%
        ),
        var(--dourado);
    color: var(--branco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.contacto > div:first-child {
    max-width: 700px;
}

.contacto .subtitulo {
    color: var(--preto);
}

.contacto p {
    margin-top: 18px;
    max-width: 600px;
    color: #fff8ed;
}

.contacto-botoes {
    min-width: 270px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacto .botao-principal {
    background: var(--preto);
}

.contacto .botao-principal:hover {
    background: var(--branco);
}

.botao-secundario.claro {
    border-color: var(--branco);
}

/* ========================================
   RODAPÉ
======================================== */

footer {
    padding: 30px 6%;
    background: #0f0e0d;
    color: #8f8983;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 12px;
}

.rodape-marca {
    color: var(--branco);
}

.rodape-marca .marca-simbolo {
    background: var(--dourado);
    color: var(--preto);
}

/* ========================================
   MODAIS E PAINEL ADMINISTRATIVO
======================================== */

.fundo-modal {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(10, 9, 8, 0.76);
    backdrop-filter: blur(5px);
}

.modal {
    width: min(440px, calc(100% - 30px));
    padding: 38px;
    border-radius: 8px;
    background: var(--branco);
    box-shadow: var(--sombra);
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2000;
    transform: translate(-50%, -50%);
}

.modal h2 {
    margin: 8px 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
}

.fechar-modal {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ece7e0;
    color: var(--preto);
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 25px;
    line-height: 1;
}

.fechar-modal:hover {
    background: var(--preto);
    color: var(--branco);
}

.modal label,
.campo label {
    margin-bottom: 7px;
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.modal input,
.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d7d0c8;
    border-radius: 4px;
    outline: none;
    background: var(--branco);
}

.modal input:focus,
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: var(--dourado);
    box-shadow: 0 0 0 3px rgba(182, 138, 74, 0.12);
}

.mensagem-erro {
    min-height: 25px;
    padding-top: 5px;
    color: var(--vermelho);
    font-size: 12px;
}

.largura-total {
    width: 100%;
}

.painel-admin {
    width: min(1100px, calc(100% - 30px));
    max-height: 92vh;
    padding: 35px;
    overflow-y: auto;
    border-radius: 8px;
    background: var(--creme);
    box-shadow: var(--sombra);
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2000;
    transform: translate(-50%, -50%);
}

.painel-cabecalho {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.painel-cabecalho h2 {
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
}

.form-produto {
    padding: 25px;
    background: var(--branco);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.campo-grande {
    grid-column: 1 / -1;
}

.campo textarea {
    min-height: 100px;
    resize: vertical;
}

.campo small {
    margin-top: 5px;
    display: block;
    color: var(--cinzento);
    font-size: 11px;
}

.botoes-formulario {
    display: flex;
    gap: 10px;
}

.botao-cancelar,
.botao-sair {
    padding: 12px 20px;
    border: 1px solid #bdb6ad;
    background: transparent;
    color: var(--preto);
    font-weight: 700;
}

.botao-cancelar:hover,
.botao-sair:hover {
    border-color: var(--preto);
    background: var(--preto);
    color: var(--branco);
}

.produtos-administracao {
    margin-top: 30px;
}

.titulo-administracao {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.titulo-administracao h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.item-admin {
    margin-bottom: 10px;
    padding: 14px;
    background: var(--branco);
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 15px;
}

.item-admin-imagem {
    width: 60px;
    height: 60px;
    background: #ddd5cb;
    object-fit: cover;
}

.item-admin-info strong {
    display: block;
}

.item-admin-info span {
    color: var(--cinzento);
    font-size: 12px;
}

.item-admin-acoes {
    display: flex;
    gap: 8px;
}

.botao-editar,
.botao-apagar {
    padding: 9px 13px;
    border: none;
    color: var(--branco);
    font-size: 12px;
    font-weight: 700;
}

.botao-editar {
    background: var(--castanho);
}

.botao-apagar {
    background: var(--vermelho);
}

/* ========================================
   NOTIFICAÇÃO
======================================== */

.notificacao {
    max-width: 350px;
    padding: 14px 20px;
    border-radius: 4px;
    background: var(--preto);
    color: var(--branco);
    box-shadow: var(--sombra);
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.3s;
}

.notificacao.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TABLETS
======================================== */

@media (max-width: 1050px) {
    .menu {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-conteudo {
        max-width: 750px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .lista-produtos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ========================================
   TELEMÓVEIS
======================================== */

@media (max-width: 750px) {
    .cabecalho {
        min-height: auto;
        padding: 12px 4%;
    }

    .marca-simbolo {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .marca-texto strong {
        font-size: 19px;
    }

    .marca-texto small {
        font-size: 8px;
    }

    .botao-admin {
        padding: 10px 12px;
        font-size: 11px;
    }

    .botao-whatsapp-pequeno {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 75px 6%;
        gap: 40px;
    }

    .hero h1 {
        font-size: 53px;
        letter-spacing: -2px;
    }

    .hero-conteudo > p {
        font-size: 16px;
    }

    .hero-botoes {
        flex-direction: column;
    }

    .hero-botoes a {
        width: 100%;
    }

    .hero-dados {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-visual {
        min-height: 410px;
    }

    .cartao-um {
        height: 330px;
    }

    .cartao-dois {
        height: 355px;
    }

    .cartao-tres {
        height: 180px;
    }

    .categorias {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .categoria {
        flex: 0 0 auto;
    }

    .seccao-produtos {
        padding: 65px 5%;
    }

    .titulo-seccao {
        align-items: stretch;
        flex-direction: column;
    }

    .area-pesquisa input {
        width: 100%;
    }

    .lista-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .produto-imagem {
        height: 240px;
    }

    .produto-informacao {
        padding: 15px;
    }

    .produto h3 {
        font-size: 18px;
    }

    .produto-descricao {
        display: none;
    }

    .preco-normal,
    .preco-promocional {
        font-size: 16px;
    }

    .vantagens {
        grid-template-columns: 1fr;
    }

    .vantagens article {
        padding: 30px 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .contacto {
        padding: 70px 6%;
        align-items: stretch;
        flex-direction: column;
    }

    .contacto-botoes {
        min-width: 0;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal {
        padding: 30px 22px;
    }

    .painel-admin {
        width: calc(100% - 16px);
        padding: 20px 14px;
    }

    .form-produto {
        padding: 16px;
        grid-template-columns: 1fr;
    }

    .campo-grande {
        grid-column: auto;
    }

    .item-admin {
        grid-template-columns: 50px 1fr;
    }

    .item-admin-imagem {
        width: 50px;
        height: 50px;
    }

    .item-admin-acoes {
        grid-column: 1 / -1;
    }
}

/* ========================================
   TELEMÓVEIS PEQUENOS
======================================== */

@media (max-width: 430px) {
    .hero h1 {
        font-size: 44px;
    }

    .lista-produtos {
        grid-template-columns: 1fr;
    }

    .produto-imagem {
        height: 390px;
    }
}