.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-numbers {
    border: 2px solid #1F92FF;
    padding: 5px 13px;
    border-radius: 4px;
    margin:10px 0px
}

.woocommerce-pagination .page-numbers {
    margin: 6px;
}

@media (max-width: 767px) {

    .woocommerce-pagination {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }


    .woocommerce-pagination .prev,
    .woocommerce-pagination .next {
        width: 100%;
        margin: 5px 5px;
        text-align: center;
    }
}

.woocommerce-pagination .page-numbers:hover {
    border: 2px solid #1F92FF !important;
    padding: 5px 13px;
    border-radius: 4px;
}

.woocommerce-pagination .page-numbers.current {
    border: 2px solid #1F92FF;
    padding: 5px 13px;
    border-radius: 4px;
    background-color: #1F92FF;
}

.filter-group label {
}


.active-filters {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.clear-filters {
    background-color: #212121;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 90px;
    cursor: pointer;
    margin-right: 10px;
    text-align: center;
}

.clear-filters:hover {
    background-color: #1F92FF;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.active-filter-tag {
    background-color: #f8f8f8;
    border:1px solid #eaeaea;
    border-radius: 90px;
    padding: 5px 10px;
    margin: 5px 5px 5px 0px;
    display: flex;
    align-items: center;
}

.active-filter-tag .remove-filter {
    margin-left: 5px;
    cursor: pointer;
    color: #c2185b;
    font-weight: bold;
}

@media (max-width: 767px) {
    .clear-filters {
        margin-bottom:10px;
    }
    .active-filters {
        display:inline-block;
    }
}

.wc-dynamic-filter {
    position: relative;
    padding: 0px;
    margin-bottom: 15px;
}

.filter-scroll-wrapper {
    overflow-x: auto;
    position: relative;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}


.filter-container {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border-bottom: none;
}


.filter-group {
    display: inline-block;
    position: relative;
    border: 1px solid #eee;
    border-radius: 20px;
    background-color: #f8f8f8;
    cursor:pointer;
}

.filter-title {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.filter-title::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('../images/down.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.filter-title.active {
 border-radius:90px;
 background:#eaeaea;

}

.filter-title.active::after {
    background-image: url('../images/up.svg');
}

.filter-content {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 5px);
    background-color: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 12px;
    padding: 2rem;
    z-index: 100;
    min-width: 300px;
    box-shadow: 0 4px 16px #0000001a;
    white-space: normal;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-title.active + .filter-content {
    display: block;
}

.filter-count {
    font-size: 0.9em;
    color: #777;
}

.filter-content div {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.filter-content input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.filter-content label {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
    padding-left: 2.3rem;
    line-height: 1.5rem;
    min-height: 1.5rem;
}

.filter-content label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #929292;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    transition: background-color 0.2s, border-color 0.2s;
}

.filter-content input[type="checkbox"]:checked + label::before {
    background-color: #233142;
    border-color: #233142;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M12.78 4.28a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06L4.5 11.19l7.22-7.22a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.filter-content input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.filter-content label .filter-count {
    margin-left: auto;
    padding-left: 10px;
}
.filter-content label a {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}
.filter-content label a .filter-count {
     margin-left: auto;
     padding-left: 10px;
}


.filter-scroll-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 15 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-decoration: none !important;
    font-family: sans-serif !important;
    box-sizing: border-box !important;
}

.filter-scroll-btn.show {
    display: inline-flex !important;
}

.filter-scroll-btn:hover {
    background-color: #fff !important;
    color: #1F92FF !important;
    border-color: #1F92FF !important;
    box-shadow: 0 4px 12px rgba(31, 146, 255, 0.2) !important;
    transform: translateY(-50%) scale(1.05) !important;
    text-decoration: none !important;
}

.filter-scroll-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(31, 146, 255, 0.3) !important;
}

.filter-scroll-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.filter-scroll-btn-left {
    left: 8px !important;
}

.filter-scroll-btn-right {
    right: 8px !important;
}

@media (max-width: 768px) {
    .filter-scroll-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
    
    .filter-scroll-btn-left {
        left: 5px !important;
    }
    
    .filter-scroll-btn-right {
        right: 5px !important;
    }
}

@media (max-width: 1024px) {
    .filter-group {
        border: 1px solid #eee;
        background-color: #f8f8f8;
    }
    .filter-title.active {
        background-color: #eee;
        color: #333;
    }
     .filter-title.active::after {
     }

    .filter-content {
        min-width: 250px;
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .filter-content-moved {
        min-width: 90vw;
        max-width: 95vw;
        left: 5vw !important;
        right: 5vw;
        width: 90vw;
        box-sizing: border-box;
    }

    .dynamic-h1 {
        font-size:24px;
    }
}

.dynamic-h1 {
    color: var(--e-global-color-primary);
    font-family: "Poppins", Sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0px;
}


.woocommerce ul.products li.product:hover,
#wc-dynamic-filter-results ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#wc-notify-me-popup.wc-notify-me-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#wc-notify-me-popup .wc-notify-me-popup-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: left;
}

#wc-notify-me-popup .wc-notify-me-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #666;
}
#wc-notify-me-popup .wc-notify-me-popup-close:hover {
    color: #000;
}

#wc-notify-me-popup .wc-notify-me-popup-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    color: #333;
}

#wc-notify-me-popup .wc-notify-me-popup-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95em;
    color: #555;
}
#wc-notify-me-popup .wc-notify-me-popup-content p:first-of-type {
    text-align: center;
    margin-bottom: 20px;
}

#wc-notify-me-popup #wc-notify-me-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#wc-notify-me-popup #wc-notify-me-form input[type="text"],
#wc-notify-me-popup #wc-notify-me-form input[type="email"],
#wc-notify-me-popup #wc-notify-me-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

#wc-notify-me-popup #wc-notify-me-form .required {
    color: red;
    margin-left: 3px;
}

#wc-notify-me-popup #wc-notify-me-form button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background-color: #233142;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
#wc-notify-me-popup #wc-notify-me-form button[type="submit"]:hover {
    background-color: #3a4a5e;
}
#wc-notify-me-popup #wc-notify-me-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


#wc-notify-me-popup .wc-notify-me-popup-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    text-align: center;
}
#wc-notify-me-popup .wc-notify-me-popup-message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}
#wc-notify-me-popup .wc-notify-me-popup-message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.filter-content input[type="radio"].radio-styled {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.filter-content input[type="radio"].radio-styled + label {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
    padding-left: 2.3rem;
    line-height: 1.5rem;
    min-height: 1.5rem;
    user-select: none;
}

.filter-content input[type="radio"].radio-styled + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #929292;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    transition: background-color 0.2s, border-color 0.2s;
}

.filter-content input[type="radio"].radio-styled:checked + label::before {
    background-color: #233142;
    border-color: #233142;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M12.78 4.28a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06L4.5 11.19l7.22-7.22a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.filter-content input[type="radio"].radio-styled:focus + label::before {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.wc-dynamic-filter.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wc-dynamic-filter.is-sticky .filter-container {
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.filter-placeholder {
    height: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .woocommerce ul.products[class*="columns-"] li.product {
        width: 48% !important;
        margin: 1% !important;
        box-sizing: border-box !important;
    }

    .product-stock-status-info {
        font-size: 0.75em !important;
    }
}

.filter-content li.filter-disabled {
    opacity: 0.6;
    pointer-events: none; /* Prevents clicks on the whole li */
}

.filter-content li.filter-disabled label {
    cursor: not-allowed;
}

/* Loading Overlay */
#filter-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10000; /* High z-index to be on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

#filter-loading-overlay img {
    width: 80px; /* Adjust size as needed */
    height: 80px;
    animation: spin 1.5s linear infinite;
}

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