@charset "UTF-8";

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

:root {
    --Branco: #FAFAFA;
    --Preto: #1A1A1A;
    --Dourado: #C8A951;
    --Vermelho: #9E1C1C;
}

body {
    background-color: var(--Branco);
}

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

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background-color: var(--Preto);
    border-bottom: 1px solid #333;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.logo {
    color: var(--Dourado);
    font-size: 35px;
}

/* =====================
   MENU
===================== */

nav {
    background-color: var(--Preto);
    padding: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding-left: 10px;
}

nav a {
    color: var(--Dourado);
    text-decoration: none;
    transition: .5s;
}

nav a:hover{
    color: var(--Vermelho);
}

/* BOTÃO HAMBÚRGUER — oculto no desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--Dourado);
    border-radius: 3px;
    transition: .3s;
}

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

.icone-carrinho {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--Dourado);
    padding: 12px 18px;
    border-radius: 30px;
    display: flex;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: transform .2s;
}

/* No mobile, move o carrinho para a ESQUERDA
   para não colidir com o botão hambúrguer */
@media (max-width: 576px) {
    .icone-carrinho {
        right: auto;
        left: 15px;
        top: 15px;
        padding: 8px 13px;
    }
}

.icone-carrinho:hover {
    transform: scale(1.07);
}

/* Animação ao adicionar item */
.icone-carrinho.pulsar {
    animation: pulsar 0.4s ease;
}

@keyframes pulsar {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

#painel-carrinho {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background: var(--Branco);
    padding: 20px;
    transition: .5s;
    box-shadow: -5px 0 10px rgba(0, 0, 0, .2);
    overflow-y: auto;
    border-radius: 15px 0 0 15px;
    z-index: 999;
}

#painel-carrinho.ativo {
    right: 0;
}

#painel-carrinho h2 {
    color: var(--Preto);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: left;
}

#lista-carrinho {
    list-style: none;
    margin: 10px 0;
}

#lista-carrinho li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--Preto);
}

#lista-carrinho li button {
    background: var(--Vermelho);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: .3s;
}

#lista-carrinho li button:hover {
    background: #7a1515;
}

#painel-carrinho p {
    font-weight: bold;
    margin-top: 10px;
    color: var(--Preto);
}

#btn-limpar {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: var(--Preto);
    color: var(--Dourado);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: .3s;
}

#btn-limpar:hover {
    background: var(--Vermelho);
    color: white;
}

/* =====================
   SLIDER / BANNER
===================== */

.container {
    display: flex;
    position: relative;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 450px;
    background: linear-gradient(90deg, #1A1A1A, #2b2b2b);
    min-height: 500px;
    padding: 40px;
}

.item {
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    position: absolute;
    transform: translateX(100px);
    transition: 1s;
}

.item.active {
    opacity: 1;
    transform: translateX(0);
}

.product-img {
    width: 300px;
    animation: textoEntrar 1.2s;
}

.content {
    width: 50%;
}

.titulos {
    color: var(--Dourado);
    font-size: 20px;
    margin-bottom: 20px;
}

.texto {
    color: var(--Branco);
    line-height: 30px;
    font-size: 18px;
}

.content button {
    margin-top: 25px;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: 0.5s;
    border-radius: 8px;
}

.content button:hover {
    transform: scale(1.1);
    background: var(--Vermelho);
    color: var(--Branco);
}

@keyframes textoEntrar {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================
   TÍTULO DESTAQUE
===================== */

h2 {
    text-align: center;
    margin-top: 40px;
    color: var(--Dourado);
    text-shadow: 1px 1px rgba(0, 0, 0, 0.584);
    font-family: 'Playfair Display', serif;
}

#destaque {
    color: var(--Dourado);
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* =====================
   PRODUTOS
===================== */

.produtos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: center;
    gap: 30px;
    padding: 50px;
}

/* CARD */
.card {
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.123);
    transition: .5s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 120px;
    height: 150px;
    border-radius: 10px;
    object-fit: contain;
}

.card h3 {
    margin-top: 15px;
    color: var(--Preto);
}

.card p {
    margin: 15px 0;
    color: var(--Vermelho);
    font-weight: bold;
}

.card button {
    width: 100%;
    padding: 10px;
}

button {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: .5s;
}

button:hover {
    background: var(--Vermelho);
    color: white;
}

/* =====================
   BENEFÍCIOS
===================== */

.beneficios {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    text-align: center;
}

.beneficios div {
    background: var(--Branco);
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

section {
    text-align: center;
    padding: 50px;
}

section h2 {
    font-size: 40px;
    color: var(--Preto);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

section p {
    margin-bottom: 20px;
    font-size: 18px;
}

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

footer {
    background-color: var(--Preto);
    color: var(--Dourado);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* =====================
   RESPONSIVO — MOBILE (até 576px)
===================== */

@media (max-width: 576px) {

    /* MENU — oculto por padrão, abre pelo hambúrguer */
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    nav ul.aberto {
        display: flex;
    }

    /* HAMBÚRGUER — visível no mobile */
    .hamburger {
        display: flex;
    }

    /* LOGO */
    .logo {
        font-size: 25px;
    }

    /* BANNER */
    .container {
        min-height: 650px;
        padding: 20px;
    }

    .item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .product-img img {
        width: 220px;
    }

    .content {
        width: 100%;
    }

    .titulos h2 {
        font-size: 28px;
    }

    .texto {
        font-size: 15px;
        line-height: 25px;
    }

    /* PRODUTOS */
    .produtos {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .card {
        width: 100%;
    }

    .card img {
        width: 34%;
        height: 150px;
        border-radius: 10px;
        object-fit: contain;
    }

    /* BENEFÍCIOS */
    .beneficios {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .beneficios div {
        width: 100%;
    }

    /* FOOTER */
    footer {
        text-align: center;
        padding: 20px;
    }
}
