// Breakpoints
$breakpoint-xs: 480px;
$breakpoint-sm: 576px;
$breakpoint-md: 768px;
$breakpoint-lg: 992px;
$breakpoint-xl: 1200px;

// Astra support for WCPS
html :where([style*=border-width]) {
    border-style: none;
}

/* -------------- AJAX Loading States -------------- */
.wcps-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

/* Only apply the CSS loader to elements that don't have their own loading mechanism */
.wcps-loading:not(.wcps-ajax-add-to-cart):not(.wcps-compare-wishlist)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a6cf7;
    border-radius: 50%;
    animation: wcps-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes wcps-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Filter active states */
.wcps-filter.active {
    background-color: #4a6cf7 !important;
    color: white !important;
}

.wcps-filter:hover {
    background-color: #3b5bdb !important;
    color: white !important;
}

/* No products message */
.wcps-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}





/* -------------- END -------------- */



/* -------------- Compare css  -------------- */

/* Compare Button */
.wcps-compare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wcps-compare-button:hover {
    background-color: #ebebeb;
    border-color: #c8c8c8;
}

.wcps-compare-button.added,
.wcps-compare-button.in-compare {
    background-color: #f0f9ff;
    border-color: #90cdf4;
    color: #3182ce;
}

.wcps-compare-button .wcps-icon {
    margin-right: 5px;
}

.wcps-icon-compare::before {
    content: "\21C5";
    /* Unicode for up/down arrow */
}

.wcps-icon-close::before {
    content: "\00D7";
    /* Unicode for × character */
}

.wcps-compare-button.wcps-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Compare Bar */
.wcps-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.wcps-compare-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
}

.wcps-compare-bar-items {
    display: flex;
    overflow-x: auto;
    max-width: 75%;
    padding-right: 15px;
}

.wcps-compare-bar-item {
    flex: 0 0 auto;
    width: 100px;
    margin-right: 10px;
    text-align: center;
    position: relative;
}

.wcps-compare-bar-item-img {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 5px;
}

.wcps-compare-bar-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
}

.wcps-compare-bar-item-name {
    font-size: 12px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wcps-compare-bar-item-remove {
    position: absolute;
    top: 0px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 1;
}

.wcps-compare-bar-actions {
    display: flex;
    align-items: center;
}

.wcps-compare-bar-clear {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 12px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.wcps-compare-view-button {
    background-color: #3182ce;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}