/* ========================================================================
   ESTILOS ORÇAMENTO - TRAÇO
   ======================================================================== */

/* ========================================================================
   CARRINHO FLUTUANTE
   ======================================================================== */

.dfc-carrinho-flutuante {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background-color: #38c172 !important;
    /* Cor verde */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 3px solid #2d9e5f !important;
}

.dfc-carrinho-flutuante:hover {
    transform: scale(1.1);
}

.dfc-carrinho-flutuante.pulse {
    animation: dfc-pulse 0.6s 2;
}

@keyframes dfc-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1.1);
    }
}

/* ========================================================================
   CONTADOR DE ITENS
   ======================================================================== */

.dfc-contador-itens {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #E63946;
    /* Vermelho */
    color: white;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: Arial, sans-serif;
    display: none;
}

/* ========================================================================
   NOTIFICAÇÃO DE TOAST
   ======================================================================== */

.dfc-notification-toast {
    position: fixed;
    bottom: 180px;
    right: 25px;
    background-color: #009C59;
    /* Verde de sucesso */
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1010;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dfc-notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.dfc-notification-toast.warning {
    background-color: #FF5224;
    /* Laranja para aviso */
}

/* ========================================================================
   MODAL
   ======================================================================== */

.dfc-modal-orcamento {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dfc-modal-conteudo {
    background-color: #f5f5f5;
    margin: 10% auto;
    padding: 0;
    border: 3px solid #38c172;
    width: 80%;
    max-width: 600px;
    border-radius: 0;
    color: #333;
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dfc-modal-conteudo h2 {
    margin: 0;
    padding: 20px 25px;
    background-color: #38c172;
    color: white;
    border-bottom: 2px solid #2d9e5f;
}

.dfc-modal-conteudo p {
    color: #555;
    padding: 0 25px;
    margin-top: 15px;
}

.dfc-modal-fechar {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    background-color: #38c172;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dfc-modal-fechar:hover,
.dfc-modal-fechar:focus {
    color: #fff;
    background-color: #2d9e5f;
}

/* ========================================================================
   LISTA MODAL
   ======================================================================== */

.dfc-modal-lista {
    list-style-type: none;
    padding: 0;
    margin: 20px 25px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0;
    max-height: 300px;
    overflow-y: auto;
}

.dfc-modal-lista li {
    list-style-type: none;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    background-color: #fafafa;
}

.dfc-modal-lista li:last-child {
    border-bottom: none;
}

.dfc-remover-item {
    color: #E63946;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
}

.dfc-remover-item:hover {
    transform: scale(1.2);
    color: #d42a36;
}

/* ========================================================================
   BOTÕES
   ======================================================================== */

.dfc-botao-finalizar {
    background-color: #38c172;
    color: white !important;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    display: block;
    margin: 20px 25px 25px 25px;
    text-align: center;
    width: calc(100% - 50px);
    box-sizing: border-box;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dfc-botao-finalizar:hover {
    background-color: #2d9e5f;
    transform: none;
}

.dfc-botao-finalizar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dfc-add-orcamento-btn {
    background-color: #009C59;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.dfc-add-orcamento-btn:hover {
    background-color: #007346;
    transform: translateY(-2px);
}

.dfc-add-orcamento-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================================================
   BLOCO DE ORÇAMENTO
   ======================================================================== */

.dfc-bloco-orcamento {
    border: 2px solid #38c172;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
}

.dfc-select-variacao {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.dfc-select-variacao.attention {
    border: 2px solid #FF5224;
    box-shadow: 0 0 5px rgba(255, 82, 36, 0.5);
}

/* ========================================================================
   FORMULÁRIO DE CONTATO
   ======================================================================== */

.dfc-formulario-contato {
    background-color: #f0f0f0;
    padding: 20px 25px;
    margin: 0 25px 20px 25px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.dfc-formulario-contato h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: #38c172;
    text-transform: uppercase;
}

#dfc-form-contato {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dfc-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dfc-form-group label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.dfc-form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    background-color: #ffffff;
    color: #333;
}

.dfc-form-group input:focus {
    outline: none;
    border-color: #38c172;
    box-shadow: 0 0 3px rgba(56, 193, 114, 0.3);
}

.dfc-form-group input::placeholder {
    color: #999;
}

/* ========================================================================
   RESPONSIVO
   ======================================================================== */

@media (max-width: 768px) {
    .dfc-modal-conteudo {
        width: 95%;
        margin: 15% auto;
        padding: 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    .dfc-carrinho-flutuante {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .dfc-notification-toast {
        bottom: 80px;
        right: 20px;
        padding: 12px 16px;
        font-size: 13px;
    }
}