.tf-product-archive-shortcode {
    position: relative;
}

.tf-product-shortcode-search {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 750px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.tf-product-shortcode-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
}

.tf-product-shortcode-search button {
    min-width: 110px;
    height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.tf-product-shortcode-search button:hover {
    background: #181818;
}

.tf-product-shortcode-results {
    position: relative;
    transition: opacity 0.2s ease;
}

.tf-product-archive-shortcode.is-loading .tf-product-shortcode-results {
    opacity: 0.45;
    pointer-events: none;
}

.tf-product-archive-shortcode.is-loading::after {
    content: "";
    position: absolute;
    top: 84px;
    left: 50%;
    z-index: 10;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: tf-product-shortcode-spin 0.7s linear infinite;
}

.tf-product-shortcode-summary {
    margin-bottom: 20px;
}

.tf-product-shortcode-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.tf-product-shortcode-pagination .page-numbers {
position: relative;
    color: #181818;
    font-size: 18px;
    font-weight: 600;
    margin-right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #E4E4E4;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    cursor: pointer;
        padding: 0;
        margin: 0;
}

.tf-product-shortcode-pagination .page-numbers.current,
.tf-product-shortcode-pagination .page-numbers:hover {
    color: #fff !important;
    background: var(--theme-primary-color) !important;
    border-color: var(--theme-primary-color) !important;
}

.tf-product-shortcode-pagination .page-numbers.current {
    cursor: default;
}

.tf-product-shortcode-pagination .page-numbers.dots {
    border: 0;
    cursor: default;
}

.tf-product-shortcode-empty {
    padding: 36px 20px;
    text-align: center;
}

@keyframes tf-product-shortcode-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575px) {
    .tf-product-shortcode-search {
        flex-direction: column;
    }

    .tf-product-shortcode-search button {
        width: 100%;
    }
}
