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

/* Reset Font Awesome styles for cart icon */
.nfds-sidecart-wrapper .nfds-sidecart-icon i,
.nfds-sidecart-button .nfds-sidecart-icon i,
.wcc-sidecart-toggle .nfds-sidecart-icon i,
.elementor-widget .nfds-sidecart-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;
    
    /* Größe wird durch nfds-button-reset.css definiert */
    
    /* Center the icon */
    text-align: center !important;
    vertical-align: middle !important;
}

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

/* Icon Container - Größe wird durch nfds-button-reset.css definiert */

/* Spacing wird durch nfds-button-reset.css und Widget-Selektoren definiert */

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