/* ====================================
CATEGORY PAGE
==================================== */

.sudanads-category-page{

    max-width:920px;

    margin:auto;

    padding:8px 12px 24px;

    direction:rtl;

}

/* ====================================
CATEGORY HERO
==================================== */

.category-page-hero{

    margin-bottom:22px;

}

/* ====================================
TITLE
==================================== */

.category-page-title{

    margin:0 0 6px;

    font-size:42px;

    line-height:1.2;

    font-weight:950;

    color:#111827;

}

/* ====================================
COUNT
==================================== */

.category-page-count{

    font-size:16px;

    font-weight:800;

    color:#6b7280;

}

/* ====================================
FILTERS
==================================== */

.category-filters{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:22px;

    flex-wrap:wrap;

}

/* ====================================
FILTER BUTTON
==================================== */

.category-filter-btn{

    height:46px;

    padding:0 18px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    border-radius:16px;

    background:#ffffff;

    color:#111827;

    text-decoration:none !important;

    font-size:15px;

    font-weight:850;

    border:1px solid #edf1ed;

    transition:.18s ease;

}

/* ACTIVE */

.category-filter-btn.active{

    background:#16a34a;

    border-color:#16a34a;

    color:#ffffff;

}

/* ====================================
ADS LIST
==================================== */

.category-ads-list{

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* ====================================
FULL AD
==================================== */

.category-full-ad{

    background:#ffffff;

    border-radius:28px;

    overflow:hidden;

    box-shadow:
    0 6px 24px rgba(0,0,0,.05);

}

/* ====================================
IMAGE WRAP
==================================== */

.category-ad-image-wrap{

    display:block;

    overflow:hidden;

    padding:14px 14px 0;

}

/* ====================================
IMAGE
==================================== */

.category-ad-image-wrap img{

    width:100%;

    height:auto;

    max-height:420px;

    object-fit:cover;

    display:block;

    border-radius:24px;

}

/* ====================================
CONTENT
==================================== */

.category-ad-content{

    padding:18px 20px 20px;

}

/* ====================================
TITLE
==================================== */

.category-ad-title{

    margin:0 0 14px;

    line-height:1.4;

}

.category-ad-title a{

    text-decoration:none !important;

    color:#111827;

    font-size:30px;

    font-weight:950;

}

/* ====================================
PRICE
==================================== */

.category-ad-price{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 20px;

    border-radius:999px;

    background:#DCFCE7;

    color:#15803D;

    font-size:22px;

    font-weight:900;

    margin-bottom:18px;

}

/* ====================================
META
==================================== */

.category-ad-meta{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:18px;

}

/* ====================================
META ITEM
==================================== */

.category-ad-city,
.category-ad-date{

    display:flex;

    align-items:center;

    gap:8px;

    padding:10px 16px;

    border-radius:999px;

    background:#f5f7f5;

    color:#111827;

    font-size:14px;

    font-weight:700;

}

/* ====================================
DESCRIPTION
==================================== */

.category-ad-description{

    color:#4b5563;

    font-size:17px;

    line-height:1.9;

    margin-bottom:22px;

}

/* ====================================
BUTTONS
==================================== */

.category-ad-buttons{

    display:flex;

    gap:12px;

}

/* ====================================
BUTTON
==================================== */

.category-ad-btn{

    flex:1;

    height:54px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    text-decoration:none !important;

    font-size:16px;

    font-weight:900;

    transition:.18s ease;

}

/* VIEW */

.category-ad-btn.view{

    background:#f3f4f6;

    color:#111827;

}

/* WHATSAPP */

.category-ad-btn.whatsapp{

    background:#16a34a;

    color:#ffffff;

    box-shadow:
    0 8px 22px rgba(22,163,74,.18);

}

/* ====================================
HOVER
==================================== */

.category-ad-btn:hover,
.category-filter-btn:hover{

    transform:translateY(-2px);

}

/* ====================================
PAGINATION
==================================== */

.archive-pagination{

    margin-top:26px;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

}

.archive-pagination .page-numbers{

    min-width:44px;

    height:44px;

    padding:0 14px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    border-radius:14px;

    background:#ffffff;

    color:#111827;

    text-decoration:none;

    font-size:14px;

    font-weight:800;

    margin:4px;

    box-shadow:
    0 4px 14px rgba(0,0,0,.05);

}

/* CURRENT */

.archive-pagination .current{

    background:#16a34a;

    color:#ffffff;

}

/* ====================================
EMPTY
==================================== */

.empty-state{

    padding:50px 20px;

    border-radius:28px;

    background:#ffffff;

    text-align:center;

    box-shadow:
    0 6px 24px rgba(0,0,0,.04);

}

.empty-state h2{

    margin:0;

    color:#6b7280;

    font-size:22px;

    font-weight:800;

}

/* ====================================
MOBILE
==================================== */

@media(max-width:768px){

    .sudanads-category-page{

        padding:6px 10px 120px;

    }

    .category-page-title{

        font-size:34px;

    }

    .category-page-count{

        font-size:15px;

    }

    .category-filters{

        gap:8px;

        margin-bottom:18px;

    }

    .category-filter-btn{

        flex:1;

        min-width:0;

        font-size:14px;

        padding:0 10px;

        border-radius:14px;

    }

    .category-full-ad{

        border-radius:24px;

        overflow:hidden;

    }

    .category-ad-image-wrap{

        padding:12px 12px 0;

    }

    .category-ad-image-wrap img{

        width:100%;

        height:auto;

        max-height:300px;

        object-fit:cover;

        border-radius:20px;

    }

    .category-ad-content{

        padding:16px 16px 18px;

    }

    .category-ad-title a{

        font-size:24px;

        line-height:1.45;

    }

    .category-ad-price{

        font-size:18px;

        padding:10px 16px;

    }

    .category-ad-city,
    .category-ad-date{

        font-size:13px;

        padding:9px 12px;

    }

    .category-ad-description{

        font-size:16px;

        line-height:1.85;

    }

    .category-ad-buttons{

        flex-direction:column;

    }

    .category-ad-btn{

        width:100%;

        height:52px;

        border-radius:16px;

    }

}

/* REMOVE EXTRA BOTTOM SPACE */

.sudanads-taxonomy-wrapper,
.sudanads-category-page,
.category-ads-list{

    margin-bottom:0 !important;

    padding-bottom:0 !important;

}

/* PAGINATION */

.archive-pagination{

    margin-top:20px !important;

    margin-bottom:0 !important;

    padding-bottom:0 !important;

}

/* LAST CARD */

.category-full-ad:last-child{

    margin-bottom:0 !important;

}

/* FOOTER FIX */

.site-content,
.content-area,
.site-main{

    margin-bottom:0 !important;

    padding-bottom:0 !important;

}

/* FAVORITE HEART */

.category-full-ad{
    position:relative;
}

.category-full-ad .favorite-heart{

    position:absolute;

    top:20px;

    left:20px;

    width:54px;

    height:54px;

    border-radius:50%;

    background:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    cursor:pointer;

    z-index:20;

    box-shadow:
    0 4px 18px rgba(0,0,0,.12);

}

.category-full-ad .favorite-heart.active{

    color:#ef4444;

}