body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--cor-fundo);
    margin: 0;
    padding: 0;
}

main {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 7rem;
    margin-top: 5%;
}

#cadastrarProduto {
    background-color: var(--cor-fundo);
    width: 90vw;
    max-width: 500px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 0;
}

#fotoProduto {
    width: 100vw;
    max-width: 900px;
    height: 220px;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.fotoProduto {
    width: 100vw;
    max-width: 900px;
    height: 220px;
    object-fit: cover;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #e0e0e0 60%, #f5f5f5 100%);
    border: 2px dashed var(--cor-apoio, #1976d2);
    display: block;
    margin-bottom: 0;
}

/* Mostra o placeholder mesmo sem imagem */
#fotoProduto img:empty {
    display: block;
    width: 100vw;
    max-width: 900px;
    height: 220px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #e0e0e0 60%, #f5f5f5 100%);
    border: 2px dashed var(--cor-apoio, #1976d2);
    content: "";
}

.chave {
    font-weight: 600;
    color: var(--cor-apoio, #1976d2);
    padding: .5rem 0;
    align-self: flex-start;
}

input[type="text"], textarea {
    border-radius: 2rem;
    text-align: center;
    background: var(--cor-fundo);
    border: 1.5px solid var(--cor-apoio);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

textarea.descricao {
    resize: vertical;
    min-height: 60px;
    max-height: 180px;
}

.cluster {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#dia-hora {
    width: 100%;
    align-items: flex-start;
}

#dia-hora label.chave {
    margin-bottom: 0.5rem;
}

.calendario-horarios {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    background: #fafafa;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.calendario-horarios th,
.calendario-horarios td {
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 0.4rem 0.2rem;
    min-width: 55px;
    min-height: 32px;
}

.calendario-horarios th {
    background: #e3eafc;
    color: var(--cor-apoio);
    font-weight: 600;
}

.calendario-horarios input[type="checkbox"] {
    accent-color: var(--cor-apoio);
    width: 1.1em;
    height: 1.1em;
}

#formas-pagamento {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

#formas-pagamento label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.formaPagamento {
    font-size: 1.5rem;
    color: var(--cor-apoio);
}

.botaoEditar {
    text-align: center;
    width: 60%;
    min-width: 8rem;
    height: 2.5rem;
    background-color: var(--cor-fundo);
    border: none;
    border-radius: 5rem;
    color: var(--cor-preto);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0px 0px 3px 3px;
    transition: 0.1s;
    margin: 2rem auto 0 auto;
    display: block;
}

.botaoEditar:hover {
    background: var(--cor-apoio);
}

@media (max-width: 600px) {
    #cadastrarProduto {
        width: 98vw;
        padding: 1rem 0.5rem;
    }
    #fotoProduto, .fotoProduto {
        width: 100vw;
        max-width: 100vw;
        height: 120px;
        border-radius: 0 0 10px 10px;
    }
    #fotoProduto img:empty {
        width: 100vw;
        max-width: 100vw;
        height: 120px;
        border-radius: 0 0 10px 10px;
    }
    .calendario-horarios th,
    .calendario-horarios td {
        min-width: 32px;
        font-size: 0.85rem;
        padding: 0.2rem 0.1rem;
    }
}