/*
 * Evanette – enhetlig typografi (2026-11-19)
 *
 * All ny typografi ligger i den här filen. Den laddas sist i <head> från
 * functions.php, bara om filen finns. Stäng av allt genom att döpa om filen:
 *   mv typografi.css typografi.css.av
 *
 * Förebild: knappen "Filtrera" (mu-plugins/jonet-product-filter.php +
 * Flatsomes knappregel), uppmätt:
 *   storlek  14,4px (.9em av 16px), 12,8px under 601px (.8em)
 *   vikt     400
 *   färg     #333
 *   avstånd  .03em
 *   versaler ja (Flatsome .button/button)
 *
 * Inga Anpassa-inställningar, inbyggda style-attribut eller filtrets CSS är
 * ändrade – allt skrivs över härifrån.
 */

/* ------------------------------------------------------------------
 * 1. Vikter: 400 överallt, 500 för strong/b (och därmed sidfotsrubrikerna).
 *    :not(#wpadminbar *) ger ID-specificitet, så regeln vinner över äldre
 *    !important-regler (pris 200, Lägg i varukorg 200, brödsmulor 500,
 *    lagerstatus 200, accordion 300, rabattbadge 600, Flatsome bolder).
 *    Bara DM Sans 400 och 500 laddas – så försvinner den syntetiska fetstilen.
 * ------------------------------------------------------------------ */
html body *:not(strong):not(b):not(#wpadminbar *),
html body *:not(strong):not(b):not(#wpadminbar *)::before,
html body *:not(strong):not(b):not(#wpadminbar *)::after {
    font-weight: 400 !important;
}
html body :is(strong, b):not(#wpadminbar *),
html body :is(strong, b) *:not(#wpadminbar *) {
    font-weight: 500 !important;
}

/* ------------------------------------------------------------------
 * 2. Produktnamn och sidfotslänkar: #333 i stället för blågrått.
 * ------------------------------------------------------------------ */
html body .product-title,
html body .product-title a,
html body .woocommerce-loop-product__title a,
html body .footer-wrapper a,
html body .footer-wrapper .widget a {
    color: #333;
}
html body .product-title a:hover,
html body .woocommerce-loop-product__title a:hover,
html body .footer-wrapper a:hover {
    color: #000;
}

/* ------------------------------------------------------------------
 * 3. Menyn (samma sidomeny på dator och mobil), brödsmulor och knappar
 *    får Filtrera-knappens storlek, färg och bokstavsavstånd.
 *    Versaler ändras inte: de finns kvar där de finns i dag.
 * ------------------------------------------------------------------ */

/* Menyn: "Menu"-knappen i headern och alla nivåer i sidomenyn */
html body .header-nav .nav-icon .menu-title,
html body #main-menu .nav-sidebar li > a,
html body #main-menu .nav-sidebar li li > a,
html body #main-menu .nav-sidebar li li li > a,
html body .mobile-sidebar .nav > li > a,
html body .mobile-sidebar .sub-menu li > a,
html body .off-canvas .nav-vertical li > a,
html body .nav-slide-header .toggle {
    font-size: 14.4px;
    letter-spacing: .03em;
    color: #333;
}
html body #main-menu .nav-sidebar li > a:hover,
html body .off-canvas .nav-vertical li > a:hover {
    color: #000;
}

/* Brödsmulor (kategori och produktsida) */
html body .woocommerce-breadcrumb.breadcrumbs,
html body .woocommerce-breadcrumb.breadcrumbs a,
html body .woocommerce-breadcrumb.breadcrumbs .divider {
    font-size: 14.4px;
    letter-spacing: .03em;
    color: #333;
}
html body .woocommerce-breadcrumb.breadcrumbs a:hover {
    color: #000;
}

/* Lägg i varukorg: typografin som Filtrera. Svart bakgrund och vit text
 * behålls (primärknapp), annars syns inte texten. */
html body .single_add_to_cart_button.button,
html body .single_add_to_cart_button {
    font-size: 14.4px !important;
    letter-spacing: .03em;
}

/* Övriga knappar med text (Flatsome .button, formulärknappar, blockknappar).
 * Ikonknappar och antal-knappar (+/−) lämnas orörda. Färgerna behålls. */
html body .button:not(.icon):not(.is-form):not(.single_add_to_cart_button),
html body input[type="submit"]:not(.is-form),
html body input[type="button"]:not(.is-form),
html body .wp-block-button__link,
html body .checkout-button {
    font-size: 14.4px;
    letter-spacing: .03em;
}

/* "Ladda in fler": sekundär knapp i variantrutornas stil
 * (vit bakgrund, ram 1px #ccc, hover #999, inga rundade hörn),
 * med samma text och höjd som Filtrera. */
html body .jonet-load-more-wrap .jonet-load-more {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14.4px;
    letter-spacing: .03em;
    line-height: 2.4em;
    padding: .6em 1.2em;
    margin: 0;
}
html body .jonet-load-more-wrap .jonet-load-more:hover {
    background: #fff;
    color: #333;
    border-color: #999;
}
html body .jonet-load-more-wrap .jonet-load-more:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Under 601px är Filtrera .8em = 12,8px – samma brytpunkt här. */
@media (max-width: 600px) {
    html body .header-nav .nav-icon .menu-title,
    html body #main-menu .nav-sidebar li > a,
    html body #main-menu .nav-sidebar li li > a,
    html body #main-menu .nav-sidebar li li li > a,
    html body .mobile-sidebar .nav > li > a,
    html body .mobile-sidebar .sub-menu li > a,
    html body .off-canvas .nav-vertical li > a,
    html body .nav-slide-header .toggle,
    html body .woocommerce-breadcrumb.breadcrumbs,
    html body .woocommerce-breadcrumb.breadcrumbs a,
    html body .woocommerce-breadcrumb.breadcrumbs .divider,
    html body .button:not(.icon):not(.is-form):not(.single_add_to_cart_button),
    html body input[type="submit"]:not(.is-form),
    html body input[type="button"]:not(.is-form),
    html body .wp-block-button__link,
    html body .checkout-button {
        font-size: 12.8px;
    }
    html body .single_add_to_cart_button.button,
    html body .single_add_to_cart_button {
        font-size: 12.8px !important;
    }
    html body .jonet-load-more-wrap .jonet-load-more {
        font-size: 12.8px;
        padding: .5em .8em;
    }
}

/* ------------------------------------------------------------------
 * 4. Cookie-bannern (FAZ) ärver sidans typsnitt i stället för systemtypsnitt.
 * ------------------------------------------------------------------ */
html body #faz-consent,
html body #faz-consent *,
html body .faz-modal,
html body .faz-modal * {
    font-family: inherit !important;
}
