/* =========================
   BASE
========================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #2c003e, #4b007d);
    color: white;
    text-align: center;
    margin: 0;
    overflow-x: hidden;
}

h1 {
    color: #ffd700;
    margin-top: 10px;
}


/* =========================
   TOPO / LOGO
========================= */
.topo {
    background: linear-gradient(135deg, #2c003e, #4b007d);
    border-bottom: 2px solid #ffd700;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 95px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    transition: 0.3s;
}

.logo:active {
    transform: scale(0.9);
}


/* =========================
   PRODUTO
========================= */
.produto {
    background: #3d0057;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}


/* =========================
   BOTÕES
========================= */
button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #ffd700;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: scale(1.05);
}


/* =========================
   MODAL
========================= */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 8000;
}

.modal-content {
    background: #3d0057;
    color: white;

    width: 95%;
    max-width: 420px;
    margin: auto;
    padding: 20px;
    border-radius: 15px;

    max-height: 90vh;
    overflow-y: auto;

    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}


/* =========================
   INPUTS
========================= */
input, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;

    background: #2c003e;
    color: white;
    border: 1px solid #ffd700;
}


/* =========================
   OPÇÕES
========================= */
.opcao {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 8px 0;
    padding: 14px;
    border-radius: 12px;

    cursor: pointer;
    border: 2px solid transparent;

    font-weight: 500;
    transition: 0.2s;

    user-select: none;
}

/* esconder checkbox */
.opcao input {
    display: none;
}


/* =========================
   CORES
========================= */
.calda-opcao {
    background: linear-gradient(135deg, #6a0dad, #4b007d);
}

.comp-opcao {
    background: linear-gradient(135deg, #5f9cff, #3a7bd5);
}

.add-opcao {
    background: linear-gradient(135deg, #ffe066, #ffd700);
    color: black;
}
.fruta-opcao {
    background: linear-gradient(135deg, #ff4d6d, #c9184a);
}

/* =========================
   SELECIONADO
========================= */
.opcao.selecionado {
    border: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 12px rgba(255,215,0,0.7);
    transform: scale(1.03);
}

.opcao:hover {
    transform: scale(1.02);
}


/* =========================
   CARRINHO
========================= */
#carrinho {
    padding: 0;
}

#carrinho li {
    background: #3d0057;
    margin: 10px;
    padding: 12px;
    border-radius: 12px;
    list-style: none;
    text-align: left;
}

#carrinho button {
    width: 48%;
    margin-top: 8px;
    padding: 8px;
    font-size: 14px;
}

#carrinho button:first-of-type {
    background: orange;
    color: white;
}

#carrinho button:last-of-type {
    background: red;
    color: white;
}


/* =========================
   CREMOSINHO
========================= */
.creme-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #2c003e;
    color: white;

    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
}

.creme {
    width: 60px;
    padding: 5px;
    border-radius: 8px;
    border: none;
    text-align: center;
}


/* =========================
   MOBILE
========================= */
@media (max-width: 600px){

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }

    h1 {
        font-size: 22px;
    }

    .opcao {
        font-size: 15px;
    }

    .logo {
        width: 85px;
    }
}
.opcoes-pagamento {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.opcoes-pagamento label {
    flex: 1;
    text-align: center;
    background: #4d0563;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.opcoes-pagamento input {
    display: none;
}

/* quando selecionado */
.opcoes-pagamento input:checked + span,
.opcoes-pagamento input:checked {
    accent-color: purple;
}

.opcoes-pagamento label:has(input:checked) {
    background: #ebc90b;
    border: 2px solid purple;
}
