/**
 * Cart Icon Fix
 * Fixes Font Awesome icon distortion in cart button
 */

/* Reset Font Awesome styles for cart icon */
.nf-cart-wrapper .nf-cart-icon i,
.nf-cart-button .nf-cart-icon i,
.wcc-sidecart-toggle .nf-cart-icon i,
.elementor-widget .nf-cart-icon i {
    /* Reset problematic font shorthand */
    font: inherit !important;
    
    /* Set proper Font Awesome font family */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    
    /* Proper font settings */
    font-style: normal !important;
    font-weight: 900 !important; /* Font Awesome solid icons need weight 900 */
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    
    /* Font size should be inherited or set by widget */
    font-size: inherit;
    
    /* Display settings */
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    
    /* Ensure no text decoration */
    text-decoration: none !important;
    
    /* Prevent squeezing */
    width: auto !important;
    height: auto !important;
    min-width: 1em !important;
    
    /* Center the icon */
    text-align: center !important;
    vertical-align: middle !important;
}

/* Specific fix for shopping cart icon */
.nf-cart-icon i.fa-shopping-cart:before,
.nf-cart-icon i.fa-cart-shopping:before,
.nf-cart-icon i.fas.fa-shopping-cart:before {
    /* Ensure icon displays correctly */
    content: "\f07a" !important; /* Shopping cart icon code */
}

/* Container fix to prevent overflow */
.nf-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
    
    /* Prevent container from squeezing content */
    flex-shrink: 0 !important;
    min-width: 1.5em !important;
}

/* Ensure proper spacing */
.nf-cart-wrapper,
.nf-cart-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Fix for Elementor editor */
.elementor-editor-active .nf-cart-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}