/* ZhostPro - Desktop header (>= 992px). Mobile header/drawer are untouched. */
.dh-topbar, .dh-header { display: none; }

@media (min-width: 992px) {
  /* hide the old desktop header only; mobile keeps its own */
  #header, body > .header-main.d-lg-block { display: none !important; }

  :root { --dh-font: "Outfit", sans-serif; --dh-font-sub: "Montserrat", "Outfit", sans-serif; --dh-red: var(--color-one, #c52228); --dh-blue: var(--color-secondary, #2245c4); --dh-text: #1d1d1f; }

  .dh-topbar, .dh-header { display: block; font-family: var(--dh-font); position: relative; }
  .dh-topbar ul, .dh-header ul { list-style: none; margin: 0; padding: 0; }
  .dh-topbar a, .dh-header a { text-decoration: none; }
  :where(.dh-topbar button, .dh-header button) { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }

  /* ---------- top bar ---------- */
  .dh-topbar { background: #111; color: #fff; z-index: 1051; }
  .dh-topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 50px; padding: 0 24px; gap: 16px; }
  .dh-promo { display: flex; align-items: center; gap: 12px; justify-content: center; font-size: 14px; line-height: 1.3; text-align: center; }
  .dh-promo-text { color: #4fd8bb; }
  .dh-promo-btn { color: #fff !important; background: #000; border: 1px solid #fff; border-radius: 2px; font-size: 13px; line-height: 1; padding: 7px 9px; white-space: nowrap; }
  .dh-promo-btn:hover { background: #fff; color: #000 !important; }
  .dh-toplinks { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
  .dh-toplinks > li { position: relative; }
  .dh-toplink { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-size: 14px; line-height: 1; }
  .dh-toplink i { font-size: 14px; }
  .dh-toplink:hover { color: #4fd8bb !important; }

  /* ---------- main header ---------- */
  .dh-header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.07); z-index: 1050; }
  .dh-header-inner { display: flex; align-items: center; min-height: 66px; padding: 0 27px; max-width: 1920px; margin: 0 auto; gap: 24px; }
  .dh-logo { display: flex; align-items: center; flex: 0 0 auto; }
  .dh-logo img { height: 46px; width: auto; max-width: 200px; object-fit: contain; display: block; }
  .dh-nav { flex: 1 1 auto; min-width: 0; }
  .dh-nav-list { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
  .dh-item { position: relative; }
  .dh-link { display: inline-flex; align-items: center; gap: 6px; height: 66px; padding: 0 14px; font-family: var(--dh-font); font-size: 15px; font-weight: 400; color: var(--dh-text) !important; white-space: nowrap; transition: color .2s ease; }
  .dh-link > span { display: inline-flex; align-items: center; gap: 6px; }
  .dh-link .bi-chevron-down { font-size: 11px; transition: transform .2s ease; }
  .dh-link:hover, .dh-item.is-open > .dh-link { color: var(--dh-blue) !important; }
  .dh-item.is-open > .dh-link .bi-chevron-down { transform: rotate(180deg); }
  .dh-badge { background: var(--dh-red); color: #fff; font-size: 11px; font-weight: 500; line-height: 1; padding: 4px 5px; border-radius: 2px; text-transform: none; }

  /* ---------- dropdowns ---------- */
  .dh-drop { position: absolute; top: 100%; left: 0; min-width: 310px; background: #fff; border-top: 3px solid var(--dh-red); border-radius: 0 0 6px 6px; box-shadow: 0 14px 32px rgba(0,0,0,.16); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 1060; }
  .dh-drop-right { left: auto; right: 0; }
  .dh-drop-small { min-width: 160px; }
  .dh-drop-notify { min-width: 340px; max-height: 70vh; overflow-y: auto; }
  .dh-item.is-open > .dh-drop, .dh-util.is-open > .dh-drop { opacity: 1; visibility: visible; transform: none; }
  @media (hover: hover) {
    .dh-item.has-drop:hover > .dh-drop { opacity: 1; visibility: visible; transform: none; }
    .dh-item.has-drop:hover > .dh-link { color: var(--dh-blue) !important; }
    .dh-item.has-drop:hover > .dh-link .bi-chevron-down { transform: rotate(180deg); }
  }
  .dh-drop-item { display: flex; align-items: center; gap: 14px; padding: 10px 22px; font-family: var(--dh-font-sub); font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--dh-blue) !important; }
  .dh-drop-item .bi, .dh-drop-item .fas { color: var(--dh-red); font-size: 22px; line-height: 1; width: 26px; flex: 0 0 26px; text-align: center; }
  .dh-drop-item:hover { background: #f4f6ff; color: var(--color-secondary-dark, #193391) !important; }
  .dh-drop-viewall { display: block; padding: 10px 22px 12px; margin-top: 2px; border-top: 1px solid #ececec; font-family: var(--dh-font-sub); font-size: 15px; color: var(--dh-blue) !important; }
  .dh-drop-viewall:hover { background: #f4f6ff; }

  /* ---------- utilities (cart, currency, bell) ---------- */
  .dh-utils { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
  .dh-util { position: relative; display: flex; align-items: center; height: 66px; }
  .dh-util-btn { font-size: 20px; color: var(--dh-text); line-height: 1; }
  .dh-util-btn:hover { color: var(--dh-red); }
  .dh-cart { position: relative; display: inline-flex; color: var(--dh-text) !important; font-size: 21px; line-height: 1; }
  .dh-cart:hover { color: var(--dh-red) !important; }
  .dh-cart-count { position: absolute; top: -8px; right: -9px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 10px; background: #1d1d1f; color: #fff; font-family: var(--dh-font); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
  .dh-currency { display: inline-flex; align-items: center; gap: 6px; font-family: var(--dh-font); font-size: 13px; font-weight: 600; color: var(--dh-text); letter-spacing: .2px; }
  .dh-currency .bi-chevron-down { font-size: 11px; }
  .dh-util.is-open .dh-currency .bi-chevron-down { transform: rotate(180deg); }
}

/* tighter spacing on small desktops */
@media (min-width: 992px) and (max-width: 1279px) {
  .dh-header-inner { padding: 0 16px; gap: 12px; }
  .dh-link { padding: 0 6px; font-size: 14px; gap: 4px; }
  .dh-logo img { height: 38px; max-width: 150px; }
  .dh-topbar-inner { padding: 0 16px; }
  .dh-promo { font-size: 13px; }
  .dh-toplinks { gap: 14px; }
}

@media (min-width: 992px) and (max-width: 1099px) {
  .dh-header-inner { padding: 0 12px; gap: 8px; }
  .dh-link { padding: 0 3px; font-size: 12px; gap: 2px; }
  .dh-link .bi-chevron-down { font-size: 9px; }
  .dh-badge { font-size: 10px; padding: 3px 4px; }
  .dh-logo img { height: 32px; max-width: 124px; }
  .dh-utils { gap: 12px; }
  .dh-promo-text { font-size: 12px; }
}
