/* Shared Qooy typography, including pages loaded after client-side navigation. */
:root {
  --qf-font-body: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --qf-font-heading: var(--qf-font-body);
}

/* Brand font takes precedence over legacy page-level font shorthands,
   including stylesheets loaded later during navigation. Icons use SVG. */
html,
body,
body *,
body *::before,
body *::after {
  font-family: var(--qf-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--qf-font-heading);
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

/* Keep category titles on the same heading face in cards, menus and drawers.
   Explicit scope also wins over font shorthands in lazy-loaded page styles. */
body .qf-home .qf-section__head h2,
body .qf-home .qf-cat__body h3,
body .qf-home .qf-subshop__group h3,
body .qf-navbar .qf-navbar__dropdown-heading,
body .qf-navbar .qf-navbar__dropdown-group:not(:has(.qf-navbar__dropdown-heading))::before,
body .qf-mobile-drawer__group-heading {
  font-family: var(--qf-font-heading);
  font-weight: 700;
  line-height: 1.35;
}

body .qf-home .qf-cat__body p,
body .qf-home .qf-subshop__name {
  font-family: var(--qf-font-body);
}
