/* Visual bridge between sklep.polok.pl and the main POLOK website.
   Commerce markup and JavaScript hooks intentionally remain untouched. */
:root {
  --polok-ink: #262526;
  --polok-muted: #53606a;
  --polok-blue: #246092;
  --polok-blue-hover: #163f62;
  --polok-navy: #10191f;
  --polok-line: #d6dde2;
  --polok-paper: #f5f7f8;
}

.header {
  border-bottom: 1px solid var(--polok-line);
  box-shadow: none;
}

.header .wrapper {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.header-main {
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
}

.header-main__grid { min-height: 74px; }

.header-main__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 310px;
  height: 48px;
  text-decoration: none;
}

.header-main__logo > a:first-child {
  display: block;
  flex: 0 0 auto;
  line-height: 1;
}

.header-main__logo img {
  display: block;
  flex: 0 0 auto;
  width: 176px;
  height: auto;
}

.header-main__store-link {
  padding-left: 16px;
  border-left: 1px solid var(--polok-line);
  color: var(--polok-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.header-main__store-link:hover,
.header-main__store-link:focus-visible {
  color: var(--polok-blue);
}

.header-main__right { width: calc(100% - 310px); }

.header-searchbar {
  min-width: 260px;
  max-width: 390px;
}

.header-searchbar__input {
  overflow: hidden;
  border: 1px solid var(--polok-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.header-searchbar__input:focus-within {
  border-color: var(--polok-blue);
  box-shadow: 0 0 0 3px rgba(36, 96, 146, .12);
}

.header-searchbar__input input {
  border: 0;
  border-radius: 0;
  color: var(--polok-ink);
  font-size: .9rem;
}

.header-searchbar__input button {
  border: 0;
  border-left: 1px solid var(--polok-line);
  border-radius: 0 !important;
  background: var(--polok-paper);
}

.header-searchbar__input button:hover { background: #eaf1f5; }

.header-main__icons {
  gap: 16px;
  padding-left: 24px;
}

.header-main__actionbtn {
  width: 27px;
  margin-right: 0;
}

.header-main__actionbtnbadge {
  background: var(--polok-blue);
}

@media screen and (min-width: 1205px) {
  .header-ghost { height: 75px; }
}

@media screen and (min-width: 901px) and (max-width: 1204px) {
  .header-ghost { height: 75px; }
}

@media screen and (max-width: 1120px) {
  .header-main__logo img {
    width: 158px;
    height: auto;
  }
}

@media screen and (max-width: 900px) {
  .header-main__right { width: 100%; }

  .header-main__grid { min-height: 74px; }

  .header-main__icons {
    gap: 0;
    padding-left: 0;
  }

  .header-searchbar__input input { border-radius: 0; }

  .header-ghost { height: 75px; }
}

@media screen and (max-width: 650px) {
  .header-main__logo {
    gap: 12px;
    width: 250px;
    height: 42px;
  }

  .header-main__store-link {
    padding-left: 12px;
    font-size: .68rem;
    white-space: normal;
  }

  .header-ghost { height: 75px; }
}
