/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

/* Impede dark mode automático */
:root {
    color-scheme: light;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== BODY ===== */
body {
    background: #dcdcdc;
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== APP ===== */
.app {
    width: 360px;
    height: 640px;
    background-color: #2f3e4e;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    color: #f1c40f;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 14px;
}

/* ===== INPUT PADRÃO ===== */
.input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #2f3e4e;
    -webkit-text-fill-color: #2f3e4e;
    -webkit-appearance: none;
    appearance: none;
}

/* ===== CAMPO NOME COM BORDA ===== */
.nome-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2px;
    border: 2px solid #e74c3c;
    margin-bottom: 12px;
}

.nome-box .input {
    background-color: #ffffff;
    border-radius: 8px;
}

/* ===== GROUPS ===== */
.group {
    margin-bottom: 12px;
}

.row {
    display: flex;
    gap: 10px;
}

.row .input {
    flex: 1;
}

/* ===== QUANTIDADES ===== */
.qty-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.qty-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    padding-left: 2px;
}

/* Caixa */
.qty-box {
    height: 44px;
    background-color: #ffffff;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    padding: 0 10px;
}

/* FORÇA TEXTO NO MOBILE */
.qty-box,
.qty-box * {
    color: #2f3e4e !important;
    -webkit-text-fill-color: #2f3e4e !important;
}

/* Botões */
.qty-box button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background-color: #e6e6e6 !important;
    font-size: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.qty-box button:active {
    transform: scale(0.95);
}

.qty-box span {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* ===== MENSAGENS ===== */
.msg {
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.msg.sucesso {
    background: #27ae60;
    color: #ffffff;
}

.msg.erro {
    background: #e74c3c;
    color: #ffffff;
}

/* ===== BOTÃO ===== */
.btn {
    height: 48px;
    border-radius: 10px;
    border: none;
    background: #2ecc71;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
