/* Wspólny selektor w przyklejonym nagłówku; bez zmian pozostałych kontrolek. */
:root { --site-header-height: 130px; }
html { scroll-padding-top: calc(var(--site-header-height) + 12px); }
.header .topline > .wrap {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto 72px;
  gap: 8px 16px;
  align-items: center;
  padding-block: 2px;
}
.header-store { position: relative; justify-self: start; min-width: 0; }
.header-store summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 3px 6px;
  border-radius: 7px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.header-store summary::-webkit-details-marker { display: none; }
.header-store summary:hover, .header-store[open] summary { background: #ffffff18; }
.header-store summary:focus-visible, .header-store-options a:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
.header-store-pin { color: #df1722; flex: 0 0 20px; }
.header-store-arrow { flex: 0 0 14px; transition: transform .18s ease; }
.header-store[open] .header-store-arrow { transform: rotate(180deg); }
.header-store-caption { color: #c8d2e3; font-size: .75rem; font-weight: 400; white-space: nowrap; }
.header-store-options {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 25;
  min-width: 220px; padding: 6px;
  color: #1f2d4a; background: #fff;
  border: 1px solid #dce3ec; border-radius: 12px;
  box-shadow: 0 10px 30px #1f2d4a26;
}
.header-store-options a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 9px 12px; border-radius: 8px;
  font-size: .8125rem; font-weight: 600;
}
.header-store-options a:hover { background: #fff3f3; }
.header-store-options a[aria-current="true"] { background: #edf2f7; font-weight: 800; }
.header-store-options a > span { visibility: hidden; color: #df1722; }
.header-store-options a[aria-current="true"] > span { visibility: visible; }
/* Przeniesienie ujemnego marginesu na wspólną sekcję zachowuje położenie paska. */
.offer-group { display: flow-root; margin-top: -35px; scroll-margin-top: 0; }
.offer-group > .department-nav { margin-top: 0; }
@media (max-width: 850px) {
  :root { --site-header-height: 172px; }
  .header .topline > .wrap { grid-template-columns: minmax(0, 1fr) 72px; gap: 3px 8px; padding-block: 4px; }
  .header .topline-hours { grid-column: 1 / -1; grid-row: 2; display: block; text-align: left; }
  .header .topline-social { grid-column: 2; grid-row: 1; height: 36px; }
  .header .topline-social > a { height: 36px; }
  .header-store summary {
    display: grid;
    grid-template-columns: 20px auto 14px;
    column-gap: 7px;
    row-gap: 0;
    min-height: 36px;
  }
  .header-store-pin { grid-column: 1; grid-row: 1 / 3; }
  .header-store-caption { grid-column: 2; grid-row: 1; line-height: 1.3; }
  .header-store [data-header-store-name] { grid-column: 2; grid-row: 2; }
  .header-store-arrow { grid-column: 3; grid-row: 1 / 3; }
  .brand-page .header .topline > .wrap > a:nth-child(2) { display: none; }
}
@media (max-width: 540px) {
  .offer-group { margin-top: 0; }
  .header-store summary { padding-inline: 0; column-gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .header-store-arrow { transition: none; } }
/* Bez JS rozwinięte menu mobilne pozostaje dostępne, ale nie zasłania kotwic. */
@media (max-width: 850px) {
  body.no-js .header { position: static; }
  html:has(body.no-js) { scroll-padding-top: 12px; }
}
/* Full navigation at the top, one navy strip after scrolling.
   The placeholder preserves the original document layout. */
.header.is-scroll-header { position: fixed; top: 0; left: 0; right: 0; }
.header.has-site-menu .header-main {
  display: grid; grid-template-rows: 1fr; opacity: 1;
  transition: grid-template-rows .22s ease, opacity .18s ease, visibility .22s;
}
.header.has-site-menu .header-main-clip { min-height: 0; overflow: hidden; }
.header.has-site-menu.is-compact .header-main {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden; pointer-events: none;
}
.header .site-menu-shell { position: absolute; top: 0; left: 0; right: 0; }
.header .site-menu-trigger {
  display: none; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 4px 10px; border: 1px solid #ffffff40;
  border-radius: 9px; color: #fff; font-size: .8125rem; font-weight: 700;
  line-height: 1.4; cursor: pointer; list-style: none; white-space: nowrap;
  transition: background-color .18s ease;
}
.header .site-menu-trigger::-webkit-details-marker { display: none; }
.header .site-menu-trigger:hover, .header .site-menu-shell[open] > summary { background: #ffffff18; }
.header .site-menu-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.header.is-compact .topline > .wrap {
  grid-template-columns: minmax(0, 1fr) auto 72px auto; gap: 8px 14px;
}
.header.is-compact .site-menu-shell { position: static; }
.header.is-compact .site-menu-trigger { display: flex; }
.header .site-menu {
  position: absolute; top: calc(var(--site-header-height) + 8px);
  right: max(18px, calc((100% - var(--max)) / 2)); left: auto;
  display: block; width: min(410px, calc(100vw - 36px));
  max-height: calc(100vh - var(--site-header-height) - 20px);
  max-height: calc(100dvh - var(--site-header-height) - 20px);
  overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 12px; color: #1f2d4a; background: #fff;
  border: 1px solid #dde5ec; border-radius: 16px;
  box-shadow: 0 12px 32px #1f2d4a26; font-size: .875rem; line-height: 1.5;
}
.header .site-menu-shell:not([open]) > .site-menu { display: none; }
.header .site-menu ul { list-style: none; padding: 0; margin: 0; }
.header .site-menu a { display: block; padding: 11px 12px; border-radius: 9px; transition: color .18s, background-color .18s; }
.header .site-menu a:hover { color: #df1722; background: #fff4f3; }
.header .site-menu a[aria-current="page"] { color: #1f2d4a; background: #edf2f7; box-shadow: inset 3px 0 #df1722; }
.header .site-menu :is(a, button):focus-visible { outline: 2px solid #df1722; outline-offset: -2px; }
.header .site-menu-home { font-size: .8125rem; font-weight: 400; }
.header .site-menu-group { margin-top: 3px; }
.header .site-menu-row { display: flex; gap: 4px; align-items: stretch; }
.header .site-menu-row > a { flex: 1; min-width: 0; display: flex; align-items: center; }
.header .site-menu-expand {
  flex: 0 0 44px; min-height: 44px; padding: 8px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: #f3f6f9; color: #df1722;
}
.header .site-menu-expand[hidden], .header .site-menu-sub[hidden] { display: none; }
.header .site-menu-expand:hover { background: #ffecea; }
.header .site-menu-expand svg { transition: transform .18s ease; }
.header .site-menu-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.header .site-menu .site-menu-sub { margin: 4px 12px 9px 20px; padding-left: 9px; border-left: 1px solid #dde5ec; }
.header .site-menu-sub a { font-size: .8125rem; font-weight: 400; min-height: 40px; padding-block: 10px; }
.header .site-menu-brand { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dde5ec; }
.header .site-menu-brand > a { display: flex; align-items: center; gap: 12px; background: #faf6f0; border: 1px solid #eadfd5; }
.header .site-menu-brand img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.header .site-menu-brand > a > span:first-of-type { flex: 1; }
.header .site-menu-brand small { display: block; margin-top: 2px; color: #58677a; font-size: .75rem; font-weight: 400; }
.header .site-menu-brand > a > span:last-child { color: #df1722; }
.header .site-menu-secondary { display: flex; flex-wrap: wrap; column-gap: 2px; margin-top: 10px; }
.header .site-menu-secondary a { font-size: .75rem; font-weight: 400; padding: 10px; }
/* The single-row desktop strip stays the same height when Menu appears. */
@media (min-width: 1101px) {
  .header .topline > .wrap { min-height: 38px; }
  .header .site-menu-trigger { min-height: 34px; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .header.is-compact .topline > .wrap { grid-template-columns: minmax(0, 1fr) 72px auto; gap: 2px 14px; }
  .header.is-compact .topline-hours { grid-column: 1; grid-row: 2; font-size: .75rem; }
  .header.is-compact .topline-social { grid-column: 2; grid-row: 1 / 3; }
  .header.is-compact .site-menu-shell { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 850px) {
  .header.is-compact .topline > .wrap { grid-template-columns: minmax(0, 1fr) 64px auto; gap: 6px; }
  .header.is-compact .topline-hours { display: none; }
  .header.is-compact .topline-social { grid-column: 2; grid-row: 1; height: 44px; gap: 0; }
  .header.is-compact .topline-social > a { height: 44px; }
  .header.is-compact .site-menu-shell { grid-column: 3; grid-row: 1; }
  .header.is-compact .header-store summary { min-height: 44px; }
  .header .site-menu-trigger { min-height: 44px; }
  .header .site-menu { width: min(410px, calc(100vw - 24px)); right: 12px; }
}
@media (max-width: 540px) {
  .header.is-compact .topline > .wrap { grid-template-columns: minmax(0, 1fr) 56px 70px; gap: 4px; }
  .header.is-compact .topline-social > a { width: 28px; flex-basis: 28px; }
  .header.is-compact .topline-social .social-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .header.is-compact .header-store summary { grid-template-columns: 16px auto 12px; column-gap: 4px; font-size: .75rem; }
  .header.is-compact .header-store-caption { font-size: .6875rem; }
  .header.is-compact .header-store-pin { width: 16px; }
  .header.is-compact .header-store-arrow { width: 12px; }
  .header .site-menu-trigger { padding-inline: 5px; gap: 5px; }
  .header .site-menu-trigger svg { width: 18px; }
}
/* Native details fallback: the same destinations are available without JavaScript. */
body.no-js .header .site-menu-shell { position: static; grid-column: 1 / -1; }
body.no-js .header .site-menu-trigger { display: flex; width: max-content; }
body.no-js .header .site-menu { position: relative; inset: auto; width: 100%; max-height: 65vh; margin-top: 8px; }
.header.is-measuring, .header.is-measuring * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .header.has-site-menu .header-main, .header .site-menu-trigger,
  .header .site-menu a, .header .site-menu-expand svg { transition: none; }
}
/* Generated weekly fallback: both shops without JS, selected shop before fetch. */
[data-hours-topline] > [data-hours-static-store] { display: block; white-space: normal; }
html[data-selected-store="strzelce"] [data-hours-static-store="krapkowice"],
html[data-selected-store="krapkowice"] [data-hours-static-store="strzelce"],
html[data-selected-store] [data-hours-topline] .hours-store-name { display: none; }
/* Mobile: one stable navy row, contact and socials inside the existing menu. */
.mobile-header-brand, .mobile-menu-contact { display: none; }
@media (max-width: 850px) {
 .header .header-main { display: none !important; }
 .header .topline > .wrap, .header.is-compact .topline > .wrap {
  width: calc(100% - 24px); min-height: 60px; padding-block: 4px;
  grid-template-columns: minmax(0,1fr) auto auto; gap: 6px;
 }
 .header .mobile-header-brand { display: flex; align-items: center; gap: 9px; color: white; font-size: .85rem; font-weight: 800; white-space: nowrap; min-width: 0; }
 .mobile-header-brand img { width: 32px; height: 32px; flex: 0 0 32px; aspect-ratio: 1; object-fit: contain; background: white; border-radius: 5px; }
 .mobile-brand-dash { color: #ff858a; margin-inline: 2px; }
 .header .header-store { grid-column: 2; grid-row: 1; }
 .header .header-store summary { display: flex; gap: 4px; min-height: 44px; font-size: .75rem; padding: 2px; }
 .header .header-store-caption { display: none; }
 .header .header-store-pin { width: 18px; flex-basis: 18px; }
 .header .header-store-arrow { width: 10px; flex-basis: 10px; }
 .header .header-store-options { left: auto; right: 0; }
 .header .site-menu-shell { position: static; grid-column: 3; grid-row: 1; }
 .header .site-menu-trigger { display: flex; min-height: 44px; font-size: .75rem; padding-inline: 6px; gap: 4px; }
 .header .topline > .wrap > .topline-hours, .header .topline > .wrap > .topline-social { display: none; }
 .header .mobile-menu-contact { display: block; padding: 10px 12px 12px; margin-bottom: 8px; border-bottom: 1px solid #dde5ec; color: #1f2d4a; }
 .header .mobile-menu-contact > strong { font-size: .9375rem; }
 .header .mobile-menu-contact .topline-hours { display: block; color: #58677a; font-size: .75rem; line-height: 1.6; white-space: normal; text-align: left; margin-top: 4px; }
 .header .mobile-menu-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; }
 .header .mobile-menu-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 0; font-size: .75rem; }
 .header .mobile-menu-actions .route-icon { color: #df1722; flex: 0 0 20px; }
 .header .mobile-menu-contact .topline-social { display: flex; width: auto; height: 40px; justify-content: flex-start; gap: 8px; margin-top: 3px; }
 .header .mobile-menu-contact .topline-social a { display: flex; width: 44px; height: 40px; padding: 8px; }
 .header .mobile-menu-contact .social-icon { width: 22px; height: 22px; }
 body.no-js .header .site-menu-shell { grid-column: 3; }
}
@media (max-width: 350px) {
 .header .mobile-header-brand { gap: 6px; font-size: .72rem; }
 .mobile-header-brand img { width: 28px; height: 28px; flex-basis: 28px; }
 .header .topline > .wrap { width: calc(100% - 16px); gap: 4px; }
}
@media (max-width: 850px) {
 .brand-page .header .topline > .wrap { min-height: 60px; gap: 6px; }
 .brand-page .header .topline > .wrap > a:not(.mobile-header-brand) { display: none; }
 .header .mobile-menu-contact a:focus-visible { outline: 2px solid #df1722; outline-offset: 2px; }
}
@media (max-width: 850px) {
 .header .site-menu-home { font-weight: 600; }
 .header .mobile-menu-contact { margin: 12px 0 0; padding: 14px 12px 4px; border-bottom: 0; border-top: 1px solid #dde5ec; }
}
@media (max-width: 850px) {
 .header .site-menu-shell { margin-left: 3px; }
 .header .mobile-menu-contact { border-bottom: 1px solid #dde5ec; padding-bottom: 12px; }
}