/* ========================= */
/* PRODUTOS */
/* ========================= */

.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.categoria {
    flex-shrink: 0;
    
    padding: 10px 16px;

    background-color: #f3f4f6;
    color: #1f2937;

    border: none;
    border-radius: 8px;

    font-size: 14px;

    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.categoria:hover {
    background-color: #e8eefc;
}

.categoria.ativa {
    background-color: #0b64ad;
    color: #ffffff;
}


/* ========================= */
/* LISTA DE PRODUTOS */
/* ========================= */

.lista-produtos {
    margin-top: 24px;
}

.grupo-produtos {
    margin-bottom: 24px;

    background-color: #fafbfc;

    border-radius: 12px;

    overflow: hidden;
}

.cabecalho-categoria {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    background-color: #f3f6fa;

    border-bottom: 1px solid #e8edf3;
}

.cabecalho-categoria h2 {
    color: #475569;

    font-size: 15px;
    font-weight: 600;
}

.icone-categoria {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    color: #0b64ad;

    font-size: 15px;
}

.icone-categoria img {
    width: 24px;
    height: 24px;

    object-fit: contain;

    display: block;
}

.produtos-da-categoria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;

    padding: 6px 10px 10px;
}

.cartao-produto {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px 12px 10px;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.cartao-produto:hover {

    background-color: #f8fafc;

    transform: translateY(-4px);

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);

}

.cartao-produto:active {

    transform: translateY(-1px);

}

.cartao-produto .imagem-produto {

    width: 90px;
    height: 90px;

    object-fit: contain;

    flex-shrink: 0;

    background-color: white;

    border: 1px solid #dbe2ea;
    border-radius: 8px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}

.cartao-produto:hover .imagem-produto {

    transform: scale(1.04);

}

.nome-produto {
    margin-top: 10px;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.cartao-produto:hover .nome-produto {

    color: #0b64ad;

}


/* ========================= */
/* MENU NOVO PRODUTO */
/* ========================= */

.menu-novo-produto {
    position: relative;
}

.botao-novo-produto {
    display: flex;
    align-items: center;

    height: 36px;
    padding: 0;

    background-color: #0b64ad;
    color: #ffffff;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    overflow: hidden;

    transition: background-color 0.2s;
}

.botao-novo-produto:hover {
    background-color: #095692;
}

.icone-caixa-produto {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 36px;
}

.icone-caixa-produto svg {
    width: 20px;
    height: 20px;
}

.sinal-adicionar {
    position: absolute;
    right: 7px;
    bottom: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 13px;
    height: 13px;

    background-color: #ffffff;
    color: #0b64ad;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.seta-menu-produto {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 36px;

    font-size: 10px;

    transition: transform 0.2s;
}

.seta-menu-produto.aberta {
    transform: rotate(180deg);
}

.opcoes-novo-produto {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 100;

    width: 160px;
    padding: 4px 0;

    background-color: #ffffff;

    border: 1px solid #d8dde8;
    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);

    overflow: hidden;
}

.opcoes-novo-produto button {
    width: 100%;
    padding: 10px 14px;

    background-color: transparent;
    color: #1f2937;

    border: none;

    font-size: 13px;
    text-align: left;

    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.opcoes-novo-produto button:hover {
    background-color: #eef4ff;
    color: #0b64ad;
}

.opcoes-novo-produto button:first-child {
    border-bottom: 1px solid #ececec;
}

/* ========================= */
/* MODAIS DE PRODUTO */
/* ========================= */

#modalProdutoNacional .conteudo-modal,
#modalProdutoImportado .conteudo-modal {
    width: 760px;
    max-height: 90vh;

    overflow-y: auto;
}

#modalProdutoNacional .corpo-modal,
#modalProdutoImportado .corpo-modal {
    gap: 16px 20px;
}

#modalProdutoNacional .grupo-campo label,
#modalProdutoImportado .grupo-campo label {
    margin-bottom: 6px;
}

#modalProdutoNacional .campo,
#modalProdutoImportado .campo {
    width: 100%;
}

#modalProdutoNacional .campo-textarea,
#modalProdutoImportado .campo-textarea {
    height: 90px;
    padding: 12px;

    resize: vertical;

    font-family: Arial, Helvetica, sans-serif;
}

#modalProdutoNacional .acoes-modal,
#modalProdutoImportado .acoes-modal {
    padding-top: 4px;
}

/* ========================= */
/* ÁREA DE UPLOAD */
/* ========================= */

.area-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 76px;
    padding: 14px 18px;

    background-color: #f8fafc;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.area-upload:hover {
    background-color: #f1f5ff;

    border-color: #0b64ad;
}

.texto-upload {
    color: #475569;

    font-size: 13px;
    font-weight: 600;
}

.detalhe-upload {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 11px;
}

.arquivo-escondido {
    display: none;
}

.cartao-arquivo {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 6px 12px;
    min-height: 40px;

    border: 1px solid #dbe5f4;
    border-radius: 8px;

    background-color: #f8faff;
    font-size: 14px;
    color: #334155; 

}

.cartao-arquivo.escondido {
    display: none;
}

.botao-remover-arquivo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;
    padding: 0;

    border: none;
    border-radius: 8px;

    background-color: transparent;
    color: #64748b;

    cursor: pointer;

    transition:
        background-color 0.2s,
        color 0.2s;
}

.botao-remover-arquivo svg {
    width: 16px;
    height: 16px;
}

.botao-remover-arquivo:hover {
    background-color: #feecec;
    color: #dc2626;
}

.nome-arquivo {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

/* ========================= */
/* CAMPO DE PORCENTAGEM */
/* ========================= */

.campo-porcentagem {

    position: relative;
    display: inline-block;
    width: 100%;

}

.simbolo-porcentagem {

    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    color: #64748b;

    font-size: 14px;

    pointer-events: none;

}

.campo-porcentagem .campo {

    padding-right: 32px;

}

