/**
 * Global Utilities
 * Loaders and utility classes
 */

/* Infinite Scroll Loader */
.infinite-scroll-loader,
.infinite-scroll-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #8396AB;
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #E5E5E5;
    border-top-color: #80C242;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-end {
    color: #8396AB;
    font-style: italic;
}

/* All Products Section Loader */
.all-products__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #8396AB;
}

.all-products__load-more {
    text-align: center;
    padding: 20px;
}

/* Visually Hidden (screen reader only) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 15px 20px;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: 8px;
    z-index: 100000;
    text-decoration: none;
    font-weight: 600;
}
