/* ============================================================
   QREST header — fonts come from the theme, nothing is loaded here.
   Colors/fonts come from the Qrest UI design system (--q-*), see qrest-ui.css.
   --qr-sans / --qr-serif read Avada's typography variables (:root):
   body = Inter, headings = Gentium Book Plus at the time of writing.
   Change fonts in Avada → Global Options → Typography, not here.
   ============================================================ */

:root {
  /* Токены из Qrest UI (qrest-ui.css). Старые имена --qr-* остаются алиасами;
     fallback-значения работают, если плагин Qrest UI не активен. */
  --qr-orange: var(--q-orange, #DE8527);
  --qr-orange-deep: var(--q-orange-deep, #C4700F);
  --qr-ink: var(--q-ink, #021413);
  --qr-ink-2: var(--q-text-body, #424D4E);
  --qr-mute: var(--q-text-muted-strong, #75716B);
  --qr-line: var(--q-border, #E6E6E6);
  --qr-line-soft: var(--q-border, #E6E6E6);
  --qr-paper: var(--q-cream, #FFF9F2);
  --qr-cream: var(--q-sand-light, #F7EFE4);
  --qr-white: var(--q-white, #ffffff);

  --qr-sans: var(--q-font-body, var(--body_typography-font-family, Inter, Arial, Helvetica, sans-serif));
  --qr-serif: var(--q-font-heading, var(--h3_typography-font-family, Georgia, serif));

  /* theme hooks (overridden per shell) */
  --accent: var(--qr-orange);
  --bg: var(--qr-white);
  --fg: var(--qr-ink);
}

*, *::before, *::after { box-sizing: border-box; }

.qr-page {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--qr-cream);
  font-family: var(--qr-sans);
  color: var(--qr-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.qr-shell { container-type: inline-size; container-name: hdr; position: relative; z-index: 30; }
.qr-page a { text-decoration: none; color: inherit; }
.qr-page button { font-family: inherit; cursor: pointer; }
.qr-page ul { list-style: none; margin: 0; padding: 0; }

/* ---- placeholder image tile ---------------------------------- */
.qr-tile {
  position: relative;
  overflow: hidden;
  background-color: #E3DDD5;
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 10px, transparent 10px 20px);
  display: flex;
  align-items: flex-end;
  border-radius: 4px;
}
.qr-tile.is-dark {
  background-color: #4F463C;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px);
}
.qr-tile__cap {
  font-family: 'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: #4B4742;
  background: rgba(255,255,255,0.72);
  padding: 2px 6px;
  margin: 6px;
  border-radius: 3px;
  text-transform: lowercase;
}
.qr-tile.is-dark .qr-tile__cap { background: rgba(0,0,0,0.45); color: #E4E4E4; }

/* ---- promo bar ----------------------------------------------- */
.qr-promo {
  background: linear-gradient(90deg, var(--qr-orange-deep), var(--qr-orange));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  height: 38px; padding: 0 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow: hidden;
  transition: height 0.32s cubic-bezier(.3,.7,.2,1), opacity 0.2s;
}
.qr-promo__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-promo__x { position: absolute; right: 14px; background: none; border: 0; color: rgba(255,255,255,.85); font-size: 16px; line-height: 1; padding: 4px; }

/* ---- USP strip ----------------------------------------------- */
.qr-usp {
  background: var(--qr-cream);
  border-top: 1px solid var(--qr-line-soft);
  height: 34px; overflow: hidden;
  display: flex; align-items: center;
  /* same horizontal inset as .hB-bar so both rows line up on the left & right */
  padding: 0 clamp(16px, 3.2cqw, 48px);
  transition: height 0.32s cubic-bezier(.3,.7,.2,1), opacity 0.2s, border-color .3s;
  container-type: inline-size;
}
.qr-usp__track { display: flex; align-items: center; gap: 40px; flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.qr-usp__item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--qr-ink-2); letter-spacing: 0.02em; white-space: nowrap; }
.qr-usp__item svg { color: var(--accent); flex: none; }
.qr-usp__rating { flex: none; display: inline-flex; align-items: center; }
/* rating lives in the 2nd line only on desktop; once the burger appears it moves to the drawer */
@container (max-width: 999px) { .qr-usp__rating { display: none; } }
@container (max-width: 760px) { .qr-usp__item:nth-child(n+2) { display: none; } .qr-usp__track { justify-content: flex-start; } }

/* ---- icon buttons + badge ------------------------------------ */
.qr-icobtn {
  position: relative; width: 42px; height: 42px; border: 0; background: transparent;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg); transition: background .18s, color .18s;
}
.qr-icobtn:hover { background: rgba(232,228,221,0.7); }
.qr-shell.is-dark .qr-icobtn:hover { background: rgba(255,255,255,0.1); }
.qr-badge {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ---- search overlay ------------------------------------------ */
.qr-search { position: absolute; inset: 0 0 auto 0; z-index: 40; background: var(--bg);
  border-bottom: 1px solid var(--qr-line); display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 4cqw, 56px); height: 84px;
  transform: translateY(-6px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; }
.qr-search.is-open { opacity: 1; transform: none; pointer-events: auto; }
.qr-search svg { color: var(--qr-mute); flex: none; }
.qr-search input { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--qr-sans);
  font-size: clamp(16px, 2.4cqw, 22px); color: var(--fg); font-weight: 500; }
.qr-search input::placeholder { color: var(--qr-mute); }
.qr-search__close { border: 0; background: transparent; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--qr-mute); padding: 8px; }
@container (max-width: 620px) { .qr-search { height: 68px; } }

/* ---- mobile / tablet drawer ---------------------------------- */
.qr-scrim { position: absolute; inset: 0; z-index: 45; background: rgba(20,16,12,0.42);
  opacity: 0; pointer-events: none; transition: opacity .28s; }
.qr-scrim.is-open { opacity: 1; pointer-events: auto; }
.qr-drawer {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 46; width: min(420px, 86%);
  background: var(--qr-paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.3,.7,.2,1);
  box-shadow: -20px 0 60px rgba(20,16,12,0.18);
}
.qr-drawer.is-open { transform: none; }
.qr-drawer__top { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--qr-line); }
.qr-drawer__close { border: 0; background: var(--qr-cream); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--qr-ink); }
.qr-drawer__rating { display: flex; justify-content: center; padding: 12px 18px; border-bottom: 1px solid var(--qr-line-soft); }
.qr-drawer__search { margin: 14px 18px 6px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--qr-line); border-radius: 100px; padding: 11px 16px; color: var(--qr-mute); }
.qr-drawer__search input { border: 0; outline: 0; background: transparent; font-family: var(--qr-sans);
  font-size: 15px; flex: 1; color: var(--qr-ink); }
.qr-drawer__body { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.qr-page .qr-drawer__allprod { display: flex; align-items: center; gap: 10px; margin: 6px 18px 12px; padding: 13px 16px;
  background: var(--qr-ink); color: #fff; border-radius: 12px; font-size: 14.5px; font-weight: 700; }
.qr-drawer__allprod svg:last-child { margin-left: auto; }
.qr-acc { border-bottom: 1px solid var(--qr-line-soft); }
.qr-acc__head { width: 100%; border: 0; background: transparent; display: flex; align-items: center;
  justify-content: space-between; padding: 16px 18px; font-family: var(--qr-sans); font-size: 16px;
  font-weight: 700; color: var(--qr-ink); }
.qr-acc__head .qr-chev { transition: transform .25s; color: var(--qr-mute); }
.qr-acc.is-open .qr-chev { transform: rotate(180deg); }
.qr-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qr-acc.is-open .qr-acc__panel { grid-template-rows: 1fr; }
.qr-acc__inner { overflow: hidden; }
.qr-acc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 18px 18px; }
.qr-acc__cell { display: flex; flex-direction: column; gap: 7px; }
.qr-acc__cell .qr-tile { aspect-ratio: 4/3; }
.qr-acc__cell span { font-size: 12.5px; font-weight: 600; color: var(--qr-ink-2); }
.qr-drawer__links { padding: 8px 18px 22px; display: flex; flex-direction: column; }
.qr-drawer__links a { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--qr-ink);
  border-bottom: 1px solid var(--qr-line-soft); display: flex; align-items: center; gap: 8px; }
.qr-drawer__foot { padding: 14px 18px; border-top: 1px solid var(--qr-line); display: flex; flex-direction: column; gap: 10px; }
.qr-page .qr-drawer__cta { display: flex; align-items: center; justify-content: center; background: var(--qr-orange);
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; padding: 13px; border-radius: 12px; }
.qr-drawer__cta:hover { background: var(--qr-orange-deep); }
.qr-page .qr-drawer__tel { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px;
  font-weight: 600; color: var(--qr-ink-2); }
.qr-drawer__tel svg { color: var(--qr-orange); }
.qr-page .qr-sale { color: var(--qr-orange-deep); }


.dir-b { --bg: var(--qr-white); --fg: var(--qr-ink); --accent: var(--qr-orange); }
.dir-b .hB-shell { background: var(--bg); border-bottom: 1px solid var(--qr-line); }

.hB-bar { display: flex; align-items: center; gap: clamp(12px, 1.8cqw, 24px);
  padding: 0 clamp(16px, 3.2cqw, 48px); height: 70px; transition: height .32s cubic-bezier(.3,.7,.2,1); }
.dir-b.scrolled .hB-bar { height: 56px; }
.hB-logo { flex: none; transition: transform .3s; }
.dir-b.scrolled .hB-logo { transform: scale(0.9); transform-origin: left center; }

.hB-prod { display: inline-flex; align-items: center; gap: 9px; flex: none;
  background: var(--qr-ink); color: #fff; border: 0; border-radius: 100px;
  padding: 11px 20px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; transition: background .2s; }
.hB-prod:hover, .hB-prod.is-active { background: var(--qr-orange-deep); }
.hB-prod .qr-chev { width: 12px; height: 12px; transition: transform .2s; }
.hB-prod.is-active .qr-chev { transform: rotate(180deg); }

.hB-quick { display: flex; align-items: center; gap: clamp(8px, 1.4cqw, 22px); flex: 1; min-width: 0; }
.hB-quick a { font-size: 13.5px; font-weight: 700; color: var(--fg); white-space: nowrap; transition: color .15s; }
.hB-quick a:hover { color: var(--accent); }
.hB-quick a.is-sale { color: var(--qr-orange-deep); }
.hB-actions { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.qr-page .hB-cta { display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--qr-orange); color: #fff; border-radius: 100px; padding: 10px 20px; margin-left: 6px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; transition: background .2s; }
.hB-cta:hover { background: var(--qr-orange-deep); }
.hB-burger { display: none; }

/* ---- two-pane mega ---- */
.hB-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 35; background: var(--bg);
  border-top: 1px solid var(--qr-line); box-shadow: 0 30px 50px -28px rgba(30,22,12,0.4);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
.hB-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.hB-mega__in { display: grid; grid-template-columns: 260px 1fr; max-width: 1320px; margin: 0 auto; min-height: 360px; }
.hB-rail { border-right: 1px solid var(--qr-line); padding: 16px 0; display: flex; flex-direction: column; }
.hB-rail__list { display: flex; flex-direction: column; }
.hB-rail button { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; border: 0; background: transparent; padding: 13px clamp(18px,2cqw,28px); text-align: left;
  font-family: var(--qr-sans); font-size: 15px; font-weight: 700; color: var(--qr-ink-2);
  border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.hB-rail button:hover, .hB-rail button.is-active { background: var(--qr-cream); color: var(--qr-ink); border-left-color: var(--accent); }
.hB-rail button .qr-chev { transform: rotate(-90deg); width: 12px; height: 12px; opacity: .45; }
.qr-page .hB-rail__all { display: inline-flex; align-items: center; gap: 9px; margin: 14px clamp(18px,2cqw,28px) 0;
  padding-top: 16px; border-top: 1px solid var(--qr-line-soft); font-size: 13px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.hB-rail__all svg { width: 16px; height: 16px; }
.hB-pane { padding: 26px clamp(20px,2.6cqw,40px) 30px; }
.hB-pane__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.hB-pane__top h3 { font-family: var(--qr-serif); font-size: 26px; font-weight: var(--h3_typography-font-weight, 400); margin: 0; color: var(--qr-ink); }
.hB-pane__top p { margin: 4px 0 0; font-size: 13.5px; color: var(--qr-mute); max-width: 440px; }
.qr-page .hB-pane__all { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.hB-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hB-card .qr-tile { aspect-ratio: 5/4; margin-bottom: 9px; }
.hB-card__t { font-size: 14px; font-weight: 700; color: var(--qr-ink); display: block; }
.hB-card__s { font-size: 12px; font-weight: 500; color: var(--qr-mute); display: block; margin-top: 1px; }
.hB-card:hover .qr-tile { outline: 2px solid var(--accent); outline-offset: 2px; }
.hB-card:hover .hB-card__t { color: var(--accent); }
.hB-sub { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--qr-line-soft); }
.hB-sub a { font-size: 13px; font-weight: 600; color: var(--qr-ink-2); }
.hB-sub a:hover { color: var(--accent); }

@container (max-width: 999px) {
  .hB-quick { display: none; }
  .hB-cta { display: none; }
  .hB-burger { display: inline-flex; }
  .hB-bar { height: 64px; }
}
@container (max-width: 599px) {
  .hB-bar { height: 56px; }
  .hB-prod { display: none; }
  .hB-mega { display: none; }
}


/* ============================================================
   PRODUCTION OVERRIDES (q-rest.nl / Avada)
   - the prototype root .qr-page was a full-height artboard;
     in a live header it must not lock height or clip the mega.
   - multi-pane mega: all category panes are server-rendered,
     JS toggles .is-active (instead of React re-rendering one).
   ============================================================ */
.qr-page.qrest-hdr { position: relative; z-index: 9999; height: auto; overflow: visible; background: transparent; }

/* the mega panel is positioned to .qr-shell; let it overflow downward */
.qrest-hdr .qr-shell { overflow: visible; }

/* drawer + scrim are portaled to <body> by the JS so they cover the full
   viewport regardless of the header's height / overflow / transform.
   (the prototype kept them inside a full-height artboard; a live header is
   short, so absolute positioning would collapse the drawer.) */
.qr-scrim  { position: fixed; z-index: 2147483646; }
.qr-drawer { position: fixed; z-index: 2147483647; font-family: var(--qr-sans); color: var(--qr-ink); }

/* while the mobile menu is open, hide floating chat/WhatsApp buttons so they
   don't paint over the drawer (they sit behind it anyway). Global rule, but
   only active when our drawer adds .qr-menu-open to <html>. */
html.qr-menu-open .fb-icon-element,
html.qr-menu-open .fusion-whatsapp,
html.qr-menu-open [class*="whatsapp" i],
html.qr-menu-open [id*="whatsapp" i],
html.qr-menu-open [class*="joinchat" i],
html.qr-menu-open [class*="ht-ctc" i],
html.qr-menu-open [class*="ht_ctc" i],
html.qr-menu-open [class*="chaty" i],
html.qr-menu-open [id*="chaty" i],
html.qr-menu-open [class*="wa-chat" i],
html.qr-menu-open [class*="social-chat" i],
html.qr-menu-open [class*="floating-button" i],
html.qr-menu-open [class*="floating-wpp" i],
html.qr-menu-open [class*="elementor-floating" i],
html.qr-menu-open [class*="e-floating-buttons" i] { display: none !important; }

/* SSR tabbed panes inside the mega */
.qrest-hdr .hB-pane { display: none; }
.qrest-hdr .hB-pane.is-active { display: block; }

/* hide the cart badge when empty (set by PHP/JS) */
.qrest-hdr .qr-badge[data-count="0"] { display: none; }

/* tiles keep one consistent format across ALL categories (a 2-tile section
   like Onderhoud must not stretch its tiles wider than a 3-tile section).
   Fixed 3-column grid → identical tile size everywhere; fewer tiles just
   leave the trailing column empty. */
.qrest-hdr .hB-grid { grid-template-columns: repeat(3, 1fr); }

/* 16px radius on every product image (desktop + drawer/responsive) */
.qr-tile { border-radius: 16px; }

/* promo label over a product tile (e.g. "Nieuwste model", "meest verkochte") */
.qr-tile__badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--qr-orange); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; padding: 5px 9px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(20,16,12,.28);
}
/* drawer badge: must beat `.qr-acc__cell span` (which set dark colour + 600
   weight, since the badge is also a <span> inside the cell). Force white,
   heavier, slightly larger for readability. */
.qr-acc__cell .qr-tile__badge {
  top: 6px; left: 6px; font-size: 9.5px; font-weight: 800; color: #fff;
  padding: 4px 7px; border-radius: 5px; letter-spacing: .02em;
}

/* "Op Voorraad" keeps the same look as "Alle producten" (plain rail link /
   black drawer pill) but carries a green "in-stock" status dot on the right. */
.qr-statusdot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #22c55e;                       /* in-stock green */
}
/* pulse ring on a pseudo-element, transform + opacity only (compositor, no repaint);
   scale(2.5) on an 8px dot = the old 6px box-shadow spread */
.qr-statusdot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(34,197,94,.5);
  animation: qrStatusPulse 2s ease-out infinite;
}
/* in the rail the dot sits at the far right of the link */
.hB-rail__all .qr-statusdot { margin-left: 6px; }
/* in the drawer pill the arrow is pushed right; keep the dot just before it */
.qr-drawer__allprod .qr-statusdot { margin-left: 4px; }
@keyframes qrStatusPulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(2.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .qr-statusdot::before { animation: none; } }

/* ============================================================
   Promo bar — scrolling marquee when the text doesn't fit
   (JS adds .is-marquee + a duplicated copy; otherwise the text
   stays static & centred as before).
   ============================================================ */
.qr-promo__track { display: inline-flex; align-items: center; }
.qr-promo.is-marquee { justify-content: flex-start; }
.qr-promo.is-marquee .qr-promo__track {
  flex: none; width: max-content; will-change: transform;
  animation: qrMarquee var(--qr-marquee-dur, 18s) linear infinite;
}
.qr-promo.is-marquee .qr-promo__txt {
  overflow: visible; text-overflow: clip; padding-right: 2.75rem;
}
.qr-promo.is-marquee:hover .qr-promo__track { animation-play-state: paused; }
@keyframes qrMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .qr-promo.is-marquee { overflow-x: auto; }
  .qr-promo.is-marquee .qr-promo__track { animation: none; }
  .qr-promo.is-marquee .qr-promo__txt[data-clone] { display: none; }
}

/* mobile: in the prototype the CTA-hide rule (.hB-cta{display:none}) inside the
   container query was overridden by the higher-specificity base rule
   `.qr-page .hB-cta`, so "Afspraak" leaked into the mobile bar and pushed the
   burger off-screen. Re-hide with matching scope + higher specificity. */
@container (max-width: 999px) {
  .qr-page.qrest-hdr .hB-cta    { display: none; }
  .qr-page.qrest-hdr .hB-burger { display: inline-flex; }
}

/* promo bar — warm "sunset" gradient (espresso → amber) with more depth than the
   old flat gold. Glowing gradient hairlines on the top & bottom edges fade out
   toward the sides; an inset top highlight + soft text-shadow keep it premium. */
.qrest-hdr .qr-promo {
  position: relative;
  background: linear-gradient(100deg,
    #893828 0%,
    #CB5A00 50%,
    #DF8B1E 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  text-shadow: 0 1px 1px rgba(55,28,8,0.38);
}
.qrest-hdr .qr-promo::before,
.qrest-hdr .qr-promo::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,222,170,0.70) 28%,
    rgba(255,248,236,0.95) 50%,
    rgba(255,222,170,0.70) 72%,
    transparent 100%);
}
.qrest-hdr .qr-promo::before { top: 0; }
.qrest-hdr .qr-promo::after  { bottom: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
/* mega: animate the pane + stagger the tiles when a category is selected */
.qrest-hdr .hB-pane.is-active { display: block; animation: qrPaneIn .34s cubic-bezier(.22,.7,.22,1) both; }
@keyframes qrPaneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qrest-hdr .hB-pane.is-active .hB-card { animation: qrTileIn .42s cubic-bezier(.22,.7,.22,1) both; }
.qrest-hdr .hB-pane.is-active .hB-card:nth-child(1) { animation-delay: .04s; }
.qrest-hdr .hB-pane.is-active .hB-card:nth-child(2) { animation-delay: .10s; }
.qrest-hdr .hB-pane.is-active .hB-card:nth-child(3) { animation-delay: .16s; }
.qrest-hdr .hB-pane.is-active .hB-card:nth-child(4) { animation-delay: .22s; }
@keyframes qrTileIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* tile image zoom on hover */
.qrest-hdr .hB-card .qr-tile { transition: transform .45s cubic-bezier(.2,.7,.2,1), outline-color .15s; will-change: transform; }
.qrest-hdr .hB-card:hover .qr-tile { transform: scale(1.045); }

/* sticky on mobile: keep the logo size constant (no abrupt shrink) */
@container (max-width: 599px) { .dir-b.scrolled .hB-logo { transform: none; } }

/* ============================================================
   USP strip — on mobile rotate through all 3 benefits (fade/slide)
   instead of showing only the first one.
   ============================================================ */
@container (max-width: 760px) {
  .qrest-hdr .qr-usp__track { justify-content: center; position: relative; height: 100%; padding: 0 18px; }
  .qrest-hdr .qr-usp__item {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, calc(-50% + 10px)); opacity: 0; pointer-events: none;
    transition: opacity .45s ease, transform .45s cubic-bezier(.22,.7,.22,1);
    display: flex !important;            /* override the old "hide items 2+" rule */
  }
  .qrest-hdr .qr-usp__item.is-current { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .qrest-hdr .hB-pane.is-active,
  .qrest-hdr .hB-pane.is-active .hB-card { animation: none; }
  .qrest-hdr .hB-card:hover .qr-tile { transform: none; }
}

/* ============================================================
   Re-assert header link / icon colours. The theme colours links via
   `#main a` (orange, ID specificity), which otherwise paints every header
   link + icon orange. !important guarantees our component colours win.
   ============================================================ */
/* no underline anywhere in the header (the theme adds it on a:hover) */
.qrest-hdr a, .qrest-hdr a:hover, .qrest-hdr a:focus { text-decoration: none !important; }

/* top-nav links: dark by default, orange only on hover (uniform — incl. Op Voorraad) */
.qrest-hdr .hB-quick a            { color: var(--fg) !important; }
.qrest-hdr .hB-quick a:hover      { color: var(--accent) !important; }
.qrest-hdr .qr-icobtn             { color: var(--fg) !important; }
.qrest-hdr .hB-cta                { color: #fff !important; }
.qrest-hdr .hB-rail__all,
.qrest-hdr .hB-pane__all          { color: var(--accent) !important; }
.qrest-hdr .hB-card__t            { color: var(--qr-ink) !important; }
.qrest-hdr .hB-card:hover .hB-card__t { color: var(--accent) !important; }
.qrest-hdr .qr-drawer__allprod,
.qrest-hdr .qr-drawer__cta        { color: #fff !important; }
.qrest-hdr .qr-acc__head,
.qrest-hdr .qr-acc__cell span,
.qrest-hdr .qr-drawer__links a    { color: var(--qr-ink) !important; }
/* …but the promo badge overlaying a drawer tile is also a <span> inside the
   cell — keep its text white (matches desktop), beating the dark-ink rule above. */
.qrest-hdr .qr-acc__cell .qr-tile__badge { color: #fff !important; }

/* Language switcher (qrest-translate, both variants: bar dropdown + drawer accordion).
   Its own CSS colours these links with class selectors only, which lose to the theme
   the same way every other header link does — so every language rendered orange.
   Same treatment as the rest of this block: ink by default, accent for the active one.
   Verified on the live page: disabling the theme stylesheet flips these to #1c1c1c. */
.qrest-hdr .qr-lang__menu a,
.qrest-hdr .qr-lang-acc__list a         { color: var(--qr-ink) !important; }
.qrest-hdr .qr-lang__menu a.is-on,
.qrest-hdr .qr-lang-acc__list a.is-on   { color: var(--accent) !important; }
/* Size of the bar pill. The plugin asks for 12px/600 via `font: 600 12px/1 inherit`,
   but `inherit` is not a valid family inside the `font` shorthand, so the browser drops
   the whole declaration and the pill inherits the theme's 18px/300 — measured 90.6×47px
   next to 42px icon buttons. Restated here as longhands (family inherits anyway).
   The broken shorthand is still in qrest-translate; fix it there whenever that plugin is
   touched next, this override is harmless either way. */
.qrest-hdr .qr-lang { font-size: 12px; font-weight: 600; line-height: 1; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qrest-hdr * { transition-duration: .01ms !important; }
}
