/*
 * WG Roztocze storefront shell.
 *
 * This file owns only the shared page frame and the single responsive header.
 * Component and view styling belongs to the scoped *-foundation.css layers and
 * their canonical *-final.css sheets. Keep route-specific card rules out here.
 */

@media (min-width: 992px) {
  body .wg-products-selection .wg-toolbar-row {
    display: flex !important;
    align-items: center !important;
  }

  body .wg-products-selection .sort-by {
    order: 1 !important;
  }

  body .wg-products-selection .products-sort-order {
    order: 2 !important;
  }

  body .wg-products-selection .wg-per-page {
    order: 3 !important;
  }

  body .wg-products-selection .wg-view-toggle {
    order: 4 !important;
  }

  body#index #wrapper {
    padding-top: 0 !important;
  }

  body#index #wrapper > .container,
  body#index #wrapper > .container > .row,
  body#index #content-wrapper,
  body#index #main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .wg-home .pxb-section--category_tiles {
    padding: 56px 0 !important;
    background: #FFFFFF !important;
  }

  body#index .wg-home .pxb-tiles--category_tiles {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  body#index .wg-home .pxb-tiles--category_tiles .pxb-tile {
    box-sizing: border-box !important;
    padding: 20px 12px 18px !important;
    gap: 12px !important;
  }

  body:not(#index):not(#category):not(#product):not(#cart):not(#checkout) #wrapper {
    padding-top: 0 !important;
  }

  body:not(#index):not(#category):not(#product):not(#cart):not(#checkout) #wrapper > .container {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding-right: 32px !important;
    padding-left: 32px !important;
  }

  body:not(#index):not(#category):not(#product):not(#cart):not(#checkout) #wrapper > .container > .wg-breadcrumb {
    width: 100% !important;
    height: 17px !important;
    min-height: 17px !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
  }

  body:not(#index):not(#category):not(#product):not(#cart):not(#checkout) #wrapper > .container > .wg-breadcrumb :is(.wg-container, .wg-breadcrumb__list) {
    width: 100% !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 17px !important;
  }

  body:not(#index):not(#category):not(#product):not(#cart):not(#checkout) #wrapper > .container > .wg-breadcrumb + .row {
    width: auto !important;
    margin-top: 32px !important;
  }

  body.page-authentication #content {
    margin-top: -4px !important;
  }

  body#checkout #wrapper > .container,
  body#cart #wrapper > .container {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding-right: 32px !important;
    padding-left: 32px !important;
  }

  body#checkout #wrapper > .container > .row,
  body#cart #wrapper > .container > .row {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body#checkout #content-wrapper,
  body#cart #content-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#cart #wrapper {
    padding-top: 0 !important;
  }

  body#cart #wrapper > .container {
    padding-bottom: 24px !important;
  }

  body#cart #wrapper > .container > .wg-breadcrumb {
    width: 100% !important;
    height: 17px !important;
    min-height: 17px !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
  }

  body#cart #wrapper > .container > .wg-breadcrumb :is(.wg-container, .wg-breadcrumb__list) {
    width: 100% !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 17px !important;
  }

  body#cart .wg-cart-page__head {
    min-height: 49px !important;
    margin: 32px 0 !important;
  }

  body#cart .wg-cart-page__head h1 {
    font-size: 48px !important;
    line-height: 1.02 !important;
  }

  body#cart .wg-cart-page__head > span {
    padding-bottom: 4px !important;
    font-size: 15px !important;
  }
}

/* Desktop header copied from the standalone reference views. */
@media (min-width: 992px) {
  html body #header .wg-topbar__phone { order: 1; }
  html body #header .wg-topbar__right > a[href*="sledzenie"] { order: 2; }
  html body #header .wg-topbar__right > a[href*="aukcje"] { order: 3; }

  html body #header .wg-topbar__phone,
  html body #header .wg-topbar__link {
    color: #d6e2f7;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }

  html body #header .wg-topbar__phone,
  html body #header .wg-topbar__right > a[href*="aukcje"] {
    color: #fff;
  }

  html body #header .wg-topbar__locale {
    order: 4;
    display: inline-flex;
    min-height: 24px;
    padding: 3px 8px;
    align-items: center;
    gap: 4px;
    border: 1px solid #2e4a7d;
    border-radius: 6px;
    background: transparent;
    color: #d6e2f7;
    font: 500 12px/1 Inter, system-ui, sans-serif;
  }

  html body #header .wg-nav__inner {
    gap: 22px !important;
  }

  html body #header .wg-nav__menu {
    min-width: 0;
    flex: 0 1 auto;
  }

  html body #header .wg-nav__links {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    gap: 22px !important;
    list-style: none;
  }

  html body #header .wg-nav__links > li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #header .wg-nav__links > li > a {
    display: inline-flex !important;
    padding: 14px 0 11px !important;
    border-bottom: 3px solid transparent;
    color: #13213d !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    text-decoration: none !important;
    white-space: nowrap;
  }

  html body #header .wg-nav__promo {
    margin-left: auto !important;
    gap: 18px !important;
    flex: 0 0 auto;
  }

  html body #header .wg-nav__promo a {
    font-size: 14.5px !important;
  }
}

@media (min-width: 992px) and (max-width: 1360px) {
  html body #header .wg-topbar {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    border: 0 !important;
  }

  html body #header .wg-topbar__inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 9px 32px !important;
    box-sizing: border-box !important;
  }

  html body #header .wg-topbar__left {
    display: flex !important;
    width: auto !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 20px !important;
  }

  html body #header .wg-topbar__left .wg-topbar__usp {
    display: inline-flex !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    line-height: 16px !important;
  }

  html body #header .wg-topbar__right {
    position: absolute !important;
    top: 41px !important;
    left: 32px !important;
    display: flex !important;
    width: auto !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 20px !important;
  }

  html body #header .wg-topbar__right > * {
    display: inline-flex !important;
    width: auto !important;
    height: 22px !important;
    margin: 0 !important;
    align-items: center !important;
  }
}

html body#category .wg-subcat-pill {
  gap: 12px !important;
  padding: 10px 14px 10px 10px !important;
}

@media (max-width: 991px) {
  html body#index .wg-mobile-hero .btn-primary,
  html body#index .wg-mobile-hero .btn-primary:hover,
  html body#index .wg-mobile-hero .btn-primary:focus {
    color: #fff !important;
  }

  html body#index .wg-mobile-cats a span {
    overflow: hidden !important;
  }

  html body#index .wg-mobile-cats {
    display: flex !important;
    gap: 10px !important;
    margin: 16px -16px 28px !important;
    padding: 0 16px !important;
    overflow: hidden !important;
  }

  html body#index .wg-mobile-cats a {
    display: flex !important;
    flex: 0 0 96px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    color: #13213d !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  html body#index .wg-mobile-cats a span {
    display: flex !important;
    width: 80px !important;
    height: 80px !important;
    flex: 0 0 80px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #eaf2fd !important;
  }

  html body#index .wg-mobile-cats a span img {
    display: block !important;
    width: auto !important;
    height: 66px !important;
    max-width: 62px !important;
    object-fit: contain !important;
  }
}

html body#category .wg-category-hero .wg-subcat-pills {
  overflow: visible !important;
  flex-wrap: wrap !important;
}

html body#category .wg-category-hero .wg-subcat-pill::before {
  display: none !important;
  content: none !important;
}

html body#category .wg-subcat-pill__icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-radius: 8px;
  background: #eaf2fd;
  color: #2a6bd1;
}

html body#category .wg-subcat-pill:nth-child(2) .wg-subcat-pill__icon { color: #1e7a4c; }
html body#category .wg-subcat-pill:nth-child(3) .wg-subcat-pill__icon { color: #0e2a5a; }
html body#category .wg-subcat-pill:nth-child(4) .wg-subcat-pill__icon { color: #c9961a; }
html body#category .wg-subcat-pill:nth-child(5) .wg-subcat-pill__icon { color: #52617d; }
html body#category .wg-subcat-pill:nth-child(6) .wg-subcat-pill__icon { color: #7a5520; }

html body.category-id-18 #header .wg-nav__links > li:nth-child(1) > a,
html body.category-id-19 #header .wg-nav__links > li:nth-child(2) > a,
html body.category-id-20 #header .wg-nav__links > li:nth-child(3) > a,
html body.category-id-21 #header .wg-nav__links > li:nth-child(4) > a,
html body.category-id-22 #header .wg-nav__links > li:nth-child(5) > a,
html body.category-id-23 #header .wg-nav__links > li:nth-child(6) > a,
html body.category-id-24 #header .wg-nav__links > li:nth-child(7) > a,
html body.product-id-category-18 #header .wg-nav__links > li:nth-child(1) > a,
html body.product-id-category-19 #header .wg-nav__links > li:nth-child(2) > a,
html body.product-id-category-20 #header .wg-nav__links > li:nth-child(3) > a,
html body.product-id-category-21 #header .wg-nav__links > li:nth-child(4) > a,
html body.product-id-category-22 #header .wg-nav__links > li:nth-child(5) > a,
html body.product-id-category-23 #header .wg-nav__links > li:nth-child(6) > a,
html body.product-id-category-24 #header .wg-nav__links > li:nth-child(7) > a {
  border-bottom-color: #2a6bd1 !important;
  color: #1d52a8 !important;
}
/* Production category/card contract. This final layer replaces historical
   parity experiments with one predictable card used by every listing. */
@media (min-width: 992px) {
  html body#product #main .product-container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  html body#product #main .product-container #content.page-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  html body#product .wg-prod-same__head {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }

  html body#product .wg-prod-same__link {
    flex: 0 0 auto !important;
    color: #1d52a8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  html body#category .wg-products-selection,
  html body#search .wg-products-selection,
  html body#manufacturer .wg-products-selection,
  html body#supplier .wg-products-selection,
  html body#prices-drop .wg-products-selection,
  html body#new-products .wg-products-selection,
  html body#best-sales .wg-products-selection {
    display: flex !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    align-items: center !important;
  }

  html body .wg-products-selection .total-products,
  html body .wg-products-selection .wg-toolbar-right {
    float: none !important;
  }

  html body .wg-products-selection .wg-toolbar-right {
    margin-left: auto !important;
  }

}

/* The reference desktop header keeps the utility bar on one line at 1280px. */
@media (min-width: 992px) and (max-width: 1360px) {
  html body #header .wg-topbar {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  html body #header .wg-topbar__inner {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 32px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    white-space: nowrap !important;
  }

  html body #header .wg-topbar__left,
  html body #header .wg-topbar__right {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: 40px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 18px !important;
  }

  html body #header .wg-topbar__left {
    flex: 1 1 auto !important;
  }

  html body #header .wg-topbar__right {
    flex: 0 0 auto !important;
  }

  html body #header .wg-topbar__left .wg-topbar__usp,
  html body #header .wg-topbar__right > * {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 991px) {
  body#addresses .wg-account-content {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:is(#category, #search, #manufacturer, #supplier, #prices-drop, #new-products, #best-sales) #content-wrapper {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body #header {
    display: block !important;
    width: 100% !important;
  }

  body #header .wg-topbar {
    display: block !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    overflow: hidden !important;
  }

  body #header .wg-topbar__inner {
    display: block !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px 16px !important;
    white-space: nowrap !important;
  }

  body #header .wg-topbar__left {
    display: block !important;
    height: 16px !important;
    overflow: hidden !important;
    font-size: 11px !important;
    text-align: center !important;
  }

  body #header .wg-topbar__left > *:not(:first-child),
  body #header .wg-topbar__right,
  body #header .wg-topbar__left > .blockreassurance_product {
    display: none !important;
  }

  body #header .wg-topbar__left > .wg-topbar__usp:first-of-type {
    display: flex !important;
    height: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d6e2f7 !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  body #header .wg-header {
    display: block !important;
    width: 100% !important;
    height: 124px !important;
    min-height: 124px !important;
    max-height: 124px !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body #header .wg-header__inner {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 124px !important;
    min-height: 124px !important;
    padding: 10px 16px 64px !important;
    align-items: center !important;
    flex-flow: row nowrap !important;
    gap: 8px !important;
  }

  body #header .wg-logo {
    position: static !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 auto 0 32px !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body #header .wg-logo__emblem,
  body #header .wg-logo__emblem img {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }

  body #header .wg-logo__name {
    font-size: 22px !important;
    line-height: 1 !important;
  }

  body #header .wg-logo__text {
    min-height: 40px !important;
    justify-content: center !important;
  }

  body #header .wg-logo__tagline {
    display: none !important;
  }

  body #header .wg-header__actions {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 5px !important;
  }

  body #header .wg-header__burger {
    position: absolute !important;
    top: 10px !important;
    left: 16px !important;
    display: grid !important;
    width: 32px !important;
    height: 42px !important;
    padding: 0 !important;
    place-items: center !important;
  }

  body #header .wg-header__actions :is(.wg-account__text, .wg-account__logout),
  body #header .wg-wishlist-link {
    display: none !important;
  }

  body #header .wg-header__actions :is(.wg-account__link, .wg-cart__link) {
    display: flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 42px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body #header .wg-search {
    position: absolute !important;
    inset: auto 16px 12px !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
  }

  body #header :is(.wg-search__input, .wg-search__submit) {
    height: 48px !important;
    min-height: 48px !important;
  }

  body #header .wg-nav,
  body .wg-mobile-pagebar,
  body .wg-mobile-checkoutbar {
    display: none !important;
  }
}
/* Global document and header invariants. The storefront scrolls as one page;
   the header is never sticky or fixed on any route. */
html,
body {
  height: auto !important;
  min-height: 100% !important;
}

html body #header,
html body #header .wg-topbar,
html body #header .wg-header,
html body #header .wg-nav {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Search autocomplete is a single global header component. */
html body #search_widget.wg-search {
  overflow: visible !important;
}

html body #search_widget.wg-search > .wg-ac {
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: auto;
  left: 50%;
  width: 700px;
  max-width: calc(100vw - 32px);
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px -18px rgba(14, 42, 90, .5);
  transform: translateX(-50%);
}

html body .wg-ac__side {
  display: flex;
  padding: 20px;
  flex-direction: column;
  gap: 12px;
  background: var(--wg-surface);
}

html body .wg-ac__side a {
  color: var(--wg-ink);
  font-size: 14px;
  text-decoration: none;
}

html body .wg-ac__side small {
  color: var(--wg-muted);
  line-height: 1.5;
}

html body .wg-ac__eyebrow {
  display: block;
  padding: 6px 10px 4px;
  color: var(--wg-muted);
  font: 600 10px/1.2 'JetBrains Mono', monospace;
  letter-spacing: .1em;
}

html body .wg-ac__side .wg-ac__eyebrow {
  margin-top: 4px;
  padding: 0;
}

html body .wg-ac__results {
  padding: 8px 8px 4px;
}

html body .wg-ac__list {
  padding: 0 6px;
}

html body .wg-ac__item > a {
  padding: 8px;
}

html body .wg-ac__thumb {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

html body .wg-ac__title {
  font-size: 14px;
}

html body .wg-ac__price {
  color: var(--wg-ink);
  font-weight: 700;
}

html body .wg-ac__all {
  margin: 2px 8px;
  padding: 10px 4px;
  border-top: 0;
  background: #fff;
  text-align: left;
}

html body .wg-search:has(.wg-ac:not([hidden]))::before {
  content: '';
  position: fixed;
  z-index: 1290;
  top: 225px;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(14, 42, 90, .35);
}

html body:has(.wg-ac:not([hidden])) .ui-autocomplete.searchbar-autocomplete {
  display: none !important;
}

@media (max-width: 767px) {
  html body #search_widget.wg-search > .wg-ac {
    width: calc(100vw - 20px);
    grid-template-columns: 1fr;
  }

  html body .wg-ac__side {
    display: none;
  }
}

/* Store locator and 404 recommendations use the same global page/card shell. */
html body#stores #wrapper,
html body .wg-error-suggestions {
  background: #FFFFFF;
}

html body#stores #content { padding: 8px 0 26px; }
html body .wg-store-page__head { margin-bottom: 34px; }

html body .wg-store-page__head h1 {
  margin: 0 0 26px;
  color: #13213d;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 48px;
}

html body .wg-store-page__head p {
  margin: 0;
  color: #52617d;
  font-size: 16px;
}

html body .wg-store-card {
  display: grid;
  min-height: 588px;
  overflow: hidden;
  grid-template-columns: 1fr 1.1fr;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  background: #fff;
}

html body .wg-store-card__photo {
  min-height: 420px;
  background: #bcd8f3 url('../img/niebo.webp') center/cover no-repeat;
}

html body .wg-store-card__body { padding: 32px; }

html body .wg-store-card__open {
  display: block;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #E7F5EE;
  color: #168552;
  font-size: 12px;
  font-weight: 700;
}

html body .wg-store-card__body h2 {
  margin: 0 0 16px;
  color: #13213d;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 32px;
}

html body .wg-store-card__body address,
html body .wg-store-card__body > p {
  margin: 0 0 8px;
  color: #111;
  line-height: 1.5;
}

html body .wg-store-card__body table {
  width: 100%;
  margin: 24px 0 16px;
}

html body .wg-store-card__body :is(th,td) {
  padding: 8px 0;
  border-bottom: 1px solid #dce5f2;
  font-weight: 400;
}

html body .wg-store-card__body td { text-align: right; }

html body .wg-store-card__actions {
  display: flex;
  margin-bottom: 16px;
  gap: 10px;
}

html body .wg-store-card__actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: none;
}

html body .wg-store-card__actions .material-icons { font-size: 18px; }
html body .wg-store-card__body small { color: #52617d; }

html body .wg-error-suggestions :is(.pxb-section,.wg-related-section) {
  padding-top: 0 !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  html body .wg-store-card { grid-template-columns: 1fr; }
  html body .wg-store-card__photo { min-height: 300px; }
  html body .wg-store-card__body { padding: 24px 20px; }
}
/* ===== R201 — karty produktów: wiersz oceny inline (gwiazdki + średnia + liczba opinii) ===== */
@media (max-width:991px){
  .product-miniature .comments_note{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;width:100%!important}
  .product-miniature .comments_note>*{flex:0 0 auto!important;margin:0!important;padding:0!important}
  .product-miniature .comments_note .star-content{margin:0!important}
  .product-miniature .comments_note .nb-comments,
  .product-miniature .comments_note .rating-value,
  .product-miniature .comments_note .count{flex:0 0 auto!important;white-space:nowrap!important}
}



/* ===== R311 — HEADER (mobile): padding topbara 32px, przycisk KATEGORIE 120x38, nav bez gornego paddingu ===== */
@media (max-width: 991px) {
  .wg-topbar__inner { padding: 0 32px !important; }
  .wg-nav { padding-top: 0 !important; }
  .wg-nav__all { width: 120px !important; height: 38px !important; min-height: 38px !important; padding: 0 !important; font-size: 13px !important; gap: 8px !important; }
  .wg-nav__inner { padding-top: 0 !important; }
}

/* Legacy R138-R147 home and shared PXB card contracts; ordered before newer shell rules. */
/* R138: home – story H2, brands strip label+CTA, newsletter offset */
body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__head,
body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__content { padding-left: 34px !important; box-sizing: border-box !important; }
body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__eyebrow { transform: translateY(22px); }
body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__title { display: block !important; font-size: 40px !important; line-height: 42px !important; margin: 0 !important; max-width: 574px !important; transform: translateY(79px); }

body#index .pxb-section--brands .wg-container { display: flex !important; align-items: center !important; gap: 0 !important; }
body#index .pxb-section--brands .pxb-section__head { display: flex !important; align-items: center !important; margin: 0 30px 0 0 !important; flex: 0 0 130px !important; text-align: left !important; }
body#index .pxb-section--brands .pxb-section__title { display: block !important; font-family: 'JetBrains Mono', ui-monospace, monospace !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 1.44px !important; color: #52617D !important; margin: 0 !important; line-height: 16px !important; }
body#index .pxb-section--brands .pxb-tiles--brands { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; gap: 26px !important; flex: 1 1 auto !important; }
body#index .pxb-section--brands .pxb-tile { flex: 0 0 auto !important; }
body#index .pxb-section--brands .pxb-tile__title { font-size: 19px !important; color: #4C5A75 !important; letter-spacing: .2px !important; font-weight: 700 !important; }
body#index .pxb-section--brands .pxb-section__cta { flex: 0 0 auto !important; font-size: 14px !important; color: #2A6BD1 !important; text-decoration: underline !important; margin-left: 20px !important; white-space: nowrap !important; }
body#index .wg-newsletter { margin-top: 0 !important; }

/* Mobile footer and newsletter are global shell components, not page-level
   corrections. Keep their responsive contract in one place. */
@media (max-width: 991px) {
  html body .wg-footer .wg-footer__grid { padding: 56px 32px 32px !important; gap: 40px !important; }
  html body .wg-footer__brand { gap: 16px !important; }
  html body .wg-footer__brand .wg-logo--footer { height: 56px !important; min-height: 56px !important; }
  html body .wg-footer__brand .wg-logo__emblem img { width: 56px !important; height: 56px !important; }
  html body .wg-footer__brand .wg-logo--footer > img { width: 56px !important; height: 56px !important; min-width: 56px !important; max-width: 56px !important; margin: 0 !important; }
  html body .wg-footer__brand p { margin: 0 !important; font-size: 14px !important; line-height: 23.1px !important; }
  html body .wg-footer__brand .wg-logo__name { font-size: 28px !important; }
  html body .wg-footer__brand .wg-logo__tagline { font-size: 11px !important; letter-spacing: 2px !important; }

  html body:not(#index) .wg-newsletter .wg-newsletter__inner { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 40px 32px 44px !important; gap: 32px !important; }
  html body:not(#index) .wg-newsletter .wg-newsletter__copy { height: auto !important; min-height: 0 !important; margin: 0 !important; gap: 8px !important; }
  html body:not(#index) .wg-newsletter .wg-newsletter__eyebrow { height: 16px !important; margin: 0 !important; font-size: 12px !important; line-height: 16px !important; }
  html body:not(#index) .wg-newsletter h2 { height: 71px !important; min-height: 71px !important; max-height: 71px !important; margin: 0 !important; font-size: 34px !important; line-height: 35.7px !important; }
  html body:not(#index) .wg-newsletter .wg-newsletter__copy p { margin: 0 !important; font-size: 15px !important; line-height: 24px !important; }
  html body:not(#index) .wg-newsletter .wg-newsletter__form { height: auto !important; min-height: 0 !important; margin: 0 !important; }
  html body:not(#index) .wg-newsletter .wg-nl { margin: 0 !important; padding: 0 !important; }
  html body:not(#index) .wg-newsletter .wg-nl__form { margin: 0 !important; }
}


/* R139: domknięcie home – brands (scope .wg-home), story H2, gap przed footerem */
body#index .wg-home .pxb-section--brands .pxb-section__title { display: block !important; font-family: 'JetBrains Mono', ui-monospace, monospace !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 1.44px !important; color: #52617D !important; margin: 0 !important; line-height: 16px !important; text-transform: none !important; }
body#index .wg-home .pxb-section--brands .wg-container { display: flex !important; align-items: center !important; gap: 0 !important; }
body#index .wg-home .pxb-section--brands .pxb-section__head { display: flex !important; align-items: center !important; margin: 0 30px 0 0 !important; flex: 0 0 130px !important; text-align: left !important; }
body#index .wg-home .pxb-section--brands .pxb-tiles--brands { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; gap: 26px !important; flex: 1 1 auto !important; }
body#index .wg-home .pxb-section--brands .pxb-tile { flex: 0 0 auto !important; }
body#index .wg-home .pxb-section--brands .pxb-tile__title { font-size: 19px !important; color: #4C5A75 !important; letter-spacing: .2px !important; font-weight: 700 !important; }
body#index .wg-home .pxb-section--brands .pxb-section__cta { flex: 0 0 auto !important; font-size: 14px !important; color: #2A6BD1 !important; text-decoration: underline !important; margin-left: 20px !important; white-space: nowrap !important; }

body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__title { transform: translateY(89px) !important; }
body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__content { margin-top: -15px !important; }
body#index .wg-sections-hook { margin-bottom: -25px !important; }


/* R140: brands strip – etykieta po lewej, marki od lewej, CTA przy prawej krawędzi */
body#index .wg-home .pxb-section--brands .wg-container { position: relative !important; }
body#index .wg-home .pxb-section--brands .pxb-section__head { display: block !important; flex: 0 0 130px !important; width: 130px !important; min-width: 0 !important; margin: 0 23px 0 0 !important; padding: 0 !important; }
body#index .wg-home .pxb-section--brands .pxb-section__title { margin: 0 !important; padding: 0 !important; display: block !important; }
body#index .wg-home .pxb-section--brands .pxb-section__cta { position: absolute !important; right: 32px !important; top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important; font-size: 14px !important; color: #2A6BD1 !important; text-decoration: underline !important; white-space: nowrap !important; }
body#index .wg-home .pxb-section--brands .pxb-tiles--brands { flex: 1 1 auto !important; justify-content: flex-start !important; gap: 26px !important; }


/* R141: brands CTA w przepływie (flex order) zamiast absolute */
body#index .wg-home .pxb-section--brands .pxb-section__head { order: 1 !important; }
body#index .wg-home .pxb-section--brands .pxb-tiles--brands { order: 2 !important; flex: 1 1 auto !important; justify-content: flex-start !important; gap: 26px !important; }
body#index .wg-home .pxb-section--brands .pxb-section__cta { position: static !important; order: 3 !important; margin: 0 0 0 auto !important; right: auto !important; top: auto !important; transform: none !important; }


/* R142: brands CTA jako rodzeństwo nagłówka (poza header) */
body#index .wg-home .pxb-section--brands .pxb-section__cta--inline { order: 3 !important; margin: 0 0 0 auto !important; position: static !important; transform: none !important; font-size: 14px !important; color: #2A6BD1 !important; text-decoration: underline !important; white-space: nowrap !important; }


/* R143: tablet/mobile – brands i story bez nowrap (naprawa overflow home/tablet) */
@media (max-width: 991px) {
  body#index .wg-home .pxb-section--brands .wg-container { flex-wrap: wrap !important; row-gap: 12px !important; }
  body#index .wg-home .pxb-section--brands .pxb-tiles--brands { flex-wrap: wrap !important; justify-content: flex-start !important; flex: 1 1 100% !important; gap: 18px !important; }
  body#index .wg-home .pxb-section--brands .pxb-section__cta { margin-left: auto !important; }
  body#index .wg-sections-hook { margin-bottom: 0 !important; }
  body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__title { transform: none !important; font-size: 32px !important; line-height: 34px !important; max-width: none !important; }
  body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__eyebrow { transform: none !important; }
  body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__head,
  body#index .pxb-section--story:has(.pxb-tiles--story) .pxb-section__content { padding-left: 0 !important; margin-top: 0 !important; }
}


/* R144: karty produktów na home – odsunięcie sekcji i badge pigułka */
body#index .wg-home .pxb-section--products { padding-top: 64px !important; }
body#index .wg-home .pxb-card { position: relative !important; }
body#index .wg-home .pxb-card__flag { position: absolute !important; top: 12px !important; left: 12px !important; right: auto !important; width: auto !important; height: 20px !important; min-width: 0 !important; padding: 0 8px !important; border-radius: 6px !important; background: #E23B3B !important; color: #FFFFFF !important; font-size: 11px !important; line-height: 20px !important; font-weight: 700 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; transform: none !important; z-index: 2 !important; box-sizing: border-box !important; }
body#index .wg-home .pxb-card__flag--red { background: #E23B3B !important; color: #FFFFFF !important; }


/* R145: produkty home – przywrócenie wysokości sekcji (padding-bottom 54) */
body#index .wg-home .pxb-section--products { padding-bottom: 54px !important; }


/* R146: karty pxb – cena i przycisk dociągnięte do dołu, ikona koszyka w przycisku */
.pxb-card__body { display: flex !important; flex-direction: column !important; }
.pxb-card__price-row { margin-top: auto !important; }
.pxb-card__btn { gap: 8px !important; justify-content: center !important; align-items: center !important; }
.pxb-card__btn::before { content: "" !important; display: inline-block !important; width: 16px !important; height: 16px !important; flex: 0 0 16px !important; background-color: currentColor !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.5 12h11L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.5 12h11L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat !important; }


/* R147: karta pxb jako kolumna flex, body wypełnia wysokość karty */
.pxb-card { display: flex !important; flex-direction: column !important; }
.pxb-card__media { flex: 0 0 auto !important; }
.pxb-card__body { flex: 1 1 auto !important; }

/* Legacy R123-R129 shared accessibility, card, typography and footer contracts. */
/* R123 a11y/parity: ukryj puste h1 oraz zbedne pseudo-ikony w stopce (ikony sa inline SVG z prototypu),
   etykiety ARIA dla natywnych kontrolek (touchspin/slider). */
h1:empty { display: none !important; }
.wg-footer__brand button[aria-label]::before { display: none !important; content: none !important; }


/* R124 QA-06: dostepnosc — korekty kontrastu zgodne z prototypem (newsletter bialy tekst, badge promocji czerwony) */
.wg-newsletter__copy,
.wg-newsletter__copy p,
.wg-newsletter__copy a,
.wg-newsletter__copy span,
.wg-newsletter__copy strong { color: #FFFFFF !important; }
.wg-newsletter__copy .wg-newsletter__eyebrow { color: #EAF1FF !important; }
.product-flag.discount { background: #C8283B !important; color: #FFFFFF !important; }
body#category .product-miniature .product-flag.discount { background: #C8283B !important; color: #FFFFFF !important; }


/* R125 QA-06: linki w sekcji newslettera — bialy kolor (kontrast AA na niebieskim tle) */
.wg-newsletter a, .wg-newsletter .wg-newsletter__form a { color: #FFFFFF !important; text-decoration-color: rgba(255,255,255,.7) !important; }


/* R126: typography (hero/product/cart) and footer-title parity. */
body#index .wg-hero h1{color:#0E2A5A!important;letter-spacing:-.005em!important}
body#product h1{font-size:46px!important;color:#13213D!important;letter-spacing:-.005em!important;line-height:1.15!important}
body#product .wg-prod-cross__title,body#product .wg-prod-same__title{font-size:36px!important;line-height:1.2!important}
body#product .product-description h3,body#product .wg-prod-desc-main h3{font-size:28px!important;line-height:1.25!important}
body#cart h1{font-size:44px!important;letter-spacing:-.005em!important}
.wg-footer__col .wg-footer__title{letter-spacing:.06em!important}
/* R129: footer brand social layout + hide accessible labels */
.wg-footer__brand > div{display:flex!important;gap:8px!important;align-items:center!important}
.wg-footer__brand button{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.wg-footer__brand button span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}

