.lm-announcement {
  background: var(--lm-black-soft, #191919);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lm-announcement strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.lm-announcement__mobile {
  display: none;
}

.lm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--lm-black);
  color: #fff;
  transition: min-height 0.3s, box-shadow 0.3s;
  min-height: var(--lm-header-height);
}

.lm-header.scrolled {
  min-height: var(--lm-header-height-scrolled);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.lm-header__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--lm-header-height);
  padding: 0;
  transition: min-height 0.3s;
}

.lm-header.scrolled .lm-header__inner {
  min-height: var(--lm-header-height-scrolled);
}

.lm-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.lm-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.lm-header__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 58px;
  object-fit: contain;
}

.lm-header__logo-img-mobile {
  display: none;
}

.lm-header.scrolled .lm-header__logo-img {
  max-width: 180px;
  max-height: 48px;
}

.lm-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

.lm-header__nav a {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.lm-header__nav a:hover,
.lm-header__nav a:focus-visible,
.lm-header__nav .current-menu-item > a {
  color: var(--lm-green);
  background: rgba(57, 255, 20, 0.08);
}

.lm-header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.lm-header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.lm-header-search__form {
  display: flex;
  align-items: center;
  gap: 0;
}

.lm-header-search__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lm-header-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  flex-shrink: 0;
  display: block;
}

.lm-header-search__input {
  width: 240px;
  padding: 9px 12px 9px 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--lm-font);
  transition: all 0.3s;
}

.lm-header-search__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.lm-header-search__input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.lm-header-search__input::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.lm-header-search__input:focus {
  outline: none;
  border-color: var(--lm-green);
  background: rgba(255, 255, 255, 0.1);
  width: 280px;
}

.lm-header-search__submit {
  display: none;
}

.lm-header__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s;
}

.lm-header__icon:hover,
.lm-header__icon:focus-visible {
  color: var(--lm-green);
  background: rgba(57, 255, 20, 0.08);
}

.lm-header__icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
}

.lm-cart-count {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--lm-green);
  color: var(--lm-black);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 50%;
  line-height: 1;
  pointer-events: none;
}

.lm-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.lm-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lm-mobile-toggle svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
}

.lm-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.lm-mobile-overlay.open {
  display: block;
  opacity: 1;
}

.lm-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: var(--lm-black);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.lm-mobile-menu.open {
  display: block;
  transform: translateX(0);
}

.lm-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lm-mobile-menu__header img {
  height: 32px;
  width: auto;
}

.lm-mobile-menu__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
}

.lm-mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lm-mobile-menu .lm-header-search {
  display: block;
  margin-bottom: 20px;
}

.lm-mobile-menu .lm-header-search__input {
  width: 100%;
}

.lm-mobile-menu .lm-header-search__form {
  width: 100%;
}

.lm-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lm-mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lm-mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.lm-mobile-nav a:hover {
  color: var(--lm-green);
}

.lm-mobile-nav .menu-item-has-children > a::after {
  content: " ▸";
  opacity: 0.4;
}

body.lm-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .lm-header__nav {
    display: none;
  }

  .lm-header-search:not(.lm-mobile-menu .lm-header-search) {
    display: none;
  }

  .lm-mobile-toggle {
    display: flex;
  }

  .lm-header__logo-img {
    display: none;
  }

  .lm-header__logo-img-mobile {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 40px;
    object-fit: contain;
  }

  .lm-header.scrolled .lm-header__logo-img-mobile {
    max-width: 130px;
    max-height: 34px;
  }
}

@media (max-width: 768px) {
  .lm-announcement__desktop {
    display: none;
  }

  .lm-announcement__mobile {
    display: inline;
  }
}

@media (max-width: 480px) {
  .lm-header,
  .lm-header__inner {
    min-height: 56px;
  }

  .lm-header__logo-img-mobile {
    max-width: 130px;
    max-height: 34px;
  }

  .lm-header__icon {
    width: 38px;
    height: 38px;
  }

  .lm-header__icon svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
  }

  .lm-cart-count {
    min-width: 16px;
    height: 16px;
    font-size: 0.85rem;
  }
}
