/* ============================================
   MONTE SUA PIZZA — CSS compartilhado
   ============================================ */

/* Seções */
.mp-section {
    margin-bottom: 20px;
}

.mp-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Select tamanho → Campo compacto clicável */
.mp-tamanho-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.mp-tamanho-card:hover {
    border-color: #2563eb;
    background: #f8fafc;
}
.mp-tamanho-selecionado {
    border-color: #2563eb;
    background: #eff6ff;
}
.mp-tamanho-card-texto {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Modal centralizado (tamanho) */
.mp-modal-center {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-modal-center-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .2s;
}
.mp-modal-active .mp-modal-center-overlay {
    background: rgba(0,0,0,0.45);
}
.mp-modal-center-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: transform .2s ease-out, opacity .2s;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.mp-modal-active .mp-modal-center-box {
    transform: scale(1);
    opacity: 1;
}
.mp-modal-center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mp-modal-center-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}
.mp-modal-center-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    transition: all .15s;
}
.mp-modal-center-close:hover {
    background: #fee2e2;
    color: #ef4444;
}
.mp-modal-center-body {
    padding: 10px 18px 18px;
    overflow-y: auto;
    flex: 1;
}

/* Bottom-sheet modal (borda/opcionais) */
.mp-modal-bottom {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.mp-modal-bottom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .25s;
}
.mp-modal-active .mp-modal-bottom-overlay {
    background: rgba(0,0,0,0.45);
}
.mp-modal-bottom-sheet {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .25s ease-out;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}
.mp-modal-active .mp-modal-bottom-sheet {
    transform: translateY(0);
}
.mp-modal-bottom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mp-modal-bottom-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}
.mp-modal-bottom-close {
    width: 34px;
    height: 34px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    transition: all .15s;
}
.mp-modal-bottom-close:hover {
    background: #fee2e2;
    color: #ef4444;
}
.mp-modal-bottom-body {
    padding: 12px 20px 20px;
    overflow-y: auto;
    flex: 1;
}
.mp-modal-bottom-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mp-modal-btn-confirmar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #22c55e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Tamanho opções no modal centralizado */
.mp-tamanho-opcao {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}
.mp-tamanho-opcao:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}
.mp-tamanho-opcao-ativo {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}
.mp-tamanho-opcao .fa-check {
    position: absolute;
    right: 14px;
}
.mp-tamanho-opcao-texto {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Grupo card clicável */
.mp-grupo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.mp-grupo-card:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}
.mp-grupo-card-info {
    flex: 1;
}
.mp-grupo-card-sel {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
}
.mp-grupo-card-vazio {
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

/* Grupo modal items */
.mp-grupo-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .15s;
}
.mp-grupo-modal-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.mp-grupo-modal-ativo {
    border-color: #22c55e;
    background: #f0fdf4;
}
.mp-grupo-modal-check {
    flex-shrink: 0;
}
.mp-grupo-modal-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-grupo-modal-nome {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.mp-grupo-modal-preco {
    font-size: 12px;
    color: #6b7280;
    margin-left: auto;
}

/* Controle qtd sabores */
.mp-qtd-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}
.mp-qtd-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.mp-qtd-btn:hover {
    background: #e2e8f0;
}
.mp-qtd-btn:active {
    background: #cbd5e1;
}
.mp-qtd-valor {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 1px;
}

/* Hint */
.mp-hint {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 24px;
    font-style: italic;
}

/* Slots de sabores */
.mp-sabor-slot {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all .15s;
}

.mp-sabor-vazio {
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    border-style: dashed;
    justify-content: center;
}
.mp-sabor-vazio:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.mp-sabor-preenchido {
    background: #f0fdf4;
    border-color: #22c55e;
    justify-content: space-between;
    cursor: default;
}
.mp-sabor-nome {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.mp-sabor-acoes {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.mp-sabor-btn-editar,
.mp-sabor-btn-remover {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .15s;
}
.mp-sabor-btn-editar {
    background: #eff6ff;
    color: #2563eb;
}
.mp-sabor-btn-editar:hover {
    background: #dbeafe;
}
.mp-sabor-btn-remover {
    background: #fef2f2;
    color: #ef4444;
}
.mp-sabor-btn-remover:hover {
    background: #fee2e2;
}

/* Grupos opcionais (borda, massa) */
.mp-grupo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all .15s;
}
.mp-grupo-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.mp-grupo-item-ativo {
    border-color: #22c55e;
    background: #f0fdf4;
}
.mp-grupo-item-check {
    flex-shrink: 0;
}
.mp-grupo-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-grupo-item-nome {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}
.mp-grupo-item-preco {
    font-size: 12px;
    color: #6b7280;
    margin-left: auto;
}

/* Observação */
.mp-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    resize: vertical;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.mp-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* Resumo */
.mp-resumo {
    background: #f0f9ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px !important;
}
.mp-resumo-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}
.mp-resumo-linha {
    font-size: 13px;
    color: #475569;
    padding: 3px 0;
    padding-left: 12px;
    border-left: 3px solid #2563eb;
    margin-bottom: 4px;
}

/* ========== SELETOR DE SABOR ========== */
.mp-sel-cat-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 0 8px;
    border-bottom: 1px solid #f1f5f9;
}
.mp-sel-sabor {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .15s;
}
.mp-sel-sabor:hover {
    background: #f8fafc;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}
.mp-sel-sabor-info {
    flex: 1;
    min-width: 0;
}
.mp-sel-sabor-nome {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}
.mp-sel-sabor-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-sel-sabor-preco {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ========== EDITOR INGREDIENTES (v2 — chips + bottom-sheet) ========== */
.mp-ed-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Chips para remover ingredientes */
.mp-ed-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mp-ed-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.mp-ed-chip i {
    font-size: 10px;
    color: #cbd5e1;
    transition: color .15s;
}
.mp-ed-chip:active {
    transform: scale(.96);
}
.mp-ed-chip-removido {
    border-color: #fca5a5;
    background: #fef2f2;
}
.mp-ed-chip-removido span {
    text-decoration: line-through;
    color: #9ca3af;
}
.mp-ed-chip-removido i {
    color: #ef4444;
}

/* Seções colapsáveis do editor */
.mp-ed-secao-toggle {
    margin-bottom: 12px;
}
.mp-ed-secao-toggle:last-child {
    margin-bottom: 0;
}
.mp-ed-secao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.mp-ed-secao-seta {
    font-size: 12px;
    color: #94a3b8;
    transition: transform .2s;
}
.mp-ed-secao-fechada .mp-ed-secao-seta {
    transform: rotate(-90deg);
}
.mp-ed-secao-body {
    padding-top: 6px;
    transition: all .2s;
}
.mp-ed-secao-fechada .mp-ed-secao-body {
    display: none;
}

/* Separador entre seções */
.mp-ed-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 16px 0;
}

/* Chips de adicionar recheios */
.mp-ed-chip-add {
    border-color: #d1fae5;
    background: #f0fdf4;
}
.mp-ed-chip-add i {
    color: #86efac;
}
.mp-ed-chip-adicionado {
    border-color: #22c55e;
    background: #dcfce7;
}
.mp-ed-chip-adicionado span {
    color: #15803d;
    font-weight: 600;
}
.mp-ed-chip-adicionado i {
    color: #22c55e;
}
.mp-ed-chip-preco {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
    margin-left: 2px;
}

/* ============================================
   PIZZA VISUAL — Redesign v2
   ============================================ */

/* Voltar flutuante */
.mp-btn-voltar-float {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    color: #1e293b;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
}
.mp-btn-voltar-float:active {
    transform: scale(0.92);
    background: #f1f5f9;
}

/* Footer */
.mp-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #fff;
}
.mp-footer-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(34,197,94,.3);
    transition: transform .1s, box-shadow .1s;
    letter-spacing: 0.5px;
}
.mp-footer-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(34,197,94,.2);
}

/* Tamanho bar */
.mp-tamanho-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 4px;
    margin-left: 42px;
}
.mp-tamanho-bar:active {
    transform: scale(0.98);
}
.mp-tamanho-bar-texto {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.mp-tamanho-bar-selecionado {
    border-color: #e2e8f0;
    background: #fff;
}
.mp-tamanho-bar-vazio {
    border-style: dashed;
    border-color: #cbd5e1;
}

/* Pizza Visual (SVG) */
.mp-pizza-visual {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    user-select: none;
}
.mp-pizza-svg {
    width: 230px;
    height: 230px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.12));
}

/* Sabores counter */
.mp-qtd-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
}
.mp-qtd-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #2563eb;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.mp-qtd-circle-btn:active {
    background: #eff6ff;
    border-color: #2563eb;
    transform: scale(0.92);
}
.mp-qtd-text {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    min-width: 110px;
    text-align: center;
    letter-spacing: 1px;
}

/* Sabor slots (circles) */
.mp-slots-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 4px 0 20px;
    flex-wrap: wrap;
}
.mp-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mp-slot-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.mp-slot-empty {
    border: 2.5px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 20px;
}
.mp-slot-empty:active {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    transform: scale(0.95);
}
.mp-slot-filled {
    border: 3px solid rgba(255,255,255,.4);
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.mp-slot-initial {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.mp-slot-name {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.2;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Slot action buttons */
.mp-slot-edit,
.mp-slot-remove {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: transform .15s;
    -webkit-tap-highlight-color: transparent;
}
.mp-slot-edit:active,
.mp-slot-remove:active {
    transform: scale(1.15);
}
.mp-slot-edit {
    bottom: -4px;
    left: -4px;
    background: #2563eb;
    color: #fff;
}
.mp-slot-remove {
    bottom: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
}

/* Sabores lista vertical */
.mp-sabores-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 16px;
}
.mp-sabor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
    -webkit-tap-highlight-color: transparent;
}
.mp-sabor-card-preenchido {
    border-color: #e2e8f0;
    background: #fff;
}
.mp-sabor-card-vazio:active {
    border-color: #2563eb;
    background: #eff6ff;
}
.mp-sabor-card-cor {
    width: 6px;
    min-height: 36px;
    border-radius: 3px;
    flex-shrink: 0;
}
.mp-sabor-card-info {
    flex: 1;
    min-width: 0;
}
.mp-sabor-card-nome {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-sabor-card-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-sabor-card-preco {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    flex-shrink: 0;
}
.mp-sabor-card-acoes {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.mp-sabor-card-acoes .mp-sabor-btn-editar,
.mp-sabor-card-acoes .mp-sabor-btn-remover {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.mp-sabor-card-acoes .mp-sabor-btn-editar {
    background: #eff6ff;
    color: #2563eb;
}
.mp-sabor-card-acoes .mp-sabor-btn-remover {
    background: #fef2f2;
    color: #ef4444;
}

/* Divider */
.mp-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0 16px;
}
