/* ========================================================================
   ESTILOS ORÇAMENTO - TRAÇO
   ======================================================================== */

/* ========================================================================
   CARRINHO FLUTUANTE
   ======================================================================== */

.dfc-carrinho-flutuante {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background-color: #000000;
    color: #f1c40f; /* Amarelo */
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Bolinha circular */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid #f1c40f;
}

.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,
.dfc-contador-menu {
    background-color: #f1c40f;
    color: #000;
    border: 1px solid #000;
}

/* ========================================================================
   NOTIFICAÇÃO DE TOAST
   ======================================================================== */

.dfc-notification-toast {
    position: fixed;
    bottom: 180px;
    right: 25px;
    background-color: #000;
    color: #f1c40f;
    padding: 15px 20px;
    border-radius: 8px;
    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: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #f1c40f;
}

.dfc-notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.dfc-notification-toast.warning {
    background-color: #000;
    color: #ff3333;
    border-color: #ff3333;
}

/* ========================================================================
   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: #ffffff;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    color: #1a1a1a;
    animation: slideDown 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dfc-modal-conteudo h2 {
    margin: 0;
    padding: 25px;
    background-color: #000;
    color: #f1c40f;
    border-bottom: 2px solid #f1c40f;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dfc-modal-conteudo p {
    color: #555;
    padding: 0 25px;
    margin-top: 15px;
}

.dfc-modal-fechar {
    color: #f1c40f;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dfc-modal-fechar:hover {
    background-color: var(--dfc-cor-destaque);
    color: #000;
}

/* ========================================================================
   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-item-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.dfc-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.dfc-item-img-placeholder {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 20px;
    border: 1px solid #eee;
}

.dfc-item-detalhes {
    display: flex;
    flex-direction: column;
}

.dfc-item-detalhes strong {
    font-size: 15px;
    margin-bottom: 4px;
}

.dfc-item-detalhes small {
    color: #777;
    font-size: 12px;
}

.dfc-item-acoes {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dfc-input-qtd {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.dfc-input-qtd:focus {
    outline: none;
    border-color: #f1c40f;
}

/* Forçar setas do input number sempre visíveis no webkit */
.dfc-input-qtd::-webkit-inner-spin-button,
.dfc-input-qtd::-webkit-outer-spin-button,
.dfc-qtd-pre-add::-webkit-inner-spin-button,
.dfc-qtd-pre-add::-webkit-outer-spin-button {
    opacity: 1;
}

.dfc-modal-lista li:last-child {
    border-bottom: none;
}

.dfc-remover-item {
    color: #ff3333;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.dfc-remover-item:hover {
    transform: scale(1.2);
    color: #d42a36;
}

/* ========================================================================
   CARRINHO NO MENU (SHORTCODE)
   ======================================================================== */

.dfc-carrinho-menu-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    padding: 5px 10px;
}

.dfc-carrinho-menu-link i {
    font-size: 20px;
}

.dfc-contador-menu {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f1c40f;
    color: #000;
    width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    display: none;
    border: 1px solid #000;
}

/* ========================================================================
   BOTÕES
   ======================================================================== */

.dfc-botao-finalizar {
    background-color: #000;
    color: #f1c40f !important;
    padding: 18px 20px;
    text-decoration: none;
    border-radius: 8px;
    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: 2px solid #f1c40f;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dfc-botao-finalizar:hover {
    background-color: #f1c40f;
    color: #000 !important;
}

.dfc-botao-finalizar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dfc-add-orcamento-btn {
    background-color: #000;
    color: #f1c40f;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f1c40f;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
}

.dfc-add-orcamento-btn:hover {
    background-color: #f1c40f;
    color: #000;
}

.dfc-add-orcamento-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================================================
   BLOCO DE ORÇAMENTO
   ======================================================================== */

.dfc-bloco-orcamento {
    border: 1px solid #ececec;
    padding: 25px;
    border-radius: 16px;
    background: #ffffff;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.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: #000;
    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: #f1c40f;
}

.dfc-form-group input::placeholder {
    color: #999;
}

/* ========================================================================
   RESPONSIVO
   ======================================================================== */

@media (max-width: 768px) {
    .dfc-modal-conteudo {
        width: 90%;
        margin: 30% auto;
        padding: 20px;
    }

    .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;
    }
}