@charset "UTF-8";

:root{
    --laranja: #c77304;
    --creme: #ffedaf;
    --marrom: #1b0b0b;
    --amarelo: #fbd03b;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--creme) 0%, #fff8dc 100%);
    color: var(--marrom);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--laranja) 0%, #d48806 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(199, 115, 4, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
}

/* Carrinho Flutuante */
.carrinho-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--laranja);
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(199, 115, 4, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.carrinho-flutuante:hover {
    background: #b86803;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(199, 115, 4, 0.5);
}

.badge-carrinho {
    background: var(--amarelo);
    color: var(--marrom);
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

/* Modal do Carrinho */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 11, 11, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--laranja);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--creme);
}

.modal-body {
    padding: 20px;
}

.item-carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.item-info h4 {
    color: var(--marrom);
    margin-bottom: 5px;
}

.item-preco {
    font-weight: bold;
    color: var(--laranja);
}

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

.btn-quantidade {
    background: var(--laranja);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-quantidade:hover {
    background: var(--amarelo);
    color: var(--marrom);
    transform: scale(1.1);
}

.quantidade {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.total-carrinho {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid var(--laranja);
    margin-top: 20px;
}

.total-valor {
    font-size: 24px;
    font-weight: bold;
    color: var(--laranja);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.categoria-produto {
    margin-bottom: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(199, 115, 4, 0.1);
}

.categoria-produto h2 {
    color: var(--laranja);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.categoria-produto h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--amarelo), var(--laranja));
    border-radius: 2px;
}

.container-produto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.item-produto {
    background: linear-gradient(135deg, #fff 0%, var(--creme) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.item-produto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 208, 59, 0.2), transparent);
    transition: left 0.5s ease;
}

.item-produto:hover::before {
    left: 100%;
}

.item-produto:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(199, 115, 4, 0.2);
    border-color: var(--amarelo);
}

.item-produto img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.item-produto:hover img {
    transform: scale(1.1);
}

.item-produto h3 {
    color: var(--marrom);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.item-produto p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.older-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.item-produto p strong {
    color: var(--laranja);
    font-size: 1.4rem;
}

.botao-carrinho {
    background: linear-gradient(135deg, var(--laranja) 0%, var(--amarelo) 100%);
    color: var(--marrom);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.botao-carrinho::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.botao-carrinho:hover::before {
    width: 300px;
    height: 300px;
}

.botao-carrinho:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(199, 115, 4, 0.3);
}

/* Footer */
footer {
    background: var(--marrom);
    color: var(--creme);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsivo */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .categoria-produto {
        padding: 1rem;
    }

    .categoria-produto h2 {
        font-size: 1.5rem;
    }

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

    .item-produto {
        padding: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .carrinho-flutuante {
        bottom: 10px;
        right: 10px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .item-produto img {
        width: 150px;
        height: 150px;
    }

    .categoria-produto h2 {
        font-size: 1.2rem;
    }

    .item-produto h3 {
        font-size: 1.1rem;
    }

    header img {
        max-width: 150px;
    }
}

.carrinho-vazio {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.carrinho-vazio img {
    width: 80px;
    opacity: 0.3;
    margin-bottom: 20px;
}

/* Animação de sucesso */
.sucesso-animacao {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}