/* ============================================================
   PDV - PADRÃO REBIP (Estética e Funcionalidade)
   Bordas: 25px | Sombras Suaves | Mobile Friendly
============================================================ */

/* Overlay escuro que cobre a tela quando o PDV abre */
#tela-pdv {
    display: none;
    /* Inicia oculto, o JS altera para 'flex' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    /* Efeito de vidro borrado no fundo */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* O Quadro Principal do Caixa */
.pdv-container {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 25px;
    /* Padrão Rebip */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Sombra suave */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eaeaea;
    /* Borda fina e elegante */
}

/* Cabeçalho do PDV */
.pdv-header {
    background: #f8f9fc;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.pdv-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Inputs do PDV (Smart Search e Código de Barras) */
.rebip-input-pdv {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #eaeaea;
    border-radius: 25px;
    /* Padrão Rebip */
    background: #fdfdfd;
    transition: all 0.3s ease;
    outline: none;
}

.rebip-input-pdv:focus {
    border-color: #897FA4;
    /* Cor Amora */
    box-shadow: 0 0 0 4px rgba(137, 127, 164, 0.1);
}

/* Área de sugestões do Smart Search (Lista suspensa) */
#pdv-sugestoes-cliente,
#pdv-sugestoes-produto {
    position: absolute;
    background: white;
    width: calc(100% - 40px);
    max-height: 250px;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 5px;
    border: 1px solid #f0f0f0;
}

/* Lista de Itens do Carrinho */
#pdv-lista-itens {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    background: #ffffff;
}

/* Estado de carrinho vazio */
.pdv-empty-state {
    text-align: center;
    color: #ccc;
    margin-top: 10vh;
}

.pdv-empty-state i {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* Rodapé do PDV (Totais e Pagamento) */
.pdv-footer {
    background: #f8f9fc;
    padding: 20px 30px;
    border-top: 1px solid #eaeaea;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Botões Padrão Rebip */
.btn-rebip {
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    /* Padrão Rebip */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-rebip:active {
    transform: scale(0.97);
}

.btn-finalizar {
    background: #27ae60;
    color: white;
    width: 100%;
}

.btn-finalizar:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}