:root {
  --qms-pink: #c4005f;
  --qms-pink-hover: #9f004d;
  --qms-accent: #ff1178;
  --qms-text: #111;
  --qms-muted: #737373;
  --qms-border: #e3e3e3;
  --qms-white: #fff;
  --qms-container: 1240px;
  --qms-topbar-container: 1450px;
  --qms-header-z: 1000;
}

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

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--qms-text);
  background: #fff;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
}

body.qms-menu-open,
body.qms-search-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--qms-pink);
}

.qms-header {
  position: sticky;
  z-index: var(--qms-header-z);
  top: 0;
  width: 100%;
  background: var(--qms-white);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
}

.admin-bar .qms-header {
  top: 32px;
}

.qms-topbar {
  height: 38px;
  overflow: hidden;
  background: var(--qms-pink);
}

.qms-topbar__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 24px;
  width: min(100%, var(--qms-topbar-container));
  height: 38px;
  margin: 0 auto;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.qms-topbar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
}

.qms-topbar__icon {
  display: block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.qms-topbar__icon--medal {
  flex-basis: 19px;
}

.qms-header__main {
  display: grid;
  grid-template-columns: 295px minmax(360px, 570px) 295px;
  align-items: center;
  gap: 20px;
  width: min(100%, var(--qms-container));
  height: 82px;
  padding: 0 20px;
  margin: 0 auto;
}

.qms-header__brand {
  display: flex;
  align-items: center;
}

.qms-header__logo-link,
.qms-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.qms-header__logo,
.qms-header__brand .custom-logo {
  display: block;
  width: 165px;
  max-width: 100%;
  height: auto;
}

.qms-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  overflow: hidden;
  background: var(--qms-white);
  border: 1px solid var(--qms-border);
  border-radius: 4px;
}

.qms-search:focus-within {
  border-color: var(--qms-pink);
  box-shadow: 0 0 0 3px rgba(196, 0, 95, 0.12);
}

.qms-search__input {
  width: 100%;
  height: 48px;
  padding: 0 58px 0 20px;
  color: #333;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.qms-search__input::placeholder {
  color: #9b9b9b;
  opacity: 1;
}

.qms-search__submit,
.qms-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 48px;
  padding: 0;
  color: var(--qms-pink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.qms-search__submit svg,
.qms-search__close svg,
.qms-icon-button svg,
.qms-header__account svg,
.qms-header__cart svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qms-search__close {
  display: none;
}

.qms-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.qms-header__account,
.qms-header__cart,
.qms-icon-button {
  color: var(--qms-pink);
}

.qms-header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 38px;
  text-decoration: none;
}

.qms-header__account svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}

.qms-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 118px;
  height: 44px;
  padding-left: 10px;
  text-decoration: none;
}

.qms-header__cart-copy {
  display: flex;
  flex-direction: column;
  order: 1;
  color: #111;
  font-size: 14px;
  line-height: 1.05;
}

.qms-header__cart-copy strong {
  font-weight: 700;
}

.qms-header__cart-total {
  margin-top: 3px;
  font-weight: 400;
}

.qms-header__cart-icon {
  position: relative;
  display: inline-flex;
  order: 0;
}

.qms-header__cart-icon svg {
  width: 26px;
  height: 26px;
}

.qms-header__cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #fff;
  background: var(--qms-pink);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.qms-icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.qms-icon-button__close {
  display: none;
}

.qms-icon-button[aria-expanded="true"] .qms-icon-button__open {
  display: none;
}

.qms-icon-button[aria-expanded="true"] .qms-icon-button__close {
  display: block;
}

.qms-nav {
  height: 54px;
  background: #fff;
  border-top: 1px solid rgba(17, 17, 17, 0.02);
}

.qms-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--qms-container));
  height: 54px;
  padding: 0 20px;
  margin: 0 auto;
}

.qms-nav__list,
.qms-category-menu,
.qms-category-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.qms-nav__list {
  display: flex;
  align-items: center;
}

.qms-nav__item {
  position: relative;
}

.qms-nav__link,
.qms-nav__list > .menu-item > a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 15px;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 46px;
  text-transform: uppercase;
}

.qms-nav__link:hover,
.qms-nav__link:focus-visible,
.qms-nav__list > .menu-item > a:hover,
.qms-nav__list > .menu-item > a:focus-visible {
  color: var(--qms-pink);
}

.qms-nav__list > .current-menu-item > a,
.qms-nav__list > .current_page_item > a {
  color: var(--qms-pink);
}

@media (min-width: 1181px) {
  .qms-nav__list > .menu-item > a,
  .qms-nav__link {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
  }
}

.qms-nav__categories-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 245px;
  height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--qms-pink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
	text-decoration: none;
}

.qms-nav__categories-button:hover,
.qms-nav__categories-button:focus-visible,
.qms-nav__item--categories.is-open .qms-nav__categories-button {
  background: var(--qms-pink-hover);
}

.qms-nav__categories-button svg {
  width: 11px;
  height: 7px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.qms-nav__item--categories.is-open .qms-nav__categories-button svg {
  transform: rotate(180deg);
}

.qms-nav__categories-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 1px);
  left: 0;
  display: none;
  width: 240px;
  padding: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
}

.qms-nav__item--categories:hover .qms-nav__categories-panel,
.qms-nav__item--categories:focus-within .qms-nav__categories-panel,
.qms-nav__item--categories.is-open .qms-nav__categories-panel {
  display: block;
}

.qms-category-menu li {
  position: relative;
}

.qms-category-menu a {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 11px 46px 11px 18px;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.qms-category-menu a:hover,
.qms-category-menu a:focus-visible {
  color: var(--qms-pink);
  background: #fff6fa;
}

.qms-category-menu .current-menu-item > a {
  color: var(--qms-pink);
}

.qms-category-menu__submenu-toggle {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 49px;
  padding: 0;
  color: #777;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.qms-category-menu__submenu-toggle:hover,
.qms-category-menu__submenu-toggle:focus-visible {
  color: var(--qms-pink);
  outline: none;
}

.qms-category-menu__submenu-toggle svg {
  width: 7px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.qms-category-menu__submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.qms-category-menu ul {
  position: absolute;
  top: -1px;
  left: 100%;
  display: none;
  width: 240px;
  padding: 0;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
}

.qms-category-menu li:hover > ul,
.qms-category-menu li:focus-within > ul,
.qms-category-menu li.is-submenu-open > ul {
  display: block;
}

.qms-lab {
  min-height: 900px;
  padding: 72px 24px 140px;
  background: linear-gradient(180deg, #fff 0, #fff8fb 100%);
}

.qms-lab__intro,
.qms-lab__checks {
  width: min(100%, 920px);
  margin: 0 auto;
}

.qms-lab__eyebrow {
  margin: 0 0 10px;
  color: var(--qms-pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.qms-lab h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.qms-lab__intro > p:last-child {
  max-width: 680px;
  color: #555;
  font-size: 18px;
  line-height: 1.65;
}

.qms-lab__checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.qms-lab__checks div {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  background: #fff;
  border: 1px solid #f0dce6;
  border-radius: 10px;
}

.qms-lab__checks span {
  color: #666;
  line-height: 1.5;
}

.qms-lab-footer {
  padding: 24px;
  color: #fff;
  background: #222;
  text-align: center;
}

.qms-lab-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .qms-topbar,
  .qms-topbar__inner {
    height: 36px;
  }

  .qms-topbar__inner {
    column-gap: 10px;
    padding: 0 18px;
    font-size: 11px;
  }

  .qms-topbar__item {
    gap: 7px;
    height: 36px;
  }

  .qms-topbar__icon {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  .qms-header__main {
    grid-template-columns: minmax(130px, 185px) minmax(120px, 520px) auto;
    gap: 14px;
    height: 92px;
  }

  .qms-header__logo,
  .qms-header__brand .custom-logo {
    width: clamp(130px, 22vw, 185px);
  }

  .qms-search {
    height: 42px;
  }

  .qms-search__input,
  .qms-search__submit {
    height: 40px;
  }

  .qms-header__account {
    order: 2;
  }

  .qms-header__cart {
    order: 1;
    min-width: 58px;
  }

  .qms-header__cart-copy {
    order: 2;
    font-size: 11px;
  }

  .qms-header__cart-icon {
    order: 1;
  }

  .qms-icon-button--menu {
    display: inline-flex;
    order: 3;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--qms-pink);
  }

  .qms-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    height: calc(100vh - 128px);
    overflow: auto;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 18px 30px rgba(17, 17, 17, 0.16);
  }

  .qms-nav.is-open {
    display: block;
  }

  .qms-nav__inner {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
  }

  .qms-nav__list {
    display: block;
  }

  .qms-nav__link,
  .qms-nav__list > .menu-item > a,
  .qms-nav__categories-button {
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 24px;
    color: #111;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    font-size: 14px;
    line-height: 58px;
  }

  .qms-nav__categories-button:hover,
  .qms-nav__categories-button:focus-visible,
  .qms-nav__item--categories.is-open .qms-nav__categories-button {
    color: var(--qms-pink);
    background: #fff;
  }

  .qms-nav__categories-panel {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .qms-nav__item--categories:hover .qms-nav__categories-panel {
    display: none;
  }

  .qms-nav .qms-nav__list .qms-nav__item--categories.is-open > .qms-nav__categories-panel {
    display: block;
  }

  .qms-category-menu a {
    min-height: 50px;
    padding: 10px 58px 10px 38px;
    border-bottom: 1px solid #f3f3f3;
  }

  .qms-category-menu ul {
    position: static;
    display: none;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .qms-category-menu li:hover > ul,
  .qms-category-menu li:focus-within > ul {
    display: none;
  }

  .qms-category-menu li.is-submenu-open > ul {
    display: block;
  }

  .qms-category-menu ul a {
    padding-left: 56px;
    font-weight: 400;
  }

  .qms-category-menu ul ul a {
    padding-left: 74px;
  }

  .qms-category-menu ul ul ul a {
    padding-left: 92px;
  }

  .qms-category-menu__submenu-toggle {
    width: 52px;
    height: 50px;
  }
}

@media (max-width: 700px) and (min-width: 545px) {
  .qms-topbar__item:nth-child(1) > span {
    font-size: 0;
  }

  .qms-topbar__item:nth-child(1) > span::after {
    content: "Darmowa dostawa od 500 zł netto";
    font-size: 10px;
  }

  .qms-topbar__item:nth-child(2) > span {
    font-size: 0;
  }

  .qms-topbar__item:nth-child(2) > span::after {
    content: "Wysyłka 24h";
    font-size: 10px;
  }

  .qms-topbar__item:nth-child(3) > span {
    font-size: 0;
  }

  .qms-topbar__item:nth-child(3) > span::after {
    content: "Premium B2B";
    font-size: 10px;
  }
}

@media (max-width: 544px) {
  .admin-bar .qms-header {
    top: 46px;
  }

  .qms-topbar {
    display: none;
  }

  .qms-header__main {
    display: flex;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    height: 58px;
    padding: 0 6px 0 30px;
  }

  .qms-header__logo,
  .qms-header__brand .custom-logo {
    width: 145px;
  }

  .qms-header__actions {
    gap: 6px;
  }

  .qms-icon-button,
  .qms-header__account,
  .qms-header__cart {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .qms-icon-button--search,
  .qms-icon-button--menu {
    display: inline-flex;
    color: #fff;
    background: var(--qms-pink);
  }

  .qms-icon-button--search {
    order: 0;
  }

  .qms-header__cart {
    order: 1;
    justify-content: center;
    gap: 7px;
    padding-left: 0;
  }

  .qms-header__account {
    order: 2;
  }

  .qms-icon-button--menu {
    order: 3;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .qms-header__cart-copy {
    display: none;
  }

  .qms-header__cart-icon svg {
    width: 25px;
    height: 25px;
  }

  .qms-search {
    position: fixed;
    z-index: calc(var(--qms-header-z) + 10);
    inset: 0;
    display: none;
    align-items: flex-start;
    width: 100%;
    height: 100dvh;
    padding: 18px 58px 18px 18px;
    background: #fff;
    border: 0;
    border-radius: 0;
  }

  .qms-search.is-open {
    display: flex;
  }

  .qms-search__input {
    height: 46px;
    padding: 0 54px 0 18px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .qms-search__submit {
    position: absolute;
    top: 18px;
    right: 58px;
    width: 50px;
    height: 46px;
  }

  .qms-search__close {
    position: absolute;
    top: 18px;
    right: 8px;
    display: inline-flex;
    width: 46px;
    height: 46px;
  }

  .qms-nav {
    height: calc(100vh - 58px);
  }

  .qms-lab {
    padding-top: 52px;
  }

  .qms-lab__checks {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
