/* Modal de Pizza Customizado */
.modal-pizza-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Abre de baixo para cima no celular */
}

@media (min-width: 768px) {
    .modal-pizza-backdrop {
        align-items: center; /* Centralizado no PC */
    }
}

.modal-pizza-content {
    background: white;
    width: 100%;
    max-width: 550px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    .modal-pizza-content {
        border-radius: 16px;
        max-height: 85vh;
    }
}

.modal-pizza-header {
    position: relative;
    width: 100%;
    height: 200px;
}

.modal-pizza-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.modal-pizza-body {
    padding: 20px;
}

.modal-pizza-body h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-main);
}

.md-pizza-preco-regulator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.pizza-preco-destaque {
    font-size: 22px;
    font-weight: 700;
    color: var(--success);
}

.modal-divisor {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 20px 0;
}

.modal-pizza-secao h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.modal-pizza-secao h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.modal-pizza-secao textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.modal-pizza-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    background: white;
    position: sticky;
    bottom: 0;
}

.btn-add-carrinho-main {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}