/**
 * Feppi — zachowanie mobilnego menu i wyszukiwarki.
 *
 * Arkusz jest ładowany po głównych stylach motywu, ponieważ oba komponenty
 * są przenoszone przez Hummingbird pomiędzy kontenerami desktop/mobile.
 */
.feppi-header-search .feppi-search-submit {
  display: inline-flex !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #7928e8 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  pointer-events: auto !important;
  cursor: pointer;
}

/* FEPPI — czytelna ścieżka nawigacji. */
#wrapper .breadcrumb__wrapper {
  margin-bottom: 24px !important;
  background: linear-gradient(135deg, #f4fcfc 0%, #fbf9ff 58%, #fff9fb 100%) !important;
  border-top: 1px solid rgba(32, 199, 203, 0.08) !important;
  border-bottom: 1px solid rgba(121, 40, 232, 0.08) !important;
}

#wrapper .breadcrumb__wrapper .breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  color: #15183d !important;
  list-style: none !important;
}

#wrapper .breadcrumb__wrapper .breadcrumb-item {
  min-width: 0 !important;
  margin: 0 !important;
  color: #15183d !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

#wrapper .breadcrumb__wrapper .breadcrumb-link {
  color: #089eaa !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

#wrapper .breadcrumb__wrapper .breadcrumb-link:hover,
#wrapper .breadcrumb__wrapper .breadcrumb-link:focus-visible {
  color: #7928e8 !important;
  outline: none !important;
}

#wrapper .breadcrumb__wrapper .breadcrumb-item + .breadcrumb-item::before {
  padding-right: 8px !important;
  padding-left: 8px !important;
  color: rgba(121, 40, 232, 0.48) !important;
  content: "/" !important;
}

#wrapper .breadcrumb__wrapper .breadcrumb-item:last-child > span {
  color: #303754 !important;
  font-weight: 650 !important;
}

@media (max-width: 767.98px) {
  #wrapper .breadcrumb__wrapper {
    margin-bottom: 18px !important;
  }

  #wrapper .breadcrumb__wrapper .breadcrumb {
    flex-wrap: wrap !important;
    row-gap: 7px !important;
    overflow: visible !important;
    padding-top: 10px !important;
    padding-bottom: 11px !important;
    scrollbar-width: none !important;
  }

  #wrapper .breadcrumb__wrapper .breadcrumb-item {
    max-width: 100% !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

  #wrapper .breadcrumb__wrapper .breadcrumb-item:last-child {
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  #wrapper .breadcrumb__wrapper .breadcrumb-item:last-child > span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #wrapper .breadcrumb__wrapper .breadcrumb-item:nth-child(n + 3):last-child {
    flex: 1 0 100% !important;
    width: 100% !important;
  }

  #wrapper .breadcrumb__wrapper .breadcrumb-item:nth-child(n + 3):last-child::before {
    display: none !important;
    padding: 0 !important;
    content: none !important;
  }
}

/* FEPPI — skróty sklepowe i promocje w głównej nawigacji. */
#header .feppi-nav-links .feppi-nav-link--promotions {
  gap: 6px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  color: #7928e8 !important;
  background: linear-gradient(135deg, #f7efff 0%, #fff2f7 100%) !important;
  border: 1px solid rgba(121, 40, 232, 0.2) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(121, 40, 232, 0.09) !important;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

#header .feppi-nav-promotion-mark {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #20c7cb 0%, #7928e8 58%, #ef4f8b 100%);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(121, 40, 232, 0.2);
}

@media (hover: hover) {
  #header .feppi-nav-links .feppi-nav-link--promotions:hover,
  #header .feppi-nav-links .feppi-nav-link--promotions:focus-visible {
    color: #6f20dc !important;
    background: linear-gradient(135deg, #f3fbfb 0%, #f7f0ff 58%, #fff3f7 100%) !important;
    border-color: rgba(121, 40, 232, 0.3) !important;
    box-shadow: 0 6px 15px rgba(121, 40, 232, 0.1) !important;
    outline: none !important;
    transform: none !important;
  }
}

@media (max-width: 767.98px) {
  #header .feppi-navigation {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%) !important;
    border-top: 1px solid #edf0f4 !important;
    border-bottom: 1px solid #edf0f4 !important;
    box-shadow: 0 5px 15px rgba(21, 24, 61, 0.045) !important;
  }

  #header .feppi-navigation > .container-md {
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header .feppi-navigation-inner {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #header .feppi-mobile-quick-links {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 8px 10px 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    scroll-snap-type: x proximity;
    scroll-padding-left: 10px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }

  #header .feppi-mobile-quick-links::-webkit-scrollbar {
    display: none !important;
  }

  #header .feppi-mobile-quick-links > a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    color: #15183d !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%) !important;
    border: 1px solid rgba(121, 40, 232, 0.13) !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 13px rgba(21, 24, 61, 0.055) !important;
    outline: none !important;
    scroll-snap-align: start;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease !important;
  }

  #header .feppi-mobile-quick-links > a:nth-child(2) {
    color: #087f86 !important;
    border-color: rgba(32, 199, 203, 0.25) !important;
    background: linear-gradient(145deg, #f1fdfc 0%, #ffffff 100%) !important;
  }

  #header .feppi-mobile-quick-links > .feppi-mobile-quick-link--promotions {
    padding-right: 10px !important;
    padding-left: 7px !important;
    color: #6f20dc !important;
    background: linear-gradient(135deg, #f3fbfb 0%, #f7f0ff 58%, #fff4f8 100%) !important;
    border-color: rgba(121, 40, 232, 0.22) !important;
    box-shadow: 0 5px 13px rgba(121, 40, 232, 0.08) !important;
  }

  #header .feppi-mobile-quick-link--promotions .feppi-nav-promotion-mark {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
    color: #ffffff;
    font-size: 10px;
    background: linear-gradient(135deg, #20c7cb 0%, #7928e8 60%, #ef4f8b 100%);
    box-shadow: 0 2px 6px rgba(121, 40, 232, 0.16);
  }

  #header .feppi-mobile-quick-links > a:active,
  #header .feppi-mobile-quick-links > a:focus-visible {
    color: #7928e8 !important;
    border-color: rgba(121, 40, 232, 0.42) !important;
    background: #f7efff !important;
    transform: translateY(-1px) !important;
  }

  #header .feppi-mobile-quick-links > .feppi-mobile-quick-link--promotions:active,
  #header .feppi-mobile-quick-links > .feppi-mobile-quick-link--promotions:focus-visible {
    color: #6f20dc !important;
    background: #f7f0ff !important;
    border-color: rgba(121, 40, 232, 0.34) !important;
    box-shadow: 0 5px 13px rgba(121, 40, 232, 0.09) !important;
    transform: none !important;
  }
}

.feppi-header-search .feppi-search-submit:hover {
  color: #6a20d0 !important;
  background: #f7f2ff !important;
}

.feppi-header-search .feppi-search-submit:focus-visible {
  outline: 2px solid #10bfd1 !important;
  outline-offset: 2px;
}

.feppi-header-search .feppi-search-submit .material-icons {
  margin: 0 !important;
  color: inherit !important;
  font-size: 24px !important;
  line-height: 1 !important;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .feppi-topbar > .container-md,
  .feppi-header > .container-md,
  .feppi-navigation > .container-md {
    width: calc(100% - 128px) !important;
    max-width: 1656px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767.98px) {
  html.feppi-category-menu-open,
  html.feppi-category-menu-open body {
    overflow: hidden;
  }

  .feppi-mainmenu-host,
  .feppi-mainmenu-host[aria-hidden='true'],
  .feppi-mainmenu-host[aria-hidden='false'] {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1080 !important;
    display: block !important;
    width: min(360px, calc(100vw - 42px)) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 14px 22px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    background:
      linear-gradient(
        180deg,
        #ffffff 0%,
        #fdfcff 54%,
        #f7fffe 100%
      ) !important;
    border: 0 !important;
    border-right: 1px solid rgba(121, 40, 232, 0.14) !important;
    border-radius: 0 24px 24px 0 !important;
    box-shadow: 22px 0 60px rgba(21, 24, 61, 0.24) !important;
    transform: translateX(-100%) !important;
    transition:
      transform 0.22s ease,
      opacity 0.18s ease,
      visibility 0.22s ease !important;
    box-sizing: border-box !important;
  }

  html.feppi-category-menu-open
    .feppi-mainmenu-host[aria-hidden='false'] {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  html.feppi-category-menu-open body::before {
    position: fixed;
    inset: 0;
    z-index: 1020;
    content: '';
    background: rgba(21, 24, 61, 0.46);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .feppi-category-dropdown-mobile-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -14px 12px;
    padding: 0 12px 0 20px;
    color: #15183d;
    font-size: 19px;
    font-weight: 800;
    background:
      linear-gradient(
        135deg,
        #ffffff 0%,
        rgba(232, 252, 250, 0.92) 52%,
        rgba(247, 238, 255, 0.92) 100%
      );
    border-bottom: 1px solid rgba(121, 40, 232, 0.14);
    box-shadow: 0 7px 20px rgba(21, 24, 61, 0.06);
  }

  .feppi-category-dropdown-mobile-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    content: '';
    background: linear-gradient(90deg, #20c7cb 0%, #7928e8 100%);
  }

  .feppi-category-dropdown-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #7022df;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(121, 40, 232, 0.16);
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(53, 38, 102, 0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .feppi-category-dropdown-close:focus-visible {
    color: #087f86;
    background: #effdfc;
    border-color: rgba(32, 199, 203, 0.7);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(32, 199, 203, 0.13);
  }

  .feppi-category-dropdown-close .material-icons {
    font-size: 27px;
  }

  .feppi-category-dropdown-menu .ps-categorytree {
    margin: 0;
    padding: 0;
  }

  .feppi-category-dropdown-menu
    .ps-categorytree
    > .left-block__title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
  }

  .feppi-category-dropdown-menu
    .ps-categorytree
    > .left-block__title
    .left-block__title-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 14px;
    color: #15183d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    background:
      linear-gradient(
        135deg,
        rgba(232, 252, 250, 0.9) 0%,
        rgba(247, 238, 255, 0.9) 100%
      );
    border: 1px solid rgba(121, 40, 232, 0.14);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(21, 24, 61, 0.055);
  }

  .feppi-category-dropdown-menu .category-tree__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .feppi-category-dropdown-menu
    .category-tree__child
    > .category-tree__list[data-depth='0'] {
    display: grid;
    gap: 7px;
  }

  .feppi-category-dropdown-menu .category-tree__item {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .feppi-category-dropdown-menu
    .category-tree__list[data-depth='0']
    > .category-tree__item
    > .category-tree__item-header {
    position: relative;
    display: flex;
    min-height: 50px;
    align-items: stretch;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(121, 40, 232, 0.12);
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(21, 24, 61, 0.05);
  }

  .feppi-category-dropdown-menu .category-tree__item-link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    padding: 10px 48px 10px 14px;
    color: #15183d;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 13px;
    -webkit-tap-highlight-color: transparent;
  }

  .feppi-category-dropdown-menu
    .category-tree__item-header:not(.split)
    > .category-tree__item-link {
    padding-right: 14px;
  }

  .feppi-category-dropdown-menu
    .category-tree__list[data-depth='0']
    > .category-tree__item
    > .category-tree__item-header:focus-within {
    border-color: rgba(32, 199, 203, 0.62);
    box-shadow: 0 0 0 3px rgba(32, 199, 203, 0.11);
  }

  .feppi-category-dropdown-menu
    .category-tree__item-header
    > .accordion-button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    color: #7022df;
    background: #f8f4ff;
    border: 0;
    border-radius: 11px;
    box-shadow: none;
  }

  .feppi-category-dropdown-menu
    .category-tree__item-header
    > .accordion-button::after {
    width: 16px;
    height: 16px;
    margin: auto;
    background-size: 16px;
  }

  .feppi-category-dropdown-menu
    .category-tree__item-header
    > .accordion-button:not(.collapsed) {
    color: #ffffff;
    background: linear-gradient(135deg, #20c7cb 0%, #7928e8 100%);
  }

  .feppi-category-dropdown-menu
    .category-tree__item-header
    > .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
  }

  .feppi-category-dropdown-menu .accordion-collapse > .accordion-body {
    margin: 0;
    padding: 7px 0 2px 12px;
  }

  .feppi-category-dropdown-menu
    .accordion-body
    > .category-tree__list {
    display: grid;
    gap: 4px;
    padding-left: 10px;
    border-left: 2px solid rgba(32, 199, 203, 0.35);
  }

  .feppi-category-dropdown-menu
    .accordion-body
    .category-tree__item-header {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: stretch;
    margin: 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    border-radius: 11px;
  }

  .feppi-category-dropdown-menu
    .accordion-body
    .category-tree__item-link {
    min-height: 42px;
    padding: 8px 42px 8px 11px;
    color: #303754;
    font-size: 13px;
    font-weight: 650;
    border-radius: 10px;
  }

  .feppi-category-dropdown-menu
    .accordion-body
    .category-tree__item-header:not(.split)
    > .category-tree__item-link {
    padding-right: 11px;
  }

  .feppi-category-dropdown-menu
    .accordion-body
    .category-tree__item-header
    > .accordion-button {
    top: 4px;
    right: 4px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  .feppi-header-search .ps-searchbar__offcanvas {
    width: 100vw !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .feppi-header-search
    .ps-searchbar__offcanvas
    .offcanvas-header {
    display: flex !important;
    width: 100% !important;
    align-items: flex-start !important;
    gap: 9px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .feppi-header-search .ps-searchbar__container {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .feppi-header-search
    .ps-searchbar__container
    .ps-searchbar,
  .feppi-header-search .ps-searchbar__container form {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .feppi-header-search
    .ps-searchbar__container
    .js-search-input,
  .feppi-header-search
    .ps-searchbar__container
    input[type='text'],
  .feppi-header-search
    .ps-searchbar__container
    input[type='search'] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 48px 0 16px !important;
    color: #15183d !important;
    font-size: 16px !important;
    line-height: 48px !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
  }

  .feppi-header-search
    .ps-searchbar__offcanvas
    .btn-link {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 4px !important;
    color: #7928e8 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: transparent !important;
    white-space: nowrap !important;
  }

  .feppi-header-search
    .ps-searchbar__offcanvas
    .btn-link:hover {
    color: #6a20d0 !important;
  }

  .feppi-header-search
    .ps-searchbar__offcanvas
    .btn-link:focus-visible {
    color: #7928e8 !important;
    outline: 2px solid #10bfd1 !important;
    outline-offset: 2px;
  }
}
