.ls-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  height: var(--ls-header-h);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ls-border-light);
}
.ls-header.scrolled { height: var(--ls-header-h-scroll); }

.ls-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.ls-header__logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.ls-header__logo-img { max-height: 55px; width: auto; display: block; }

.ls-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.ls-header__brand svg { width: 30px; height: 30px; margin-right: 5px; }
.ls-header__brand-lista {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ls-text);
  letter-spacing: -0.5px;
}
.ls-header__brand-hot {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ls-primary);
  letter-spacing: -0.5px;
  margin-left: -2px;
}

.ls-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.ls-header__nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  color: var(--ls-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--ls-radius);
}
.ls-header__nav-pill:hover { color: var(--ls-primary); background: var(--ls-bg-alt); }
.ls-header__nav-pill svg { flex-shrink: 0; opacity: 0.5; }

.ls-header__menu-item { position: relative; }
.ls-header__menu-item > a { color: var(--ls-text); }
.ls-header__menu-item > a:hover { color: var(--ls-primary); }

.ls-header__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--ls-border-light);
  border-radius: var(--ls-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 100;
  padding: 6px 0;
  padding-top: 14px;
}
.ls-header__submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.ls-header__menu-item:hover .ls-header__submenu { display: block; }

.ls-header__submenu-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--ls-text);
  text-decoration: none;
  white-space: nowrap;
}
.ls-header__submenu-link:hover { background: var(--ls-bg-alt); color: var(--ls-primary); }

.ls-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.ls-header__icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ls-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ls-header__icon-link:hover { color: var(--ls-primary); }
.ls-header__icon-link svg { flex-shrink: 0; }

.ls-header__actions .btn-ls {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
}
.ls-header__actions .btn-ls:hover { color: #fff; }

.ls-header__mobile-icons { display: none; }

.ls-drawer {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 999;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  padding: 0 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
}
.ls-drawer--open { visibility: visible; opacity: 1; }

.ls-drawer__overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
}
.ls-drawer__overlay--open { display: block; }

.admin-bar html,
html.admin-bar { margin-top: 0 !important; }
.admin-bar #wpadminbar { position: absolute; }
.admin-bar .ls-header { top: 0; }
.admin-bar .ls-drawer { top: 60px; }
.admin-bar .ls-drawer__overlay { top: 60px; }

@media (min-width: 1024px) {
  .ls-drawer { display: none !important; }
  .ls-drawer__overlay { display: none !important; }
}

.ls-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ls-drawer__link {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ls-text);
  text-decoration: none;
  border-bottom: 1px solid var(--ls-border-light);
  text-align: left;
}
.ls-drawer__link:hover { color: var(--ls-primary); }
.ls-drawer__link:last-child { border-bottom: none; }

.ls-drawer__publish {
  display: block;
  text-align: left;
  margin: 0 -1rem;
  padding: 12px 1rem;
  font-size: 0.9rem;
  border-radius: 0;
}

@media (max-width: 1023px) {
  .ls-header { height: 60px; }
  .ls-header.scrolled { height: 60px; }
  .ls-header__inner { justify-content: space-between; }
  .ls-header__logo-img { max-height: 50px; }
  .ls-header__brand-lista,
  .ls-header__brand-hot { font-size: 1.2rem; }
  .ls-header__brand svg { width: 24px; height: 24px; }
  .ls-header__nav { display: none; }
  .ls-header__actions { display: none; }

  .ls-header__mobile-icons {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ls-header__mob-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-primary);
    text-decoration: none;
  }
  .ls-header__mob-icon:hover { color: var(--ls-primary-dark); }

  .ls-header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ls-primary);
    cursor: pointer;
    padding: 0;
  }
}

.ls-header__admin-menu {
  position: relative;
}

.ls-header__admin-toggle {
  color: var(--ls-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.ls-header__admin-toggle:hover { color: var(--ls-primary-dark); }

.ls-header__admin-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--ls-border-light);
  border-radius: var(--ls-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  padding: 6px 0;
}
.ls-header__admin-menu:hover .ls-header__admin-dropdown { display: block; }

.ls-header__admin-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--ls-text);
  text-decoration: none;
}
.ls-header__admin-dropdown a:hover {
  background: var(--ls-bg-alt);
  color: var(--ls-primary);
}
