/* meu_pedido.css */

/* Espaçamento adequado para telas grandes */
main.container {
    max-width: 700px;
    background-color: #fff;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Título principal */
main h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
}

/* Títulos de seção */
main h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #444;
}

/* Campos de formulário */
.form-label {
    font-weight: 500;
    color: #333;
}

input.form-control,
select.form-select {
    font-size: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease-in-out;
}

input.form-control:focus,
select.form-select:focus {
    border-color: var(--whatsapp-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.2);
}

/* Botão de envio WhatsApp */
button.btn-success {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: var(--whatsapp-color);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

button.btn-success:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Ícone WhatsApp */
button.btn-success i {
    font-size: 1.3rem;
    margin-right: 8px;
}

/* Largura dos campos de quantidade no desktop */
#order-form .row.g-2 .col-3 input {
    max-width: 80px;
}

.reminder {
    font-size: 0.8rem;
    color: #ff4d4d;
}

.item-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
}

.quantity-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-box input {
    width: 36px;
    height: 36px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    pointer-events: none;
    padding: 0;
    font-size: 1rem;
}

.btn-qty {
    background-color: #6c757d;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px;
}

.btn-qty:hover {
    background-color: #5a6268;
}

.btn-qty::before {
    content: attr(data-icon);
    font-family: sans-serif;
}

/* Responsivo para telas menores */
@media (max-width: 575.98px) {
    main.container {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    main h2 {
        font-size: 1.6rem;
    }

    input.form-control,
    select.form-select {
        font-size: 0.95rem;
    }

    button.btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem;
    }

    #order-form .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    #order-form .col-6,
    #order-form .col-3 {
        width: 100% !important;
    }
}
