/* =========================================================
   SELLEWA GLOBAL + HEADER
========================================================= */
:root{
    --sw-blue:#2563eb;
    --sw-blue-dark:#1d4ed8;
    --sw-text:#0f172a;
    --sw-muted:#64748b;
    --sw-bg:#f4f7fb;
    --sw-card:#ffffff;
    --sw-border:#e2e8f0;
    --sw-shadow:0 10px 30px rgba(15,23,42,.08);
    --sw-radius:22px;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    background:var(--sw-bg);
    color:var(--sw-text);
    font-family:Inter,system-ui,sans-serif;
    line-height:1.5;
}

.sw-container{
    width:min(1400px,92%);
    margin:0 auto;
}



/* =========================================================
   ELEMENTOR CONTENTS
========================================================= */

.sw-elementor-content:empty{
    display:none;
}

.sw-elementor-content{
    width:100%;
}




/* Allow Elementor editing without marketplace cards stealing clicks */

body.elementor-editor-active #listingGrid,
body.elementor-editor-active #recentListings,
body.elementor-editor-active .sw-market-card-link,
body.elementor-editor-active .sw-market-card{
    pointer-events:none !important;
}








/* =========================================================
   HEADER
========================================================= */

.sellewa-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(226,232,240,.9);
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:84px;
}

.logo{
    flex-shrink:0;
}

.logo a{
    text-decoration:none;
    color:var(--sw-text);
    font-size:38px;
    font-weight:900;
    letter-spacing:-1px;
}

.logo strong {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* SEARCH */

.search-bar{
    flex:1;
    display:flex;
    justify-content:center;
}

.search-bar form{
    width:100%;
    max-width:560px;
}

.search-bar input{
    width:100%;
    height:54px;
    border:1px solid var(--sw-border);
    border-radius:16px;
    background:#fff;
    padding:0 20px;
    font-size:15px;
    color:var(--sw-text);
    outline:none;
    transition:.2s ease;
    box-shadow:0 4px 14px rgba(15,23,42,.03);
}

.search-bar input:focus{
    border-color:var(--sw-blue);
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* MENU */

.menu{
    display:flex;
    align-items:center;
    gap:22px;
    flex-shrink:0;
}

.menu a{
    position:relative;
    text-decoration:none;
    color:var(--sw-text);
    font-size:15px;
    font-weight:800;
    transition:.2s ease;
}

.menu a:hover{
    color:var(--sw-blue);
}

.menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--sw-blue);
    border-radius:999px;
    transition:.2s ease;
}

.menu a:hover::after{
    width:100%;
}

/* NOTIFICATION BELL */

.sw-bell{
    position:relative;
    margin-left:18px;
    flex-shrink:0;
}

.sw-bell-icon{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid var(--sw-border);
    border-radius:16px;
    font-size:20px;
    cursor:pointer;
    transition:.2s ease;
    box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.sw-bell:hover .sw-bell-icon{
    transform:translateY(-2px);
    border-color:#cbd5e1;
}

.sw-bell-count{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:800;
    box-shadow:0 6px 12px rgba(239,68,68,.3);
}

.sw-bell-dropdown{
    position:absolute;
    top:60px;
    right:0;
    width:300px;
    background:#fff;
    border:1px solid var(--sw-border);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 24px 60px rgba(15,23,42,.14);
    display:none;
}

.sw-bell:hover .sw-bell-dropdown{
    display:block;
}

.sw-bell-item{
    padding:14px 16px;
    font-size:14px;
    color:var(--sw-text);
    border-bottom:1px solid #f1f5f9;
}

.sw-bell-item:last-child{
    border-bottom:none;
}

.sw-bell-item:hover{
    background:#f8fafc;
}

/* =========================================================
   RESPONSIVE HEADER
========================================================= */

@media (max-width:1050px){

    .header-inner{
        flex-wrap:wrap;
        padding:18px 0;
        min-height:auto;
    }

    .logo{
        width:100%;
        text-align:center;
    }

    .search-bar{
        order:3;
        width:100%;
    }

    .menu{
        gap:16px;
        margin-left:auto;
    }
}

@media (max-width:700px){

    .logo a{
        font-size:32px;
    }

    .menu{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
        gap:14px;
    }

    .menu a{
        font-size:14px;
    }

    .search-bar input{
        height:50px;
    }

    .sw-bell{
        margin-left:0;
    }

    .sw-bell-dropdown{
        width:260px;
        right:-10px;
    }
}













/* =========================================================
   HERO SECTION
========================================================= */

.sw-hero{
    width:min(1400px,92%);
    margin:34px auto 28px;
    padding:54px 56px;
    border-radius:34px;
    background:
        radial-gradient(circle at top right, rgba(96,165,250,.28), transparent 32%),
        linear-gradient(135deg,#1d4ed8,#2563eb 55%,#3b82f6);
    color:#fff;
    box-shadow:0 30px 70px rgba(37,99,235,.22);
    position:relative;
    overflow:hidden;
}

.sw-hero::before{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:240px;
    height:240px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.sw-hero-title{
    font-size:56px;
    line-height:1.05;
    font-weight:900;
    max-width:760px;
    margin-bottom:18px;
}

.sw-hero-sub{
    font-size:20px;
    color:rgba(255,255,255,.88);
    max-width:620px;
    margin-bottom:34px;
}

.sw-hero-search{
    display:grid;
    grid-template-columns:1fr 180px;
    gap:14px;
    max-width:760px;
}

.sw-hero-search input{
    height:64px;
    border:none;
    border-radius:18px;
    background:#fff;
    padding:0 22px;
    font-size:16px;
    color:#0f172a;
    outline:none;
    box-shadow:0 10px 28px rgba(15,23,42,.08);
}

.sw-btn{
    border:none;
    border-radius:18px;
    cursor:pointer;
    font-weight:900;
    transition:.2s ease;
}

.sw-btn-primary{
    height:64px;
    background:#0f172a;
    color:#fff;
    font-size:18px;
    box-shadow:0 12px 28px rgba(15,23,42,.18);
}

.sw-btn-primary:hover{
    transform:translateY(-3px);
    background:#020617;
}

/* =========================================================
   CATEGORY CHIPS
========================================================= */

.sw-categories{
    width:min(1400px,92%);
    margin:0 auto 54px;
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.sw-category{
    padding:16px 22px;
    background:#fff;
    border-radius:18px;
    border:1px solid #eef2f7;
    font-size:16px;
    font-weight:800;
    color:#0f172a;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
    transition:.2s ease;
    cursor:pointer;
}

.sw-category:hover{
    transform:translateY(-4px);
    border-color:#cbd5e1;
    box-shadow:0 16px 30px rgba(15,23,42,.09);
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.sw-title{
    font-size:52px;
    line-height:1.05;
    font-weight:900;
    color:#0f172a;
    margin-bottom:10px;
}

.sw-container > p{
    font-size:18px;
    color:#64748b;
    margin-bottom:42px;
}

.sw-section-title{
    font-size:34px;
    font-weight:900;
    color:#0f172a;
    margin:56px 0 22px;
}

/* =========================================================
   LISTING GRID + SKELETON
========================================================= */



/* =========================================================
   RESPONSIVE HERO + GRID
========================================================= */

@media (max-width:900px){

    .sw-hero{
        padding:42px 30px;
    }

    .sw-hero-title{
        font-size:42px;
    }

    .sw-hero-search{
        grid-template-columns:1fr;
    }

    .sw-btn-primary{
        width:100%;
    }

    .sw-title{
        font-size:42px;
    }

    .sw-section-title{
        font-size:28px;
    }
}

@media (max-width:640px){

    .sw-hero{
        margin-top:22px;
        border-radius:26px;
        padding:34px 22px;
    }

    .sw-hero-title{
        font-size:34px;
    }

    .sw-hero-sub{
        font-size:16px;
    }

    .sw-category{
        width:100%;
        text-align:center;
    }

   

    .sw-title{
        font-size:34px;
    }
}







/*======================================
  Listing Form Fields
=====================================*/

.sw-inline-ai-btn{
    background:#0E66EA;
    color:#fff;
    border:none;
    border-radius:999px;
    padding:6px 12px;
    font-size:12px;
    cursor:pointer;
    font-weight:600;
}

.sw-inline-ai-btn:hover{
    opacity:.9;
}



.sw-ai-link{
    background:none;
    border:none;
    color:#0E66EA;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    padding:0;
}

.sw-ai-link:hover{
    text-decoration:underline;
}







/*=====================================
  PREVIEW PANEL MIRROR
======================================*/

.sw-create-layout {
    display: grid;
    grid-template-columns: minmax(0, calc(100% - 380px)) 340px;
    gap: 32px;
    align-items: start;
    overflow: visible !important;
}

.sw-create-main {
    min-width: 0;
    width: 100%;
    overflow: visible !important;
}

.sellewa-preview-panel {
    width: 340px;
    min-width: 340px;
    align-self: start;
    position: relative;
    overflow: visible !important;
}



.sw-preview-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0,0,0,0.08);
}

.sellewa-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sellewa-preview-actions .sw-secondary-btn,
.sellewa-preview-actions .sw-primary-btn {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
}

@media (max-width: 1100px) {
    .sw-create-layout {
        grid-template-columns: 1fr;
    }

    .sellewa-preview-panel {
        width: 100%;
        min-width: 0;
        position: static !important;
        margin-top: 24px;
    }
}



#preview-live-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

#preview-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: #1d2433;
}

#preview-price {
    margin: 0 20px 14px;
    color: #0E66EA;
    font-size: 24px;
    font-weight: 800;
}

#preview-desc {
    margin: 0 20px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}








/*=======================================
   ADD LISTING DETECTED DEVICE FIELDS
=======================================*/

/* PLACE in sellewa.css */

.sw-detected-device-wrap {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.sw-detected-device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border-bottom: 1px solid #edf2f7;
}

.sw-detected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f766e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.sw-device-toggle {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.sw-device-toggle:hover {
    background: #1d4ed8;
}

.sw-detected-device-body {
    padding: 18px;
}

.sw-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.sw-device-grid input[readonly] {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    color: #334155;
}





.sw-imei-note {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}





#seriesWrap {
    display: none;
}

#seriesWrap.show {
    display: block !important;
    margin-top: 12px;
}































/* =========================================================
   TRADE-IN MODAL
========================================================= */

.sw-trade-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.58);
    backdrop-filter:blur(8px);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:99999;
}

.sw-trade-modal.active{
    display:flex;
}

.sw-trade-modal-box{
    width:100%;
    max-width:520px;
    background:#fff;
    border-radius:28px;
    padding:34px;
    position:relative;
    box-shadow:0 30px 80px rgba(15,23,42,.28);
    animation:swTradePop .25s ease;
}

@keyframes swTradePop{
    from{
        transform:translateY(18px) scale(.96);
        opacity:0;
    }
    to{
        transform:translateY(0) scale(1);
        opacity:1;
    }
}

.sw-trade-close{
    position:absolute;
    top:16px;
    right:16px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#f1f5f9;
    color:#0f172a;
    font-size:24px;
    cursor:pointer;
    transition:.2s;
}

.sw-trade-close:hover{
    background:#e2e8f0;
    transform:rotate(90deg);
}

.sw-trade-modal-box h3{
    font-size:28px;
    font-weight:900;
    margin-bottom:12px;
}

.sw-trade-text{
    color:#64748b;
    margin-bottom:24px;
    line-height:1.6;
}

.sw-trade-field{
    margin-bottom:18px;
}

.sw-trade-field label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:700;
    color:#334155;
}

.sw-trade-field input{
    width:100%;
    height:58px;
    border:1px solid #dbe3ee;
    border-radius:16px;
    padding:0 18px;
    font-size:16px;
    background:#fff;
}

.sw-trade-field input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.sw-trade-calc-btn{
    width:100%;
    margin-top:8px;
}

.sw-trade-result{
    margin-top:22px;
}

.sw-trade-summary{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
}

.sw-trade-line{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    color:#334155;
}

.sw-trade-line.total{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #dbe3ee;
    font-size:18px;
    font-weight:800;
    color:#2563eb;
}

.sw-trade-error{
    padding:14px 16px;
    border-radius:14px;
    background:#fef2f2;
    color:#dc2626;
    font-weight:700;
}













/* =========================================================
   MARKETPLACE CARDS
========================================================= */

.sw-market-card{
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    overflow:hidden;
    text-decoration:none;
    color:#0f172a;
    transition:.22s ease;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    min-height:100%;
    height:100%;
}

.sw-market-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 45px rgba(15,23,42,.12);
    border-color:#cbd5e1;
}



.sw-market-card-image-wrap{
    width:100%;
    height:210px;
    overflow:hidden;
    border-radius:18px 18px 0 0;
    background:#f4f7fb;
    display:flex;
    align-items:center;
    justify-content:center;
    border-bottom:1px solid #eef2f7;
}

.sw-market-card-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .25s ease;
}

.sw-market-card:hover .sw-market-card-image{
    transform: scale(1.04);
}




.sw-market-card:hover .sw-market-card-image{
    transform:scale(1.04);
}

.sw-market-card-body{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:14px;
    min-height:150px;
}


.sw-market-card-bottom{
    margin-top:auto;
}




.sw-market-card-title-box{
    height:56px;
    margin-bottom:10px;
    overflow:hidden;
    display:flex;
    align-items:flex-start;
}

.sw-market-card-title {
  font-size: 15px;
  font-weight: 700;
}

.sw-bottom-discovery-title {
  font-size: 14px;
  font-weight: 700;
}


.sw-market-card-specs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.sw-market-card-specs span{
    display:inline-flex;
    align-items:center;
    padding:7px 10px;
    border-radius:999px;
    background:#f1f5f9;
    border:1px solid #e2e8f0;
    color:#475569;
    font-size:12px;
    font-weight:700;
}

.sw-market-card-bottom{
    margin-top:auto;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.sw-market-card-price{
    font-size:20px;
    font-weight:800;
    color:#2563eb;
    line-height:1;
}

.sw-market-card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    font-size:13px;
    font-weight:700;
    color:#64748b;
    padding-top:12px;
    border-top:1px solid #eef2f7;
}

.sw-market-card-meta span{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
}

.sw-market-card-meta span:first-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

#listingGrid,
#recentListings,
#trendingListings,
.sw-listing-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:18px;
    align-items:stretch;
}

@media (max-width:768px){

    #listingGrid,
    #recentListings,
    #trendingListings,
    .sw-listing-grid{
        grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
        gap:16px;
    }

    .sw-market-card-body{
        padding:14px;
    }

    .sw-market-card-title{
        font-size:16px;
    }

    .sw-market-card-price{
        font-size:22px;
    }

    .sw-market-card-meta{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }
}







.sw-market-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap:16px;
    align-items:start;
}



@media (max-width: 900px){
    .sw-market-grid{
        grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
        gap:14px;
    }

    .sw-market-card-image-wrap{
        height:180px;
    }
}

@media (max-width: 600px){
    .sw-market-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:12px;
    }

    .sw-market-card-image-wrap{
        height:150px;
    }

    .sw-market-card-body{
        padding:10px;
    }

    .sw-market-card-title{
        font-size:14px;
    }

    .sw-market-card-price{
        font-size:16px;
    }
}






.sw-market-card::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:24px;
    border:1px solid transparent;
    pointer-events:none;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.sw-market-card:hover::after{
    border-color:rgba(59,101,225,.18);
    box-shadow:0 0 0 4px rgba(59,101,225,.06);
}

.sw-market-card-price{
    color:#2f63e0;
    letter-spacing:-0.02em;
}

.sw-market-card-meta{
    font-weight:500;
}

.sw-market-card-location::before{
    content:"📍";
    font-size:12px;
}

.sw-market-card-views::before{
    content:"👁";
    font-size:12px;
}






/*==========================================
   LISTING IMAGE PREVIEW
==========================================*/

#listing_image_preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sw-image-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.sw-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.75);
    color: #fff;
    cursor: pointer;
}







.sw-category-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

 


#dynamicFields {
    display: none;
}

.sw-category-fields {
    display: none;
    width: 100%;
}

.sw-category-fields input,
.sw-category-fields select {
    width: 100%;
}












/* ============================================================================================================================
   SINGLE LISTING                ||              SINGLE LISTING                ||              SINGLE LISTING
============================================================================================================================== */

.sw-single-shell {
    width: 100%;
}

.sw-single-listing-card {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1280px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.sw-single-listing-gallery {
    position: sticky;
    top: 30px;
}

.sw-single-listing-image {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border-radius: 22px;
    background: #f3f4f6;
    padding: 18px;
}

.sw-single-listing-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sw-single-title-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
}

.sw-single-title-box h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    color: #0f172a;
}

.sw-single-price-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 20px;
    padding: 20px 24px;
    font-size: 38px;
    font-weight: 900;
}

.sw-single-description-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

@media (max-width: 900px) {
    .sw-single-listing-card {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 22px;
    }

    .sw-single-title-box h1 {
        font-size: 30px;
    }

    .sw-single-price-box {
        font-size: 28px;
    }

    .sw-single-listing-gallery {
        position: static;
    }
}







.sw-specifications-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.sw-specifications-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #101828;
}

.sw-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.sw-spec-item {
    padding: 20px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sw-spec-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
}

.sw-spec-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
}



.sw-auto-spec-note {
    margin: 16px 0 24px;
    padding: 14px 18px;
    background: #eef4ff;
    border: 1px solid #c7dafc;
    border-radius: 14px;
    color: #234;
    font-size: 14px;
    line-height: 1.6;
}






.sw-single-listing-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sw-single-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sw-single-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.sw-single-info-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 700;
}

.sw-single-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.sw-single-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sw-single-badge {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.sw-single-badge.escrow {
    background: #ecfeff;
    color: #0f766e;
}

.sw-single-badge.delivery {
    background: #eff6ff;
    color: #1d4ed8;
}

.sw-single-badge.verified {
    background: #f0fdf4;
    color: #15803d;
}





/*===================================
  SINGLE SELLER BUTTONS
=====================================*/
.sw-single-seller-card{
    background:#fff;
    border:1px solid #e7edf6;
    border-radius:26px;
    padding:22px;
    box-shadow:0 12px 35px rgba(15,23,42,.06);
    display:flex;
    flex-direction:column;
    gap:18px;
    position:sticky;
    top:110px;
}

.sw-single-seller-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}



.sw-single-seller-avatar{
    width:58px;
    height:58px;
    border-radius:50%;
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:#fff;
    font-size:26px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    box-shadow:0 10px 22px rgba(37,99,235,.28);
}

.sw-single-seller-main{
    min-width:0;
}

.sw-single-seller-name-link{
    display:block;
    font-size:32px;
    font-weight:800;
    color:#0f172a;
    line-height:1;
    text-decoration:none;
    margin-bottom:10px;
}

.sw-single-seller-status{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sw-single-seller-status span{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#64748b;
    font-weight:600;
}

.sw-single-seller-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:flex-end;
}

.sw-single-seller-mini-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:118px;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    color:#0f172a;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    transition:.2s ease;
}

.sw-single-seller-mini-btn:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
    transform:translateY(-2px);
}

.sw-call-seller-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    padding:18px 20px;
    border-radius:18px;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    text-decoration:none;
    font-size:18px;
    font-weight:800;
    letter-spacing:.3px;
    box-shadow:0 16px 35px rgba(15,23,42,.25);
    position:relative;
    overflow:hidden;
}

.sw-call-seller-btn::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent);
    transform:translateX(-100%);
    transition:.6s;
}

.sw-call-seller-btn:hover::before{
    transform:translateX(100%);
}

.sw-call-seller-btn:hover{
    transform:translateY(-2px);
}

.sw-call-seller-btn small{
    display:block;
    font-size:11px;
    font-weight:600;
    opacity:.75;
    margin-top:2px;
}

.sw-single-seller-location{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
}

.sw-single-seller-location-icon{
    width:38px;
    height:38px;
    border-radius:12px;
    background:#e0ecff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    flex-shrink:0;
}

.sw-single-seller-location strong{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#64748b;
    margin-bottom:2px;
}

.sw-single-seller-location span{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
}

.sw-single-seller-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.sw-single-seller-stat{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:16px 10px;
    text-align:center;
}

.sw-single-seller-stat strong{
    display:block;
    font-size:28px;
    font-weight:800;
    color:#0f172a;
    line-height:1;
}

.sw-single-seller-stat span{
    display:block;
    margin-top:8px;
    font-size:12px;
    color:#64748b;
    font-weight:600;
}

.sw-single-seller-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    padding:10px 14px;
    border-radius:999px;
    background:#fef3c7;
    color:#92400e;
    font-size:13px;
    font-weight:800;
}

.sw-view-seller-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    padding:16px;
    border-radius:18px;
    background:linear-gradient(135deg,#0f172a,#172554);
    color:#fff;
    text-decoration:none;
    font-size:16px;
    font-weight:800;
    transition:.2s ease;
}

.sw-view-seller-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(15,23,42,.22);
}






.sw-single-seller-left{
    display:flex;
    gap:14px;
    flex:1;
    min-width:0;
}

.sw-single-seller-main{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sw-reveal-phone-btn{
    width:100%;
    height:56px;
    border:none;
    border-radius:18px;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    font-size:18px;
    font-weight:800;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    box-shadow:0 14px 30px rgba(37,99,235,.28);
    transition:.22s ease;
    margin-top:6px;
}

.sw-reveal-phone-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 36px rgba(37,99,235,.34);
}

.sw-reveal-phone-btn.is-revealed{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
}





#swSaveListingBtn.saved{
    background:linear-gradient(135deg,#16a34a,#22c55e);
    border-color:#22c55e;
    color:#fff;
    box-shadow:0 10px 24px rgba(34,197,94,.25);
}





.sw-saved-section{
    margin:40px 0;
}

.sw-saved-section h2{
    font-size:32px;
    font-weight:800;
    margin-bottom:20px;
    color:#0f172a;
}















.sw-single-seller-extra div {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.sw-single-seller-extra strong {
    color: #0f172a;
    min-width: 62px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sw-single-title-box h1 {
    font-size: 42px;
    line-height: 1.05;
    margin: 0;
}

.sw-single-price-box {
    font-size: 28px;
    padding: 18px 22px;
}

.sw-single-info-label {
    font-size: 11px;
}

.sw-single-info-value {
    font-size: 16px;
}

@media (max-width: 768px) {
    .sw-single-title-box h1 {
        font-size: 32px;
    }

    .sw-single-price-box {
        font-size: 24px;
    }

    .sw-single-seller-card {
        padding: 14px;
    }
}




/*=======================================
  SINGLE SELLER AVATAR
=======================================*/
.sw-single-seller-avatar-link,
.sw-single-seller-name-link,
.sw-view-seller-btn,
.sw-seller-mini-actions a {
    text-decoration: none;
}

.sw-single-seller-avatar-link {
    display: inline-block;
}

.sw-single-seller-name-link {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    transition: color .2s ease;
}

.sw-single-seller-name-link:hover {
    color: #2563eb;
}

.sw-single-seller-avatar-link:hover .sw-single-seller-avatar {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(37,99,235,.22);
}

.sw-single-seller-avatar {
    transition: all .2s ease;
}

.sw-seller-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.sw-seller-mini-actions a.sw-seller-mini-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.sw-view-seller-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sw-view-seller-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37,99,235,.25);
}



.sw-seller-store-header {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sw-seller-store-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sw-seller-store-profile h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
}

.sw-seller-store-profile p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}








/*=======================================
     SELLER MINI ACTIONS
======================================*/
.sw-seller-mini-actions{
    display:flex;
    gap:8px;
    margin:10px 0 8px;
    flex-wrap:wrap;
}

.sw-seller-mini-btn{
    border:none;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    color:#374151;
    border-radius:999px;
    padding:7px 12px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.sw-seller-mini-btn:hover{
    background:#eef5ff;
    border-color:#2563eb;
    color:#2563eb;
    transform:translateY(-1px);
}

.sw-seller-mini-btn.danger:hover{
    background:#fff1f2;
    border-color:#ef4444;
    color:#dc2626;
}






/*===================================
  SELLER META BUTTONS
=====================================*/
.sw-single-seller-meta p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.sw-single-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sw-single-btn {
    flex: 1;
    min-width: 150px;
    border: none;
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}

.sw-single-btn.buy {
    background: #2563eb;
    color: #fff;
}

.sw-single-btn.offer {
    background: #fff;
    color: #0f172a;
    border: 1px solid #d1d5db;
}

.sw-single-btn:hover {
    transform: translateY(-2px);
}




/*===================================
  SELLER ACTIONS BUTTONS
=====================================*/
.sw-seller-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:18px;
}

.sw-seller-action-btn,
.sw-seller-store-btn,
.sw-view-profile-btn{
    width:100%;
    border:none;
    border-radius:18px;
    padding:15px 18px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:.22s;
}

.sw-seller-action-btn{
    background:#f8fafc;
    color:#111827;
    border:1px solid #e5e7eb;
}

.sw-seller-action-btn:hover{
    background:#eef5ff;
    border-color:#2563eb;
    color:#2563eb;
    transform:translateY(-2px);
}

.sw-seller-action-btn.danger:hover{
    background:#fff1f2;
    border-color:#ef4444;
    color:#dc2626;
}

.sw-seller-store-btn{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    box-shadow:0 10px 24px rgba(37,99,235,.22);
}

.sw-seller-store-btn:hover{
    transform:translateY(-2px) scale(1.01);
    box-shadow:0 14px 30px rgba(37,99,235,.28);
}

.sw-view-profile-btn{
    background:#0f172a;
    color:#fff;
}

.sw-view-profile-btn:hover{
    background:#1e293b;
    transform:translateY(-2px);
}







/*=============================================
  SINGLE MAKE OFFER
==============================================*/

.sw-offer-suggestions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:12px 0 18px;
}

.sw-offer-chip{
    border:none;
    border-radius:999px;
    padding:8px 14px;
    background:#eef4ff;
    color:#2563eb;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.sw-offer-chip:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-2px);
}

.sw-offer-chip.best{
    background:#ecfdf5;
    color:#059669;
}

.sw-offer-protection-note{
    margin-top:14px;
    padding:12px 14px;
    border-radius:12px;
    background:#f8fafc;
    border:1px solid #dbeafe;
    color:#334155;
    font-size:13px;
    line-height:1.5;
}





/*=============================================
  SINGLE SELLER BADGES & TAGS
==============================================*/
.sw-single-tags{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:16px 0 20px;
}

.sw-single-tag{
    border:none;
    border-radius:999px;
    padding:10px 14px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.sw-single-tag:hover{
    transform:translateY(-2px);
}

.sw-single-tag.escrow{
    background:#ecfdf5;
    color:#059669;
}

.sw-single-tag.delivery{
    background:#eff6ff;
    color:#2563eb;
}

.sw-single-tag.return{
    background:#fef3c7;
    color:#b45309;
}

.sw-badge-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:20px;
}

.sw-badge-modal.active{
    display:flex;
}

.sw-badge-modal-box{
    position:relative;
    width:100%;
    max-width:560px;
    background:#fff;
    border-radius:24px;
    padding:30px 28px;
    box-shadow:0 30px 60px rgba(15,23,42,.25);
}

.sw-badge-close{
    position:absolute;
    top:14px;
    right:14px;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    font-size:24px;
    cursor:pointer;
}

.sw-badge-title{
    font-size:24px;
    font-weight:800;
    color:#111827;
    margin-bottom:16px;
}

.sw-badge-content{
    font-size:15px;
    line-height:1.8;
    color:#4b5563;
}





/* =====================================================
   FULLSCREEN IMAGE VIEWER
===================================================== */

body.sw-viewer-open .sw-single-sidebar,
body.sw-viewer-open .sw-single-specs-card,
body.sw-viewer-open .sw-seller-card,
body.sw-viewer-open .sw-seller-trust,
body.sw-viewer-open .sw-related-section,
body.sw-viewer-open .sw-chat-seller,
body.sw-viewer-open .sw-chat-widget,
body.sw-viewer-open .sw-single-right,
body.sw-viewer-open .sw-single-bottom,
body.sw-viewer-open .sw-you-may-like,
body.sw-viewer-open .sw-related-products,
body.sw-viewer-open .sw-floating-chat,
body.sw-viewer-open .sw-trust-card {
    visibility: hidden !important;
}


body.sw-viewer-open header,
body.sw-viewer-open .site-header,
body.sw-viewer-open .main-header,
body.sw-viewer-open .navbar,
body.sw-viewer-open .sw-header,
body.sw-viewer-open .sw-topbar,
body.sw-viewer-open .sw-discovery-feed,
body.sw-viewer-open .sw-discovery-section,
body.sw-viewer-open .sw-home-discovery,
body.sw-viewer-open .sw-related-section,
body.sw-viewer-open .sw-related-products,
body.sw-viewer-open .sw-you-may-like,
body.sw-viewer-open .sw-single-bottom,
body.sw-viewer-open .sw-bottom-section,
body.sw-bottom-discovery,
body.sw-bottom-discovery-header,
body.sw-bottom-discovery-controls,
body.sw-bottom-discovery-list,
body.sw-bottom-discovery-item,
body.sw-bottom-discovery-image,
body.sw-bottom-discovery-title,
body.sw-viewer-open .sw-more-listings {
    visibility: hidden !important;
}



body.sw-viewer-open .sw-bottom-discovery,
body.sw-viewer-open .sw-bottom-discovery.active,
body.sw-viewer-open .sw-bottom-discovery.minimized,
body.sw-viewer-open .sw-bottom-discovery-header,
body.sw-viewer-open .sw-bottom-discovery-controls,
body.sw-viewer-open .sw-bottom-discovery-list-wrap,
body.sw-viewer-open .sw-bottom-discovery-list,
body.sw-viewer-open .sw-bottom-discovery-item,
body.sw-viewer-open .sw-bottom-discovery-dots,
body.sw-viewer-open .sw-bottom-arrow,
body.sw-viewer-open #swBottomDiscoveryClose,
body.sw-viewer-open #swBottomPrev,
body.sw-viewer-open #swBottomNext {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}



.sw-image-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.96);
    z-index: 999999;
    overflow: hidden;
    padding: 30px;
}

.sw-image-viewer.active {
    display: flex;
}


.sw-image-viewer * {
    position: relative;
    z-index: 2;
}

.sw-image-viewer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.96);
    z-index: 1;
}



.sw-image-main-wrap,
.sw-image-sidebar,
.sw-image-close,
.sw-image-nav {
    position: relative;
    z-index: 3;
}




.sw-image-sidebar{
    position:absolute;
    left:24px;
    top:50%;
    transform:translateY(-50%);
    width:90px;
    max-height:80vh;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:3;
}

.sw-image-thumb{
    width:84px;
    height:84px;
    border-radius:16px;
    object-fit:cover;
    cursor:pointer;
    border:2px solid rgba(255,255,255,.15);
    background:#111827;
    transition:.2s ease;
}

.sw-image-thumb:hover{
    border-color:#3b82f6;
}

.sw-image-main-wrap{
    width:calc(100vw - 220px);
    max-width:1200px;
    height:88vh;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.sw-image-viewer-main{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:24px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
    background:#111827;
}

.sw-image-close{
    position:absolute;
    top:24px;
    right:24px;
    width:54px;
    height:54px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:30px;
    cursor:pointer;
    z-index:4;
}

.sw-image-close:hover{
    background:rgba(59,130,246,.85);
}

/* fullscreen arrows */
.sw-image-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:34px;
    cursor:pointer;
    z-index:4;
}

.sw-image-nav.prev{
    left:130px;
}

.sw-image-nav.next{
    right:40px;
}

.sw-image-nav:hover{
    background:#2563eb;
}










/*=============================================
  SINGLE CALL SELLER BUTTON
==============================================*/
.sw-reveal-phone-btn{
    margin-top:8px;
    border:none;
    border-radius:10px;
    background:#f3f4f6;
    color:#111827;
    font-size:13px;
    font-weight:700;
    padding:8px 12px;
    cursor:pointer;
    transition:.2s ease;
}

.sw-reveal-phone-btn:hover{
    background:#2563eb;
    color:#fff;
}

.sw-single-seller-phone{
    margin-top:10px;
    font-size:13px;
    font-weight:700;
}

.sw-single-seller-phone a{
    color:#2563eb;
    text-decoration:none;
}







.sw-market-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    
}


.sw-market-card * {
    pointer-events: none;
}


.sw-market-card {
    width: 100%;
    display: block;
    pointer-events: auto;
    cursor: pointer;
}




/* FORCE GRID - FINAL OVERRIDE */
#listingGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
}

#listingGrid .sw-market-card {
    width: 100% !important;
    flex: unset !important;
}



.sw-market-card-image-wrap {
    
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.sw-market-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.sw-recent-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
}







/*==========================================
  SINGLE LISTING PAGE SPECIFICATIONS
============================================*/
.sw-single-specs-card,
.sw-single-description-card {
    margin-top: 22px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 22px;
    padding: 26px;
}

.sw-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px;
}

.sw-single-specs-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid #eceff5;
    border-left:1px solid #eceff5;
    margin-top:18px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
}

.sw-single-spec-item{
    padding:22px 20px;
    border-right:1px solid #eceff5;
    border-bottom:1px solid #eceff5;
    min-height:92px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.sw-single-spec-item:nth-child(2n){
    border-right:none;
}

.sw-single-spec-value{
    font-size:20px;
    font-weight:700;
    color:#111827;
    line-height:1.35;
    margin-bottom:8px;
    word-break:break-word;
}

.sw-single-spec-label{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#6b7280;
    font-weight:600;
}

@media (max-width: 768px){
    .sw-single-specs-grid{
        grid-template-columns:1fr;
    }

    .sw-single-spec-item{
        border-right:none;
        min-height:auto;
    }
}

.sw-single-description-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
}







/*========================================
 SINGLE-LISTING DESCRIPTION
========================================*/
.sw-single-description-content {
    color: #475569;
    font-size: 15px;
    line-height: 1.9;
}

.sw-single-description-content p {
    margin: 0 0 16px;
}

.sw-single-description-content strong {
    color: #0f172a;
    font-weight: 700;
}

.sw-single-description-content ul {
    margin: 12px 0 18px 18px;
    padding: 0;
}

.sw-single-description-content li {
    margin-bottom: 8px;
}

#preview-desc p {
    margin: 0 0 10px;
}

#preview-desc ul {
    margin: 10px 0 10px 18px;
    padding: 0;
}

#preview-desc li {
    margin-bottom: 6px;
}

#preview-desc strong {
    color: #111827;
}









/*==========================================
  SINGLE LISTING PAGE LAYOUT SECTIONS
============================================*/

.sw-single-layout,
.sw-single-wrapper,
.sw-single-page {
    max-width: 1600px !important;
    width: calc(100% - 40px) !important;
    margin: 0 auto !important;
}


.sw-single-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) minmax(420px, 0.9fr) !important;
    gap: 34px !important;
    align-items: start !important;
}


.sw-single-gallery {
    min-height: 760px;
}

.sw-main-image-wrap {
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#swMainImage {
    max-height: 700px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}



.sw-single-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 96px;
    flex-shrink: 0;
}

.sw-single-thumb {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sw-single-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sw-single-thumb.active {
    border-color: #2563eb;
    transform: translateX(4px);
}




.sw-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 420px);
    gap: 28px;
    align-items: start;
}

.sw-single-left,
.sw-single-right {
    min-width: 0;
}

.sw-single-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sw-single-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 20px;
}

.sw-single-listing-gallery {
    width: 100%;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
}

.sw-single-listing-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: #f8fafc;
}




.sw-single-left {
    overflow: hidden;
}

.sw-single-listing-gallery {
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-single-listing-image {
    width: 100%;
    max-width: 100%;
    max-height: 620px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sw-single-specs-card,
.sw-single-description-card {
    position: relative;
    z-index: 2;
}

.sw-single-listing-gallery {
    position: relative;
    z-index: 1;
}



/*=======================================================
  SINGLE TITLE, PRICE BOX, BADGES & INFO GRID
=========================================================*/
.sw-single-title-box,
.sw-single-price-box,
.sw-single-seller-card,
.sw-single-actions,
.sw-single-info-grid,
.sw-single-badges {
    width: 100%;
}

.sw-single-title-box {
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 22px;
    padding: 24px;
}

.sw-single-title-box h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    color: #0f172a;
}

.sw-single-price-box {
    background: #eef5ff;
    border: 1px solid #c9dafc;
    border-radius: 20px;
    padding: 20px 24px;
    font-size: 46px;
    font-weight: 900;
    color: #2563eb;
}

.sw-single-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sw-single-btn {
    width: 100%;
}

@media (max-width: 980px) {
    .sw-single-layout {
        grid-template-columns: 1fr;
    }

    .sw-single-right {
        position: static;
    }

    .sw-single-listing-image {
        max-height: 500px;
    }
}





/*=======================================================
  SINGLE SELLER / PROTECTION ACTION
=========================================================*/
.sw-single-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: visible;
}

.sw-single-sticky {
    position: sticky;
    top: 100px;
    overflow: visible;
    height: auto;
    max-height: none;
}

.sw-single-protection-card {
    display: block !important;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    margin-top: 0;
}

.sw-single-protection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-single-protection-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.5;
}











/*===========================================
   CHAT SELLER AND TRADE-IN BUTTON
============================================*/
.sw-seller-bottom-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.sw-chat-seller-btn,
.sw-tradein-btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sw-chat-seller-btn {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.sw-chat-seller-btn:hover {
    transform: translateY(-2px);
    background: #1e293b;
}

.sw-tradein-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.sw-tradein-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

@media (max-width: 640px) {
    .sw-seller-bottom-actions {
        flex-direction: column;
    }
}







/*=============================================
   TRADE-IN MODAL
============================================*/
.sw-trade-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.sw-trade-modal {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    gap: 14px;

    max-height: 90vh;
    overflow-y: auto;
}

.sw-trade-modal h2 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.sw-trade-subtitle {
    margin: -6px 0 8px;
    color: #64748b;
    font-size: 14px;
}

.sw-trade-modal input,
.sw-trade-modal select,
.sw-trade-modal textarea {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
}

.sw-trade-modal textarea {
    min-height: 110px;
    resize: vertical;
}

.sw-submit-trade {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
}

.sw-trade-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}







/*=======================================================
  SINGLE MODAL ESCROW, DELIVERY, RETURN BADGES
=========================================================*/

.sw-single-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:16px 0 4px;
}

.sw-single-tag{
    border:none;
    background:#eef5ff;
    color:#2563eb;
    padding:10px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    transition:all .2s ease;
}

.sw-single-tag:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-2px);
}

.sw-badge-modal{
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15,23,42,.55);
    display: none;
    align-items: center;
    justify-content: center;
}

.sw-badge-modal.active{
    display: flex;
}

.sw-badge-modal-box{
    position: relative;
    z-index: 99999;
}

.sw-single-left,
.sw-single-right,
.sw-single-specs-card,
.sw-single-description-card{
    position: relative;
    z-index: 1;
}

.sw-badge-close{
    position:absolute;
    top:14px;
    right:14px;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    font-size:22px;
    cursor:pointer;
}

.sw-badge-title{
    font-size:20px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:14px;
}

.sw-badge-content{
    font-size:12px;
    line-height:1.7;
    color:#374151;
    white-space:pre-line;
}




/*=======================================================
  SINGLE DELIVERY ICON/LOGO
=========================================================*/
.sw-single-tag-delivery{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
}

.sw-single-tag-delivery img{
    width:28px;
    height:28px;
    object-fit:contain;
    border-radius:6px;
}

.sw-single-tag-delivery span{
    font-weight:800;
}





/*=======================================================
  SINGLE TRUST BAR, PROTECTION
=========================================================*/

.sw-single-trust-card,
.sw-single-protection-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    margin-top:18px;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
    border:1px solid #edf1f7;
}

.sw-single-trust-header{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:18px;
}

.sw-single-trust-score{
    width:68px;
    height:68px;
    border-radius:50%;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:800;
    box-shadow:0 10px 24px rgba(37,99,235,.28);
}

.sw-single-trust-title{
    font-size:16px;
    font-weight:800;
    color:#111827;
}

.sw-single-trust-sub{
    font-size:13px;
    color:#6b7280;
    margin-top:4px;
}

.sw-trust-line{
    margin-bottom:14px;
}

.sw-trust-line span{
    display:block;
    margin-bottom:6px;
    font-size:13px;
    font-weight:700;
    color:#374151;
}

.sw-trust-progress{
    width:100%;
    height:10px;
    border-radius:999px;
    background:#edf2f7;
    overflow:hidden;
}

.sw-trust-progress-fill{
    height:100%;
    border-radius:999px;
    background:#f59e0b;
}

.sw-trust-progress-fill.blue{
    background:#2563eb;
}

.sw-trust-progress-fill.green{
    background:#10b981;
}

.sw-single-protection-title{
    font-size:17px;
    font-weight:800;
    color:#111827;
    margin-bottom:14px;
}

.sw-single-protection-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.sw-single-protection-item{
    position:relative;
    padding-left:28px;
    font-size:14px;
    line-height:1.55;
    color:#374151;
}

.sw-single-protection-item::before{
    content:"✓";
    position:absolute;
    left:0;
    top:0;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#ecfdf5;
    color:#10b981;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:800;
}

.sw-floating-chat-btn{
    position:fixed;
    right:24px;
    bottom:90px;
    z-index:9999;
    display:flex;
    align-items:center;
    gap:8px;
    padding:14px 20px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 16px 35px rgba(37,99,235,.35);
    transition:all .2s ease;
}

.sw-floating-chat-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 40px rgba(37,99,235,.45);
}

@media (max-width:768px){
    .sw-floating-chat-btn{
        right:16px;
        bottom:80px;
        padding:12px 16px;
        font-size:14px;
    }
}







/*==============================================
  SINGLE SELLER LIVE ACCOUNT
===============================================*/
.sw-seller-mini-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:18px;
}

.sw-seller-mini-stat{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:10px;
    text-align:center;
}

.sw-seller-mini-stat strong{
    display:block;
    font-size:18px;
    color:#111827;
    font-weight:800;
}

.sw-seller-mini-stat span{
    font-size:12px;
    color:#6b7280;
}

.sw-seller-badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
}

.sw-seller-badge{
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.sw-seller-badge.verified{
    background:#ecfdf5;
    color:#059669;
}

.sw-seller-badge.business{
    background:#eef5ff;
    color:#2563eb;
}

.sw-seller-badge.trusted{
    background:#fef3c7;
    color:#b45309;
}

.sw-view-seller-btn{
    display:block;
    margin-top:18px;
    text-align:center;
    padding:14px;
    border-radius:16px;
    background:#111827;
    color:#fff;
    font-weight:800;
    text-decoration:none;
    transition:.2s;
}

.sw-view-seller-btn:hover{
    transform:translateY(-2px);
    background:#2563eb;
}





/*==============================================
  SINGLE LISTING BOTTOM DISCOVERY
===============================================*/




.sw-bottom-discovery-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
    font-size:16px;
    font-weight:800;
    color:#111827;
}

.sw-bottom-discovery-header button{
    border:none;
    background:#f3f4f6;
    width:34px;
    height:34px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
}



.sw-bottom-discovery-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:18px;
}

.sw-bottom-discovery-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.sw-bottom-arrow,
#swBottomDiscoveryClose{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#f1f5f9;
    color:#0f172a;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:700;
    transition:.2s;
}

.sw-bottom-arrow:hover,
#swBottomDiscoveryClose:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-2px);
}



.sw-bottom-discovery-list{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding-bottom:4px;
}

.sw-bottom-discovery-item{
    min-width:260px;
    max-width:260px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px;
    border-radius:18px;
    text-decoration:none;
    background:#f8fafc;
    border:1px solid #edf1f7;
    transition:.2s;
    flex-shrink:0;
}

.sw-bottom-discovery-item:hover{
    background:#eef5ff;
    transform:translateY(-2px);
}

.sw-bottom-discovery-image{
    width:72px;
    height:72px;
    min-width:72px;
    border-radius:14px;
    object-fit:cover;
    background:#fff;
    border:1px solid #e5e7eb;
}

.sw-bottom-discovery-meta{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.sw-bottom-discovery-title{
    font-size:14px;
    font-weight:700;
    color:#111827;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.sw-bottom-discovery-price{
    margin-top:8px;
    font-size:16px;
    font-weight:800;
    color:#2563eb;
}



.sw-bottom-discovery.active{
    bottom:24px;
}



/*=======================================
 BOTTOM DISCOVERY AUTOSCROLL PAUSE
=======================================*/

.sw-bottom-discovery{
    position:fixed;
    left:40px;
    right:40px;
    bottom:-260px;
    z-index:9999;
    background:#fff;
    border-radius:28px;
    padding:22px;
    transition: all 0.35s ease;
    box-shadow:0 24px 60px rgba(15,23,42,.18);
    border:1px solid #e8edf5;

    opacity:0;
    transform:translateY(30px);
    animation:swDiscoveryRise .35s ease forwards;
}

@keyframes swDiscoveryRise{
    to{
        opacity:1;
        transform:translateY(0);
    }
}



.sw-bottom-discovery.active {
    bottom: 20px;
    opacity: 1;
}





/*=======================================
 BOTTOM DISCOVERY MINIMIZED
=======================================*/
.sw-bottom-discovery.minimized {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    overflow: hidden !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
}

.sw-bottom-discovery.minimized .sw-bottom-discovery-header {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.sw-bottom-discovery.minimized .sw-bottom-discovery-list-wrap,
.sw-bottom-discovery.minimized .sw-bottom-discovery-dots {
    display: none !important;
}



.sw-bottom-discovery.minimized #swBottomPrev,
.sw-bottom-discovery.minimized #swBottomNext {
    display: none !important;
}




.sw-bottom-discovery.minimized:hover {
    height: 78px !important;
    transition: height 0.25s ease;
}

.sw-bottom-discovery.minimized:hover::after {
    content: "Click + to Expand Similar Listings >>>";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 600;
    color: #f26b4a;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}


.sw-bottom-discovery.minimized .sw-bottom-discovery-header span {
    opacity: 0.45;
}



.sw-bottom-discovery.minimized #swBottomDiscoveryClose {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 rgba(37,99,235,0.5);
    animation: swPulsePlus 1.8s infinite;
}

@keyframes swPulsePlus {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,99,235,0.45);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(37,99,235,0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,99,235,0);
    }
}




.sw-bottom-discovery.minimized {
    animation: swMiniReveal 0.35s ease;
}

@keyframes swMiniReveal {
    from {
        transform: translateY(18px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.sw-bottom-discovery.minimized {
    animation: swMiniReveal 0.35s ease;
}

@keyframes swMiniReveal {
    from {
        transform: translateY(18px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/*======================================
 BOTTOM DISCOVERY MINIMIZED DRAGGABLE
========================================*/
.sw-bottom-discovery.minimized {
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}




.sw-bottom-discovery {
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow:
        0 14px 40px rgba(16,24,40,0.12),
        0 4px 18px rgba(16,24,40,0.08);
}


.sw-bottom-discovery.minimized {
    background: rgba(255,255,255,0.94) !important;
    backdrop-filter: blur(14px);
}






/*==============================================
  SINGLE LISTING BOTTOM DISCOVERY CONTROLS
===============================================*/

.sw-bottom-discovery-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.sw-bottom-arrow{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#eef5ff;
    color:#2563eb;
    font-size:22px;
    font-weight:800;
    cursor:pointer;
    transition:.2s;
}

.sw-bottom-arrow:hover{
    background:#2563eb;
    color:#fff;
    transform:scale(1.08);
}

.sw-bottom-discovery-list-wrap{
    overflow:hidden;
}

.sw-bottom-discovery-list{
    display:flex;
    gap:14px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding:4px 10px 6px;
    scroll-padding-left:10px;
}

.sw-bottom-discovery-list::-webkit-scrollbar{
    display:none;
}



.sw-bottom-discovery-item{
    min-width:240px;
    max-width:240px;
    flex-shrink:0;
}




/*==============================================
  SINGLE LISTING BOTTOM DISCOVERY DOT(S)
===============================================*/
.sw-bottom-discovery-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:0 0 16px;
}

.sw-bottom-discovery-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:#dbe3ef;
    transition:.25s;
}

.sw-bottom-discovery-dot.active{
    width:24px;
    background:#2563eb;
}
















/*==================================================================================
  SINGLE LISTING MAIN IMAGE, THUMBNAILS GALLERY, TITLE, PRICE, SPECS 7 SELLER INFOR
===================================================================================*/

/* =====================================================
   SINGLE LISTING GALLERY
===================================================== */

.sw-single-gallery-wrap{
    display:flex;
    gap:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:28px;
    padding:18px;
    box-shadow:0 8px 30px rgba(15,23,42,.06);

    /* lock the whole gallery card */
    height:560px;
    align-items:stretch;
    overflow:hidden;
}

.sw-single-thumbs{
    width:88px;
    min-width:88px;
    display:flex;
    flex-direction:column;
    gap:12px;
    overflow-y:auto;
    padding-right:2px;
}



.sw-single-thumbs{
    width:88px;
    min-width:88px;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
}

.sw-single-thumbs-inner{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    justify-content:center;
    max-height:100%;
    overflow:hidden;
    padding:48px 0;
}

.sw-single-thumb{
    width:88px;
    min-width:88px;
    max-width:88px;
    height:88px;
    min-height:88px;
    max-height:88px;
    flex:0 0 88px;
    border-radius:18px;
    overflow:hidden;
}



.sw-single-thumbs-inner::-webkit-scrollbar{
    display:none;
}




.sw-single-thumb.active{
    border-color:#2563eb;
    box-shadow:0 10px 24px rgba(37,99,235,.18);
}

.sw-single-thumb img,
.sw-single-thumb-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.sw-single-main-image-wrap{
    flex:1;
    position:relative;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:22px;

    /* fixed frame regardless of image size */
    height:100%;
    min-height:0;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.sw-single-main-image{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
    cursor:zoom-in;
    border-radius:16px;
}





.sw-thumb-scroll{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:rgba(17,24,39,.7);
    color:#fff;
    cursor:pointer;
    z-index:5;
    opacity:0;
    transition:.2s ease;
}

.sw-thumb-scroll.up{
    top:8px;
}

.sw-thumb-scroll.down{
    bottom:8px;
}

.sw-single-thumbs:hover .sw-thumb-scroll{
    opacity:1;
}











/* =====================================================
   IMAGE SIDE ARROWS
===================================================== */

.sw-gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:rgba(17,24,39,.65);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s ease;
    backdrop-filter:blur(6px);
}

.sw-gallery-arrow:hover{
    background:#2563eb;
    transform:translateY(-50%) scale(1.06);
}

.sw-gallery-arrow.prev{
    left:18px;
}

.sw-gallery-arrow.next{
    right:18px;
}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px){

    .sw-single-gallery-wrap{
        flex-direction:column;
        height:auto;
    }

    .sw-single-thumbs{
        width:100%;
        min-width:100%;
        flex-direction:row;
        overflow-x:auto;
        overflow-y:hidden;
    }

    .sw-single-main-image-wrap{
        height:360px;
    }

    .sw-image-sidebar{
        display:none;
    }

    .sw-image-main-wrap{
        width:92vw;
        height:70vh;
    }

    .sw-image-nav.prev{
        left:12px;
    }

    .sw-image-nav.next{
        right:12px;
    }
}






.sw-single-thumb:hover{
    transform:translateY(-2px);
    border-color:#2563eb;
}



.sw-single-main-image-wrap{
    flex:1;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:18px;
    overflow:hidden;
}


.sw-single-title-box h1{
    font-size:18px;
    line-height:1.25;
    font-weight:700;
}

.sw-single-price-box{
    font-size:18px;
    font-weight:800;
}

.sw-single-spec-value{
    font-size:16px;
    font-weight:600;
    color:#111827;
}

.sw-single-spec-label{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#6b7280;
    margin-top:4px;
}

.sw-single-seller-name{
    font-size:16px;
    font-weight:700;
}

.sw-single-seller-meta,
.sw-single-phone,
.sw-single-location{
    font-size:12px;
    color:#6b7280;
}



/*=======================================================
  SINGLE LISTING RELATED LISTINGS
=========================================================*/

.sw-single-sticky{
    position:sticky;
    top:110px;
    align-self:flex-start;
}

.sw-related-card{
    margin-top:28px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:28px;
    padding:26px;
}

.sw-related-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-top:18px;
}

.sw-related-item{
    display:block;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    transition:.2s ease;
}

.sw-related-item:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.sw-related-image-wrap{
    width:100%;
    aspect-ratio:1/1;
    background:#fff;
    overflow:hidden;
}

.sw-related-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.sw-related-title{
    font-size:13px;
    font-weight:600;
    color:#111827;
    line-height:1.35;
    padding:12px 12px 4px;
    min-height:48px;
}

.sw-related-price{
    font-size:16px;
    font-weight:800;
    color:#2563eb;
    padding:0 12px 14px;
}

@media (max-width: 991px){

    .sw-single-layout{
        grid-template-columns:1fr;
    }

    .sw-single-sticky{
        position:static;
        top:auto;
    }

    .sw-related-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width: 640px){

    .sw-single-gallery-wrap{
        flex-direction:column;
    }

    .sw-single-thumbs{
        width:100%;
        flex-direction:row;
        overflow:auto;
    }

    .sw-related-grid{
        grid-template-columns:1fr;
    }
}



/*=======================================================
  SINGLE LISTING 360/3D  AND MANUAL VIEW/DOWNLOAD
=========================================================*/

.sw-single-360-card,
.sw-single-manual-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:28px;
    padding:26px;
    margin-top:28px;
}

.sw-single-360-placeholder{
    border:2px dashed #d1d5db;
    border-radius:22px;
    min-height:180px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:30px;
    background:#fafafa;
}

.sw-single-360-icon{
    font-size:44px;
    color:#3b82f6;
    margin-bottom:14px;
}

.sw-single-360-text{
    font-size:13px;
    line-height:1.7;
    color:#6b7280;
    max-width:520px;
}

.sw-single-360-frame-wrap{
    width:100%;
    border-radius:18px;
    overflow:hidden;
    border:1px solid #e5e7eb;
}

.sw-single-360-frame{
    width:100%;
    height:420px;
    border:0;
    display:block;
}

.sw-single-manual-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:8px;
}

.sw-single-manual-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:180px;
    padding:14px 22px;
    border-radius:16px;
    background:#2563eb;
    color:#fff;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:.2s ease;
}

.sw-single-manual-btn:hover{
    transform:translateY(-2px);
}

.sw-single-manual-btn.secondary{
    background:#eef2ff;
    color:#2563eb;
}

.sw-single-manual-empty{
    font-size:14px;
    color:#6b7280;
    padding:8px 0;
}

@media (max-width: 640px){
    .sw-single-manual-actions{
        flex-direction:column;
    }

    .sw-single-manual-btn{
        width:100%;
    }

    .sw-single-360-frame{
        height:260px;
    }
}




/*=======================================================
  BUY NOW BUTTON AND OFFER BUTTON 
=========================================================*/

.sw-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:20px;
    animation:swFade .18s ease;
}

.sw-modal-box{
    width:100%;
    max-width:480px;
    background:#fff;
    border-radius:26px;
    padding:28px;
    position:relative;
    box-shadow:0 30px 60px rgba(0,0,0,.18);
}

.sw-modal-close{
    position:absolute;
    top:14px;
    right:16px;
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    font-size:22px;
    cursor:pointer;
}

.sw-modal-title{
    font-size:28px;
    font-weight:800;
    margin-bottom:22px;
    color:#0f172a;
}

.sw-modal-product{
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:22px;
    padding:14px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#f8fafc;
}

.sw-modal-product img{
    width:74px;
    height:74px;
    object-fit:cover;
    border-radius:14px;
}

.sw-modal-product-title{
    font-size:15px;
    font-weight:700;
    color:#111827;
    margin-bottom:4px;
}

.sw-modal-product-price{
    font-size:18px;
    font-weight:800;
    color:#2563eb;
}

.sw-modal-field{
    margin-bottom:18px;
}

.sw-modal-field label{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#374151;
    margin-bottom:8px;
}

.sw-modal-field input,
.sw-modal-field textarea{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:14px;
    font-size:14px;
    outline:none;
}

.sw-modal-field input:focus,
.sw-modal-field textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.08);
}

.sw-modal-note{
    font-size:13px;
    line-height:1.6;
    color:#065f46;
    background:#ecfdf5;
    border-radius:14px;
    padding:14px;
    margin-bottom:18px;
}

.sw-modal-submit{
    width:100%;
    border:none;
    border-radius:16px;
    background:#2563eb;
    color:#fff;
    padding:16px;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
}

@keyframes swFade{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}




/*=======================================================
  3D VIEWER    ||     3D VIEWER       ||     3D VIEWER
=========================================================*/

.sw-3d-viewer-wrap{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:22px;
    overflow:hidden;
}

.sw-3d-viewer-header{
    padding:14px 18px;
    font-size:16px;
    font-weight:700;
    color:#111827;
    border-bottom:1px solid #e5e7eb;
    background:#fff;
}

.sw-3d-viewer-frame{
    width:100%;
    height:500px;
    border:0;
    display:block;
    background:#f3f4f6;
}

.sw-3d-viewer-footer{
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding:14px 18px;
    font-size:12px;
    color:#6b7280;
    background:#fff;
    border-top:1px solid #e5e7eb;
}

.sw-3d-placeholder-wrap{
    border:2px dashed #d1d5db;
    border-radius:22px;
    padding:42px 24px;
    text-align:center;
    background:#fafafa;
}

.sw-3d-placeholder-icon{
    font-size:52px;
    margin-bottom:12px;
}

.sw-3d-placeholder-title{
    font-size:22px;
    font-weight:700;
    color:#111827;
    margin-bottom:10px;
}

.sw-3d-placeholder-text{
    max-width:520px;
    margin:0 auto 24px;
    font-size:14px;
    line-height:1.7;
    color:#6b7280;
}

.sw-3d-demo-btn{
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:16px;
    padding:14px 22px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.sw-3d-demo-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(37,99,235,.22);
}

@media (max-width:768px){
    .sw-3d-viewer-frame{
        height:320px;
    }

    .sw-3d-viewer-footer{
        flex-direction:column;
        gap:6px;
    }
}




/*=======================================================
  360 SPIN VIEWER   ||    360 SPIN VIEWER
=========================================================*/
.sw-spin-viewer {
    width: 100%;
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f6fa;
    border: 1px solid #e3e8f0;
}

.sw-spin-viewer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-3d-note {
    margin-top: 12px;
    text-align: center;
    color: #7d8797;
    font-size: 13px;
}

.sw-empty-3d {
    height: 260px;
    border: 2px dashed #d5dbe5;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #7d8797;
    background: #fafbfd;
}

.sw-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}






.modern-listing-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.sellewa-main-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sw-card {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(20,40,90,.05);
}



.sw-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #22304d;
}

.sw-card input,
.sw-card select,
.sw-card textarea {
    width: 100%;
    border: 1px solid #d9e1ee;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fbfcff;
}

.sw-card textarea {
    resize: vertical;
    min-height: 140px;
}

.sw-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.sw-ai-actions button {
    border: none;
    background: #eef4ff;
    color: #2754d7;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sw-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sw-upload-box {
    border: 2px dashed #d8dfec;
    border-radius: 18px;
    padding: 18px;
    background: #fafcff;
}

.sellewa-preview-panel {
    position: relative;
}

.sw-preview-sticky {
    position: sticky !important;
    top: 90px !important;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-bottom: 20px;
    align-self: start;
}



.preview-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e5eaf2;
    box-shadow: 0 8px 30px rgba(20,40,90,.05);
}

.preview-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f5f7fb;
}

.preview-card-body {
    padding: 20px;
}

#preview-title {
    font-size: 22px;
    margin: 0 0 10px;
}

#preview-price {
    font-size: 28px;
    color: #2754d7;
    font-weight: 800;
    margin-bottom: 10px;
}

.sw-publish-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-primary-btn,
.sw-secondary-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.sw-primary-btn {
    background: #2f66e5;
    color: white;
}

.sw-secondary-btn {
    background: #eef2f8;
    color: #24324f;
}


.sw-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

#sw-3d-preview-box {
    margin-top: 18px;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f7fc;
    border: 1px solid #dde5f0;
}

@media (max-width: 980px) {
    .modern-listing-form {
        grid-template-columns: 1fr;
    }

   


    .sw-preview-sticky {
    position: sticky;
    top: 110px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}








.sw-identity-box {
    background: #f5f9ff;
    border: 1px solid #d6e5ff;
    border-radius: 16px;
    padding: 18px;
}

.sw-identity-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1b4db8;
}

.sw-identity-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.sw-identity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}


.sw-identity-btn.sell {
    background: #0d6efd;
    color: #fff;
}

.sw-identity-btn.buy {
    background: #eef2ff;
    color: #1e3a8a;
}

.sw-barcode-row {
    display: flex;
    gap: 10px;
}

#startBarcodeScan {
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

#barcode-reader {
    width: 100%;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}




.sw-barcode-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

#startBarcodeScan {
    min-width: 90px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #1f4fd7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 0 14px;
    white-space: nowrap;
}

#startBarcodeScan:hover {
    background: #173ea8;
}



#barcodeScannerWrap {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
}

#barcode-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}



.sw-barcode-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

#cancelBarcodeScan {
    border: none;
    background: #ef4444;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

#cancelBarcodeScan:hover {
    background: #dc2626;
}





.sw-smart-actions button {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #d7dce5;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.sw-smart-actions button:hover {
    background: #f3f7ff;
    border-color: #2d6cff;
}

.sw-identity-warning {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #ffd36a;
    color: #7a5b00;
}















































































































/* =========================================================
   FORCE PROPER MARKETPLACE GRID ALIGNMENT
========================================================= */
.sw-market-card{
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.sw-market-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(20, 35, 90, 0.10);
}

.sw-market-card img{
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

.sw-market-card-title{
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.sw-market-card-price{
    font-size: 18px;
    font-weight: 800;
    margin: 10px 0 8px;
}

.sw-market-card-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    padding-top: 10px;
    border-top: 1px solid #eef1f5;
}

.sw-market-card-location,
.sw-market-card-views{
    display: flex;
    align-items: center;
    gap: 6px;
}





.sw-market-card{
    cursor: pointer;
}






.sw-market-card-link,
.sw-market-card-link:link,
.sw-market-card-link:visited,
.sw-market-card-link:hover,
.sw-market-card-link:active{
    text-decoration:none !important;
    color:inherit !important;
}

.sw-market-card-link *{
    text-decoration:none !important;
}

.sw-market-card-title,
.sw-market-card-title a{
    text-decoration:none !important;
    color:#0f172a !important;
}

.sw-market-card-price,
.sw-market-card-location,
.sw-market-card-views{
    text-decoration:none !important;
}






/* ========================================
   MARKET CARD PRICE
======================================== */

.sw-market-card-price-row{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    width:100% !important;
}

.sw-market-card-price{
    flex:1 1 auto !important;
    min-width:0 !important;
    width:auto !important;
    margin:0 !important;
    white-space:nowrap !important;
    font-size:18px !important;
    font-weight:800 !important;
    color:#2563eb !important;
}

.sw-card-buy-box{
    flex:0 0 92px !important;
    width:92px !important;
    min-width:92px !important;
    height:42px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    padding:4px 6px !important;
    border:none !important;
    border-radius:10px !important;
    background:#2563eb !important;
    color:#fff !important;
    cursor:pointer !important;
    line-height:1.05 !important;
}

.sw-card-buy-label{
    display:block !important;
    font-size:12px !important;
    font-weight:800 !important;
    letter-spacing:.02em !important;
    line-height:1 !important;
}

.sw-card-buy-sub{
    display:block !important;
    margin-top:2px !important;
    font-size:9px !important;
    font-weight:600 !important;
    opacity:.9 !important;
    line-height:1 !important;
}






.sw-market-card-bottom{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
}

.sw-market-card-bottom .sw-market-card-price-row{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    width:100% !important;
    gap:8px !important;
}

.sw-market-card-bottom .sw-market-card-price{
    flex:1 1 auto !important;
    width:auto !important;
    margin:0 !important;
    white-space:nowrap !important;
}

.sw-market-card-bottom .sw-card-buy-box{
    flex:0 0 92px !important;
    width:92px !important;
    min-width:92px !important;
    margin:0 !important;
}


.sw-market-card-price-row .sw-market-card-price{
    display:inline-block !important;
    flex:1 1 auto !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    white-space:nowrap !important;
}

.sw-market-card-price-row .sw-card-buy-box{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    flex:0 0 92px !important;
    width:92px !important;
    min-width:92px !important;
    margin-left:auto !important;
}



.sw-card-buy-box small{
    display:block !important;
    margin-top:3px !important;
    font-size:9px !important;
    color:#64748b !important;
    font-weight:600 !important;
}







/*======================================
  RECENT & TRENDING LISTING HOMEPAGE
======================================*/
.sw-market-card-price-row {
    margin-top: 10px;
}

.sw-market-card-price {
    font-size: 26px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 10px;
}

.sw-market-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sw-market-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.sw-market-card-condition {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}





.sw-market-card {
    cursor: pointer;
}



.sw-market-card {
    position: relative;
    cursor: pointer;
    z-index: 2;
}



.sw-market-card,
.sw-market-card-image-wrap,
.sw-market-card-image,
.sw-market-card-body,
.sw-market-card-title-box,
.sw-market-card-title,
.sw-market-card-specs,
.sw-market-card-price-row,
.sw-market-card-badges {
    cursor: pointer;
}

.sw-market-card {
    pointer-events: auto;
}

.sw-market-card > * {
    pointer-events: none;
}


.sw-market-card-badge {
    pointer-events: none;
}



#trendingListings {
    position: relative;
    z-index: 5;
}

















/* =========================
   BUYER DASHBOARD SYSTEM
========================= */


























.sw-recent-wrapper{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
    min-height:380px;
}

#recentListings{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

#recentListings::-webkit-scrollbar{
    display:none;
}

.sw-recent-arrow{
    position:absolute !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:46px !important;
    height:46px !important;
    border:none !important;
    border-radius:50% !important;
    background:#fff !important;
    box-shadow:0 8px 24px rgba(15,23,42,.18) !important;
    cursor:pointer !important;
    z-index:50 !important;
    padding:0 !important;
}

.sw-recent-left{
    left:-22px !important;
}

.sw-recent-right{
    right:-22px !important;
}

.sw-recent-left::before,
.sw-recent-right::before{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    font-size:30px;
    font-weight:900;
    color:#2563eb;
    line-height:1;
}

.sw-recent-left::before{
    content:"‹";
}

.sw-recent-right::before{
    content:"›";
}

.sw-recent-arrow:hover{
    background:#2563eb !important;
}

.sw-recent-arrow:hover::before{
    color:#fff;
}







/* FINAL FIX: preview panel should stay glued while scrolling */



.elementor-widget-container,
.elementor-column,
.elementor-section{
    overflow: visible !important;
}








#recentListings.sw-recent-scroll{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:18px !important;
    padding-bottom:12px !important;
}

#recentListings.sw-recent-scroll .sw-recent-card{
    width:220px !important;
    min-width:220px !important;
    max-width:220px !important;
    flex:0 0 220px !important;
}

#recentListings.sw-recent-scroll .sw-recent-card.sw-market-card{
    width:220px !important;
    min-width:220px !important;
    max-width:220px !important;
    flex:0 0 220px !important;
}

.sw-market-grid .sw-market-card{
    width:100% !important;
}







.sw-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.sw-orders-grid {
    display: grid;
    gap: 15px;
}

.sw-order-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.sw-order-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sw-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
}

.sw-badge.green { background: #16a34a; }
.sw-badge.orange { background: #f59e0b; }
.sw-badge.red { background: #dc2626; }
.sw-badge.blue { background: #3b82f6; }

.sw-order-actions button {
    margin-right: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #111;
    color: #fff;
}








/* =========================
   ELEMENTOR SAFE MODE
   ========================= */

.elementor-editor-active .sw-market-card,
.elementor-editor-active .sw-market-card-link,
.elementor-editor-active .listing-card,
.elementor-editor-active .listing-grid a,
.elementor-editor-active #listingGrid a,
.elementor-editor-active #recentListings a,
.elementor-editor-active .trending-listings a,
.elementor-editor-active .recent-listings a {
    pointer-events: none !important;
    cursor: default !important;
}

/* Stop cards from floating above Elementor editor */
.elementor-editor-active .sw-market-card,
.elementor-editor-active .listing-card {
    position: static !important;
    z-index: 1 !important;
    transform: none !important;
}

/* Prevent fullscreen overlays from blocking Elementor */
.elementor-editor-active .sw-tradein-modal,
.elementor-editor-active .sw-chat-box,
.elementor-editor-active .sw-chat-toggle,
.elementor-editor-active .sw-overlay,
.elementor-editor-active .modal,
.elementor-editor-active .listing-modal,
.elementor-editor-active .sw-lightbox {
    display: none !important;
}

/* Allow Elementor section handles to stay on top */
.elementor-editor-active .elementor-top-section,
.elementor-editor-active .elementor-widget,
.elementor-editor-active .elementor-column {
    position: relative !important;
    z-index: 9999 !important;
}




/* FORCE BUYER DASHBOARD STYLES (OVERRIDE EVERYTHING) */
body.page-buyer-dashboard .sw-buyer-card,
body.page-buyer-dashboard .sw-buyer-order-card {
    all: unset;
    display: block;
}

/* Re-apply styles after reset */
body.page-buyer-dashboard .sw-buyer-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(15,23,42,.08);
    border: 1px solid #e2e8f0;
}

body.page-buyer-dashboard .sw-buyer-orders-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

body.page-buyer-dashboard .sw-buyer-order-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    transition: .25s ease;
}

body.page-buyer-dashboard .sw-buyer-order-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15,23,42,.12);
}






 




/* =========================================
   LIVE DELIVERY TRACKER
========================================= */

.sw-tracking-wrapper{
    max-width:1400px;
    margin:0 auto;
    padding:30px;
}

.sw-tracking-hero{
    background:linear-gradient(135deg,#07142f,#102a62);
    border-radius:24px;
    padding:35px;
    color:#fff;
    margin-bottom:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.sw-tracking-hero h1{
    font-size:42px;
    margin:0 0 10px;
    color:#fff;
}

.sw-tracking-status{
    background:#eaf3ff;
    color:#2563eb;
    padding:14px 24px;
    border-radius:999px;
    font-weight:700;
    font-size:15px;
}

.sw-delivery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin:30px 0;
}

.sw-delivery-card{
    background:#fff;
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.sw-delivery-card h4{
    font-size:14px;
    color:#64748b;
    margin-bottom:12px;
}

.sw-delivery-card strong{
    font-size:32px;
    color:#07142f;
}

.sw-live-map{
    background:#fff;
    border-radius:28px;
    padding:30px;
    margin-top:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.sw-live-map h2{
    text-align:center;
    margin-bottom:30px;
    font-size:42px;
}

.sw-map-stage{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:30px;
    position:relative;
}

.sw-map-line{
    position:absolute;
    top:22px;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(90deg,#2563eb,#67e8f9);
    z-index:1;
    border-radius:999px;
}

.sw-map-dot{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#fff;
    border:6px solid #2563eb;
    position:relative;
    z-index:2;
    box-shadow:0 0 25px rgba(37,99,235,.35);
}

.sw-stage-label{
    margin-top:12px;
    font-size:13px;
    font-weight:700;
    color:#0f172a;
    text-align:center;
}

.sw-delivery-feed{
    margin-top:40px;
    background:#fff;
    border-radius:24px;
    padding:25px;
}

.sw-delivery-feed h3{
    margin-bottom:20px;
    font-size:30px;
}

.sw-feed-item{
    background:#f8fafc;
    border-radius:16px;
    padding:18px;
    margin-bottom:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.sw-otp-box{
    background:#fff;
    max-width:420px;
    margin:40px auto;
    border-radius:28px;
    padding:35px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.sw-otp-inputs{
    display:flex;
    justify-content:center;
    gap:12px;
    margin:25px 0;
}

.sw-otp-digit{
    width:56px;
    height:56px;
    border-radius:16px;
    border:2px solid #dbeafe;
    text-align:center;
    font-size:24px;
    font-weight:700;
}

.sw-confirm-btn{
    width:100%;
    border:none;
    border-radius:18px;
    padding:18px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
}

.sw-confirm-btn:hover{
    transform:translateY(-2px);
}


 


/* =========================================
   SELLEWA TRACKING PAGE
========================================= */

.sw-tracking-wrapper{
    max-width:1400px;
    margin:40px auto;
    padding:0 24px;
}

.sw-tracking-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:24px;
    align-items:start;
}

.sw-tracking-main,
.sw-order-sidebar{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.sw-card,
.sw-map-card,
.sw-feed-card,
.sw-activity-card,
.sw-route-card,
.sw-summary-grid > div,
.sw-delivery-details-card,
.sw-otp-card{
    background:#fff;
    border-radius:24px;
    padding:28px;
    box-shadow:
        0 4px 24px rgba(15,23,42,0.05);
    border:1px solid #edf2f7;
}

/* =========================================
   HEADER
========================================= */

.sw-tracking-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    gap:20px;
}

.sw-tracking-title h1{
    font-size:42px;
    font-weight:800;
    color:#081a3a;
    margin:0;
}

.sw-tracking-title p{
    color:#64748b;
    margin-top:8px;
}

/* =========================================
   STATUS BADGE
========================================= */

.sw-status-badge{
    background:#e0ecff;
    color:#2563eb;
    padding:14px 22px;
    border-radius:999px;
    font-weight:700;
    font-size:15px;
}

/* =========================================
   MAP
========================================= */

#sw-live-map{
    width:100%;
    height:500px;
    border-radius:20px;
    overflow:hidden;
    background:#eef2ff;
}

/* =========================================
   SUMMARY GRID
========================================= */

.sw-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.sw-summary-grid h2{
    margin-top:10px;
    font-size:34px;
    color:#081a3a;
}

.sw-summary-grid small{
    color:#64748b;
    font-size:14px;
}

/* =========================================
   ROUTE STATS
========================================= */

.sw-route-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.sw-route-stats .sw-card h3{
    font-size:34px;
    margin-top:10px;
}

/* =========================================
   DELIVERY TIMELINE
========================================= */

.sw-delivery-timeline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
    margin-top:20px;
}

.sw-delivery-timeline::before{
    content:'';
    position:absolute;
    top:18px;
    left:0;
    width:100%;
    height:4px;
    background:#dbeafe;
    z-index:1;
}

.sw-timeline-step{
    position:relative;
    z-index:2;
    background:#fff;
    text-align:center;
    flex:1;
}

.sw-timeline-dot{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#2563eb;
    margin:0 auto 10px;
    box-shadow:
        0 0 0 8px rgba(37,99,235,0.12);
}

/* =========================================
   ACTIVITY FEED
========================================= */

.sw-feed-item{
    padding:18px;
    border-radius:16px;
    background:#f8fafc;
    margin-bottom:14px;
}

/* =========================================
   OTP CARD
========================================= */

.sw-otp-inputs{
    display:flex;
    gap:12px;
    margin:24px 0;
}

.sw-otp-input{
    width:64px;
    height:64px;
    border-radius:16px;
    border:2px solid #dbeafe;
    text-align:center;
    font-size:28px;
    font-weight:700;
}

.sw-confirm-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:16px;
    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
    color:#fff;
    font-weight:700;
    font-size:18px;
    cursor:pointer;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){

    .sw-tracking-layout{
        grid-template-columns:1fr;
    }

    .sw-route-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .sw-summary-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .sw-route-stats{
        grid-template-columns:1fr;
    }

    .sw-tracking-title h1{
        font-size:32px;
    }
}





