/* ===== MODAL CARRINHO UNIFICADO ===== */
.modal-carrinho-unificado {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    background: transparent !important;
    pointer-events: none;
}
.modal-carrinho-unificado.aberto {
    display: block;
    pointer-events: auto;
}
.mcu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    pointer-events: none !important;
    z-index: 9998 !important;
}
@keyframes mcu-fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
.mcu-painel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 400px !important;
    z-index: 10000 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
    animation: mcu-slideIn 0.3s ease !important;
    pointer-events: auto !important;
    height: 100vh !important;
}
@keyframes mcu-slideIn {
    from { transform: translateX(100%); } to { transform: translateX(0); }
}
.mcu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: #FFDE21;
}
.mcu-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mcu-fechar {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #000;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.mcu-fechar:hover { background: rgba(0,0,0,0.1); }
.mcu-corpo {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.mcu-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    text-align: center;
}
.mcu-vazio i { font-size: 48px; margin-bottom: 15px; color: #ccc; }
.mcu-vazio p { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.mcu-vazio small { font-size: 13px; }
.mcu-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fafafa;
    transition: box-shadow 0.2s;
}
.mcu-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.mcu-item-img img {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.mcu-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #333;
    line-height: 1.3;
}
.mcu-item-info small {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 3px;
}
.mcu-item-preco {
    font-size: 13px;
    font-weight: 700;
    color: #077c22;
}
.mcu-item-qtde {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mcu-item-qtde button {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #FFDE21;
    background: #FFDE21;
    color: #000;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.mcu-item-qtde button:hover { background: #e6c800; border-color: #e6c800; }
.mcu-item-qtde span {
    font-weight: 700;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}
.mcu-item-subtotal {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}
.mcu-item-remover {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}
.mcu-item-remover:hover { background: #fee; }
.mcu-rodape {
    border-top: 2px solid #f0f0f0;
    padding: 15px 20px;
    background: #fff;
}
.mcu-resumo {
    margin-bottom: 15px;
}
.mcu-linha {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #666;
}
.mcu-linha.mcu-total {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 4px;
}
.mcu-acoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mcu-btn-continuar {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.mcu-btn-continuar:hover { background: #f5f5f5; }
.mcu-btn-finalizar {
    width: 100%;
    padding: 14px;
    border: none;
    background: #FFDE21;
    color: #000;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.mcu-btn-finalizar:hover { background: #e6c800; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,222,33,0.4); }
.carrinho-contador {
    position: absolute;
    top: -5px; right: -5px;
    background: #FFDE21;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
@media (max-width: 500px) {
    .mcu-painel { max-width: 100% !important; }
    .mcu-item {
        grid-template-columns: 50px 1fr auto;
        grid-template-rows: auto auto;
    }
    .mcu-item-img img { width: 50px; height: 50px; }
    .mcu-item-qtde { grid-column: 2; }
    .mcu-item-subtotal { grid-column: 3; grid-row: 1; }
    .mcu-item-remover { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* ===== POP-UP: DESEJA QUE ENTREGAMOS AGORA? ===== */
.popup-entrega { position: fixed; inset: 0; z-index: 2147483000; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Poppins', sans-serif; animation: pe-fade .2s ease; }
@keyframes pe-fade { from { opacity: 0; } to { opacity: 1; } }
.pe-box { background: #fff; width: 32em; max-width: 100%; border-radius: 5px; padding: 2em 1em 1.6em; text-align: center; box-shadow: 0 0 20px rgba(0,0,0,.25); animation: pe-pop .25s ease; font-size: 16px; }
@keyframes pe-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pe-icone { width: 5em; height: 5em; border: .25em solid #c9dae1; border-radius: 50%; color: #87adbd; display: flex; align-items: center; justify-content: center; margin: 1em auto .6em; font-size: 1em; }
.pe-icone span { font-size: 3.75em; line-height: 1; }
.pe-titulo { color: #545454; font-size: 1.875em; font-weight: 600; margin: .6em 0 0; padding: 0 .8em; line-height: 1.3; }
.pe-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .625em; margin: 1.6em 0 0; }
.pe-btn { border: 0; border-radius: .25em; color: #fff; font-family: 'Poppins', sans-serif; font-size: 1em; font-weight: 500; padding: .625em 1.1em; cursor: pointer; }
.pe-sim { background: #008000; }
.pe-sim:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,128,0,.5); }
.pe-nao { background: #dc3545; }
.pe-voltar { background: #6e7881; }
.pe-btn:hover { filter: brightness(.92); }
.pe-campos { text-align: left; padding: 0 1.4em; margin-top: 1.2em; }
.pe-campos label { display: block; font-size: 14px; font-weight: 600; color: #545454; margin-bottom: 12px; }
.pe-campos input, .pe-campos select { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 15px; font-family: 'Poppins', sans-serif; background: #fff; }
.pe-campos input:focus, .pe-campos select:focus { outline: none; border-color: #000; box-shadow: 0 0 0 2px #FFDE21; }
.pe-erro { color: #dc3545; font-size: 13px; margin: 0; min-height: 0; }
@media (max-width: 480px) { .pe-titulo { font-size: 1.5em; } .pe-btn { width: 100%; } }
