/* ==========================================================
   PIM HEADER
   ========================================================== */

.fx-pim-header{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:26px;
    margin-bottom:18px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.fx-product-code{
    display:inline-flex;
    padding:6px 12px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    font-weight:900;
    font-size:13px;
    margin-bottom:10px;
}

.fx-pim-header h1{
    margin:0;
    font-size:28px;
    font-weight:900;
    color:#111827;
}

.fx-product-subtitle{
    margin-top:8px;
    color:#64748b;
    font-size:15px;
}

.fx-pim-header-right{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

/* ==========================================================
   STATUS
   ========================================================== */

.fx-status{
    padding:9px 12px;
    border-radius:999px;
    font-weight:900;
    font-size:13px;
}

.fx-status-success{
    background:#dcfce7;
    color:#166534;
}

.fx-status-danger{
    background:#fee2e2;
    color:#991b1b;
}

/* ==========================================================
   PIM TABS
   ========================================================== */

.fx-pim-tabs{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:8px;
    display:flex;
    gap:6px;
    overflow-x:auto;
    margin-bottom:18px;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.fx-pim-tabs a{
    padding:12px 16px;
    border-radius:12px;
    text-decoration:none;
    color:#475569;
    font-weight:900;
    white-space:nowrap;
}

.fx-pim-tabs a.active{
    background:#111827;
    color:#fff;
}

@media(max-width:1100px){

    .fx-pim-header{
        flex-direction:column;
    }

    .fx-pim-header-right{
        justify-content:flex-start;
    }

}

/* ==========================================================
   PIM LAYOUT
   ========================================================== */

.fx-pim-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:18px;
    align-items:start;
}

.fx-pim-main,
.fx-pim-sidebar{
    min-width:0;
}

/* ==========================================================
   PRODUCT QUALITY
   ========================================================== */

.fx-score-circle{
    width:112px;
    height:112px;
    border-radius:50%;
    background:#111827;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:900;
    margin:10px auto 18px;
}

.fx-progress{
    background:#e5e7eb;
    height:10px;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:18px;
}

.fx-progress div{
    height:10px;
    background:#22c55e;
    border-radius:999px;
}

.fx-check-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 0;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
    color:#334155;
}

.fx-check-ok{
    color:#16a34a;
    font-weight:900;
}

.fx-check-no{
    color:#dc2626;
    font-weight:900;
}

/* ==========================================================
   PRODUCT SUMMARY
   ========================================================== */

.fx-summary{
    width:100%;
    border-collapse:collapse;
}

.fx-summary td{
    padding:10px 0;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
}

.fx-summary td:first-child{
    color:#64748b;
}

.fx-summary td:last-child{
    text-align:right;
    font-weight:900;
}

@media(max-width:1100px){

    .fx-pim-layout{
        grid-template-columns:1fr;
    }

}


/* ==========================================================
   PRODUCT TABLE
   ========================================================== */

.fx-table td{
    vertical-align:middle;
    text-align:center;
}

.fx-table th{
    text-align:center;
}

.fx-table td:nth-child(2){
    text-align:left;
}

.fx-table td img{
    display:block;
    margin:0 auto;
}

.fx-badge{
    display:inline-block;
    text-align:center;
    white-space:nowrap;
}

.fx-product-logistics{
    text-align:center;
    line-height:1.45;
}

.fx-product-logistics .fx-badge{
    margin-bottom:4px;
}

.fx-product-logistics strong{
    display:block;
    font-size:17px;
    margin:4px 0;
}

.fx-product-logistics small{
    display:block;
    font-size:13px;
    color:#64748b;
}

.fx-product-health{
    text-align:center;
    line-height:1.4;
}

.fx-product-health strong{
    display:block;
    margin-bottom:4px;
}

.fx-product-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

