/* ============================================================
   Любощі — Site header + mobile drawer + search overlay
   Modern editorial dark UI with red gradient brand. v2.0
   ============================================================ */

:root {
  --lyu-h-grad:        linear-gradient(135deg, #f2053c 0%, #cb003d 100%);
  --lyu-h-grad-soft:   linear-gradient(135deg, #ff5078 0%, #f2053c 100%);
  --lyu-h-red:         #f2053c;
  --lyu-h-red-dark:    #cb003d;
  --lyu-h-red-soft:    rgba(242,5,60,.14);
  --lyu-h-dark:        #0a0c14;
  --lyu-h-dark-2:      #14171f;
  --lyu-h-line:        rgba(255,255,255,.08);
  --lyu-h-line-2:      rgba(255,255,255,.14);
  --lyu-h-text:        #f5f5f7;
  --lyu-h-muted:       rgba(255,255,255,.62);
  --lyu-h-muted-2:     rgba(255,255,255,.42);
  --lyu-h-serif:       "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", Times, serif;
  --lyu-h-ease:        .25s cubic-bezier(.4,0,.2,1);
  --lyu-h-height:      64px;
  --lyu-h-shadow:      0 8px 28px rgba(0,0,0,.4);
}

/* Hide everything from the old theme header */
html body .lte-header-wrapper,
html body #lte-nav-wrapper,
html body #lyu-mobile-menu-app,
html body header.lte-page-header,
html body .lte-header-h1-wrapper,
html body ul.breadcrumbs:not(.lyu-keep-bc) {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.lyu-h {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--lyu-h-dark);
  color: var(--lyu-h-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background var(--lyu-h-ease), box-shadow var(--lyu-h-ease);
}
.lyu-h *, .lyu-h *::before, .lyu-h *::after { box-sizing: border-box; }

/* Top gradient stripe — brand signature */
.lyu-h::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--lyu-h-grad);
  z-index: 2;
}

/* Sticky/scrolled state — glass blur */
.lyu-h.is-scrolled {
  background: rgba(10,12,20,.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--lyu-h-shadow);
}
.lyu-h.is-scrolled .lyu-h__topline { max-height: 0; opacity: 0; padding: 0; }
.lyu-h.is-scrolled .lyu-h__bar { min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.lyu-h.is-scrolled .lyu-h__logo img { max-height: 30px; }

/* ── Top utility bar ── */
.lyu-h__topline {
  background: var(--lyu-h-dark-2);
  font-size: 12px;
  color: var(--lyu-h-muted);
  letter-spacing: .2px;
  max-height: 40px;
  opacity: 1;
  overflow: hidden;
  transition: max-height var(--lyu-h-ease), opacity var(--lyu-h-ease), padding var(--lyu-h-ease);
  border-bottom: 1px solid var(--lyu-h-line);
}
.lyu-h__topline-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lyu-h__topline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lyu-h-muted);
}
.lyu-h__topline-item svg { color: var(--lyu-h-red); flex-shrink: 0; }
.lyu-h__topline-sep { color: var(--lyu-h-line-2); }
.lyu-h__topline-phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lyu-h-text);
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
  transition: color var(--lyu-h-ease);
}
.lyu-h__topline-phone:hover { color: var(--lyu-h-red); }
.lyu-h__topline-phone svg { color: var(--lyu-h-red); }

/* Hide topline on mobile */
@media (max-width: 768px) {
  .lyu-h__topline { display: none; }
}

/* ── Main bar ── */
.lyu-h__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 14px 20px;
  min-height: var(--lyu-h-height);
  transition: min-height var(--lyu-h-ease), padding var(--lyu-h-ease);
}

/* Logo — hard size constraints (override any theme/Elementor img rules) */
.lyu-h__logo,
html body .lyu-h .lyu-h__logo {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  text-decoration: none !important;
  transition: transform var(--lyu-h-ease);
  line-height: 0;
  max-width: 200px;
  max-height: 40px;
  height: auto !important;
  width: auto !important;
}
.lyu-h__logo:hover { transform: translateY(-1px); }
.lyu-h__logo img,
html body .lyu-h__logo img,
html body .lyu-h .lyu-h__logo img {
  max-height: 32px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 8px rgba(242,5,60,.18));
  transition: max-height var(--lyu-h-ease);
}
/* Scrolled state — slightly smaller */
.lyu-h.is-scrolled .lyu-h__logo img,
html body .lyu-h.is-scrolled .lyu-h__logo img { max-height: 28px !important; }

/* ── Navigation menu (desktop) ── */
.lyu-h__nav {
  display: none;
  flex: 1;
  min-width: 0;
}
.lyu-h__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.lyu-h__menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lyu-h__menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--lyu-h-text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--lyu-h-ease);
  position: relative;
  white-space: nowrap;
}
/* Animated gradient underline */
.lyu-h__menu > li > a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--lyu-h-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--lyu-h-ease);
}
.lyu-h__menu > li:hover > a,
.lyu-h__menu > li.current-menu-item > a,
.lyu-h__menu > li.current-menu-parent > a,
.lyu-h__menu > li.current-menu-ancestor > a { color: #fff; }
.lyu-h__menu > li:hover > a::after,
.lyu-h__menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* Sub-menus (dropdown) */
.lyu-h__menu .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: rgba(10,12,20,.96);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--lyu-h-line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--lyu-h-ease);
  z-index: 100;
}
.lyu-h__menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--lyu-h-grad);
  border-radius: 14px 14px 0 0;
}
.lyu-h__menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.lyu-h__menu .sub-menu li { list-style: none; margin: 0; padding: 0; }
.lyu-h__menu .sub-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--lyu-h-text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--lyu-h-ease);
}
.lyu-h__menu .sub-menu a:hover {
  background: var(--lyu-h-red-soft);
  color: var(--lyu-h-red);
  padding-left: 18px;
}

/* ── Actions row (search, account, cart) ── */
.lyu-h__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lyu-h__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--lyu-h-line);
  border-radius: 12px;
  color: var(--lyu-h-text);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: all var(--lyu-h-ease);
}
.lyu-h__action svg { width: 18px; height: 18px; }
.lyu-h__action:hover {
  background: var(--lyu-h-grad);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242,5,60,.4);
}
.lyu-h__action--cart .lyu-h__cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  background: var(--lyu-h-grad);
  color: #fff;
  border-radius: 999px;
  border: 2px solid var(--lyu-h-dark);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(242,5,60,.5);
  transition: transform var(--lyu-h-ease);
}
.lyu-h__action--cart .lyu-h__cart-count.is-empty {
  background: rgba(255,255,255,.18);
  box-shadow: none;
}
.lyu-h__action--cart:hover .lyu-h__cart-count { transform: scale(1.1); }

/* ── Mobile hamburger ── */
.lyu-h__burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--lyu-h-line);
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--lyu-h-ease), border-color var(--lyu-h-ease);
}
.lyu-h__burger:hover { background: rgba(255,255,255,.1); }
.lyu-h__burger span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--lyu-h-ease), opacity var(--lyu-h-ease);
}

/* ============================================================
   Breakpoints — desktop ≥1199, tablet ≥768, mobile < 768
   ============================================================ */
@media (max-width: 1198px) {
  .lyu-h__nav { display: none; }
  .lyu-h__burger { display: inline-flex; }
  .lyu-h__bar { padding: 12px 16px; min-height: 60px; }
  .lyu-h__logo img { max-height: 32px; }
}
@media (min-width: 1199px) {
  .lyu-h__nav { display: flex; }
}
@media (max-width: 600px) {
  .lyu-h__bar { padding: 10px 12px; gap: 10px; min-height: 56px; }
  .lyu-h__action { width: 40px; height: 40px; }
  .lyu-h__burger { width: 40px; height: 40px; }
  .lyu-h__logo img { max-height: 28px; }
  /* On mobile, hide account icon to save space — kept in drawer */
  .lyu-h__action--account { display: none; }
}

/* ============================================================
   SEARCH overlay
   ============================================================ */
.lyu-search {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.lyu-search.is-open {
  display: block;
  animation: lyu-fade-in .25s ease both;
}
.lyu-search__bg {
  position: absolute;
  inset: 0;
  background: rgba(10,12,20,.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lyu-search__panel {
  position: relative;
  max-width: 720px;
  margin: 12vh auto 0;
  padding: 28px;
  background: var(--lyu-h-dark);
  border: 1px solid var(--lyu-h-line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: lyu-slide-down .35s cubic-bezier(.34,1.56,.64,1) both;
}
.lyu-search__panel::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--lyu-h-grad);
  border-radius: 20px 20px 0 0;
}
@keyframes lyu-slide-down {
  from { opacity: 0; transform: translateY(-20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes lyu-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.lyu-search__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid var(--lyu-h-line);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  transition: border-color var(--lyu-h-ease);
}
.lyu-search__form:focus-within {
  border-color: var(--lyu-h-red);
  box-shadow: 0 0 0 4px rgba(242,5,60,.18);
}
.lyu-search__icon { color: var(--lyu-h-muted); flex-shrink: 0; }
.lyu-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  padding: 12px 0;
}
.lyu-search__input::placeholder { color: var(--lyu-h-muted); }
.lyu-search__submit {
  padding: 11px 22px;
  background: var(--lyu-h-grad);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(242,5,60,.4);
  transition: transform var(--lyu-h-ease);
}
.lyu-search__submit:hover { transform: translateY(-1px); }
.lyu-search__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--lyu-h-line);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--lyu-h-ease);
}
.lyu-search__close:hover { background: var(--lyu-h-red); border-color: transparent; transform: rotate(90deg); }

.lyu-search__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
}
.lyu-search__hint-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--lyu-h-muted-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}
.lyu-search__hint {
  padding: 7px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--lyu-h-line);
  border-radius: 999px;
  color: var(--lyu-h-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--lyu-h-ease);
}
.lyu-search__hint:hover {
  background: var(--lyu-h-red-soft);
  border-color: var(--lyu-h-red);
  color: var(--lyu-h-red);
}
@media (max-width: 600px) {
  .lyu-search__panel { margin: 6vh 12px 0; padding: 22px; }
  .lyu-search__submit { padding: 10px 14px; font-size: 12px; }
  .lyu-search__close { top: -46px; }
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.lyu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 380px);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, var(--lyu-h-dark) 0%, #0d0e16 40%, #1a0a12 100%);
  border-right: 1px solid var(--lyu-h-line);
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 12px 0 36px rgba(0,0,0,.5);
}
.lyu-drawer.is-open { transform: translateX(0); }
.lyu-drawer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--lyu-h-grad);
  z-index: 2;
}
.lyu-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,12,20,.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lyu-drawer-overlay.is-visible { opacity: 1; visibility: visible; }

.lyu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lyu-h-line);
  flex-shrink: 0;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}
.lyu-drawer__logo img { max-height: 28px; width: auto; display: block; }
.lyu-drawer__close {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--lyu-h-line);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--lyu-h-ease);
}
.lyu-drawer__close svg { width: 18px; height: 18px; }
.lyu-drawer__close:hover { background: var(--lyu-h-red); transform: rotate(90deg); border-color: transparent; }

.lyu-drawer__search {
  padding: 14px 20px 8px;
  flex-shrink: 0;
}
.lyu-drawer__search form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--lyu-h-line);
  border-radius: 12px;
  padding: 8px 14px;
}
.lyu-drawer__search form:focus-within { border-color: var(--lyu-h-red); }
.lyu-drawer__search svg { color: var(--lyu-h-muted); flex-shrink: 0; }
.lyu-drawer__search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 6px 0;
}
.lyu-drawer__search input::placeholder { color: var(--lyu-h-muted); }

.lyu-drawer__nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.lyu-drawer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lyu-drawer__menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--lyu-h-line);
  position: relative;
}
.lyu-drawer__menu > li:last-child { border-bottom: 0; }
.lyu-drawer__menu li a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--lyu-h-text);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
  transition: all var(--lyu-h-ease);
}
.lyu-drawer__menu li a:hover,
.lyu-drawer__menu li.current-menu-item > a {
  color: var(--lyu-h-red);
  background: var(--lyu-h-red-soft);
  padding-left: 26px;
}
/* Sub-menu toggle */
.lyu-drawer__menu .menu-item-has-children > .lyu-drawer__sub-toggle {
  position: absolute;
  top: 8px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--lyu-h-line);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--lyu-h-ease);
}
.lyu-drawer__menu .menu-item-has-children > .lyu-drawer__sub-toggle::before {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.lyu-drawer__menu .menu-item-has-children.is-open > .lyu-drawer__sub-toggle { background: var(--lyu-h-grad); border-color: transparent; }
.lyu-drawer__menu .menu-item-has-children.is-open > .lyu-drawer__sub-toggle::before { content: "−"; }

.lyu-drawer__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.lyu-drawer__menu .menu-item-has-children.is-open > .sub-menu { max-height: 2000px; }
.lyu-drawer__menu .sub-menu li {
  border-bottom: 0;
  border-top: 1px solid var(--lyu-h-line);
}
.lyu-drawer__menu .sub-menu a {
  padding: 11px 20px 11px 38px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lyu-h-muted);
}
.lyu-drawer__menu .sub-menu a:hover {
  padding-left: 42px;
  color: var(--lyu-h-red);
}
.lyu-drawer__menu .sub-menu .sub-menu a { padding-left: 56px; font-size: 13px; }

.lyu-drawer__foot {
  padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--lyu-h-line);
  background: rgba(0,0,0,.25);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lyu-drawer__foot-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--lyu-h-line);
  border-radius: 12px;
  color: var(--lyu-h-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--lyu-h-ease);
}
.lyu-drawer__foot-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-1px);
}
.lyu-drawer__foot-link svg { color: var(--lyu-h-red); }
.lyu-drawer__foot-link--cta {
  background: var(--lyu-h-grad);
  border-color: transparent;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(242,5,60,.35);
}
.lyu-drawer__foot-link--cta svg { color: #fff; }
.lyu-drawer__foot-link--cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(242,5,60,.5); }

/* Body lock when drawer or search overlay open */
body.lyu-chrome-lock {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Print */
@media print {
  .lyu-h, .lyu-drawer, .lyu-drawer-overlay, .lyu-search { display: none !important; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .lyu-h, .lyu-h__bar, .lyu-h__action, .lyu-h__menu .sub-menu, .lyu-drawer, .lyu-drawer-overlay, .lyu-search, .lyu-search__panel { transition: none !important; animation: none !important; }
}
