/* =========================================================
   EMPRESS — GLOBAL HEADER (ONE HEADER TO RULE THEM ALL)
   ========================================================= */

.empress-header {
  background: #000;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* =========================
   DESKTOP / TABLET HEADER
   ========================= */

.header-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-row--categories {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 48px;
  padding: 16px 48px 18px;
  position: relative;
}

/* COLUMNS */

.header-col {
  display: flex;
  align-items: center;
}

.header-col--left {
  justify-content: flex-start;
}

.header-col--center {
  justify-content: center;
}

.header-col--right {
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
  white-space: nowrap;
}

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-links li {
  margin: 0;
  padding: 0;
}

.header-category-group {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 12px;
}

.header-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 6px 0;
  z-index: 20;
  flex-direction: column;
  gap: 6px;
}

.header-subcategory {
  display: inline-block;
  padding: 6px 10px;
  background: #000;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

.header-category-group:hover .header-submenu,
.header-category-group:focus-within .header-submenu {
  display: flex;
}

/* WP menu styling to mirror original categories */
.header-row--categories {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 48px;
  padding: 16px 48px 18px;
  position: relative;
}

.header-nav__list,
.header-row--categories ul.menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 48px;
  width: fit-content;
  min-width: unset !important;
  white-space: nowrap;
}

.header-nav__list a,
.header-row--categories ul.menu a {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: none;
  color: #fff;
}

.header-nav__list > li {
  position: relative;
  padding-bottom: 12px;
}

.header-nav__list > li > a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 400;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  padding-top: 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  border-bottom-width: 0.5px;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.header-nav__list a {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: none;
}

.header-nav__list > li > a:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.7);
}

.header-nav__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}

.header-nav__list .sub-menu a {
  display: inline-block;
  padding: 6px 10px;
  background: #000;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

.header-nav__list li:hover > .sub-menu,
.header-nav__list li:focus-within > .sub-menu {
  display: flex;
}

/* LOGO */

.header-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* LINKS — TOP */

.header-link {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.header-link:hover {
  opacity: 1;
}

/* CATEGORIES */

.header-category {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 400;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  padding-top: 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  border-bottom-width: 0.5px;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.header-category:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.7);
}

/* LINES */

.header-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

/* =========================================================
   MOBILE HEADER
   ========================================================= */

.header__mobile-bar {
  display: none;
  background: #000;
  color: #fff;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  padding: 14px 16px;
  min-height: 60px;
}

.header__burger {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
}

.header__burger span {
  height: 2px;
  width: 100%;
  background: #fff;
}

.header__mobile-logo {
  display: flex;
  justify-content: center;
}

.header__mobile-logo img {
  height: 32px;
  width: auto;
}

.header__mobile-right {
  width: 32px;
}

.header__mobile-mag-icon {
  width: 32px;
  height: auto;
  display: block;
}

/* MOBILE MENU */

.header__mobile-menu {
  display: none;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 16px;
}

.header__mobile-menu.is-open {
  display: block;
}

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

.mobile-menu__parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu__link {
  display: block;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.mobile-menu__toggle {
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu__chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.8);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.mobile-menu__item.is-open .mobile-menu__chevron {
  transform: rotate(225deg);
}

.mobile-menu__sublist {
  display: none;
  padding: 0 0 8px 8px;
}

.mobile-menu__item.is-open .mobile-menu__sublist {
  display: block;
}

.mobile-menu__sublink {
  padding-left: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.9;
  border-bottom: none;
}

/* =========================================================
   VISIBILITY RULES — NO CONFLICTS
   ========================================================= */

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

  .header__mobile-bar {
    display: grid;
  }
}

@media (min-width: 1025px) {
  .header__mobile-bar,
  .header__mobile-menu {
    display: none !important;
  }
}

/* ===============================
   SEPARATOR: HEADER → HERO
================================ */

.header-separator {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
