/* ==================================
   SELLEWA SELLER DASHBOARD
   ISOLATED CSS
================================== */


#sellerDashboard{
    max-width:1200px;
    margin:auto;
    padding:40px 25px;
}


/* HEADER */

#sellerDashboard h1{
    font-size:48px;
    font-weight:900;
    color:#07172a;
    margin-bottom:45px;
}


/* =========================
   DASHBOARD GRID
========================= */

.seller-dashboard-grid{

    display:grid;

    grid-template-columns:
        minmax(0,1.1fr)
        minmax(380px,.9fr);

    gap:30px;

    align-items:stretch;

    margin-bottom:55px;

}


/* =========================
   STATS
========================= */

.seller-stats-grid{

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:25px;

    height:100%;

}


.seller-stat-card{

    background:#fff;

    height:170px;

    border-radius:22px;

    padding:25px 30px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    box-shadow:
    0 18px 45px rgba(15,23,42,.06);

}

.seller-stat-icon{
    font-size:28px;
    margin-bottom:15px;
}


.seller-stat-card span{
    color:#64748b;
    font-size:15px;
}


.seller-stat-card strong{
    margin-top:12px;
    font-size:28px;
    color:#07172a;
}


/* =========================
   WALLET CARD
========================= */


.seller-wallet-card{

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e3a8a
    );

    color:white;

    min-height:200px;

    padding:32px 40px;

    border-radius:26px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:18px;

    box-shadow:
    0 25px 60px rgba(15,23,42,.22);

}


.seller-wallet-card h3{
    color:#dbeafe;
    font-size:16px;
}


.seller-wallet-balance{

    font-size:40px;

    line-height:1;

    font-weight:900;

    margin:0;

}


.seller-wallet-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

    margin:0;

}


.seller-wallet-row strong{
    color:white;
}



.seller-wallet-actions{

    display:flex;

    align-items:center;

    gap:15px;

    margin:0;

}


.seller-wallet-actions button{

    height:46px;

    padding:0 38px;

    border-radius:12px;

}




.seller-withdraw-btn,
.seller-light-btn{

    border:none;
    padding:14px 25px;
    border-radius:14px;

    font-weight:800;
    cursor:pointer;
}


.seller-withdraw-btn{
    background:#0E66EA;
    color:white;
}


.seller-light-btn{
    background:white;
    color:#0f172a;
}



/* =========================
   ORDERS
========================= */


.seller-section-title{

    margin:40px 0 25px;
    font-size:22px;
}


.seller-orders-list{

    display:flex;
    flex-direction:column;
    gap:22px;
}


.seller-order-card{

    background:white;

    padding:28px;

    border-radius:22px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    box-shadow:
    0 15px 40px rgba(15,23,42,.06);
}


.seller-order-info h3{

    margin-bottom:12px;
}


.seller-order-info p{

    margin:8px 0;
}


.seller-order-status{

    display:inline-flex;

    margin-top:12px;

    padding:7px 18px;

    border-radius:50px;

    background:#dcfce7;

    color:#166534;

    font-weight:800;

    font-size:12px;
}


.seller-order-actions{

    display:flex;

    flex-direction:column;

    gap:12px;
}


.seller-order-actions button{

    background:#0E66EA;

    color:white;

    border:none;

    padding:13px 35px;

    border-radius:12px;

    cursor:pointer;

    font-weight:800;
}



/* =========================
   MOBILE
========================= */


@media(max-width:900px){

    .seller-dashboard-grid{
        grid-template-columns:1fr;
    }


    .seller-stats-grid{
        grid-template-columns:1fr;
    }


    .seller-order-card{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

}






/* ===============================
   SELLER STORE INFO CARD
================================ */

.seller-store-info-card{

    background:white;

    border-radius:24px;

    padding:25px 30px;

    min-height:130px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:25px;

    box-shadow:
    0 18px 45px rgba(15,23,42,.06);

}


.seller-store-label{

    font-size:12px;

    font-weight:800;

    color:#0E66EA;

    letter-spacing:.08em;

}


.seller-store-info-card h3{

    margin:12px 0 8px;

    font-size:24px;

    font-weight:900;

    color:#07172a;

}


.seller-store-info-card p{

    margin:0;

    font-size:15px;

    color:#64748b;

}


.seller-store-info-card button{

    background:#0E66EA;

    color:white;

    border:none;

    padding:14px 35px;

    border-radius:14px;

    font-weight:800;

    cursor:pointer;

}






/* ==========================
   SELLER FINANCE AREA
========================== */

.seller-finance-row{

    display:grid;

    grid-template-columns:1fr 1.7fr;

    gap:30px;

    align-items:stretch;

    margin-bottom:50px;

}


/* ==========================
   SELLER TRUST CARD
========================== */

.seller-trust-card{

    background:#fff;

    border-radius:26px;

    padding:32px 40px;

    height:100%;

    min-height:220px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    align-items:center;

    gap:25px;

    box-shadow:
    0 18px 45px rgba(15,23,42,.06);

}


/* Title spans full width top */
.seller-trust-card h3{

    grid-column:1 / -1;

    margin:0;

    font-size:20px;

    font-weight:900;

    color:#07172a;

}


/* each performance box */
.seller-trust-item{

    border:none;

    background:#f8fafc;

    border-radius:18px;

    padding:18px;

    min-height:90px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:10px;

}


.seller-trust-item span{

    color:#64748b;

    font-size:14px;

}


.seller-trust-item strong{

    color:#07172a;

    font-size:20px;

    font-weight:900;

}






/* ================================
   SELLER RECENT ORDERS
================================ */

.seller-orders {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.seller-order-card {

    background: #ffffff;

    border-radius: 22px;

    padding: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    box-shadow:
        0 20px 45px rgba(15,23,42,.06);

    transition: .25s;

}


.seller-order-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 25px 60px rgba(15,23,42,.10);

}


/* LEFT AREA */

.seller-order-main {

    flex:1;

}


.seller-order-top {

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:12px;

}


.seller-order-top h3 {

    margin:0;

    font-size:20px;

    font-weight:800;

    color:#07172a;

}


.seller-order-badge {

    background:#dcfce7;

    color:#166534;

    padding:7px 18px;

    border-radius:50px;

    font-size:12px;

    font-weight:800;

    text-transform:uppercase;

}


.seller-order-main h4 {

    margin:0 0 15px;

    font-size:17px;

    font-weight:800;

}


/* DETAILS */

.seller-order-meta {

    display:grid;

    grid-template-columns:
        repeat(4,auto);

    gap:20px;

}


.seller-order-meta span {

    color:#64748b;

    font-size:14px;

}


.seller-order-meta strong {

    display:block;

    margin-top:5px;

    color:#07172a;

    font-size:15px;

}


/* ACTION BUTTONS */

.seller-order-actions {

    display:flex;

    flex-direction:column;

    gap:14px;

}


.seller-order-actions button {

    width:150px;

    padding:14px 20px;

    border-radius:14px;

    border:none;

    background:#0E66EA;

    color:white;

    font-weight:800;

    cursor:pointer;

}


.seller-order-actions button:hover {

    opacity:.9;

}



/* MOBILE */

@media(max-width:800px){

    .seller-order-card{

        flex-direction:column;

        align-items:flex-start;

    }


    .seller-order-meta{

        grid-template-columns:1fr 1fr;

    }


    .seller-order-actions{

        width:100%;

    }


    .seller-order-actions button{

        width:100%;

    }

}






/* ================================
   SELLER ORDERS HEADER
================================ */

.seller-orders-header {

    margin-top: 35px;

    margin-bottom: 25px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:30px;

    max-width:1150px;

}


.seller-orders-header h3 {

    min-width:220px;

}


.seller-orders-header h3 {

    margin: 0;

    font-size: 24px;

    font-weight: 900;

    color: #07172a;

}


/* SUMMARY PILLS */

.seller-order-summary {

    flex:1;

    display:grid;

    grid-template-columns:repeat(4,130px);

    justify-content:end;

    gap:14px;

}


.seller-order-summary div {

    background: #ffffff;

    min-width: 120px;

    padding: 15px 20px;

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(15,23,42,.06);

}


.seller-order-summary span {

    display:block;

    margin-bottom:8px;

    color:#64748b;

    font-size:13px;

}


.seller-order-summary strong {

    font-size:22px;

    color:#07172a;

    font-weight:900;

}


/* MOBILE */

@media(max-width:800px){

    .seller-orders-header{

        flex-direction:column;

        align-items:flex-start;

    }


    .seller-order-summary{

        width:100%;

        grid-template-columns:1fr 1fr;

    }

}






/* ================================
 SELLER LISTINGS PAGE
================================ */


.seller-listing-grid{

display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;

}



.seller-listing-card{

background:white;
border-radius:22px;
overflow:hidden;
box-shadow:
0 20px 45px rgba(15,23,42,.08);

}



.seller-listing-img img{

width:100%;
height:220px;
object-fit:cover;

}



.seller-listing-content{

padding:22px;

}



.seller-listing-badge{

background:#dcfce7;
color:#15803d;
font-size:12px;
font-weight:800;
padding:7px 18px;
border-radius:20px;

}



.seller-listing-content h3{

font-size:17px;
margin-top:18px;

}



.seller-listing-price{

font-size:24px;
font-weight:900;
color:#0E66EA;
margin-top:15px;

}



.seller-listing-meta{

color:#64748b;
font-size:14px;

}



.seller-listing-actions{

display:flex;
gap:10px;
padding:20px;

}



.seller-listing-actions button{

flex:1;
border:none;
background:#0E66EA;
color:white;
border-radius:12px;
padding:12px;
font-weight:800;

}







/* ===============================
   MY LISTINGS PAGE
================================ */

#sellerListings {
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:24px;
    padding:30px;
}


/* Support all seller card names */

#sellerListings > div,
.seller-card,
.seller-listing-card {

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    max-width:280px;

}


/* IMAGE */

#sellerListings img {

    width:100%;

    height:190px;

    object-fit:cover;

    display:block;

}


/* BODY */

#sellerListings h3,
#sellerListings h4 {

    font-size:16px;

    line-height:1.4;

    padding:0 15px;

}


#sellerListings .price,
.seller-listing-price {

    color:#0E66EA;

    font-size:22px;

    font-weight:800;

    padding:0 15px;

}


/* Status */

#sellerListings small,
.seller-status {

    display:block;

    padding:12px 15px 5px;

}


/* Buttons */

#sellerListings button,
#sellerListings a {

    background:#0E66EA;

    color:white;

    border:none;

    border-radius:10px;

    padding:10px 18px;

    margin:8px;

    text-decoration:none;

    font-weight:700;

}






/* =====================================
   SELLER MY LISTINGS FINAL OVERRIDE
===================================== */

/* ==========================================
   SELLER LISTING GRID
========================================== */

#sellerListings{
    padding:30px;
}


.seller-listing-card{
    width:280px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
}


/* IMAGE */

.seller-listing-image{
    width:100%;
    height:190px;
    overflow:hidden;
}


.seller-listing-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


/* BODY */

.seller-listing-body{
    padding:16px;
}


.seller-listing-status{
    color:#0E66EA;
    font-size:11px;
    font-weight:800;
}


.seller-listing-body h3{
    font-size:16px;
    line-height:1.4;
    margin:12px 0;
}


.seller-listing-price{
    color:#0E66EA;
    font-size:22px;
    font-weight:900;
    margin-bottom:10px;
}


.seller-listing-location{
    font-size:14px;
    color:#555;
}


/* BUTTONS */

.seller-listing-actions{
    display:flex;
    gap:10px;
    margin-top:18px;
}


.seller-listing-actions button{
    flex:1;
    background:#0E66EA;
    color:white;
    border:0;
    padding:10px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}






/* FINAL button overflow fix */
#sellerListings .seller-listing-actions{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:8px !important;
    width:100% !important;
}

#sellerListings .seller-listing-actions button{
    min-width:0 !important;
    width:100% !important;
    padding:10px 6px !important;
    margin:0 !important;
    font-size:13px !important;
    border-radius:10px !important;
}





/*=====================================
/  COUNTER STYLING
=====================================*/
.sw-offer-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.sw-counter-input{
    padding:12px 16px;
    border:1px solid #dce3f0;
    border-radius:14px;
    width:160px;
}

.sw-counter-btn,
.sw-accept-btn,
.sw-reject-btn{
    border:0;
    padding:12px 22px;
    border-radius:14px;
    font-weight:700;
    cursor:pointer;
}

.sw-counter-btn{
    background:#111827;
    color:white;
}

.sw-accept-btn{
    background:#0E66EA;
    color:white;
}

.sw-reject-btn{
    background:#fee2e2;
    color:#dc2626;
}










/* ===================================
   SELLER WORKSPACE
=================================== */


.seller-workspace{

    display:grid;

    grid-template-columns:180px 1fr;

    gap:25px;

    margin-top:50px;

    align-items:start;

}


/* LEFT MENU */

.seller-workspace-tabs{

    background:#fff;

    border-radius:24px;

    padding:18px;

    height:max-content;

    box-shadow:
    0 20px 50px rgba(15,23,42,.07);

}


.seller-workspace-tab{

    width:100%;

    border:0;

    background:transparent;

    padding:16px;

    text-align:left;

    border-radius:14px;

    font-weight:800;

    cursor:pointer;

    margin-bottom:8px;

}


.seller-workspace-tab.active{

    background:#0E66EA;

    color:white;

}



/* RIGHT CONTENT */

/* ===================================
   SELLER WORKSPACE CONTENT
=================================== */


.seller-workspace-content{

    background:white;

    border-radius:28px;

    padding:35px;

    height:650px;

    overflow:hidden;

    box-shadow:
    0 25px 60px rgba(15,23,42,.08);

}


/* Only active panel scrolls */

.seller-panel.active{

    display:block;

    height:100%;

    overflow-y:auto;

    padding-right:15px;

}


/* clean scrollbar */

.seller-panel.active::-webkit-scrollbar{

    width:6px;

}


.seller-panel.active::-webkit-scrollbar-thumb{

    background:#d1d5db;

    border-radius:20px;

}





.seller-panel{

    display:none;

}


.seller-panel.active{

    display:block;

}



/* CARDS INSIDE */

.seller-panel
.seller-order-card,
.seller-panel
.sw-offer-card{

    margin-bottom:20px;

    border:1px solid #e5e7eb;

    box-shadow:none;

}



/* MOBILE */

@media(max-width:900px){

    .seller-workspace{

        grid-template-columns:1fr;

    }


    .seller-workspace-tabs{

        display:flex;

        overflow-x:auto;

        gap:10px;

    }


    .seller-workspace-tab{

        white-space:nowrap;

    }

}




.seller-workspace-tabs{

    position:sticky;

    top:120px;

}






/* SELLER DASHBOARD TAB MENU */

.seller-dashboard-tabs{
    background:#fff;
    border-radius:22px;
    padding:18px;
    width:180px;
    min-width:180px;

    display:flex;
    flex-direction:column;
    gap:14px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.06);
}


.seller-tab{
    border:none;
    background:transparent;

    padding:15px 20px;
    border-radius:14px;

    font-size:16px;
    font-weight:800;

    color:#111827;

    cursor:pointer;

    text-align:left;

    transition:.25s ease;
}


.seller-tab:hover{
    background:#f3f7ff;
    color:#0E66EA;
}


.seller-tab.active{

    background:#0E66EA;
    color:white;

    box-shadow:
        0 10px 25px rgba(14,102,234,.25);
}





