/* ---------- Favorite ---------- */

/* ============================================================
   Favorite — STYLES
   Keep page/component styles in logical sections below.
   ============================================================ */

/* Favourite Page */

.page-header{
    text-align:center;
    margin:40px 0 30px;
}

.page-header h1{
    font-size:32px;
    margin-bottom:10px;
}

.page-header p{
    color:#666;
}

.ads-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
justify-content: center;
    gap:25px;
    width:100%;
}

.card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.favorite-image{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.card h3{
    margin:15px;
    font-size:20px;
}

.card p{
    margin:0 15px 10px;
}

.card-buttons{
    display:flex;
    gap:10px;
    padding:15px;
}

.card-buttons button{
    flex:1;
    padding:10px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.card-buttons button:first-child{
    background:#28a745;
    color:#fff;
}

.card-buttons button:last-child{
    background:#dc3545;
    color:#fff;
}

.empty-state{
    grid-column:1/-1;
    text-align:center;
    padding:60px 20px;
}

@media(max-width:768px){

    .ads-grid{
        grid-template-columns:1fr;
    }

    .page-header h1{
        font-size:26px;
    }

}


.page-header{
    margin-top:80px;
    margin-bottom:30px;
    text-align:center;
}

main.container{
    display:flex;
    flex-direction:column;
    min-height:70vh;
}

.ads-grid{
    flex:1;
}
/* =========================================================
   APEMART.LK — FAVOURITES PREMIUM PAGE FRAME
   Matches the rounded Seller Dashboard / My Promotions look.
========================================================= */
.favorites-page{
    width:calc(100% - 48px);
    max-width:1280px;
    margin:20px auto 44px;
    min-height:calc(100vh - 145px);
    box-sizing:border-box;
    background:linear-gradient(180deg,#f8fafc 0%,#f3f6fa 100%);
    border:1px solid #e6eaf0;
    border-radius:24px;
    box-shadow:0 10px 32px rgba(15,23,42,.055);
    overflow:hidden;
}

.favorites-hero{
    padding:28px 34px 30px;
    background:linear-gradient(135deg,#ffffff 0%,#fff8f0 100%);
    border-bottom:1px solid #e9edf2;
}

.favorites-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:22px;
    color:#8a929d;
    font-size:13px;
    line-height:1.4;
}
.favorites-breadcrumb a{
    color:#69727d;
    text-decoration:none;
    font-weight:700;
}
.favorites-breadcrumb a:hover{color:#ff6b00}
.favorites-breadcrumb strong{color:#ff6b00;font-weight:800}

.favorites-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.favorites-eyebrow{
    color:#ff6b00;
    font-size:11px;
    font-weight:900;
    letter-spacing:1.6px;
    margin-bottom:7px;
}
.favorites-heading h1{
    margin:0;
    color:#171a1f;
    font-size:34px;
    line-height:1.15;
}
.favorites-heading p{
    margin:9px 0 0;
    color:#6f7782;
    font-size:15px;
}
.favorites-browse-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 17px;
    border-radius:11px;
    background:#ff6b00;
    color:#fff;
    text-decoration:none;
    font-weight:800;
    white-space:nowrap;
    box-shadow:0 8px 20px rgba(255,107,0,.18);
    transition:.2s ease;
}
.favorites-browse-btn:hover{
    background:#e85f00;
    transform:translateY(-1px);
}

.favorites-content{
    padding:28px 34px 42px;
    background:transparent;
}

.favorites-content .ads-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,360px));
    justify-content:initial;
    gap:18px;
}

.favorites-content .card{
    background:#fff;
    border:1px solid #e4e8ed;
    border-radius:17px;
    overflow:hidden;
    box-shadow:0 7px 22px rgba(15,23,42,.055);
    transition:.2s ease;
}
.favorites-content .card:hover{
    transform:translateY(-2px);
    border-color:#ffd0b1;
    box-shadow:0 11px 28px rgba(15,23,42,.08);
}
.favorites-content .favorite-image{height:220px}
.favorites-content .card h3{color:#20242a}
.favorites-content .card p{color:#68717d}

/* Empty state: stays inside the same page surface instead of creating
   another white box, so the page reads as one complete panel. */
.favorites-content .empty-state{
    min-height:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:50px 20px;
    color:#68717d;
}
.favorites-content .empty-state::before{
    content:'♥';
    width:72px;
    height:72px;
    margin-bottom:16px;
    display:grid;
    place-items:center;
    border-radius:22px;
    background:#fff1f3;
    color:#ef476f;
    font-size:30px;
    box-shadow:inset 0 0 0 1px #ffe0e5;
}

@media(max-width:700px){
    .favorites-page{
        width:calc(100% - 24px);
        margin:12px auto 28px;
        border-radius:18px;
    }
    .favorites-hero{padding:22px 18px}
    .favorites-breadcrumb{margin-bottom:18px}
    .favorites-heading{flex-direction:column;align-items:flex-start}
    .favorites-heading h1{font-size:28px}
    .favorites-browse-btn{width:100%}
    .favorites-content{padding:18px 18px 28px}
    .favorites-content .ads-grid{grid-template-columns:1fr}
}

/* =========================================================
   FAVOURITE ADS — COMPLETE AD DETAILS
   Only affects cards on favorites.html.
========================================================= */
.favorites-content .favorite-card{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.favorites-content .favorite-image-wrap{
    position:relative;
    display:block;
    overflow:hidden;
    background:#f2f4f7;
    text-decoration:none;
}

.favorites-content .favorite-image-wrap .favorite-image{
    height:220px;
    transition:transform .25s ease;
}

.favorites-content .favorite-card:hover .favorite-image{
    transform:scale(1.025);
}

.favorite-type-badge{
    position:absolute;
    left:12px;
    top:12px;
    display:inline-flex;
    align-items:center;
    padding:7px 10px;
    border-radius:9px;
    background:rgba(255,255,255,.94);
    color:#252a31;
    font-size:11px;
    font-weight:800;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.favorite-card-body{
    padding:17px 17px 16px;
}

.favorite-card-body h3{
    margin:0 0 7px !important;
    font-size:19px !important;
    line-height:1.3;
    color:#20242a !important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.favorite-price{
    margin-bottom:13px;
    color:#16823b;
    font-size:20px;
    font-weight:900;
}

.favorite-details{
    display:grid;
    gap:8px;
    padding:12px 0;
    border-top:1px solid #edf0f3;
    border-bottom:1px solid #edf0f3;
}

.favorite-detail-row{
    display:flex;
    align-items:flex-start;
    gap:8px;
    color:#606975;
    font-size:13px;
    line-height:1.4;
}

.favorite-detail-row > span:first-child{
    width:19px;
    flex:0 0 19px;
    text-align:center;
}

.favorite-detail-row b{
    color:#343a42;
    font-weight:750;
}

.favorite-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    padding:11px 0 13px;
    color:#7a838e;
    font-size:12px;
}

.favorite-card .card-buttons{
    padding:0;
    gap:9px;
}

.favorite-card .card-buttons button{
    min-height:40px;
    font-weight:800;
}

.favorite-load-error{
    grid-column:1/-1;
    padding:60px 20px;
    text-align:center;
    color:#68717d;
}

@media(max-width:700px){
    .favorites-content .favorite-image-wrap .favorite-image{
        height:210px;
    }
}


/* =========================================================
   FAVOURITES — USE THE SAME AD CARD AS THE HOME PAGE
   Only the favourites page gets these overrides.
========================================================= */
.favorites-content .ads-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    justify-content:initial;
    gap:22px;
    align-items:stretch;
}

.favorites-content .favorite-market-card {
    width:100%;
    max-width:none;
    margin:0;
    border:1px solid #e9edf2;
}

.favorites-content .favorite-market-card:hover {
    border-color:#e9edf2;
    box-shadow:0 13px 30px rgba(20,30,40,.11);
}

.favorites-content .favorite-market-card .home-ad-image {
    height:225px;
}

.favorite-remove-btn {
    position:absolute;
    top:10px;
    right:10px;
    z-index:5;
    width:36px;
    height:36px;
    border:1px solid rgba(255,255,255,.9);
    border-radius:50%;
    background:rgba(255,255,255,.94);
    color:#ef476f;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 3px 12px rgba(0,0,0,.15);
    transition:transform .2s ease, background .2s ease;
}
.favorite-remove-btn:hover {
    transform:scale(1.06);
    background:#fff;
}

@media(max-width:1100px){
    .favorites-content .ads-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .favorites-content .ads-grid {
        grid-template-columns:1fr;
        gap:16px;
    }
    .favorites-content .favorite-market-card {
        max-width:360px;
    }
    .favorites-content .favorite-market-card .home-ad-image {
        height:220px;
    }
}

/* =========================================================
   APEMART — MATCH MY PROMOTIONS PAGE SURFACE
   Remove only the large page-level surfaces. Keep all
   inner favourite/ad cards and their contents intact.
========================================================= */
.favorites-page{
    width:calc(100% - 48px) !important;
    max-width:1280px !important;
    margin:20px auto 44px !important;
    padding:0 0 34px !important;
    min-height:0 !important;
    box-sizing:border-box;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
}
.favorites-hero{
    width:100%;
    box-sizing:border-box;
    margin:0;
    padding:30px 32px 28px;
    background:transparent !important;
    border:0 !important;
}
.favorites-content{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box;
    padding:22px 32px 12px !important;
    background:transparent !important;
}
@media(max-width:700px){
    .favorites-page{width:calc(100% - 24px) !important;margin:12px auto 28px !important}
    .favorites-hero{padding:22px 18px 22px}
    .favorites-content{padding:16px 18px 8px !important}
}

/* Favourites use the same clickable marketplace card interaction as Home/Search. */
.favorites-content .favorite-market-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;cursor:pointer}
.favorites-content .favorite-market-card .home-ad-body{padding:14px 15px 15px;display:flex;flex-direction:column;flex:1}
.favorites-content .favorite-market-card .home-ad-meta{margin-top:0;order:3}
.favorites-content .favorite-market-card .favorite-remove-btn{z-index:3}

/* =========================================================
   FINAL TARGETED FIX — Favourite cards match Home card layout
   Keep favourite-only remove button/interaction intact.
========================================================= */
.favorites-content .favorite-market-card .home-ad-image{
    height:198px !important;
    position:relative !important;
    overflow:hidden !important;
    background:#f1f3f5 !important;
}
.favorites-content .favorite-market-card .home-ad-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
}
.favorites-content .favorite-market-card .home-ad-body{
    padding:14px 15px 15px !important;
    display:flex !important;
    flex-direction:column !important;
    flex:1 !important;
}
.favorites-content .favorite-market-card .home-ad-title{
    font-size:15px !important;
    line-height:1.35 !important;
    color:#202938 !important;
    margin:0 0 8px !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
}
.favorites-content .favorite-market-card .home-ad-price{
    font-size:18px !important;
    font-weight:900 !important;
    color:#ff6b00 !important;
    margin-bottom:8px !important;
}
.favorites-content .favorite-market-card .home-ad-meta{
    display:flex !important;
    justify-content:space-between !important;
    gap:8px !important;
    color:#9aa3ae !important;
    font-size:10px !important;
    margin-top:auto !important;
    padding:10px 0 !important;
}
.favorites-content .favorite-market-card .home-ad-detail{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    color:#7b8492 !important;
    font-size:11px !important;
    margin:3px 0 !important;
}
.favorites-content .favorite-market-card .home-ad-detail i{
    width:12px !important;
    flex:0 0 12px !important;
    text-align:center !important;
    color:#9aa3ae !important;
}
.favorites-content .favorite-market-card .home-ad-distance{
    color:#5c6877 !important;
}
.favorites-content .favorite-market-card .home-ad-type-row{
    margin:8px 0 6px !important;
}
.favorites-content .favorite-market-card .home-ad-type{
    display:inline-flex !important;
    align-items:center !important;
    gap:5px !important;
    border-radius:999px !important;
    padding:5px 8px !important;
    font-size:10px !important;
    font-weight:900 !important;
    background:#f4f6f8 !important;
    color:#586272 !important;
}
.favorites-content .favorite-market-card .home-ad-type.fixed{background:#fff4e9 !important;color:#e45d00 !important}
.favorites-content .favorite-market-card .home-ad-type.auction{background:#f2efff !important;color:#6847b9 !important}
.favorites-content .favorite-market-card .home-ad-type.donate{background:#fff0f1 !important;color:#d43b4a !important}

@media(max-width:700px){
    .favorites-content .favorite-market-card .home-ad-image{height:145px !important}
    .favorites-content .favorite-market-card .home-ad-body{padding:11px !important}
    .favorites-content .favorite-market-card .home-ad-title{font-size:12px !important}
    .favorites-content .favorite-market-card .home-ad-price{font-size:15px !important}
    .favorites-content .favorite-market-card .home-ad-detail{font-size:9px !important}
    .favorites-content .favorite-market-card .home-ad-type{font-size:8px !important;padding:4px 6px !important}
    .favorites-content .favorite-market-card .home-ad-meta{font-size:8px !important}
}

/* Delivery method badge — matched to the Home ad-card badge style. */
.favorites-content .favorite-market-card .home-ad-type-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.favorites-content .favorite-market-card .home-ad-type.delivery{background:#eef8f1;color:#2f7d46}

/* =========================================================
   APEMART — FAVOURITES PROFESSIONAL FINAL POLISH
   Targeted visual-only overrides. JavaScript/HTML behavior is untouched.
   Matches the compact Recently Viewed / Home marketplace card language.
========================================================= */
.favorites-page{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:30px 20px 72px !important;
    min-height:calc(100vh - 145px) !important;
    box-sizing:border-box !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(255,107,0,.08), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(52,199,89,.07), transparent 28%),
        #f5f7fb !important;
}
.favorites-hero,
.favorites-content{
    width:100% !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}
.favorites-hero{
    position:relative !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:28px !important;
    margin-bottom:24px !important;
    padding:28px 32px !important;
    border:1px solid rgba(255,107,0,.12) !important;
    border-radius:22px !important;
    background:linear-gradient(135deg,#fff 0%,#fffaf6 100%) !important;
    box-shadow:0 12px 34px rgba(31,41,55,.07) !important;
}
.favorites-hero::after{
    content:"" !important;
    position:absolute !important;
    width:190px !important;
    height:190px !important;
    right:-70px !important;
    top:-95px !important;
    border-radius:50% !important;
    background:rgba(255,107,0,.075) !important;
    pointer-events:none !important;
}
.favorites-heading{position:relative !important;z-index:1 !important}
.favorites-eyebrow{margin-bottom:7px !important;font-size:12px !important;letter-spacing:.12em !important}
.favorites-heading h1{
    margin:0 !important;
    color:#172033 !important;
    font-size:clamp(28px,3.4vw,38px) !important;
    line-height:1.15 !important;
}
.favorites-heading p{
    margin:8px 0 0 !important;
    color:#687386 !important;
    font-size:15px !important;
    line-height:1.55 !important;
}
.favorites-breadcrumb{margin-bottom:16px !important}
.favorites-action,.favorites-browse-btn{position:relative !important;z-index:2 !important}
.favorites-browse-btn{
    min-height:44px !important;
    padding:0 18px !important;
    border-radius:11px !important;
}
.favorites-content{
    padding:0 !important;
    background:transparent !important;
}
.favorites-content .ads-grid{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important;
    align-items:stretch !important;
    justify-content:initial !important;
}
.favorites-content .favorite-market-card{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    border:1px solid #e5e9ef !important;
    border-radius:17px !important;
    background:#fff !important;
    overflow:hidden !important;
    box-shadow:0 7px 22px rgba(15,23,42,.055) !important;
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease !important;
}
.favorites-content .favorite-market-card:hover{
    transform:translateY(-2px) !important;
    border-color:#ffd2b7 !important;
    box-shadow:0 13px 30px rgba(15,23,42,.10) !important;
}
.favorites-content .favorite-market-card .home-ad-image{
    width:100% !important;
    height:205px !important;
    aspect-ratio:auto !important;
    position:relative !important;
    overflow:hidden !important;
    background:#f1f3f5 !important;
}
.favorites-content .favorite-market-card .home-ad-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
}
.favorites-content .favorite-market-card .home-ad-body{
    padding:14px 15px 15px !important;
    min-width:0 !important;
}
.favorites-content .favorite-market-card .home-ad-title{
    margin:0 0 7px !important;
    font-size:15px !important;
    line-height:1.32 !important;
    -webkit-line-clamp:2 !important;
}
.favorites-content .favorite-market-card .home-ad-price{
    margin-bottom:7px !important;
    font-size:18px !important;
    line-height:1.25 !important;
}
.favorites-content .favorite-market-card .home-ad-detail{
    gap:7px !important;
    margin:3px 0 !important;
    font-size:11px !important;
    line-height:1.25 !important;
}
.favorites-content .favorite-market-card .home-ad-type-row{
    margin:7px 0 5px !important;
    gap:6px !important;
}
.favorites-content .favorite-market-card .home-ad-type{
    padding:5px 8px !important;
    font-size:10px !important;
}
.favorites-content .favorite-market-card .home-ad-meta{
    margin-top:0 !important;
    padding:9px 0 7px !important;
    font-size:10px !important;
}
.favorites-content .favorite-remove-btn{
    width:34px !important;
    height:34px !important;
    top:9px !important;
    right:9px !important;
}

@media(max-width:1050px){
    .favorites-content .ads-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

@media(max-width:700px){
    .favorites-page{
        padding:18px 12px 76px !important;
        min-height:0 !important;
    }
    .favorites-hero{
        display:block !important;
        margin-bottom:16px !important;
        padding:20px 18px 19px !important;
        border-radius:19px !important;
    }
    .favorites-hero::after{
        width:150px !important;
        height:150px !important;
        right:-62px !important;
        top:-76px !important;
    }
    .favorites-breadcrumb{
        margin-bottom:14px !important;
        font-size:12px !important;
    }
    .favorites-heading h1{font-size:27px !important}
    .favorites-heading p{font-size:13px !important;line-height:1.5 !important}
    .favorites-browse-btn{
        width:100% !important;
        margin-top:14px !important;
        min-height:42px !important;
        font-size:13px !important;
    }
    .favorites-content .ads-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
    }
    .favorites-content .favorite-market-card{
        border-radius:14px !important;
        box-shadow:0 5px 17px rgba(15,23,42,.055) !important;
    }
    .favorites-content .favorite-market-card .home-ad-image{
        height:auto !important;
        aspect-ratio:1 / .88 !important;
    }
    .favorites-content .favorite-market-card .home-ad-body{
        padding:9px 9px 10px !important;
    }
    .favorites-content .favorite-market-card .home-ad-title{
        font-size:11px !important;
        line-height:1.28 !important;
        margin-bottom:5px !important;
    }
    .favorites-content .favorite-market-card .home-ad-price{
        font-size:14px !important;
        margin-bottom:5px !important;
    }
    .favorites-content .favorite-market-card .home-ad-detail{
        gap:5px !important;
        font-size:8px !important;
        margin:2px 0 !important;
    }
    .favorites-content .favorite-market-card .home-ad-detail i{width:10px !important;flex-basis:10px !important}
    .favorites-content .favorite-market-card .home-ad-type-row{margin:5px 0 3px !important;gap:4px !important}
    .favorites-content .favorite-market-card .home-ad-type{
        gap:4px !important;
        padding:4px 6px !important;
        font-size:8px !important;
    }
    .favorites-content .favorite-market-card .home-ad-meta{
        padding:6px 0 4px !important;
        font-size:7px !important;
    }
    .favorites-content .favorite-remove-btn{
        width:29px !important;
        height:29px !important;
        top:7px !important;
        right:7px !important;
        font-size:12px !important;
    }
    .favorites-content .empty-state,
    .favorites-content .favorite-load-error{
        grid-column:1/-1 !important;
        min-height:260px !important;
        padding:35px 15px !important;
    }
}

@media(max-width:360px){
    .favorites-page{padding-left:10px !important;padding-right:10px !important}
    .favorites-content .ads-grid{gap:8px !important}
    .favorites-content .favorite-market-card .home-ad-body{padding:8px !important}
    .favorites-heading h1{font-size:25px !important}
}

/* =========================================================
   FAVOURITES — FINAL MOBILE CARD POLISH
   Targeted visual-only changes: compact remove control and
   cleaner badge/meta hierarchy. No JS/HTML changes.
========================================================= */
@media (max-width:700px){
    /* Smaller, cleaner favourite/remove control over the image. */
    .favorites-content .favorite-remove-btn{
        width:30px !important;
        height:30px !important;
        top:8px !important;
        right:8px !important;
        border:1px solid rgba(255,255,255,.96) !important;
        background:rgba(255,255,255,.92) !important;
        color:#ef476f !important;
        box-shadow:0 3px 10px rgba(15,23,42,.14) !important;
        font-size:13px !important;
    }

    .favorites-content .favorite-remove-btn:hover{
        transform:scale(1.04) !important;
        background:#fff !important;
    }

    /* Keep the two option badges together, then put date/views
       immediately underneath with a tighter, cleaner separation. */
    .favorites-content .favorite-market-card .home-ad-type-row{
        margin:6px 0 0 !important;
        padding-top:0 !important;
        gap:4px !important;
    }

    .favorites-content .favorite-market-card .home-ad-meta{
        margin-top:0 !important;
        padding:6px 0 2px !important;
        border-top:0 !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:6px !important;
        font-size:7.5px !important;
        line-height:1.2 !important;
    }

    .favorites-content .favorite-market-card .home-ad-meta > *{
        min-width:0 !important;
    }
}

@media (max-width:430px){
    .favorites-content .favorite-market-card .home-ad-type-row{
        margin-top:5px !important;
        gap:3px !important;
    }

    .favorites-content .favorite-market-card .home-ad-meta{
        padding:5px 0 2px !important;
        font-size:7.2px !important;
    }

    .favorites-content .favorite-remove-btn{
        width:29px !important;
        height:29px !important;
        top:7px !important;
        right:7px !important;
    }
}

/* =========================================================
   FAVOURITES — DATE/VIEWS ABOVE OPTION BADGES
   Keep the existing card design; only change the lower
   information order on mobile + desktop.
========================================================= */
.favorites-content .favorite-market-card .home-ad-body{
    display:flex !important;
    flex-direction:column !important;
}

/* Date + views row comes first */
.favorites-content .favorite-market-card .home-ad-meta{
    order:10 !important;
}

/* Fixed Price / Auction + Delivery badges come underneath */
.favorites-content .favorite-market-card .home-ad-type-row{
    order:11 !important;
}

/* =========================================================
   FINAL — FAVOURITE REMOVE BUTTON
   Keep the control a true compact circle on every viewport.
========================================================= */
.favorites-content .favorite-market-card .favorite-remove-btn,
.favorites-content .favorite-remove-btn {
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    max-width:32px !important;
    max-height:32px !important;
    padding:0 !important;
    margin:0 !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    line-height:1 !important;
    top:8px !important;
    right:8px !important;
}

@media(max-width:700px){
    .favorites-content .favorite-market-card .favorite-remove-btn,
    .favorites-content .favorite-remove-btn {
        width:30px !important;
        height:30px !important;
        min-width:30px !important;
        min-height:30px !important;
        max-width:30px !important;
        max-height:30px !important;
        top:8px !important;
        right:8px !important;
    }
}
