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

body {
    background-color: #fff5f8;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* CABEÇALHO (HEADER) */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: pink;
    padding: 20px;
    text-align: center;
}

header img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

header img:hover { transform: scale(1.1); }

.header-textos h1 {
    color: #d6247d;
    margin-top: 10px;
}

/* CARRINHO E WHATSAPP (FIXOS) */
.cart-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d6247d;
    padding: 10px 15px;
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#cart-count {
    background-color: white;
    color: black;
    min-width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.whatsapp-flutuante {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/*CARROSSEL (SETAS + VITRINE) */
.carousel-wrapper {
    display: flex;
    align-items: center; /* Centraliza as setas na altura das fotos */
    justify-content: space-between; /* Empurra as setas para as pontas */
    gap: 20px;
    max-width: 1300px; /* Largura máxima para caber 3 colunas confortáveis */
    margin: 40px auto;
    padding: 0 20px;
}

.vitrine {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* FORÇA AS 3 COLUNAS */
    gap: 20px;
    flex: 1; /* Faz a vitrine ocupar todo o meio */
}

.arrow-btn {
    background-color: #d6247d;
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(214, 36, 125, 0.3);
    transition: 0.3s;
    flex-shrink: 0;
}

.arrow-btn:hover {
    background-color: #b01d66;
    transform: scale(1.1);
}

/*CARDS DE PRODUTO */
/*CARDS DE PRODUTO */
.produto {
    background: white;
    border-radius: 15px;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adicionado transition aqui */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Garante que a imagem não vaze no zoom */
}

/* Efeito de zoom suave ao passar o mouse ou tocar */
.produto:hover { 
    transform: scale(1.03); /* Zoom leve no card inteiro */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.produto img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease; /* Suaviza o zoom da imagem */
    cursor: zoom-in;
}

/* Classe que o JavaScript vai ativar ao clicar */
.img-zoom-clicada {
    transform: scale(1.5) !important; /* Zoom maior */
    z-index: 10;
    position: relative;
    cursor: zoom-out !important;
}

.controle-quantidade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fdf2f7;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
}

.controle-quantidade button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #d6247d;
    color: white;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- RESPONSIVIDADE GERAL --- */

/* Tablets */
@media (max-width: 950px) {
    .vitrine { grid-template-columns: repeat(2, 1fr); }
}

/* Celulares (Ajuste Global) */
@media (max-width: 768px) {
    /* REMOVE A TREMEDEIRA: Tirando todos os zooms de clique */
    .produto:active, .produto-card:active, .formulario-checkout input:focus {
        transform: none !important;
    }

    .vitrine { grid-template-columns: 1fr; } 
    .carousel-wrapper { gap: 10px; }
    .arrow-btn { width: 45px; height: 45px; font-size: 20px; }
    .whatsapp-flutuante span { display: none; }

    /* Item 4: Botões de quantidade grandes e sem tremer */
    .controle-quantidade {
        gap: 20px;
        padding: 10px;
        touch-action: manipulation; /* Remove delay de clique e tremedeira */
    }

    .controle-quantidade button {
        width: 50px; 
        height: 50px;
        font-size: 22px;
        -webkit-tap-highlight-color: transparent;
    }

    .qtd-item {
        font-size: 20px;
        min-width: 40px;
        display: inline-block;
        text-align: center;
    }

    /* Seletor de tamanho centralizado e elegante */
    .opcoes select {
        height: 45px;
        font-size: 16px;
        width: 90px;
        text-align: center;
        border: 1px solid #d6247d;
        border-radius: 8px;
        background: white;
        margin: 5px auto;
        display: block;
    }

    .opcoes label {
        display: block;
        font-size: 12px;
        color: #888;
        margin-bottom: 2px;
    }
}

/* --- ESTILO GLOBAL DO BOTÃO LIMPAR (PC E MOBILE) --- */
.btn-limpar-tudo {
    background-color: white !important;
    color: #d6247d !important;
    border: 2px solid #d6247d !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px auto !important;
    transition: all 0.3s ease !important;
    width: fit-content !important;
    box-shadow: 0 4px 10px rgba(214, 36, 125, 0.1) !important;
}

.btn-limpar-tudo:hover {
    background-color: #d6247d !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

.btn-limpar-tudo::before {
    content: '🗑️';
    margin-right: 8px;
}
/* Quando a tela for menor que 650px (celulares) */
@media (max-width: 650px) {
    /* Ajustando o container branco do login */
    .login-container, .resumo-box { 
        width: 90% !important; /* Faz ocupar 90% da largura da tela */
        max-width: none !important; /* Remove limites de largura máxima */
        margin: 20px auto; /* Centraliza */
        padding: 20px; /* Dá um respiro interno melhor */
    }

    /* Ajustando os inputs dentro dessa tela */
    .login-container input, .formulario-checkout input {
        width: 100%; /* Garante que os campos usem toda a largura disponível */
        font-size: 16px; /* Tamanho ideal para leitura no celular */
        height: 45px; /* Altura melhor para tocar com o dedo */
    }

    /* Ajustando o botão de entrar */
    .login-container button {
        width: 100%;
        height: 50px;
        font-size: 18px;
    }
}

/* FOOTER */
footer {
    text-align: center;
    background-color: pink;
    padding: 30px;
    margin-top: 50px;
    font-size: 14px;
}