.lmf-header {
  --lmf-font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --lmf-font-sans: "Inter", Arial, Helvetica, sans-serif;
  --lmf-header-text: #111612;
  --lmf-header-muted: #7e7d77;
  --lmf-header-line: #eef0ec;
  background: #fbfbf8;
  border-bottom: 1px solid var(--lmf-header-line);
  font-family: var(--lmf-font-sans);
  padding: 14px 0 24px;
}

.header.js-sticky-header {
  background: #fbfbf8;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.header.js-sticky-header.lmf-header-is-scrolled {
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  background: rgba(251, 251, 248, 0.62);
  box-shadow: 0 18px 42px rgba(17, 22, 18, 0.1);
}

.header.js-sticky-header.lmf-header-is-scrolled .lmf-header {
  background: rgba(251, 251, 248, 0.58);
  border-bottom-color: rgba(17, 22, 18, 0.14);
}

.lmf-header h1,
.lmf-header h2 {
  font-family: var(--lmf-font-serif);
}

.lmf-header .lmf-header__container {
  max-width: none;
  padding-inline: clamp(1rem, 5.4vw, 102px);
}

.lmf-header__row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) auto minmax(260px, 1fr);
  min-height: 150px;
  position: relative;
}

.lmf-header__top-modules {
  align-items: center;
  display: contents;
}

.lmf-header .ps-mainmenu--desktop {
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: 38px;
  min-width: 0;
  width: 100%;
}

.lmf-header .ps-mainmenu__desktop {
  display: block !important;
}

.lmf-header .ps-mainmenu__mobile-toggle {
  display: none;
}

.lmf-header .ps-mainmenu__tree {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(18px, 2vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.lmf-header .ps-mainmenu__tree-item-wrapper {
  align-items: center;
  display: flex;
}

.lmf-header .ps-mainmenu__tree-link {
  color: var(--lmf-header-text);
  display: inline-flex;
  font-family: var(--lmf-font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding-block: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lmf-header .ps-mainmenu__tree-item.current .ps-mainmenu__tree-link,
.lmf-header .ps-mainmenu__tree-link:hover {
  color: var(--lmf-header-text);
}

.lmf-header .ps-mainmenu__tree-item.current .ps-mainmenu__tree-link::after,
.lmf-header .ps-mainmenu__tree-link:hover::after {
  transform: scaleX(1);
}

.lmf-header .ps-mainmenu__tree-link::after {
  background: var(--lmf-header-text);
  content: "";
  height: 1px;
  inset: auto 0 6px;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.lmf-header .ps-mainmenu__tree-link {
  position: relative;
}

.lmf-header .ps-mainmenu__tree-dropdown-toggle {
  border: 0;
  color: var(--lmf-header-text);
  padding-inline: 4px 0;
}

.lmf-header__brand {
  grid-column: 2;
  justify-self: center;
  min-width: 260px;
  text-align: center;
}

.lmf-header__h1 {
  line-height: 1;
  margin: 0;
}

.lmf-brand {
  align-items: center;
  color: var(--lmf-header-text);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.lmf-brand:hover {
  color: var(--lmf-header-text);
}

.lmf-brand__tree {
  background: url("../img/la-maison-finnoise-logo.webp") center / contain no-repeat;
  display: block;
  height: 48px;
  margin-bottom: 2px;
  width: 48px;
}

.lmf-brand__small {
  font-family: var(--lmf-font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 7px;
  padding-left: 7px;
}

.lmf-brand__name {
  font-family: var(--lmf-font-serif);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 9px;
  padding-left: 9px;
}

.lmf-brand__tagline {
  color: var(--lmf-header-muted);
  font-family: var(--lmf-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  padding-left: 5px;
}

.lmf-header__actions {
  align-items: center;
  display: flex;
  gap: 18px;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.lmf-header__actions #_desktop_ps_customersignin,
.lmf-header__actions #_desktop_ps_shoppingcart {
  display: flex;
}

.lmf-header #_desktop_ps_searchbar,
.lmf-header #_desktop_ps_customersignin,
.lmf-header #_desktop_ps_shoppingcart {
  grid-row: 1;
}

.lmf-header #_desktop_ps_searchbar {
  display: flex !important;
  grid-column: 3;
  justify-self: end;
  margin-right: 106px;
  z-index: 2;
}

.lmf-header #_desktop_ps_customersignin,
.lmf-header #_desktop_ps_shoppingcart {
  grid-column: auto;
  justify-self: auto;
}

.lmf-header__actions #_desktop_ps_customersignin,
.lmf-header__actions #_desktop_ps_shoppingcart {
  margin: 0;
}

.lmf-header .ps-searchbar {
  height: 44px;
  margin: 0;
  min-width: 24px;
  overflow: visible;
  position: relative;
  width: 44px;
  z-index: 20;
}

.lmf-header .ps-searchbar__form {
  align-items: center;
  display: flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: width 220ms ease;
  width: 44px;
  z-index: 21;
}

.lmf-header .ps-searchbar__magnifier {
  color: var(--lmf-header-text);
  font-size: 27px;
  left: auto;
  pointer-events: none;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    right 220ms ease;
}

.lmf-header .ps-searchbar__input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  color: var(--lmf-header-text);
  height: 44px;
  opacity: 0;
  padding: 0 44px 0 16px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 160ms ease;
  width: 100%;
}

.lmf-header .ps-searchbar:hover .ps-searchbar__form,
.lmf-header .ps-searchbar__form:focus-within {
  background: transparent;
  justify-content: flex-start;
  width: min(360px, 34vw);
}

.lmf-header .ps-searchbar:hover .ps-searchbar__magnifier,
.lmf-header .ps-searchbar__form:focus-within .ps-searchbar__magnifier {
  right: 14px;
}

.lmf-header .ps-searchbar:hover .ps-searchbar__input,
.lmf-header .ps-searchbar__form:focus-within .ps-searchbar__input {
  background: #fff;
  border-color: rgba(17, 22, 18, .16);
  box-shadow:
    -18px 0 28px rgba(251, 251, 248, .94),
    0 14px 34px rgba(17, 22, 18, .12);
  opacity: 1;
}

.lmf-header .ps-searchbar__clear {
  right: 46px;
}

.lmf-header .header-block__action-btn {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--lmf-header-text);
  display: inline-flex;
  gap: 0;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0;
  position: relative;
}

.lmf-header .header-block__action-btn::after {
  display: none;
}

.lmf-header .header-block__icon {
  color: var(--lmf-header-text);
  font-size: 27px;
  line-height: 1;
}

.lmf-header__actions #_desktop_ps_customersignin .header-block,
.lmf-header__actions #_desktop_ps_customersignin .ps-customersignin,
.lmf-header__actions #_desktop_ps_shoppingcart .header-block,
.lmf-header__actions #_desktop_ps_shoppingcart .ps-shoppingcart {
  align-items: center;
  display: flex;
}

.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn,
.lmf-header__actions #_desktop_ps_shoppingcart .header-block__action-btn {
  min-width: 34px;
  width: 34px;
}

.lmf-header .header-block__title {
  display: none !important;
}

.lmf-header__actions #_desktop_ps_customersignin .login,
.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn,
.lmf-header__actions #_desktop_ps_shoppingcart .header-block__action-btn,
.lmf-header__actions #_desktop_ps_shoppingcart .blockcart .header a {
  font-size: 0 !important;
}

.lmf-header__actions #_desktop_ps_customersignin i,
.lmf-header__actions #_desktop_ps_customersignin .material-icons,
.lmf-header__actions #_desktop_ps_customersignin .header-block__icon,
.lmf-header__actions #_desktop_ps_shoppingcart i,
.lmf-header__actions #_desktop_ps_shoppingcart .material-icons,
.lmf-header__actions #_desktop_ps_shoppingcart .header-block__icon {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--lmf-header-text) !important;
  font-size: 27px !important;
}

.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn > span,
.lmf-header__actions #_desktop_ps_customersignin a > span,
.lmf-header__actions #_desktop_ps_customersignin button > span,
.lmf-header__actions #_desktop_ps_shoppingcart .header-block__action-btn > span:not(.header-block__badge),
.lmf-header__actions #_desktop_ps_shoppingcart a > span:not(.header-block__badge),
.lmf-header__actions #_desktop_ps_shoppingcart span.header-block__action-btn > span:not(.header-block__badge) {
  display: none !important;
}

.lmf-header__actions #_desktop_ps_customersignin .header-block__icon {
  display: none !important;
}

.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn::before,
.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn::after {
  border-color: var(--lmf-header-text);
  content: "";
  display: block;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn::before {
  border: 2px solid var(--lmf-header-text);
  border-radius: 50%;
  height: 10px;
  top: 9px;
  width: 10px;
}

.lmf-header__actions #_desktop_ps_customersignin .header-block__action-btn::after {
  border: 2px solid var(--lmf-header-text);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  bottom: 9px;
  height: 11px;
  width: 22px;
}

.lmf-header .header-block__badge {
  align-items: center;
  background: var(--lmf-header-text);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding-inline: 4px;
  position: absolute;
  right: -4px;
  top: 5px;
}

.lmf-header__mobile-actions {
  display: none;
}

@media (max-width: 1199.98px) {
  .lmf-header {
    padding: 12px 0 16px;
  }

  .lmf-header__row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 104px;
  }

  .lmf-header .ps-mainmenu--desktop {
    grid-column: 1;
    grid-row: 1;
  }

  .lmf-header .ps-mainmenu__desktop {
    display: none !important;
  }

  .lmf-header .ps-mainmenu__mobile-toggle {
    display: block;
  }

  .lmf-header__brand {
    grid-column: 2;
    min-width: 0;
  }

  .lmf-header #_desktop_ps_searchbar,
  .lmf-header__actions {
    display: none !important;
  }

  .lmf-header .ps-searchbar--mobile {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 88px;
  }

  .lmf-header__mobile-actions {
    align-items: center;
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .lmf-brand__tree {
    height: 34px;
    margin-bottom: 0;
    width: 34px;
  }

  .lmf-brand__small {
    font-size: 14px;
    letter-spacing: 5px;
    padding-left: 5px;
  }

  .lmf-brand__name {
    font-size: 34px;
    letter-spacing: 6px;
    padding-left: 6px;
  }

  .lmf-brand__tagline {
    font-size: 9px;
    letter-spacing: 3px;
    padding-left: 3px;
  }

}

@media (max-width: 575.98px) {
  .lmf-header .lmf-header__container {
    padding-inline: 14px;
  }

  .lmf-header__row {
    min-height: 84px;
  }

  .lmf-header .ps-searchbar--mobile {
    margin-right: 72px;
  }

  .lmf-brand__small,
  .lmf-brand__tagline {
    display: none;
  }

  .lmf-brand__name {
    font-size: 26px;
    letter-spacing: 4px;
    padding-left: 4px;
  }

  .lmf-header .header-block__action-btn,
  .lmf-header .menu-toggle {
    height: 40px;
    min-width: 36px;
  }

}
