/* NF Category Widget — align hover/active with site header category mega menu */

.category-widget .product-categories {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.category-widget .product-categories > li > strong {
    font-weight: 300;
    color: #000;
}

/* Level 2 — same pill highlight as .nf-site-header__catmega-main-link */
.category-widget .product-categories > li > strong a {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 6px 14px 6px 12px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    border-radius: 50px;
    box-sizing: border-box;
    transition: color 0.2s ease, font-weight 0.2s ease, background 0.2s ease;
}

.category-widget .product-categories > li > strong a:hover,
.category-widget .product-categories > li > strong a:focus-visible,
.category-widget .product-categories > li > strong a.current-category {
    color: #000;
    font-weight: 500;
    background: #f7f8f8;
}

.category-widget .subcategories li {
    font-weight: 300;
    margin-left: 20px;
}

.category-widget .podkategorije {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

/* Level 3 — same as .nf-site-header__catmega-sub-item a */
.category-widget .podkategorije li a {
    display: block;
    padding: 8px 14px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.category-widget .podkategorije li a:hover,
.category-widget .podkategorije li a:focus-visible,
.category-widget .podkategorije li a.current-category {
    color: #000;
    font-weight: 500;
}

/* Pagination Styles */
.category-widget-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.category-pagination-link {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.category-pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #000;
}

.category-pagination-current {
    background-color: #34ab57;
    color: #fff;
    border-color: #34ab57;
    font-weight: bold;
    cursor: default;
}

.category-pagination-current:hover {
    background-color: #34ab57;
    color: #fff;
    border-color: #34ab57;
}

.category-pagination-dots {
    padding: 8px 4px;
    color: #999;
}

.category-pagination-prev,
.category-pagination-next {
    font-weight: 500;
    border: none !important;
    background: transparent !important;
    min-width: auto;
}

.category-pagination-prev:hover,
.category-pagination-next:hover {
    border: none !important;
    background: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
    .category-widget-pagination {
        gap: 4px;
    }

    .category-pagination-link {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 36px;
    }

    .category-pagination-dots {
        padding: 6px 2px;
    }

    .elementor-widget-nf_category_widget {
        display: none;
    }
}
