/**
 * HAWEGO Header Premium v1.2.4
 * Scoped: body.hawego-header-premium
 */

:root {
  --hhd-red: #B91C1C;
  --hhd-red-dark: #991B1B;
  --hhd-red-light: #DC2626;
  --hhd-gold: #C9A227;
  --hhd-cream: #FAF8F5;
  --hhd-charcoal: #1A1A1A;
  --hhd-text: #1A1A1A;
  --hhd-muted: #6B7280;
  --hhd-border: #E8E2DC;
  --hhd-border-light: #F0EBE6;
  --hhd-white: #FFFFFF;
  --hhd-shadow-sm: 0 2px 12px rgba(26, 26, 26, 0.06);
  --hhd-shadow-md: 0 8px 32px rgba(26, 26, 26, 0.1);
  --hhd-shadow-lg: 0 16px 48px rgba(26, 26, 26, 0.14);
  --hhd-radius: 12px;
  --hhd-radius-pill: 999px;
  --hhd-font-display: 'Playfair Display', Georgia, serif;
  --hhd-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --hhd-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hhd-ann-height: 38px;
  --hhd-ann-font: clamp(12px, 0.35vw + 11px, 15px);
  --hhd-nav-font: clamp(13px, 0.3vw + 11px, 15px);
  --hhd-ui-font: clamp(13px, 0.2vw + 12px, 14px);
  --hhd-safe-top: env(safe-area-inset-top, 0px);
}

/* ═══════════════════════════════════════════
   CUSTOM MARQUEE ANNOUNCEMENT BAR
   (Shree Hari style)
   ═══════════════════════════════════════════ */

.hawego-hd-announcement {
  position: relative;
  z-index: 1002;
  width: 100%;
  min-height: var(--hhd-ann-height);
  padding-top: var(--hhd-safe-top);
  background: var(--hhd-ann-bg, #7A1F1F);
  color: var(--hhd-ann-color, #FFFFFF);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.hawego-hd-announcement__viewport {
  width: 100%;
  overflow: hidden;
}

.hawego-hd-announcement__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: hawego-hd-marquee var(--hhd-ann-duration, 24s) linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.hawego-hd-announcement__group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  min-height: var(--hhd-ann-height);
}

.hawego-hd-announcement__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-family: var(--hhd-font-body);
  font-size: var(--hhd-ann-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--hhd-ann-color, #FFFFFF);
}

.hawego-hd-announcement__sep {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(11px, 0.25vw + 10px, 13px);
  font-weight: 300;
  padding: 0 6px;
  user-select: none;
}

@keyframes hawego-hd-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--hhd-marquee-offset, -50%), 0, 0); }
}

.hawego-hd-announcement--static .hawego-hd-announcement__track {
  animation: none;
  width: 100%;
  justify-content: center;
}

.hawego-hd-announcement--static .hawego-hd-announcement__group:last-child {
  display: none;
}

/* Hide old theme announcement bar */
body.hawego-header-premium.hawego-hd-hide-theme-bar .campaign-bar {
  display: none !important;
}

/* ═══════════════════════════════════════════
   HEADER SHELL — depth & sticky
   ═══════════════════════════════════════════ */

body.hawego-header-premium #site-header {
  position: relative;
  z-index: 1000;
}

body.hawego-header-premium .site-header__desktop {
  background: var(--hhd-white) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: box-shadow var(--hhd-transition), background var(--hhd-transition) !important;
}

body.hawego-header-premium .site-header__desktop.hawego-hd-scrolled {
  box-shadow: var(--hhd-shadow-md) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.hawego-header-premium .site-header__desktop.hawego-hd-scrolled .header-main {
  min-height: 72px;
}

body.hawego-header-premium .site-header__desktop.hawego-hd-scrolled .header-logo img {
  max-height: 58px !important;
}

/* Full-width header shell (footer-style — no boxed side gaps) */
body.hawego-header-premium #site-header,
body.hawego-header-premium .site-header__desktop,
body.hawego-header-premium .site-header__mobile,
body.hawego-header-premium .header-main,
body.hawego-header-premium .header-bottom {
  width: 100% !important;
  max-width: 100% !important;
}

body.hawego-header-premium .header-main {
  transition: min-height var(--hhd-transition) !important;
}

body.hawego-header-premium .site-header__container,
body.hawego-header-premium #site-header .container,
body.hawego-header-premium .header-main .container,
body.hawego-header-premium .header-bottom .container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(20px, 3.5vw, 48px) !important;
  padding-right: clamp(20px, 3.5vw, 48px) !important;
  box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════
   LOGO — same image, bigger & sharper
   ═══════════════════════════════════════════ */

body.hawego-header-premium .header-logo {
  flex-shrink: 0;
}

body.hawego-header-premium .header-logo img,
body.hawego-header-premium .header-logo .logo-dark,
body.hawego-header-premium .header-logo .custom-logo {
  width: auto !important;
  max-width: 150px !important;
  max-height: 72px !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform var(--hhd-transition), max-height var(--hhd-transition) !important;
}

body.hawego-header-premium .header-logo a:hover img {
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════
   SEARCH BAR — premium pill
   ═══════════════════════════════════════════ */

body.hawego-header-premium .header-search {
  max-width: min(640px, 48vw) !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.hawego-header-premium .header-search__form {
  align-items: center !important;
  gap: 8px !important;
}

body.hawego-header-premium .header-search__container {
  background: var(--hhd-cream) !important;
  border: 1px solid var(--hhd-border) !important;
  border-radius: var(--hhd-radius-pill) !important;
  border-bottom: 1px solid var(--hhd-border) !important;
  padding: 10px 20px 10px 16px !important;
  box-shadow: none !important;
  transition: background var(--hhd-transition), border-color var(--hhd-transition), box-shadow var(--hhd-transition) !important;
  flex: 1 !important;
}

body.hawego-header-premium .header-search__container:focus-within {
  background: var(--hhd-white) !important;
  border-color: var(--hhd-red) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1) !important;
}

body.hawego-header-premium .header-search__field {
  font-family: var(--hhd-font-body) !important;
  font-size: var(--hhd-ui-font) !important;
  font-weight: 400 !important;
  color: var(--hhd-text) !important;
}

body.hawego-header-premium .header-search__field::placeholder {
  color: #9CA3AF !important;
  font-style: normal !important;
}

body.hawego-header-premium .header-search__categories-label {
  font-family: var(--hhd-font-body) !important;
  font-size: var(--hhd-ui-font) !important;
  font-weight: 600 !important;
  color: var(--hhd-muted) !important;
}

body.hawego-header-premium .header-search__divider::before {
  background: var(--hhd-border) !important;
}

body.hawego-header-premium .header-search__button {
  background: var(--hhd-red) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25) !important;
  transition: background var(--hhd-transition), transform var(--hhd-transition), box-shadow var(--hhd-transition) !important;
}

body.hawego-header-premium .header-search__button:hover {
  background: var(--hhd-red-dark) !important;
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35) !important;
}

body.hawego-header-premium .header-search__categories {
  border-radius: var(--hhd-radius) !important;
  border: 1px solid var(--hhd-border) !important;
  box-shadow: var(--hhd-shadow-lg) !important;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   RIGHT ICONS — Account, Wishlist, Cart
   ═══════════════════════════════════════════ */

body.hawego-header-premium .header-right-items {
  gap: 6px !important;
}

body.hawego-header-premium .header-right-items .motta-button--ghost {
  border: none !important;
  background: transparent !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  transition: background var(--hhd-transition), color var(--hhd-transition) !important;
}

body.hawego-header-premium .header-right-items .motta-button--ghost:hover {
  background: rgba(185, 28, 28, 0.08) !important;
  color: var(--hhd-red) !important;
}

body.hawego-header-premium .header-right-items .motta-button--ghost .motta-button__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

body.hawego-header-premium .header-cart .motta-button--base {
  background: transparent !important;
  color: var(--hhd-text) !important;
  border: 1px solid var(--hhd-border) !important;
  border-radius: var(--hhd-radius-pill) !important;
  padding: 0 16px !important;
  height: 44px !important;
  min-height: 44px !important;
  font-family: var(--hhd-font-body) !important;
  font-size: var(--hhd-ui-font) !important;
  font-weight: 600 !important;
  gap: 8px !important;
  box-shadow: none !important;
  transition: border-color var(--hhd-transition), background var(--hhd-transition), color var(--hhd-transition) !important;
}

body.hawego-header-premium .header-cart .motta-button--base:hover {
  border-color: var(--hhd-red) !important;
  background: rgba(185, 28, 28, 0.04) !important;
  color: var(--hhd-red) !important;
}

body.hawego-header-premium .header-cart .motta-button--base .motta-button__icon {
  color: var(--hhd-red) !important;
}

body.hawego-header-premium .header-cart .cart-counter,
body.hawego-header-premium .header-cart .counter {
  background: var(--hhd-red) !important;
  color: var(--hhd-white) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  line-height: 18px !important;
}

@keyframes hawego-hd-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

body.hawego-header-premium .header-cart .hawego-hd-cart-pulse {
  animation: hawego-hd-pulse 0.4s ease;
}

/* ═══════════════════════════════════════════
   NAVIGATION — refined typography
   ═══════════════════════════════════════════ */

body.hawego-header-premium .header-bottom {
  border-top: 1px solid var(--hhd-border-light) !important;
  background: var(--hhd-white) !important;
  overflow: visible !important;
}

body.hawego-header-premium .header-bottom .menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
}

body.hawego-header-premium .header-bottom .menu > li {
  flex-shrink: 0;
}

body.hawego-header-premium .header-bottom .menu > li > a {
  font-family: var(--hhd-font-body) !important;
  font-size: var(--hhd-nav-font) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--hhd-text) !important;
  padding: 14px 11px !important;
  position: relative !important;
  transition: color var(--hhd-transition) !important;
  white-space: nowrap !important;
}

body.hawego-header-premium .header-bottom .menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--hhd-red);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--hhd-transition);
}

body.hawego-header-premium .header-bottom .menu > li > a:hover {
  color: var(--hhd-red) !important;
}

body.hawego-header-premium .header-bottom .menu > li > a:hover::after {
  width: calc(100% - 28px);
}

body.hawego-header-premium .header-bottom .menu > li.current-menu-item > a,
body.hawego-header-premium .header-bottom .menu > li.current_page_item > a {
  color: var(--hhd-red) !important;
}

body.hawego-header-premium .header-bottom .menu > li.current-menu-item > a::after,
body.hawego-header-premium .header-bottom .menu > li.current_page_item > a::after {
  width: calc(100% - 28px);
}

/* APPLY FOR FRANCHISE — same font size as other nav items */
body.hawego-header-premium .header-bottom .hawego-hd-shop-item > a::before,
body.hawego-header-premium .header-bottom .menu-item.hawego-hd-shop-item > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform var(--hhd-transition);
}

body.hawego-header-premium .header-bottom .hawego-hd-shop-item:hover > a::before,
body.hawego-header-premium .header-bottom .menu-item.hawego-hd-shop-item:hover > a::before {
  transform: rotate(180deg);
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-shop-item > a::before,
body.hawego-header-premium #mobile-menu-panel .menu-item-has-children > a::after {
  display: none !important;
  content: none !important;
}

/* ═══════════════════════════════════════════
   SHOP MEGA MENU
   ═══════════════════════════════════════════ */

body.hawego-header-premium .hawego-hd-shop-item,
body.hawego-header-premium .menu-item.hawego-hd-shop-item {
  position: relative !important;
}

body.hawego-header-premium .hawego-hd-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 9999;
  min-width: min(640px, 92vw);
  /* Invisible bridge so mouse can travel from SHOP → categories without closing */
  padding-top: 14px;
  margin-top: 0;
}

body.hawego-header-premium .hawego-hd-mega::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
}

body.hawego-header-premium .header-bottom .hawego-hd-shop-item:hover > .hawego-hd-mega,
body.hawego-header-premium .header-bottom .menu-item.hawego-hd-shop-item:hover > .hawego-hd-mega,
body.hawego-header-premium .header-bottom .hawego-hd-shop-item.is-mega-open > .hawego-hd-mega,
body.hawego-header-premium .hawego-hd-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.hawego-header-premium .hawego-hd-mega__inner {
  background: var(--hhd-white);
  border: 1px solid var(--hhd-border);
  border-radius: var(--hhd-radius);
  box-shadow: none;
  padding: 24px 28px;
  border-top: 3px solid var(--hhd-red);
  position: relative;
}

/* Kill Motta dark overlay / black shadow behind mega menu */
body.hawego-header-premium .motta-primary-menu-overlay,
body.hawego-header-premium .header-bottom .menu > li:hover > .sub-menu,
body.hawego-header-premium .header-bottom .menu-item-has-children:hover::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.hawego-header-premium .header-bottom .hawego-hd-shop-item:hover,
body.hawego-header-premium .header-bottom .hawego-hd-shop-item.is-mega-open {
  box-shadow: none !important;
  background: transparent !important;
}

body.hawego-header-premium .header-bottom .hawego-hd-mega,
body.hawego-header-premium .header-bottom .hawego-hd-mega.is-open,
body.hawego-header-premium .header-bottom .hawego-hd-shop-item:hover > .hawego-hd-mega {
  box-shadow: none !important;
  filter: none !important;
}

body.hawego-header-premium .hawego-hd-mega__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hhd-border-light);
}

body.hawego-header-premium .hawego-hd-mega__title {
  font-family: var(--hhd-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--hhd-charcoal);
}

body.hawego-header-premium .hawego-hd-mega__all {
  font-family: var(--hhd-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--hhd-red);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--hhd-transition);
}

body.hawego-header-premium .hawego-hd-mega__all:hover {
  color: var(--hhd-red-dark);
}

body.hawego-header-premium .hawego-hd-mega__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 16px;
}

body.hawego-header-premium .hawego-hd-mega__grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-family: var(--hhd-font-body);
  font-size: var(--hhd-ui-font);
  font-weight: 500;
  color: var(--hhd-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--hhd-transition), color var(--hhd-transition);
}

body.hawego-header-premium .hawego-hd-mega__grid a:hover {
  background: rgba(185, 28, 28, 0.06);
  color: var(--hhd-red);
}

body.hawego-header-premium .hawego-hd-mega__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hhd-gold);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MOBILE & TABLET HEADER (up to 1024px)
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root {
    --hhd-ann-height: 36px;
    --hhd-ann-font: clamp(12px, 0.45vw + 10.5px, 14px);
  }

  body.hawego-header-premium .site-header__desktop {
    display: none !important;
  }

  body.hawego-header-premium .site-header__mobile {
    display: block !important;
    background: var(--hhd-white) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: var(--hhd-shadow-sm) !important;
  }

  body.hawego-header-premium .site-header__mobile.hawego-hd-scrolled {
    box-shadow: var(--hhd-shadow-md) !important;
  }

  body.hawego-header-premium .header-mobile-main {
    min-height: 56px;
  }

  body.hawego-header-premium .header-mobile-main .site-header__container,
  body.hawego-header-premium .header-mobile-bottom .site-header__container {
    padding-left: clamp(12px, 2.5vw, 20px) !important;
    padding-right: clamp(12px, 2.5vw, 20px) !important;
  }

  body.hawego-header-premium .header-mobile-main .header-logo img {
    max-width: 120px !important;
    max-height: 52px !important;
  }

  body.hawego-header-premium .header-mobile-main .header-left-items,
  body.hawego-header-premium .header-mobile-main .header-right-items {
    gap: 4px !important;
    align-items: center !important;
  }

  body.hawego-header-premium .header-mobile-main .motta-button--ghost,
  body.hawego-header-premium .header-mobile-main .motta-button--icon,
  body.hawego-header-premium .header-mobile-main .motta-button--subtle,
  body.hawego-header-premium .header-mobile-main .hamburger-menu {
    border: none !important;
    background: transparent !important;
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background var(--hhd-transition), color var(--hhd-transition) !important;
  }

  body.hawego-header-premium .header-mobile-main .motta-button--ghost:hover,
  body.hawego-header-premium .header-mobile-main .motta-button--icon:hover,
  body.hawego-header-premium .header-mobile-main .motta-button--subtle:hover,
  body.hawego-header-premium .header-mobile-main .hamburger-menu:hover {
    background: rgba(185, 28, 28, 0.08) !important;
    color: var(--hhd-red) !important;
  }

  body.hawego-header-premium .header-mobile-main .header-cart .header-cart__counter,
  body.hawego-header-premium .header-mobile-main .header-cart .counter {
    background: var(--hhd-red) !important;
    color: var(--hhd-white) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    line-height: 18px !important;
  }

  body.hawego-header-premium .header-mobile-bottom {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hhd-border-light);
  }

  body.hawego-header-premium .header-mobile-bottom .header-search {
    max-width: 100% !important;
    width: 100% !important;
  }

  body.hawego-header-premium .header-mobile-bottom .header-search__container {
    padding: 8px 14px 8px 12px !important;
  }

  body.hawego-header-premium .header-mobile-bottom .header-search__button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body.hawego-header-premium .hawego-hd-mega__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.hawego-header-premium #motta-mobile-navigation-bar {
    box-shadow: 0 -2px 12px rgba(26, 26, 26, 0.08) !important;
    border-top: 1px solid var(--hhd-border-light) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.hawego-header-premium .joinchat,
  body.hawego-header-premium .ht-ctc-chat {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* iPad / Tablet portrait & landscape */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --hhd-ann-height: 38px;
    --hhd-ann-font: clamp(12.5px, 0.5vw + 10px, 14.5px);
  }

  body.hawego-header-premium .header-mobile-main .header-logo img {
    max-width: 136px !important;
    max-height: 56px !important;
  }

  body.hawego-header-premium .header-mobile-main {
    min-height: 60px;
  }

  body.hawego-header-premium .header-mobile-bottom .header-search__container {
    padding: 10px 18px 10px 14px !important;
  }

  body.hawego-header-premium .header-mobile-bottom .header-search__button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  body.hawego-header-premium .hawego-hd-mega__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════════
   MOBILE PHONES (below 768px)
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
  :root {
    --hhd-ann-height: 34px;
    --hhd-ann-font: 12px;
  }

  .hawego-hd-announcement__item {
    padding: 0 10px;
    gap: 4px;
  }

  .hawego-hd-announcement__sep {
    padding: 0 4px;
  }

  body.hawego-header-premium .header-mobile-main .header-logo img {
    max-width: 108px !important;
    max-height: 48px !important;
  }

  body.hawego-header-premium .header-mobile-main .header-hamburger {
    margin-right: 2px;
  }
}

/* Small phones & landscape */
@media (max-width: 480px) {
  body.hawego-header-premium .header-mobile-main .header-logo img {
    max-width: 96px !important;
    max-height: 44px !important;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  :root {
    --hhd-ann-height: 30px;
  }

  body.hawego-header-premium .header-mobile-main {
    min-height: 48px;
  }

  body.hawego-header-premium .header-mobile-bottom {
    padding-bottom: 4px;
  }
}

/* ═══════════════════════════════════════════
   MOBILE OFF-CANVAS PANELS
   Hamburger (left) + Account (right)
   ═══════════════════════════════════════════ */

body.hawego-header-premium .offscreen-panel .panel__backdrop {
  background: rgba(26, 26, 26, 0.55) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.hawego-header-premium .offscreen-panel .panel__container {
  font-family: var(--hhd-font-body) !important;
  background: var(--hhd-white) !important;
  box-shadow: var(--hhd-shadow-lg) !important;
  max-width: min(340px, 92vw) !important;
  width: min(340px, 92vw) !important;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.hawego-header-premium .offscreen-panel .panel__button-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 5 !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--hhd-cream) !important;
  color: var(--hhd-text) !important;
  cursor: pointer !important;
  transition: background var(--hhd-transition), color var(--hhd-transition) !important;
}

body.hawego-header-premium .offscreen-panel .panel__button-close:hover {
  background: rgba(185, 28, 28, 0.1) !important;
  color: var(--hhd-red) !important;
}

body.hawego-header-premium .offscreen-panel .panel__header {
  padding: 20px 20px 16px !important;
  border-bottom: 1px solid var(--hhd-border-light) !important;
  background: var(--hhd-white) !important;
}

body.hawego-header-premium .offscreen-panel .panel__content {
  padding: 8px 0 24px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
}

/* ── Hamburger panel (left) ── */

body.hawego-header-premium #mobile-menu-panel.offscreen-panel--side-left .panel__container,
body.hawego-header-premium #mobile-menu-panel.hamburger-panel .panel__container {
  left: 0 !important;
  right: auto !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__box {
  display: none !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__name {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 14px !important;
  margin-top: 8px !important;
  border-radius: var(--hhd-radius) !important;
  background: var(--hhd-cream) !important;
  border: 1px solid var(--hhd-border-light) !important;
  color: var(--hhd-text) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: border-color var(--hhd-transition), background var(--hhd-transition) !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__name:hover {
  border-color: var(--hhd-red) !important;
  background: rgba(185, 28, 28, 0.04) !important;
  color: var(--hhd-red) !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__name .motta-button__icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--hhd-red) !important;
  color: var(--hhd-white) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__item {
  padding: 0 16px !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__item .motta-button {
  width: 100% !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 12px 8px !important;
  min-height: 48px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--hhd-text) !important;
  transition: background var(--hhd-transition), color var(--hhd-transition) !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__item .motta-button:hover {
  background: rgba(185, 28, 28, 0.06) !important;
  color: var(--hhd-red) !important;
}

body.hawego-header-premium #mobile-menu-panel .hamburger-panel__item .motta-button__icon {
  color: var(--hhd-red) !important;
  opacity: 0.85;
}

body.hawego-header-premium #mobile-menu-panel .mobile-menu__divider {
  margin: 8px 16px !important;
  border: none !important;
  border-top: 1px solid var(--hhd-border-light) !important;
  height: 0 !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px 8px !important;
  gap: 12px !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__name {
  font-family: var(--hhd-font-display) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--hhd-charcoal) !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__title .motta-button {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--hhd-red) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  padding: 4px 0 !important;
  min-height: auto !important;
  background: transparent !important;
  border: none !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu > li {
  position: relative !important;
  border-bottom: 1px solid var(--hhd-border-light) !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu > li:last-child {
  border-bottom: none !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 14px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--hhd-text) !important;
  text-decoration: none !important;
  transition: color var(--hhd-transition), background var(--hhd-transition) !important;
}

body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu > li > a:hover,
body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu > li.current-menu-item > a,
body.hawego-header-premium #mobile-menu-panel .header-category__menu .menu > li.current_page_item > a {
  color: var(--hhd-red) !important;
  background: rgba(185, 28, 28, 0.04) !important;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-shop-item .toggle-submenu {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%) rotate(90deg) !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: var(--hhd-muted) !important;
  transition: transform var(--hhd-transition), color var(--hhd-transition), background var(--hhd-transition) !important;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-shop-item.motta-open .toggle-submenu {
  transform: translateY(-50%) rotate(-90deg) !important;
  color: var(--hhd-red) !important;
  background: rgba(185, 28, 28, 0.06) !important;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-shop-item > a {
  padding-right: 52px !important;
}

/* ── Account panel (right) ── */

body.hawego-header-premium #account-panel .panel__container,
body.hawego-header-premium #account-panel.offscreen-panel .panel__container {
  left: auto !important;
  right: 0 !important;
}

body.hawego-header-premium #account-panel .panel__header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-top: 24px !important;
}

body.hawego-header-premium #account-panel .account-panel__avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--hhd-red) !important;
  color: var(--hhd-white) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

body.hawego-header-premium #account-panel .account-panel__name {
  font-family: var(--hhd-font-display) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--hhd-charcoal) !important;
  line-height: 1.2 !important;
}

body.hawego-header-premium #account-panel .account-panel__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 12px !important;
}

body.hawego-header-premium #account-panel .account-panel__link {
  border-bottom: 1px solid var(--hhd-border-light) !important;
}

body.hawego-header-premium #account-panel .account-panel__link:last-child {
  border-bottom: none !important;
}

body.hawego-header-premium #account-panel .account-panel__link .motta-button {
  width: 100% !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 14px 12px !important;
  min-height: 52px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--hhd-text) !important;
  transition: background var(--hhd-transition), color var(--hhd-transition) !important;
}

body.hawego-header-premium #account-panel .account-panel__link .motta-button:hover {
  background: rgba(185, 28, 28, 0.06) !important;
  color: var(--hhd-red) !important;
}

body.hawego-header-premium #account-panel .account-panel__link .motta-button__icon {
  color: var(--hhd-red) !important;
  opacity: 0.9;
}

body.hawego-header-premium #account-panel .account-panel__link:first-child .motta-button {
  margin-top: 4px !important;
  background: var(--hhd-red) !important;
  color: var(--hhd-white) !important;
  font-weight: 600 !important;
  justify-content: center !important;
  border-radius: var(--hhd-radius-pill) !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25) !important;
}

body.hawego-header-premium #account-panel .account-panel__link:first-child .motta-button:hover {
  background: var(--hhd-red-dark) !important;
  color: var(--hhd-white) !important;
}

body.hawego-header-premium #account-panel .account-panel__link:first-child .motta-button__icon {
  color: var(--hhd-white) !important;
}

/* Cart panel — keep right side */
body.hawego-header-premium #cart-panel .panel__container {
  left: auto !important;
  right: 0 !important;
}

/* Mobile drawer SHOP mega menu */
body.hawego-header-premium #mobile-menu-panel .hawego-hd-shop-item--drawer {
  position: relative;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-mega {
  position: static;
  transform: none;
  opacity: 1;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s ease, visibility 0.35s ease;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-mega.is-open,
body.hawego-header-premium #mobile-menu-panel .hawego-hd-shop-item.motta-open .hawego-hd-mega {
  visibility: visible;
  max-height: 900px;
  pointer-events: auto;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-mega__inner {
  margin: 0;
  padding: 0 16px 12px;
  border: none;
  box-shadow: none;
  background: transparent;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-mega__head {
  display: none !important;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-mega__grid {
  grid-template-columns: 1fr !important;
  gap: 2px !important;
}

body.hawego-header-premium #mobile-menu-panel .hawego-hd-mega__grid a {
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.hawego-header-premium .offscreen-panel .panel__container {
    max-width: min(380px, 70vw) !important;
    width: min(380px, 70vw) !important;
  }
}

/* Mobile menu visibility — controlled from Settings */
body.hawego-header-premium.hawego-hd-mobile-hide-signin #mobile-menu-panel .hamburger-panel__name {
  display: none !important;
}

body.hawego-header-premium.hawego-hd-mobile-hide-track #mobile-menu-panel .hamburger-panel__item a[href*="tracking-order"],
body.hawego-header-premium.hawego-hd-mobile-hide-track #mobile-menu-panel .hamburger-panel__item a[href*="track-order"] {
  display: none !important;
}

body.hawego-header-premium.hawego-hd-mobile-hide-track #mobile-menu-panel .hamburger-panel__item:has(a[href*="tracking-order"]),
body.hawego-header-premium.hawego-hd-mobile-hide-track #mobile-menu-panel .hamburger-panel__item:has(a[href*="track-order"]) {
  display: none !important;
}

body.hawego-header-premium.hawego-hd-mobile-hide-help #mobile-menu-panel .hamburger-panel__item a[href*="help-center"] {
  display: none !important;
}

body.hawego-header-premium.hawego-hd-mobile-hide-help #mobile-menu-panel .hamburger-panel__item:has(a[href*="help-center"]) {
  display: none !important;
}

body.hawego-header-premium.hawego-hd-mobile-hide-shop-title #mobile-menu-panel .header-category__title {
  display: none !important;
}

body.hawego-header-premium.hawego-hd-mobile-hide-shop-seeall #mobile-menu-panel .header-category__title .motta-button {
  display: none !important;
}

/* ═══════════════════════════════════════════
   DESKTOP FINE-TUNING (1025px — 1200px)
   ═══════════════════════════════════════════ */

@media (max-width: 1200px) and (min-width: 1025px) {
  body.hawego-header-premium .header-bottom .menu > li > a {
    padding: 14px 7px !important;
    letter-spacing: 0.05em !important;
    font-size: clamp(12px, 0.18vw + 10.5px, 13.5px) !important;
  }

  body.hawego-header-premium .header-logo img {
    max-width: 130px !important;
  }

  body.hawego-header-premium .header-search {
    max-width: min(520px, 42vw) !important;
  }
}

/* Large desktop — slightly bigger nav text */
@media (min-width: 1400px) {
  :root {
    --hhd-nav-font: clamp(14px, 0.35vw + 11px, 16px);
  }

  body.hawego-header-premium .header-bottom .menu > li > a {
    padding: 14px 13px !important;
    letter-spacing: 0.07em !important;
  }
}

/* Medium desktop + zoom levels */
@media (max-width: 1366px) and (min-width: 1025px) {
  body.hawego-header-premium .header-logo img {
    max-width: clamp(100px, 12vw, 130px) !important;
    max-height: clamp(52px, 7vw, 64px) !important;
  }

  body.hawego-header-premium .header-search {
    max-width: min(400px, 36vw) !important;
  }

  body.hawego-header-premium .header-search__container {
    padding: 8px 14px 8px 12px !important;
  }

  body.hawego-header-premium .header-search__button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body.hawego-header-premium .header-right-items .motta-button--ghost,
  body.hawego-header-premium .header-cart .motta-button--base {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* JS-assisted compact modes when zoom still overflows */
body.hawego-header-premium.hawego-hd-header-tight .header-logo img {
  max-width: clamp(96px, 11vw, 120px) !important;
  max-height: 56px !important;
}

body.hawego-header-premium.hawego-hd-header-tight .header-search {
  max-width: min(340px, 34vw) !important;
}

body.hawego-header-premium.hawego-hd-nav-tight .header-bottom .menu > li > a {
  font-size: clamp(11px, 0.9vw + 9px, 12.5px) !important;
  padding: 12px 5px !important;
  letter-spacing: 0.035em !important;
}

body.hawego-header-premium.hawego-hd-nav-compact .header-bottom .menu > li > a {
  font-size: 10.5px !important;
  padding: 10px 3px !important;
  letter-spacing: 0.02em !important;
}

body.hawego-header-premium .header-bottom.hawego-hd-nav-scroll {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.hawego-header-premium .header-bottom.hawego-hd-nav-scroll::-webkit-scrollbar {
  display: none;
}

body.hawego-header-premium .header-bottom.hawego-hd-nav-scroll .menu {
  justify-content: flex-start !important;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(8px, 1.5vw, 16px);
}

/* ═══════════════════════════════════════════
   ADMIN BAR OFFSET
   ═══════════════════════════════════════════ */

body.admin-bar.hawego-header-premium .site-header__desktop.motta-header-sticky {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.hawego-header-premium .site-header__desktop.motta-header-sticky {
    top: 46px;
  }
}

/* ═══════════════════════════════════════════
   GLOBAL POLISH
   ═══════════════════════════════════════════ */

body.hawego-header-premium {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.hawego-header-premium #site-header,
body.hawego-header-premium .hawego-hd-announcement {
  max-width: 100% !important;
  width: 100% !important;
}

body.hawego-header-premium .header-left-items {
  min-width: 0;
  flex-shrink: 0;
}

body.hawego-header-premium .header-right-items {
  min-width: 0;
  flex-shrink: 0;
  justify-content: flex-end;
}

body.hawego-header-premium .header-center-items {
  flex: 1 1 auto;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hawego-hd-announcement__track {
    animation: none !important;
  }
}
