/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

/* Corrigir o círculo azul (avatar) que aparece incorretamente no cabeçalho */
.page-title-box .breadcrumb-item.active + .avatar,
.page-title-box .breadcrumb-item.active + div[class*="avatar"],
.page-title-box .breadcrumb-item.active + span.rounded-circle,
.page-title-box .breadcrumb-item.active ~ .rounded-circle,
.page-title-right .rounded-circle,
.page-title-box .user-status {
    display: none !important;
}

/* Estilização do checkbox de status */
.form-switch .form-check-input {
    width: 40px;
    height: 20px;
    background-color: #f3f6f9;
    border-color: #e9ebec;
}

.form-switch .form-check-input:checked {
    background-color: #0ab39c;
    border-color: #0ab39c;
}

.form-switch .form-check-input:focus {
    box-shadow: none;
    border-color: #0ab39c;
}

/* Badge de status */
.badge-status-ativo {
    background-color: #0ab39c !important;
}

.badge-status-inativo {
    background-color: #f06548 !important;
}

.badge-status-em_desenvolvimento {
    background-color: #405189 !important;
}

.badge-status-descontinuado {
    background-color: #878a99 !important;
}

.badge-status-esgotado {
    background-color: #f7b84b !important;
}

/* ── Abas laterais (Cadastro/Edição de Produto) ───────────────── */
.nav-tabs-editor {
    border-bottom: none;
    flex-direction: column;
    gap: 2px;
}
.nav-tabs-editor .nav-link {
    border: none;
    border-radius: 8px;
    padding: .6rem 1rem;
    color: var(--vz-body-color);
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all .15s;
    text-align: left;
    white-space: nowrap;
}
.nav-tabs-editor .nav-link:hover {
    background: var(--vz-light);
    color: var(--vz-primary);
}
.nav-tabs-editor .nav-link.active {
    background: var(--vz-primary-bg-subtle);
    color: var(--vz-primary);
    font-weight: 600;
}
.nav-tabs-editor .nav-link .tab-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    flex-shrink: 0;
    background: var(--vz-light);
    transition: background .15s;
}
.nav-tabs-editor .nav-link.active .tab-icon {
    background: var(--vz-primary);
    color: #fff;
}
.form-sidebar {
    position: sticky;
    top: 70px;
}
.card-tipo-produto {
    border: 2px solid var(--vz-border-color);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    height: 100%;
    transition: all .2s;
}
.card-tipo-produto:hover {
    border-color: var(--vz-primary);
    background: var(--vz-primary-bg-subtle);
}
.card-tipo-produto.selecionado {
    border-color: var(--vz-primary);
    background: var(--vz-primary-bg-subtle);
    box-shadow: 0 0 0 3px rgba(64,81,137,.15);
}
.card-tipo-produto .tipo-icon { font-size: 1.8rem; margin-bottom: .5rem; display: block; }
.card-tipo-produto input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

/* ── Visualizar Produto — Hero ─────────────────────────────── */
.produto-hero-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.produto-hero-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    transition: transform .4s ease;
    display: block;
}
.produto-hero-img:hover { transform: scale(1.04); }
.produto-hero-placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vz-light);
    border-radius: 16px;
    font-size: 5rem;
    color: var(--vz-primary);
}
.produto-hero-badge-principal {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* ── Stat-cards reutilizáveis (KPIs) ───────────────────────── */
.stat-card {
    transition: transform .22s ease, box-shadow .22s ease;
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1) !important;
}
.stat-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    border-radius: 14px;
    flex-shrink: 0;
}

/* ── Animações de entrada ───────────────────────────────────── */
.fade-in-up {
    animation: vz-fadeInUp .5s ease both;
}
@keyframes vz-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up-delay-1 { animation-delay: .08s; }
.fade-in-up-delay-2 { animation-delay: .16s; }
.fade-in-up-delay-3 { animation-delay: .24s; }
.fade-in-up-delay-4 { animation-delay: .32s; }
.fade-in-up-delay-5 { animation-delay: .40s; }
.fade-in-up-delay-6 { animation-delay: .48s; }

/* ── Cards de seção da visualização ────────────────────────── */
.section-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    transition: box-shadow .2s;
    overflow: hidden;
}
.section-card:hover { box-shadow: 0 4px 22px rgba(0, 0, 0, .10); }
.section-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--vz-border-color);
    padding: 1rem 1.25rem .75rem;
}
.section-card .section-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Tabela de dados do produto ─────────────────────────────── */
.table-produto-dados th {
    width: 42%;
    color: var(--vz-text-muted);
    font-weight: 500;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .55rem .75rem;
}
.table-produto-dados td {
    font-weight: 600;
    font-size: .88rem;
    padding: .55rem .75rem;
}
.table-produto-dados tr:last-child th,
.table-produto-dados tr:last-child td { border-bottom: 0; }

/* ── Galeria de miniaturas ───────────────────────────────────── */
.galeria-thumb {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: transform .25s, box-shadow .25s;
}
.galeria-thumb:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.galeria-thumb-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.galeria-badge-principal {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: .7rem;
}

/* ── Avatar inicial fornecedor ──────────────────────────────── */
.fornecedor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Barra de progresso de estoque ─────────────────────────── */
.estoque-progress-bar { height: 6px; border-radius: 3px; }

/* ── Hero Actions (botões flutuantes no topo do hero) ──────── */
.hero-actions .btn { border-radius: 10px; font-size: .82rem; }

/* ── Info chips (código/SKU/GTIN no hero) ───────────────────── */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--vz-light);
    border: 1px solid var(--vz-border-color);
    border-radius: 8px;
    padding: .25rem .65rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--vz-body-color);
}
.info-chip i { font-size: .9rem; color: var(--vz-primary); }