.card-image .badge{
    position: absolute;
    top: 0;
    left: 0;

    z-index: 9999;

    padding: 4px 24px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #fff;

    border-radius: 0 0 10px 0;

    transform: none !important;
}

.card-image .badge.top::before{
    content:"";
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);

    width:12px;
    height:12px;

    background:url("images/crown.png") center/contain no-repeat;
}





/* TOP */
.card-image .badge.top{
    background: linear-gradient(135deg,#ff9800,#ff5722);
}

/* FEATURED */
.card-image .badge.featured{
    background: linear-gradient(135deg,#7b61ff,#5b3df5);
    
    padding:6px 12px;
}















.ad-row-img{
    position: relative !important;
    overflow: hidden;
}
.ad-row-img .badge{
    position: absolute;
    top: 0;
    left: 0;

    z-index: 5;

    padding: 4px 24px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;

    color: #fff;

    border-radius: 0 0 10px 0;

    transform: none !important;
}




.ad-row-img .badge.top::before{
    content:"";
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);

    width:12px;
    height:12px;

    background:url("images/crown.png") center/contain no-repeat;
}





/* TOP */
.ad-row-img .badge.top{
    background: linear-gradient(135deg,#ff9800,#ff5722);
}

/* FEATURED */
.ad-row-img .badge.featured{
    background: linear-gradient(135deg,#7b61ff,#5b3df5);
    padding:6px 12px;
}







/* =========================
   FEATURED CARD COLORS
========================= */

/* TOP AD CARD */
.featured-card.top {
   
        background: #fff7e6 !important;  /* very light amber */
  
}

/* FEATURED AD CARD */
.featured-card.featured {
    background: #fff7e6 !important;  /* alice blue */
 
}

/* Hover Effects */
.featured-card.top:hover {
    box-shadow: 0 8px 22px rgba(255, 87, 34, 0.18);
}

.featured-card.featured:hover {
    box-shadow: 0 8px 22px rgba(156, 39, 176, 0.18);
}






/* =========================
   SIMILAR / FEATURED CARD
========================= */

.featured-card {
    background: #fff7e6 !important;
    border: 1px solid #f0dfbd;
}

/* DETAILS SECTION */
.featured-card .card-details {
    background: #fff7e6 !important;
}

/* CARD TEXT */
.featured-card .card-details h3 {
    color: #222;
}

.featured-card .card-details p {
    color: #666;
}

.featured-card .card-details .price {
    color: #16834a;
    font-weight: 700;
}




/* =========================
   FEATURED SECTION
========================= */
.featured-section {
    padding: 20px 0;
    background: #f5f5f5;
}

.featured-section h2 {
    font-family: "Puritan", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: gray;
    text-align: center;
    margin-bottom: 20px;
}

/* =========================
   CONTAINER
========================= */
.featured-container{
    max-width:1280px;
    margin:0 auto;
    padding:0;
    box-sizing:border-box;
}

/* =========================
   FEATURED SLIDER FIXED WIDTH
========================= */
.featured-slider{
    position: relative;
    overflow:hidden;
    touch-action:pan-y;
}

.featured-slider-track{
    display:flex;
    gap:12px;
    transition:transform .25s ease;
    will-change:transform;
}








/* =========================
   SLIDER EDGE FADE EFFECT
========================= */


/* LEFT FADE */
.featured-slider::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    height:100%;
    width:100px;

    z-index:20;
    pointer-events:none;

}

/* RIGHT FADE */
.featured-slider::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    height:100%;
    width:100px;

    z-index:20;
    pointer-events:none;

    background:linear-gradient(to left, #f5f5f5, transparent);
}








/* CARD */

.featured-card {
    position: relative;

    flex: 0 0 calc((100% - 30px) / 3);
    max-width: calc((100% - 30px) / 3);

    background: #fff;

    border: 1px solid #dbe3ea !important;
    border-radius: 10px;

    overflow: hidden;
    box-sizing: border-box;

    text-decoration: none;
    color: #000;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    min-height: 200px;
}

.featured-card:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* DETAILS */
.card-details {
    padding: 10px 0 14px 0;
}

.card-details h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 8px;
    color: #222;
}

.card-details .price {
    font-size: 15px;
    font-weight: 800;
    color: #e65100;
    margin: 0 0 4px 8px;
}

.details-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-item .material-symbols-outlined {
    font-size: 18px;
    color: #444;
}

.divider {
    color: #bbb;
    font-size: 12px;
}
















/* =========================================
   NORMAL IMAGE + DETAILS
========================================= */

.featured-card .card-image {
    position: relative;
    overflow: hidden;
}

.featured-card .card-image::after {
    display: none !important;
}

.featured-card .card-details {
    position: relative;
    margin-top: 0;
    background: #fff;
    z-index: 3;
}








/* =========================
   NAV BUTTONS (CENTER)
========================= */
.prev-btn,
.next-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,.6);
    color:#fff;

    font-size:18px;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.3s ease;
    z-index:10;
}

/* Left */
.prev-btn{
    left:12px;
}

/* Right */
.next-btn{
    right:12px;
}

/* Hover */
.prev-btn:hover,
.next-btn:hover{
    background:rgba(0,0,0,.8);
    transform:translateY(-50%) scale(1.08);
}











/* Desktop */
.featured-container.mobile-slider{
    display:none;
}

.featured-container.desktop-slider{
    display:block;
}

/* Mobile */
@media (max-width:768px){

    .featured-container.mobile-slider{
        display:block;
        margin-top:20px;
        margin-bottom:20px;
    }

    .featured-container.desktop-slider{
        display:none;
    }

}













/* =========================
   MOBILE FEATURED SLIDER
========================= */
@media (max-width:768px){


 .floating-header{
        display:none !important;
        visibility:hidden !important;
        opacity:0 !important;
        height:0 !important;
        overflow:hidden !important;
        margin:0 !important;
        padding:0 !important;
    }





    .featured-section{
        padding:15px 0;
    }


    .featured-container{
        width:100%;
        max-width:100%;
        padding:0 10px;
    }



.featured-slider{
    padding:0 10px;
    
}

.featured-slider-track{
    gap:18px;
}

.featured-card{
    flex:0 0 calc(100% - 20px) !important;
    min-width:calc(100% - 20px) !important;
}




    .card-image img{

        width:100%;
        height:190px;

        object-fit:cover;

    }


    .card-details{

        padding:10px;

    }


    .card-details h3{

        font-size:15px;

    }


    .card-details .price{

        font-size:16px;

    }


    .prev-btn,
    .next-btn{

        display:none !important;

    }


    .featured-slider::before,
    .featured-slider::after{

        display:none;

    }

}


/* =========================
   SMALL MOBILE
========================= */
@media(max-width:480px){


    .featured-container{

        padding:0 8px;

    }


    .featured-card{

        flex:0 0 98% !important;
        min-width:98% !important;
        max-width:98% !important;

    }


    .card-image img{

        height:170px;

    }


}








/* =========================
   TABLET FEATURED SLIDER
========================= */
@media (min-width:769px) and (max-width:1024px){

    .featured-container{
        width:100%;
        padding:0 15px;
    }

    .featured-slider{
        width:100%;
        overflow:hidden;
    }

    .featured-slider-track{
        gap:25px;
    }

    .featured-card{
        flex:0 0 48% !important;
        min-width:48% !important;
        max-width:48% !important;
    }

    .card-image img{
        height:180px;
    }

}













/* SMALL VERIFIED BADGE */
.verified-badge-circle {
    position: absolute;
    top: 4px;
    right: 4px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;

    padding: 1px 3px;
    background: #fff;
    border-radius: 10px;

    z-index: 20;
}


/* SMALL BLUE CHECK CIRCLE */
.verified-badge-circle .circle {
    width: 12px;
    height: 12px;

    background: #1877f2;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* CHECK */
.verified-badge-circle .check {
    color: #fff;
    font-size: 7px;
    font-weight:900;
    line-height:1;
}


/* TEXT */
.verified-badge-circle .label {
    margin:0;

    font-size:7px;
    font-weight:700;

    color:#1877f2;
}














/* =========================================================
   SQUARE CARD — KEEP BADGES ROUNDED
========================================================= */

/* Main card */
.featured-card {
    border-radius: 0 !important;
}

/* Image */
.featured-card .card-image,
.featured-card .card-image img {
    border-radius: 0 !important;
}

/* Keep TOP / FEATURED badges rounded */
.card-image .badge {
    border-radius: 0 0 10px 0 !important;
}

/* Keep verified badge rounded */
.featured-card .verified-badge-circle {
    border-radius: 10px !important;
}

/* Keep verified check circle perfectly round */
.featured-card .verified-badge-circle .circle {
    border-radius: 50% !important;
}

/* Keep slider buttons round */
.prev-btn,
.next-btn {
    border-radius: 50% !important;
}



/* =========================================================
   MOTOMART AD CARD CORNERS
========================================================= */

.featured-card {
    border-radius: 0 10px 0 10px !important;
    overflow: hidden !important;
}

.featured-card .card-image {
    border-radius: 0 10px 0 0 !important;
    overflow: hidden !important;
}

.featured-card .card-image img {
    border-radius: 0 10px 0 0 !important;
}

.featured-card .card-details {
    border-radius: 0 0 0 10px !important;
}



/* =========================================================
   MOTOMART GREEN CARD BORDER EFFECT
========================================================= */

.featured-card {
    position: relative;
    background: #ffffff !important;

    /* Green border */
    border: 1px solid #2e9d62 !important;

    border-radius: 0 10px 0 10px !important;
    overflow: hidden !important;

    /* Soft green shadow */
    box-shadow:
        0 2px 8px rgba(46, 157, 98, 0.10),
        0 0 0 1px rgba(46, 157, 98, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   GREEN INNER LINE
========================================================= */

.featured-card::before {
    content: "";
    position: absolute;

    inset: 0;

    border: 1px solid rgba(46, 157, 98, 0.35);

    border-radius: 0 10px 0 10px;

    pointer-events: none;

    z-index: 8;
}


/* =========================================================
   TOP GREEN LINE
========================================================= */

.featured-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #16834a,
        #39b86f,
        #16834a
    );

    z-index: 10;
}


/* =========================================================
   HOVER EFFECT
========================================================= */

.featured-card:hover {
    transform: translateY(-5px);

    border-color: #16834a !important;

    box-shadow:
        0 8px 22px rgba(22, 131, 74, 0.18),
        0 0 0 1px rgba(22, 131, 74, 0.12);
}


/* =========================================================
   IMAGE
========================================================= */

.featured-card .card-image {
    border-top: 0 !important;
}


/* =========================================================
   DETAILS
========================================================= */

.featured-card .card-details {
    background: #ffffff !important;

    border-top: 1px solid #dcefe4;
}


/* =========================================================
   TITLE
========================================================= */

.featured-card .card-details h3 {
    color: #202820 !important;
}


/* =========================================================
   PRICE
========================================================= */

.featured-card .card-details .price {
    color: #16834a !important;
    font-weight: 800;
}


/* =========================================================
   DETAILS ICONS
========================================================= */

.featured-card .detail-item .material-symbols-outlined {
    color: #16834a !important;
}


/* =========================================================
   TOP / FEATURED BADGE STAYS ABOVE BORDER
========================================================= */

.featured-card .badge {
    z-index: 20 !important;
}


/* =========================================================
   VERIFIED BADGE
========================================================= */

.featured-card .verified-badge-circle {
    z-index: 20 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .featured-card {
        border-color: #2e9d62 !important;

        box-shadow:
            0 2px 8px rgba(46, 157, 98, 0.12);
    }

}


/* =========================================================
   REMOVE FEATURED CARD HOVER EFFECT
========================================================= */

.featured-card:hover {
    transform: none !important;
    border-color: #2e9d62 !important;

    box-shadow:
        0 2px 8px rgba(46, 157, 98, 0.10),
        0 0 0 1px rgba(46, 157, 98, 0.04) !important;
}