.categories-main {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    min-height: 80vh;
}

.categories-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0;
    background: linear-gradient(-45deg, #edd566, #b59d46, #f4e473, #edd566);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border-radius: 25px;
    margin: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(237, 213, 102, 0.3);
}

.categories-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

.categories-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.categories-page-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--header-text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    display: inline-block;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.categories-page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.categories-subtitle {
    font-size: 1.4rem;
    color: var(--header-text-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.categories-search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.categories-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 213, 102, 0.05), rgba(177, 154, 72, 0.03));
    border-radius: 25px;
    z-index: -1;
}

.categories-grid {
    margin-bottom: 4rem;
}

.main-category-card {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(237, 213, 102, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(237, 213, 102, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--header-primary-gold);
}

.main-category-card:hover::before {
    opacity: 1;
}

.main-category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(237, 213, 102, 0.1);
}

.main-category-image {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-category-card:hover .category-main-image {
    transform: scale(1.1);
}

.main-category-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--header-primary-gold), var(--header-accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(237, 213, 102, 0.6);
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
}

.main-category-icon i {
    font-size: 1.2rem;
    color: var(--header-text-dark);
}

.main-category-card:hover .main-category-icon {
    transform: scale(1.1) rotate(15deg);
}

.main-category-info {
    flex: 1;
}

.main-category-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--header-text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', sans-serif;
}

.main-category-count {
    font-size: 1.1rem;
    color: var(--header-mid-gold);
    font-weight: 600;
}

.subcategories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(237, 213, 102, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--header-text-dark);
    transition: all 0.3s ease;
    border: 1px solid rgba(237, 213, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.subcategory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-primary-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.subcategory-item:hover {
    transform: translateX(8px);
    border-color: var(--header-primary-gold);
    color: var(--header-text-dark);
    text-decoration: none;
}

.subcategory-item:hover::before {
    opacity: 0.1;
}

.subcategory-name {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.subcategory-count {
    font-size: 0.9rem;
    color: var(--header-neutral-gray);
    position: relative;
    z-index: 1;
}

.subcategory-item.view-all,
.subcategory-item.single-category {
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    font-weight: 700;
    border-color: var(--header-accent-gold);
}

.subcategory-item.view-all i,
.subcategory-item.single-category i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.subcategory-item.view-all:hover i,
.subcategory-item.single-category:hover i {
    transform: translateX(5px);
}

.categories-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(237, 213, 102, 0.2);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.categories-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 213, 102, 0.03), rgba(177, 154, 72, 0.02));
    animation: statsGlow 4s ease-in-out infinite alternate;
}

@keyframes statsGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.categories-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.categories-stat-item i {
    font-size: 3.5rem;
    color: var(--header-primary-gold);
    background: rgba(237, 213, 102, 0.1);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(237, 213, 102, 0.3);
}

.categories-stat-item:hover i {
    transform: scale(1.15) rotate(10deg);
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    box-shadow: 0 15px 35px rgba(237, 213, 102, 0.5);
}

.categories-stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--header-text-dark);
    font-family: 'Tajawal', sans-serif;
}

.categories-stat-label {
    font-size: 1.1rem;
    color: var(--header-neutral-gray);
    font-weight: 600;
}

.category-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    min-height: 100vh;
}

.category-hero {
    background: linear-gradient(-45deg, #edd566, #b59d46, #f4e473, #edd566);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 2rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 8px 32px rgba(237, 213, 102, 0.3);
    height: 180px;
    display: flex;
    align-items: center;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

.category-hero-logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-logo-animated {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.5));
    animation: logoFloat 6s ease-in-out infinite, logoRotate 20s linear infinite;
    opacity: 0.6;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(-10px) scale(1); }
    50% { transform: translateY(10px) scale(1.05); }
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.breadcrumb-link {
    color: var(--header-text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--header-text-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

.breadcrumb-current {
    color: var(--header-text-dark);
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

.breadcrumb-separator {
    color: var(--header-text-dark);
    font-size: 1.1rem;
    opacity: 0.7;
}

.category-hero-content {
    text-align: right;
    position: relative;
    z-index: 2;
}

.category-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3),
                 4px 4px 16px rgba(0, 0, 0, 0.2),
                 -1px -1px 4px rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transform: perspective(500px) rotateX(10deg);
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes title3D {
    0% { 
        transform: perspective(500px) rotateX(10deg) rotateY(0deg);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }
    100% { 
        transform: perspective(500px) rotateX(10deg) rotateY(5deg);
        text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
    }
}

.category-description {
    font-size: 1.1rem;
    color: var(--header-text-dark);
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 500px;
    position: relative;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subcategories-section {
    margin-bottom: 3rem;
}

.subcategories-header {
    margin-bottom: 2rem;
}

.subcategories-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--header-text-dark);
    font-family: 'Tajawal', sans-serif;
    text-align: center;
    margin-bottom: 1rem;
}

.sub-category-item {
    display: block;
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(237, 213, 102, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.sub-category-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--header-primary-gold);
    text-decoration: none;
    color: inherit;
}

.sub-category-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.subcategory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sub-category-item:hover .subcategory-image {
    transform: scale(1.1);
}

.sub-category-icon-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.sub-category-icon-overlay i {
    font-size: 1.5rem;
    color: var(--header-primary-gold);
}

.sub-category-content {
    padding: 1.5rem;
    text-align: center;
}

.sub-category-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', sans-serif;
}

.sub-category-ads-count {
    font-size: 0.9rem;
    color: var(--header-neutral-gray);
    font-weight: 500;
}

.sub-category-arrow {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--header-primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sub-category-arrow i {
    color: var(--header-text-dark);
    font-size: 1.2rem;
}

.sub-category-item:hover .sub-category-arrow {
    transform: translateX(-50%) scale(1.1);
}

.filters-sidebar {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(237, 213, 102, 0.1);
    margin-bottom: 2rem;
    position: sticky;
    top: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(237, 213, 102, 0.2);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-text-dark);
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

.filters-title i {
    color: var(--header-primary-gold);
    font-size: 1.5rem;
}

.filters-reset {
    background: rgba(237, 213, 102, 0.1);
    border: 2px solid var(--header-primary-gold);
    color: var(--header-dark-gold);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-reset:hover {
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    transform: translateY(-2px);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--header-text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.filter-label i {
    color: var(--header-primary-gold);
    font-size: 1.2rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-range .junayh-input-container {
    flex: 1;
    margin-bottom: 0;
}

.price-separator {
    font-weight: 600;
    color: var(--header-neutral-gray);
    white-space: nowrap;
}

.filter-apply-btn {
    width: 100%;
    margin-top: 1rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(237, 213, 102, 0.2);
}

.results-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.results-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--header-text-dark);
    font-family: 'Tajawal', sans-serif;
}

.results-text {
    font-size: 1rem;
    color: var(--header-neutral-gray);
    font-weight: 500;
}

.sort-controls .select-custom-container {
    min-width: 200px;
}

.ads-grid {
    margin-bottom: 3rem;
}

.ad-card.junayh-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(237, 213, 102, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
}

.ad-card.junayh-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--header-primary-gold);
}

.ad-card.featured {
    border-color: var(--header-primary-gold);
    box-shadow: 0 8px 30px rgba(237, 213, 102, 0.3);
}

.ad-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 213, 102, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.junayh-card-badge.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--header-primary-gold), var(--header-accent-gold));
    color: var(--header-text-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(237, 213, 102, 0.4);
    transition: all 0.3s ease;
}

.junayh-card-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.junayh-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ad-card.junayh-card:hover .junayh-card-image {
    transform: scale(1.1);
}

.junayh-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.ad-card.junayh-card:hover .junayh-card-overlay {
    opacity: 1;
}

.junayh-card-favorite {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.junayh-card-favorite:hover {
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    transform: scale(1.1);
}

.junayh-card-favorite i {
    font-size: 1.2rem;
    color: var(--header-neutral-gray);
    transition: all 0.3s ease;
}

.junayh-card-favorite:hover i {
    color: var(--header-text-dark);
}

.junayh-card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.junayh-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-text-dark);
    margin-bottom: 1rem;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.junayh-card-price-container {
    margin-bottom: 0.75rem;
}

.junayh-card-price-before {
    font-size: 0.9rem;
    color: var(--header-neutral-gray);
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.junayh-card-discount {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.junayh-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--header-primary-gold);
    font-family: 'Tajawal', sans-serif;
}

.junayh-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--header-neutral-gray);
    font-size: 0.9rem;
}

.junayh-card-location i {
    font-size: 1rem;
    color: var(--header-mid-gold);
}

.junayh-card-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--header-neutral-gray);
    font-size: 0.85rem;
}

.junayh-card-address i {
    font-size: 0.9rem;
    color: var(--header-mid-gold);
}

.junayh-card-date {
    font-size: 0.85rem;
    color: var(--header-neutral-gray);
    font-weight: 500;
}

.junayh-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.junayh-card-footer .junayh-card-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.junayh-btn-secondary {
    background: rgba(237, 213, 102, 0.1);
    border: 2px solid var(--header-primary-gold);
    color: var(--header-dark-gold);
}

.junayh-btn-secondary:hover {
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    transform: translateY(-2px);
}

.no-ads-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--header-neutral-gray);
}

.no-ads-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(237, 213, 102, 0.5);
}

.no-ads-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--header-text-dark);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-nav {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 1rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(237, 213, 102, 0.1);
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--header-text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(237, 213, 102, 0.05);
}

.pagination-link:hover {
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    text-decoration: none;
    transform: translateY(-2px);
    border-color: var(--header-accent-gold);
}

.pagination-item.active .pagination-link {
    background: var(--header-primary-gold);
    color: var(--header-text-dark);
    border-color: var(--header-mid-gold);
    box-shadow: 0 4px 15px rgba(237, 213, 102, 0.4);
}

.pagination-item.disabled .pagination-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(237, 213, 102, 0.02);
}

.pagination-item.disabled .pagination-link:hover {
    background: rgba(237, 213, 102, 0.02);
    transform: none;
    border-color: transparent;
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--header-neutral-gray);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .categories-page-title {
        font-size: 3rem;
    }
    
    .categories-subtitle {
        font-size: 1.2rem;
    }
    
    .main-category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .main-category-image {
        width: 100px;
        height: 100px;
    }
    
    .main-category-name {
        font-size: 1.6rem;
    }
    
    .subcategories-list {
        grid-template-columns: 1fr;
    }
    
    .categories-stats {
        gap: 2.5rem;
    }
    
    .categories-search-section {
        padding: 2rem;
    }

    .category-title {
        font-size: 2.2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .category-hero {
        height: 150px;
    }
    
    .hero-logo-animated {
        width: 90px;
        height: 90px;
        right: 3%;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .sort-controls {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 1.5rem 0;
        height: 130px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .hero-logo-animated {
        width: 70px;
        height: 70px;
    }
    
    .filters-sidebar,
    .category-content {
        padding: 1.5rem;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .price-range {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-separator {
        text-align: center;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .categories-main {
        padding: 3rem 0;
    }
    
    .categories-page-title {
        font-size: 2.5rem;
    }
    
    .categories-subtitle {
        font-size: 1.1rem;
    }
    
    .main-category-card {
        padding: 1.5rem;
    }
    
    .main-category-image {
        width: 80px;
        height: 80px;
    }
    
    .main-category-icon {
        width: 32px;
        height: 32px;
        bottom: -8px;
        right: -8px;
    }
    
    .main-category-icon i {
        font-size: 1rem;
    }
    
    .main-category-name {
        font-size: 1.4rem;
    }
    
    .categories-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .categories-stat-item i {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .categories-stat-number {
        font-size: 2rem;
    }
    
    .categories-search-section {
        padding: 1.5rem;
    }
    
    .categories-header {
        padding: 3rem 0;
    }

    .category-main {
        padding: 1rem 0;
    }
    
    .category-hero {
        border-radius: 0;
        margin-bottom: 2rem;
        height: 120px;
        padding: 1rem 0;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .hero-logo-animated {
        width: 60px;
        height: 60px;
        right: 2%;
    }
    
    .pagination-nav {
        padding: 0.75rem 1rem;
    }
    
    .pagination-link {
        width: 40px;
        height: 40px;
    }
    
    .junayh-card-body {
        padding: 1rem;
    }
    
    .junayh-card-footer {
        padding: 0 1rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .junayh-card-image-container {
        height: 180px;
    }
}