/**
 * Windows 7 + Firefox Compatibility Fix
 * Fixes pale/invisible text on older Windows systems
 *
 * PROBLEM: Windows 7 + old Firefox doesn't support WOFF2 fonts
 * SOLUTION: TTF fallback + font rendering fixes
 */

/* =================================
   FORCE PROPER FONT RENDERING
   ================================= */

/* Global font smoothing - CRITICAL for Windows 7 */
html,
body,
* {
    -webkit-font-smoothing: subpixel-antialiased !important;
    -moz-osx-font-smoothing: auto !important;
    text-rendering: optimizeLegibility !important;
}

/* Remove any GPU acceleration that causes pale text */
.products-wrapper,
.products.featured,
.products.featured *,
.filter-options-content,
.page-header {
    -webkit-transform: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* =================================
   ENSURE FONTS LOAD PROPERLY
   ================================= */

/* Force Montserrat-G to load with proper weight */
body,
.products.featured .name,
.filter-options-content .items .item a {
    font-family: 'Montserrat-G', Arial, Helvetica, sans-serif !important;
    font-synthesis: weight style !important;
}

/* =================================
   WINDOWS 7 SPECIFIC FIXES
   ================================= */

@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Chrome/Safari on Windows */
    * {
        -webkit-font-smoothing: subpixel-antialiased !important;
    }
}

/* Firefox specific */
@-moz-document url-prefix() {
    body {
        -moz-osx-font-smoothing: auto !important;
    }

    /* Ensure proper font weight rendering */
    .products.featured .name {
        font-weight: 600 !important;
        text-rendering: geometricPrecision !important;
    }
}

/* =================================
   REMOVE OPACITY/FILTERS
   ================================= */

/* Remove any opacity that makes text pale */
.products-wrapper,
.products.featured,
.products.featured li,
.products.featured a,
.products.featured .name,
.filter-options-content {
    opacity: 1 !important;
    filter: none !important;
}

/* =================================
   CLEARTYPE OPTIMIZATION
   ================================= */

/* Optimize for Windows ClearType */
@media screen and (min-resolution: 96dpi) {
    body {
        -ms-text-size-adjust: 100% !important;
        -webkit-text-size-adjust: 100% !important;
    }
}
