/* 
 * Custom Font Override System
 * Dynamic font replacement based on user selection
 */

/* CSS Variables will be set by PHP */
:root {
    --main-font-family: "Switzer";
}

/* Ultra high specificity font override */
html * {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

html body * {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

html body {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

/* Override every possible element with maximum specificity */
html body div,
html body span,
html body p,
html body a,
html body h1,
html body h2, 
html body h3,
html body h4,
html body h5,
html body h6,
html body ul,
html body ol,
html body li,
html body button,
html body input,
html body textarea,
html body select,
html body label,
html body nav,
html body header,
html body footer,
html body main,
html body section,
html body article,
html body aside {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

/* Theme specific overrides with maximum specificity */
html body .site,
html body .site-header,
html body .site-title,
html body .site-description,
html body .main-navigation,
html body .entry-title,
html body .entry-content,
html body .widget-title,
html body .widget,
html body .site-footer,
html body .site-info {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

/* EDD specific with maximum specificity */
html body .edd_price,
html body .edd-cart-widget,
html body .edd-download-info,
html body .edd_purchase_form,
html body .edd-add-to-cart,
html body .download-price,
html body .download-cart-btn {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

/* Navigation and menu items */
html body #primary-menu,
html body .nav-menu,
html body .menu-item,
html body .menu-item a {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}

/* Buttons and form elements */
html body .btn,
html body .button,
html body [type="submit"],
html body [type="button"],
html body [type="text"],
html body [type="email"] {
    font-family: var(--main-font-family, "Switzer"), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}