/* Shared shop header: one size + scroll surface across every public page. */
:root {
  --lemy-header-max: 1200px;
  --lemy-header-gutter: 48px;
  --lemy-header-width: min(var(--lemy-header-max), calc(100% - var(--lemy-header-gutter)));
  --lemy-header-ease: cubic-bezier(.22, 1, .36, 1);
}
.lemy-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 22px;
  padding: 18px 0 10px;
  background: transparent;
  transition:
    padding .45s var(--lemy-header-ease),
    background .45s var(--lemy-header-ease),
    backdrop-filter .45s ease;
}
.lemy-header-wrap.is-scrolled {
  padding: 10px 0 10px;
  background: linear-gradient(180deg, rgba(8, 7, 12, .78) 0%, rgba(8, 7, 12, .42) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.home-hero-wrap { padding-top: 0; }
.lemy-header-wrap + .page { padding-top: 0; }
.lemy-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: var(--lemy-header-width);
  max-width: 100%;
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 12px 8px 22px;
  border: 1px solid rgba(255, 182, 210, .14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(6, 5, 10, .94) 0, rgba(6, 5, 10, .86) 170px, transparent 300px),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 46%),
    linear-gradient(135deg, rgba(225, 29, 116, .18), rgba(16, 13, 22, .78) 44%, rgba(24, 16, 32, .86));
  color: #f3e6ee;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05) inset,
    0 1px 0 rgba(255, 214, 230, .16) inset,
    0 10px 28px rgba(0, 0, 0, .28),
    0 0 28px rgba(225, 29, 116, .1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition:
    width .45s var(--lemy-header-ease),
    min-height .45s var(--lemy-header-ease),
    padding .45s var(--lemy-header-ease),
    border-color .45s ease,
    background .45s ease,
    box-shadow .45s var(--lemy-header-ease),
    backdrop-filter .45s ease,
    transform .45s var(--lemy-header-ease);
  will-change: width, transform, box-shadow;
}
.lemy-header-wrap.is-scrolled .lemy-header {
  width: min(1040px, calc(100% - calc(var(--lemy-header-gutter) + 56px)));
  min-height: 58px;
  padding: 6px 10px 6px 18px;
  border-color: rgba(255, 182, 210, .22);
  background:
    linear-gradient(90deg, rgba(6, 5, 10, .94) 0, rgba(6, 5, 10, .86) 170px, transparent 300px),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 48%),
    linear-gradient(135deg, rgba(225, 29, 116, .24), rgba(14, 11, 20, .9) 42%, rgba(22, 14, 30, .94));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 1px 0 rgba(255, 214, 230, .2) inset,
    0 16px 40px rgba(0, 0, 0, .48),
    0 0 40px rgba(225, 29, 116, .16);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  transform: translateY(0);
}
.lemy-header::before {
  display: none;
}
.lemy-header__brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 148px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(225, 29, 116, .28));
  transition: filter .2s ease, transform .2s ease;
}
.lemy-header__brand:hover {
  color: #fff;
  filter: drop-shadow(0 0 18px rgba(225, 29, 116, .42));
  transform: translateY(-1px);
}
.lemy-header__brand .lemy-logo {
  display: block;
  width: 148px;
  max-width: 148px;
  max-height: 48px;
  height: auto;
  margin: 0;
  object-fit: contain;
}
.lemy-header__brand .lemy-logo--custom { width: auto; max-width: 148px; max-height: 48px; }
.lemy-header__brand .lemy-wordmark-text { max-width: 148px; color: #fff; }
.lemy-header__brand .lemy-wordmark-text > span { color: #e11d74; }
.lemy-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lemy-header__catalog { position: relative; }
.lemy-header__nav > .lemy-header__home { display: none; }
.lemy-header__directory { gap: 7px; }
.lemy-header__directory svg { flex: 0 0 auto; }
.lemy-header__nav > .lemy-header__directory {
  border-color: rgba(255, 182, 210, .2);
  background: rgba(225, 29, 116, .1);
  color: #ffc2db;
}
.lemy-header__directory[aria-expanded="true"] {
  border-color: rgba(255, 182, 210, .55);
  background: rgba(225, 29, 116, .26);
  color: #fff;
}
.lemy-header__directory > svg:last-child { transition: transform .15s ease; }
.lemy-header__directory[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.lemy-header__catalog-toggle { gap: 5px; }
.lemy-header__catalog-toggle svg { flex: 0 0 auto; transition: transform .2s ease; }
.lemy-header__catalog-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lemy-header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  box-sizing: border-box;
  width: 220px;
  max-height: min(480px, calc(100dvh - 140px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 8px 8px;
  border: 1px solid rgba(255, 182, 210, .25);
  border-radius: 18px;
  background: #21141f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
}
.lemy-header__submenu[hidden] { display: none !important; }
.lemy-header__submenu--end { left: auto; right: 0; }
.lemy-header__submenu#catalogSubmenu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 440px;
}
.lemy-header__sublink {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #eddae4;
  font: 600 13.5px/1.4 Manrope, system-ui, sans-serif;
  text-decoration: none;
}
.lemy-header__sublink:hover,
.lemy-header__sublink.is-current,
.lemy-header__sublink[aria-current="page"] { color: #ffd0e3; background: rgba(225, 29, 116, .2); }
.lemy-header__sublink:focus-visible { outline: 3px solid #ffb0d0; outline-offset: -2px; }
.lemy-header__link,
.lemy-header__search,
.lemy-header__account,
.lemy-header__toggle {
  position: relative;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #e8d5df;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lemy-header__link:hover {
  border-color: rgba(255, 182, 210, .18);
  background: rgba(255, 182, 210, .1);
  color: #fff;
}
.lemy-header__link[aria-current="page"],
.lemy-header__catalog-toggle.is-current,
.lemy-header__account[aria-current="page"] {
  border-color: rgba(255, 182, 210, .45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(135deg, rgba(225, 29, 116, .72), rgba(168, 22, 96, .78));
  color: #fff;
  font-weight: 750;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    0 8px 22px rgba(225, 29, 116, .38),
    0 0 20px rgba(225, 29, 116, .22);
}
.lemy-header__link[aria-current="page"]:hover,
.lemy-header__account[aria-current="page"]:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%),
    linear-gradient(135deg, rgba(236, 52, 132, .86), rgba(185, 28, 108, .88));
}
.lemy-header__actions {
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.lemy-header__search { width: 42px; height: 42px; padding: 10px; color: #ffc2db; border-color: rgba(255, 176, 208, .24); }
.lemy-header__search span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lemy-header__search:hover { background: rgba(225, 29, 116, .2); border-color: #ffb0d0; color: #fff; }
.lemy-header__search:focus-visible { outline: 3px solid #ffb0d0; outline-offset: 4px; }
.lemy-header__account {
  min-height: 42px;
  padding: 9px 18px;
  border-color: rgba(255, 176, 208, .55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 60%),
    rgba(225, 29, 116, .12);
  color: #ffc2db;
  font-weight: 750;
  box-shadow: 0 0 18px rgba(225, 29, 116, .14);
}
.lemy-header__account:hover {
  border-color: #ffb6d2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 55%),
    rgba(225, 29, 116, .28);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 116, .28);
}
.lemy-header__toggle { display: none; }
.lemy-header__brand:focus-visible,
.lemy-header__link:focus-visible,
.lemy-header__account:focus-visible,
.lemy-header__toggle:focus-visible {
  outline: 3px solid #ffb0d0;
  outline-offset: 4px;
}
@media (max-width: 1240px) and (min-width: 1121px) {
  .lemy-header { gap: 10px; }
  .lemy-header__brand { max-width: 128px; }
  .lemy-header__brand .lemy-logo { width: 128px; max-width: 128px; }
  .lemy-header__link { padding-inline: 9px; font-size: 12.5px; }
  .lemy-header__account { padding-inline: 14px; font-size: 12.5px; }
}
@media (max-width: 1120px) {
  :root { --lemy-header-gutter: 28px; }
  .lemy-header-wrap { padding: 12px 0 8px; margin-bottom: 16px; }
  .lemy-header-wrap.is-scrolled { padding: 8px 0; }
  .lemy-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: var(--lemy-header-width);
    min-height: 64px;
    padding: 8px 10px 8px 16px;
    border-radius: 28px;
  }
  .lemy-header-wrap.is-scrolled .lemy-header {
    width: min(100%, calc(100% - calc(var(--lemy-header-gutter) + 24px)));
    min-height: 56px;
    padding: 6px 8px 6px 14px;
    border-radius: 24px;
  }
  .lemy-header__brand { max-width: 120px; margin-right: auto; }
  .lemy-header__brand .lemy-logo { width: 120px; max-width: 120px; max-height: 40px; }
  .lemy-header__brand .lemy-logo--custom { width: auto; }
  .lemy-header__brand .lemy-wordmark-text { max-width: 120px; font-size: 22px; }
  .lemy-header__actions { gap: 8px; }
  .lemy-header__search { width: 44px; height: 44px; margin-right: 0; }
  .lemy-header__account { height: 44px; min-height: 44px; padding: 0 14px; font-size: 13px; letter-spacing: 0; line-height: 1; }
  .lemy-header__toggle {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    border-color: rgba(255, 176, 208, .35);
    border-radius: 50%;
    background: rgba(225, 29, 116, .12);
    color: #ffb0d0;
    box-shadow: 0 0 14px rgba(225, 29, 116, .16);
  }
  .lemy-header__toggle:hover,
  .lemy-header__toggle[aria-expanded="true"] {
    border-color: rgba(255, 176, 208, .65);
    background: rgba(225, 29, 116, .26);
    color: #fff;
  }
  .lemy-header__toggle svg { display: block; width: 20px; height: 20px; }
  .lemy-header__nav { display: none; }
  body.lemy-nav-open { overflow: hidden; }
  body.lemy-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 4, 8, .55);
  }
  body.lemy-nav-open .lemy-header__toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 90;
  }
  .lemy-header__nav.is-drawer {
    display: grid;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-items: stretch;
    align-content: start;
    gap: 6px 8px;
    box-sizing: border-box;
    width: 66.666vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 64px 14px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 182, 210, .18);
    border-right: 0;
    border-radius: 22px 0 0 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 16%),
      linear-gradient(180deg, #24141e 0%, #100e14 38%);
    box-shadow: -18px 0 42px rgba(0, 0, 0, .42);
    transform: translateX(100%);
    transition: transform .32s var(--lemy-header-ease);
  }
  .lemy-header__nav.is-drawer.is-open { transform: translateX(0); }
  .lemy-header__nav > .lemy-header__home { display: inline-flex; }
  .lemy-header__nav > .lemy-header__home,
  .lemy-header__nav > .lemy-header__directory {
    min-height: 44px;
    justify-content: center;
    border-radius: 999px;
    font-size: 13.5px;
    text-align: center;
  }
  .lemy-header__catalog,
  .lemy-header__nav > .lemy-header__pricing { grid-column: 1 / -1; min-width: 0; }
  .lemy-header__link {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
    justify-content: flex-start;
    text-align: left;
  }
  .lemy-header__catalog-toggle,
  .lemy-header__nav > .lemy-header__pricing { width: 100%; justify-content: space-between; color: #f4e7ef; }
  .lemy-header__catalog-toggle:not([aria-expanded="true"]):not(.is-current),
  .lemy-header__nav > .lemy-header__pricing:not([aria-current="page"]) { border-color: transparent; background: transparent; }
  .lemy-header__catalog-toggle:hover,
  .lemy-header__nav > .lemy-header__pricing:hover { border-color: transparent; background: rgba(255, 182, 210, .08); color: #fff; }
  .lemy-header__catalog-toggle[aria-expanded="true"] { background: rgba(225, 29, 116, .16); color: #fff; }
  .lemy-header__submenu,
  .lemy-header__submenu#catalogSubmenu {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: none;
    margin: 0 0 2px;
    padding: 4px;
    border: 0;
    border-radius: 14px;
    background: rgba(8, 6, 12, .34);
    box-shadow: none;
  }
  .lemy-header__sublink { min-height: 44px; padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 700px) {
  .lemy-header { min-height: 52px; gap: 6px; padding: 5px 6px 5px 12px; }
  .lemy-header-wrap.is-scrolled .lemy-header { min-height: 46px; padding: 4px 6px 4px 12px; }
  .lemy-header__actions { gap: 6px; }
  .lemy-header__search,
  .lemy-header__toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    box-shadow: none;
  }
  .lemy-header__search { margin-right: 0; }
  .lemy-header__search svg,
  .lemy-header__toggle svg { width: 16px; height: 16px; }
  .lemy-header__account {
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
    box-shadow: none;
  }
}
@media (max-width: 480px) {
  :root { --lemy-header-gutter: 20px; }
  .lemy-header { padding-left: 12px; }
  .lemy-header__brand { max-width: 112px; }
  .lemy-header__brand .lemy-logo { width: 112px; max-width: 112px; max-height: 38px; }
  .lemy-header__brand .lemy-logo--custom { width: auto; }
  .lemy-header__brand .lemy-wordmark-text { max-width: 112px; font-size: 20px; }
}
@media (max-width: 350px) {
  :root { --lemy-header-gutter: 16px; }
  .lemy-header { gap: 5px; padding-left: 10px; padding-right: 7px; }
  .lemy-header__actions { gap: 5px; }
  .lemy-header__brand, .lemy-header__brand .lemy-logo { width: 94px; max-width: 94px; }
  .lemy-header__account { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lemy-header-wrap,
  .lemy-header,
  .lemy-header__brand,
  .lemy-header__link,
  .lemy-header__account,
  .lemy-header__toggle,
  .lemy-header__nav.is-drawer { transition: none; }
  .lemy-header__brand:hover { transform: none; }
  .lemy-header-wrap.is-scrolled .lemy-header { transform: none; }
}

/* Server-managed feature visibility. */
.lemy-header a[hidden] { display: none !important; }
