.h-th-category-page {
    background-color: var(--bg-light);
    font-family: var(--body-font);
    padding: 40px 0 60px 0;
}

.h-th-category-page .mega-search-section {
    margin: 0px;
}

.h-th-c-layout-wrap {
    display: flex;
    align-items: flex-start;
}

.h-th-c-layout-wrap .h-th-c-l-col-1 {
    flex: 4.7;
    min-width: 0;
}

.h-th-c-l-col-1 .h-th-rp-image-wrap img,
.h-th-c-l-col-1 .product-card-image {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
}

.h-th-c-layout-wrap .h-th-c-l-col-2 {
    flex: 1.4;
    margin-top: 0px !important;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.h-th-c-item-wrap {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.h-th-c-item-wrap:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.h-th-c-item-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.h-th-c-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.h-th-c-item {
    display: block;
    flex: 1 1 auto;
    min-width: calc(20% - 8px);
}

.h-th-c-item-wrap:first-child .h-th-c-item {
    min-width: calc(50% - 8px);
}

.h-th-c-item-link {
    display: block;
    padding: 10px 12px;
    color: #4a5568;
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    height: 100%;
    text-transform: uppercase;
}

.h-th-c-item-wrap:first-child .h-th-c-item-link {
    text-align: left !important;
    padding-left: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    text-transform: uppercase;
}

.h-th-c-item-wrap:first-child .h-th-c-item-link::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
}

.h-th-c-item-link:hover {
    color: var(--primary);
    background-color: #f0f9ff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.08);
}

.h-th-c-item-link.active-filter {
    color: var(--text-white);
    background-color: var(--primary);
    border-color: var(--primary);
}

@media screen and (max-width: 1024px) {
    .h-th-category-page {
        padding: 30px 0 50px 0;
    }

    .h-th-c-layout-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .h-th-c-layout-wrap .h-th-c-l-col-1,
    .h-th-c-layout-wrap .h-th-c-l-col-2 {
        flex: 100%;
        width: 100%;
    }

    .h-th-c-layout-wrap .h-th-c-l-col-2 {
        margin-top: 15px !important;
    }

    .h-th-c-item {
        min-width: calc(25% - 8px);
    }

    .h-th-c-item-wrap:first-child .h-th-c-item {
        min-width: calc(33.33% - 8px);
    }
}

@media screen and (max-width: 768px) {
    .h-th-c-item {
        min-width: calc(33.33% - 8px);
    }

    .h-th-c-item-wrap:first-child .h-th-c-item {
        min-width: calc(50% - 8px);
    }
}

@media screen and (max-width: 576px) {
    .h-th-category-page .h-th-main-container {
        padding: 0 var(--container-padding-mobile);
    }

    .h-th-c-layout-wrap .h-th-c-l-col-2 {
        margin-top: 0px !important;
        padding: 18px;
    }

    .h-th-c-item,
    .h-th-c-item-wrap:first-child .h-th-c-item {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
    }

    .h-th-c-item-link {
        font-size: 12px;
        padding: 8px 10px;
    }
}


    /* Pagination Wrapper */
.h-th-pagination {
    margin-top: 30px;
    text-align: start;
    padding: 20px 0;
}

/* Pagination Links/Numbers */
.h-th-pagination .page-numbers {
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover Effect */
.h-th-pagination .page-numbers:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Current Page (Active) */
.h-th-pagination .page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Prev/Next Links */
.h-th-pagination .prev, 
.h-th-pagination .next {
    font-weight: bold;
    border-color: #007bff;
    color: #007bff;
}

/* Mobile ke liye Pagination ko adjust karna */
@media (max-width: 600px) {
    .h-th-pagination {
        display: flex;
        flex-wrap: wrap; /* Buttons agar line mein fit na hon to niche aa jayein */
        justify-content: start;
        gap: 5px; /* Buttons ke beech ka gap chota kar diya */
    }

    .h-th-pagination .page-numbers {
        padding: 8px 12px; /* Mobile par padding kam ki */
        font-size: 14px;
        margin: 2px;
    }
    
    /* Agar 'Previous' aur 'Next' bahut bade lag rahe hain */
    .h-th-pagination .prev, 
    .h-th-pagination .next {
        padding: 8px 10px;
    }
}

