@charset "UTF-8";
.site-header {
  margin: 0;
  padding: 0;
  background: var(--color-soft-cream);
  border-bottom: 1px solid var(--color-border);
}

.impulse-header {
  background: var(--color-soft-cream);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 24px;
  position: static;
  top: auto;
  z-index: auto;
}
.impulse-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
  position: relative;
}
.impulse-header .header-logo {
  justify-self: start;
}
.impulse-header .header-nav {
  justify-self: center;
  display: flex;
}
.impulse-header .header-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.impulse-header .header-nav a {
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
  color: var(--link);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.impulse-header .header-nav a:hover, .impulse-header .header-nav a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}
.impulse-header .header-buy {
  justify-self: end;
  text-align: right;
}
.impulse-header .header-buy .btn-buy {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 11px 24px;
  border: 0;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.06s ease;
}
.impulse-header .header-buy .btn-buy:hover {
  background-color: var(--btn-bg-hover);
  text-decoration: none;
}
.impulse-header .header-buy .btn-buy:active {
  transform: translateY(1px);
}
.impulse-header .header-buy .btn-buy:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111;
}

.site-header .custom-logo-link,
.site-header .site-logo,
.site-header .header-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 4px;
}
.site-header .custom-logo-link:focus-visible,
.site-header .site-logo:focus-visible,
.site-header .header-logo:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111;
}
.site-header .custom-logo-link img,
.site-header .site-logo img,
.site-header .header-logo img {
  max-height: 80px;
  height: auto !important;
  width: auto !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
  .site-header .custom-logo-link img,
.site-header .site-logo img,
.site-header .header-logo img {
    max-height: 64px;
  }
}
.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  line-height: 0;
  border-radius: 8px;
}
.menu-toggle:focus {
  outline: none;
}
.menu-toggle:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111;
}
.menu-toggle::before, .menu-toggle::after {
  content: none !important;
}
.menu-toggle .hamburger-icon,
.menu-toggle .hamburger-icon::before,
.menu-toggle .hamburger-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 32px;
  height: 2.6px;
  background-color: var(--color-cozy-brown);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.menu-toggle .hamburger-icon {
  top: 50%;
  transform: translate(-50%, -50%);
}
.menu-toggle .hamburger-icon::before {
  top: calc(50% - 9px);
  transform: translate(-50%, -50%);
}
.menu-toggle .hamburger-icon::after {
  top: calc(50% + 9px);
  transform: translate(-50%, -50%);
}
.menu-toggle.is-active .hamburger-icon {
  background: transparent;
}
.menu-toggle.is-active .hamburger-icon::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle.is-active .hamburger-icon::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
@media (max-width: 768px) {
  .impulse-header .header-inner {
    grid-template-columns: auto auto;
  }
  .impulse-header .header-buy {
    display: none;
  }
  .impulse-header .header-nav {
    display: none !important;
  }
  .impulse-header .header-nav.toggled {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  }
  .impulse-header .header-nav.toggled ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    text-align: center;
  }
  .impulse-header .header-nav.toggled li {
    border-bottom: 1px solid var(--color-border);
  }
  .impulse-header .header-nav.toggled a {
    display: block;
    padding: 15px 20px;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }
}
@media (min-width: 769px) {
  .impulse-header .header-nav {
    display: flex !important;
    position: static;
  }
}
.impulse-header {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.site-header .custom-logo-link img,
.site-header .site-logo img,
.header-logo img {
  max-height: 80px !important;
  height: auto !important;
  width: auto !important;
}

@media (max-width: 768px) {
  .site-header .custom-logo-link img,
.site-header .site-logo img,
.header-logo img {
    max-height: 56px !important;
  }
}
/* MOBILE MENU – FIX ostatniego elementu */
@media (max-width: 768px) {
  .impulse-header .header-nav.toggled ul li:last-child {
    border-bottom: 0;
    padding-bottom: 20px;
  }
}
.site-header,
.storefront-primary-navigation {
  color: var(--color-text);
}

.site-header a,
.storefront-primary-navigation a {
  color: var(--color-text-dark);
  font-weight: 500;
}

.site-header a:hover,
.storefront-primary-navigation a:hover {
  color: var(--color-cozy-brown);
}

.impulse-header {
  /* Impulse / Shopify style — clean minimal cart icon */
}
.impulse-header .header-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.impulse-header .sp-cart-icon {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cozy-brown);
  transition: color 0.2s ease, transform 0.06s ease;
}
.impulse-header .sp-cart-icon:hover {
  color: var(--link-hover);
  transform: translateY(-1px);
}
.impulse-header .sp-cart-icon:active {
  transform: translateY(1px);
}
.impulse-header .sp-cart-icon:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111;
}
.impulse-header .sp-cart-icon .sp-cart-icon__icon {
  font-size: 20px;
  line-height: 1;
  display: block;
}
.impulse-header .sp-cart-icon .sp-cart-icon__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-cozy-brown);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  /* white outline like Shopify */
}

.sp-cart-icon__icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .impulse-header {
    position: relative;
  }
  .impulse-header .header-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .impulse-header .header-buy {
    display: none;
  }
  .impulse-header .header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 44px;
  }
  .impulse-header .header-nav {
    display: none !important;
  }
  .impulse-header .header-nav.toggled {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  }
  .impulse-header .header-nav.toggled ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    text-align: center;
  }
  .impulse-header .header-nav.toggled li {
    border-bottom: 1px solid var(--color-border);
  }
  .impulse-header .header-nav.toggled a {
    display: block;
    padding: 15px 20px;
  }

  /* hamburger – absolutnie w prawym rogu, obok koszyka */
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    align-items: center;
  }
}
/* =============================================
   MOBILE HEADER (<=768px)
   logo po lewej | po PRAWEJ: koszyk + hamburger
   ============================================= */
@media (max-width: 768px) {
  /* Pasek jako flex – bez grida */
  .impulse-header {
    position: relative;
  }

  .impulse-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* logo zawsze po lewej */
  .impulse-header .header-logo {
    flex: 0 0 auto;
  }

  /* chowamy nav + Buy na mobile */
  .impulse-header .header-nav {
    display: none !important;
  }

  .impulse-header .header-buy {
    display: none !important;
  }

  /* prawa strona z koszykiem – przesunięta na prawo
     + padding na miejsce dla hamburgera */
  .impulse-header .header-right {
    margin-left: auto !important;
    padding-right: 52px !important;
    /* MIEJSCE NA HAMBURGERA */
    display: flex !important;
    align-items: center !important;
  }

  .impulse-header .sp-cart-icon {
    display: flex !important;
  }

  /* hamburger – absolutnie w prawym rogu,
     więc mamy: [logo] .... [koszyk] [hamburger] */
  .impulse-header .menu-toggle {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
}
@media (max-width: 768px) {
  .impulse-header .header-right {
    padding-right: 90px !important;
    /* zwiększamy odstęp np. z 52 → 70 */
  }

  .impulse-header .menu-toggle {
    right: 16px !important;
    /* hamburger zostaje tam gdzie był */
  }
}

/*# sourceMappingURL=header.css.map */
