/* ============================================================================
   ELITE DIESEL DYNAMICS — HEADER v4.2.69  (CLEAN consolidated replacement)
   Replaces the ENTIRE assets/css/elite-header-redesign-v4258.css (the 1,116-line
   stacked version). This is one clean source of truth — edit values HERE, do not
   append more blocks.

   Fixes:
     • Mobile menu = solid dark (#111) with WHITE readable text, at maximum
       specificity so no older white-menu rule (or stale cache) can win.
     • Duplicate "DEALER PROGRAM" nav item hidden (5th+ item).
     • Desktop header flex-pinned: icons + DEALER PORTAL cannot be pushed off-page.

   ⚠️ DEPLOY — do BOTH or the phone keeps showing the old white menu:
     1. Overwrite the file (or paste this into Customize → Additional CSS).
     2. Bump EDD_THEME_VERSION (e.g. 4.2.69) AND purge Sucuri.
     3. ON THE iPHONE/iPAD: close the tab, then reopen in a Private tab once
        (Settings → Safari → Clear History is the nuclear option). iOS caches CSS
        separately from your desktop — that is why the menu still looked white.
   ============================================================================ */

:root{
  --edd-hd-bg-top:#13161b;
  --edd-hd-bg-bot:#0a0c10;
  --edd-hd-red:#e4080a;
  --edd-hd-red-dk:#a4060a;
  --edd-hd-ink:#eef0f3;
  --edd-hd-icon-bg:#191c22;
  --edd-hd-icon-bd:rgba(255,255,255,.10);
  --edd-hd-h:104px;
}

html body.edd-theme .edd-header.edd-header-exact{
  position:relative!important;top:auto!important;z-index:1000!important;width:100%!important;height:auto!important;min-height:0!important;
  background:linear-gradient(180deg,var(--edd-hd-bg-top) 0%,var(--edd-hd-bg-bot) 100%)!important;
  border:0!important;border-bottom:1px solid rgba(255,255,255,.06)!important;box-shadow:0 10px 30px rgba(0,0,0,.34)!important;
  backdrop-filter:none!important;overflow:hidden!important;
}
html body.edd-theme.admin-bar .edd-header.edd-header-exact{top:auto!important;}
html body.edd-theme .edd-header-exact .edd-header-trustbar{display:none!important;}
html body.edd-theme .edd-header-search-panel{z-index:1100!important;}

/* HIDE the stale duplicate 5th+ nav item (menu is designed for 4). */
html body.edd-theme .edd-header-exact .edd-nav li:nth-child(n+5){display:none!important;}


/* ===========================================================================
   1) DESKTOP (≥1121px) — flex row; nav is the only flexible element
   =========================================================================== */
@media (min-width:1121px){
  html body.edd-theme .edd-header-exact .edd-header-inner{
    position:relative!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;
    height:var(--edd-hd-h)!important;min-height:var(--edd-hd-h)!important;max-height:var(--edd-hd-h)!important;
    margin:0!important;padding:0 0 0 clamp(20px,2.4vw,44px)!important;
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;
    gap:clamp(12px,1.6vw,30px)!important;background:transparent!important;overflow:hidden!important;
  }

  html body.edd-theme .edd-header-exact .edd-logo{
    flex:0 0 auto!important;position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    height:var(--edd-hd-h)!important;width:auto!important;min-width:0!important;margin:0!important;padding:0 clamp(14px,1.6vw,26px) 0 0!important;
  }
  html body.edd-theme .edd-header-exact .edd-logo img,
  html body.edd-theme .edd-header-exact .edd-logo .edd-custom-logo,
  html body.edd-theme .edd-header-exact .edd-logo .custom-logo{
    display:block!important;width:auto!important;height:auto!important;
    max-width:clamp(180px,15vw,236px)!important;max-height:78px!important;object-fit:contain!important;filter:drop-shadow(0 5px 12px rgba(0,0,0,.40))!important;
  }
  html body.edd-theme .edd-header-exact .edd-logo::after{
    content:""!important;position:absolute!important;right:0!important;top:22px!important;bottom:22px!important;width:3px!important;background:var(--edd-hd-red)!important;transform:skewX(-18deg)!important;opacity:.9!important;pointer-events:none!important;
  }

  html body.edd-theme .edd-header-exact .edd-nav{
    flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;position:static!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;
  }
  html body.edd-theme .edd-header-exact .edd-nav ul{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:clamp(18px,1.9vw,40px)!important;margin:0!important;padding:0!important;list-style:none!important;white-space:nowrap!important;max-width:100%!important;}
  html body.edd-theme .edd-header-exact .edd-nav li{position:relative!important;display:flex!important;align-items:center!important;margin:0!important;flex:0 0 auto!important;}
  html body.edd-theme .edd-header-exact .edd-nav li+li::before{content:none!important;display:none!important;}
  html body.edd-theme .edd-header-exact .edd-nav a{position:relative!important;display:inline-flex!important;align-items:center!important;height:var(--edd-hd-h)!important;padding:0!important;color:var(--edd-hd-ink)!important;font-size:clamp(12px,.95vw,14px)!important;line-height:1!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.06em!important;text-decoration:none!important;text-shadow:none!important;border:0!important;white-space:nowrap!important;}
  html body.edd-theme .edd-header-exact .edd-nav a:hover{color:#fff!important;}
  html body.edd-theme .edd-header-exact .edd-nav .current-menu-item>a::after,
  html body.edd-theme .edd-header-exact .edd-nav a[aria-current="page"]::after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:30px!important;height:3px!important;width:auto!important;background:var(--edd-hd-red)!important;border-radius:2px!important;transform:none!important;}

  html body.edd-theme .edd-header-exact .edd-header-actions{flex:0 0 auto!important;position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;height:var(--edd-hd-h)!important;margin:0!important;padding:0!important;white-space:nowrap!important;overflow:visible!important;}
  html body.edd-theme .edd-header-exact .edd-icon-link,
  html body.edd-theme .edd-header-exact .edd-cart-link{flex:0 0 auto!important;position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;min-width:46px!important;margin:0!important;padding:0!important;background:var(--edd-hd-icon-bg)!important;border:1px solid var(--edd-hd-icon-bd)!important;border-radius:10px!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;transform:none!important;transition:background .15s ease,border-color .15s ease!important;text-decoration:none!important;}
  html body.edd-theme .edd-header-exact .edd-icon-link:hover,
  html body.edd-theme .edd-header-exact .edd-cart-link:hover{background:#23272e!important;border-color:rgba(255,255,255,.20)!important;}
  html body.edd-theme .edd-header-exact .edd-icon-link svg,
  html body.edd-theme .edd-header-exact .edd-cart-link svg{display:block!important;width:21px!important;height:21px!important;fill:#fff!important;stroke:none!important;transform:none!important;}
  html body.edd-theme .edd-header-exact .edd-cart-link span{position:absolute!important;top:-7px!important;right:-7px!important;z-index:5!important;min-width:19px!important;height:19px!important;padding:0 5px!important;border-radius:999px!important;background:var(--edd-hd-red)!important;border:2px solid var(--edd-hd-bg-bot)!important;color:#fff!important;font-size:10px!important;font-weight:900!important;line-height:15px!important;text-align:center!important;transform:none!important;}

  html body.edd-theme .edd-header-exact .edd-deals{flex:0 0 auto!important;position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:11px!important;height:var(--edd-hd-h)!important;width:auto!important;min-width:0!important;margin:0 0 0 12px!important;padding:0 clamp(22px,2vw,32px) 0 clamp(36px,3vw,50px)!important;clip-path:polygon(28px 0,100% 0,100% 100%,0 100%)!important;border:0!important;border-radius:0!important;background:linear-gradient(180deg,var(--edd-hd-red) 0%,var(--edd-hd-red-dk) 100%)!important;color:#fff!important;font-size:clamp(11px,.9vw,13px)!important;font-weight:900!important;letter-spacing:.04em!important;text-transform:uppercase!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important;}
  html body.edd-theme .edd-header-exact .edd-deals span{font-size:16px!important;line-height:1!important;}
  html body.edd-theme .edd-header-exact .edd-deals:hover{filter:brightness(1.06)!important;transform:none!important;}

  html body.edd-theme .edd-header-exact .edd-mobile-toggle{display:none!important;}
}


/* ===========================================================================
   2) MOBILE / TABLET (≤1120px) — dark header + full-width dealer bar
   =========================================================================== */
@media (max-width:1120px){
  html body.edd-theme .edd-header.edd-header-exact{position:relative!important;top:auto!important;background:linear-gradient(180deg,var(--edd-hd-bg-top),var(--edd-hd-bg-bot))!important;box-shadow:0 8px 24px rgba(0,0,0,.34)!important;overflow:visible!important;}
  html body.edd-theme .edd-header-exact .edd-header-inner{position:relative!important;height:auto!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:60px 46px!important;grid-template-areas:"logo actions toggle" "dealer dealer dealer"!important;align-items:center!important;padding:12px 14px 10px!important;gap:8px!important;overflow:visible!important;}
  html body.edd-theme .edd-header-exact .edd-logo::after,
  html body.edd-theme .edd-header-exact .edd-header-inner::before,
  html body.edd-theme .edd-header-exact .edd-header-inner::after{display:none!important;content:none!important;}

  html body.edd-theme .edd-header-exact .edd-logo{grid-area:logo!important;position:relative!important;height:60px!important;width:auto!important;padding:0!important;justify-content:flex-start!important;display:flex!important;align-items:center!important;}
  html body.edd-theme .edd-header-exact .edd-logo img,
  html body.edd-theme .edd-header-exact .edd-logo .edd-custom-logo,
  html body.edd-theme .edd-header-exact .edd-logo .custom-logo{max-width:172px!important;max-height:56px!important;object-fit:contain!important;filter:none!important;}

  html body.edd-theme .edd-header-exact .edd-header-actions{grid-area:actions!important;height:auto!important;gap:8px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;}
  html body.edd-theme .edd-header-exact .edd-icon-link,
  html body.edd-theme .edd-header-exact .edd-cart-link{width:44px!important;height:44px!important;min-width:44px!important;border-radius:9px!important;background:var(--edd-hd-icon-bg)!important;border:1px solid var(--edd-hd-icon-bd)!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
  html body.edd-theme .edd-header-exact .edd-icon-link svg,
  html body.edd-theme .edd-header-exact .edd-cart-link svg{width:20px!important;height:20px!important;fill:#fff!important;}
  html body.edd-theme .edd-header-exact .edd-cart-link span{position:absolute!important;top:-7px!important;right:-7px!important;min-width:19px!important;height:19px!important;background:var(--edd-hd-red)!important;border:2px solid var(--edd-hd-bg-bot)!important;color:#fff!important;font-size:10px!important;font-weight:900!important;line-height:15px!important;text-align:center!important;border-radius:999px!important;}

  html body.edd-theme .edd-header-exact .edd-mobile-toggle{grid-area:toggle!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;background:var(--edd-hd-icon-bg)!important;border:1px solid var(--edd-hd-icon-bd)!important;border-radius:9px!important;color:#fff!important;font-size:21px!important;line-height:1!important;box-shadow:none!important;}

  html body.edd-theme .edd-header-exact .edd-deals{grid-area:dealer!important;position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:100%!important;min-width:0!important;height:46px!important;margin:0!important;padding:0 18px!important;clip-path:none!important;border:0!important;border-radius:8px!important;white-space:nowrap!important;overflow:hidden!important;background:linear-gradient(180deg,var(--edd-hd-red),var(--edd-hd-red-dk))!important;color:#fff!important;font-size:13px!important;font-weight:900!important;letter-spacing:.05em!important;text-transform:uppercase!important;text-decoration:none!important;box-shadow:none!important;}
  html body.edd-theme .edd-header-exact .edd-deals span{flex:0 0 auto!important;font-size:16px!important;line-height:1!important;}

  /* ---- MOBILE DROPDOWN MENU — maximum-specificity DARK so it cannot lose ---- */
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu],
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu].is-open,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav.is-open,
  html body .edd-header.edd-header-exact nav.edd-nav[data-menu],
  html body .edd-header.edd-header-exact .edd-nav.is-open{
    position:absolute!important;left:12px!important;right:12px!important;top:calc(100% + 6px)!important;z-index:10010!important;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:8px 12px!important;
    background:#111111!important;background-color:#111111!important;background-image:none!important;
    border:1px solid rgba(229,9,20,.42)!important;border-radius:12px!important;box-shadow:0 24px 55px rgba(0,0,0,.58)!important;clip-path:none!important;transform:none!important;
  }
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu]{display:none!important;}
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu].is-open,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav.is-open,
  html body .edd-header.edd-header-exact .edd-nav.is-open{display:block!important;}

  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] ul,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav ul{display:grid!important;grid-template-columns:1fr!important;gap:0!important;width:100%!important;margin:0!important;padding:0!important;list-style:none!important;background:transparent!important;}
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] li,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav li{display:block!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;}
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] li+li,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav li+li{border-top:1px solid rgba(255,255,255,.10)!important;}

  /* WHITE, readable text — highest specificity wins over any white-on-white rule */
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] a,
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu].is-open a,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav.is-open a,
  html body .edd-header.edd-header-exact .edd-nav.is-open a{
    display:flex!important;align-items:center!important;width:100%!important;height:auto!important;min-height:48px!important;margin:0!important;padding:14px 8px!important;
    background:transparent!important;border:0!important;
    color:#ffffff!important;opacity:1!important;font-size:15px!important;line-height:1.1!important;font-weight:800!important;letter-spacing:.06em!important;text-transform:uppercase!important;text-decoration:none!important;text-shadow:none!important;
  }
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] a:hover,
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] .current-menu-item>a,
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] a[aria-current="page"],
  html body.edd-theme .edd-header.edd-header-exact .edd-nav.is-open .current-menu-item>a,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav.is-open a[aria-current="page"]{color:#ff2a2f!important;}
  html body.edd-theme .edd-header.edd-header-exact nav.edd-nav[data-menu] a::after,
  html body.edd-theme .edd-header.edd-header-exact .edd-nav.is-open a::after{display:none!important;content:none!important;}

  html body.edd-theme .edd-header-search-panel{left:12px!important;right:12px!important;top:100%!important;width:auto!important;}
}

@media (max-width:560px){
  html body.edd-theme .edd-header-exact .edd-header-inner{grid-template-rows:52px 44px!important;padding:10px 12px 9px!important;}
  html body.edd-theme .edd-header-exact .edd-logo{height:52px!important;}
  html body.edd-theme .edd-header-exact .edd-logo img,
  html body.edd-theme .edd-header-exact .edd-logo .edd-custom-logo,
  html body.edd-theme .edd-header-exact .edd-logo .custom-logo{max-width:142px!important;max-height:48px!important;}
  html body.edd-theme .edd-header-exact .edd-icon-link,
  html body.edd-theme .edd-header-exact .edd-cart-link,
  html body.edd-theme .edd-header-exact .edd-mobile-toggle{width:40px!important;height:40px!important;min-width:40px!important;}
  html body.edd-theme .edd-header-exact .edd-deals{height:44px!important;font-size:12px!important;}
}


/* ===========================================================================
   3) MOBILE HERO CLEARANCE  |  4) PRODUCT BADGE  (unchanged, kept here)
   =========================================================================== */
@media (max-width:900px){
  html body.edd-theme.home .edd-home,
  html body.edd-theme.home .edd-home-main,
  html body.edd-theme.home .edd-hero{margin-top:0!important;}
  html body.edd-theme.home .edd-hero{padding-top:34px!important;}
  html body.edd-theme.home .edd-hero h1{margin-top:0!important;}
  html body.edd-theme.woocommerce .edd-shop-page .edd-shop-hero{padding-top:36px!important;margin-top:0!important;}
}
@media (max-width:560px){
  html body.edd-theme.home .edd-hero{padding-top:28px!important;}
  html body.edd-theme.woocommerce .edd-shop-page .edd-shop-hero{padding-top:30px!important;}
}

html body.woocommerce ul.products li.product,
html body .woocommerce ul.products li.product,
html body .edd-product-carousel ul.products li.product{position:relative!important;}
html body .edd-product-brand-patch{position:absolute!important;top:12px!important;right:12px!important;z-index:6!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:66px!important;margin:0!important;padding:5px 7px!important;background:rgba(255,255,255,.93)!important;border:1px solid rgba(16,24,40,.08)!important;border-radius:9px!important;box-shadow:0 6px 16px rgba(16,24,40,.16)!important;pointer-events:none!important;overflow:visible!important;backdrop-filter:none!important;color:#10141a!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.02em!important;line-height:1!important;}
html body .edd-product-brand-patch .edd-brand-patch-img,
html body .edd-product-brand-patch img{display:block!important;width:auto!important;height:auto!important;max-width:52px!important;max-height:22px!important;object-fit:contain!important;filter:none!important;}
@media (max-width:560px){
  html body .edd-product-brand-patch{top:9px!important;right:9px!important;max-width:54px!important;padding:4px 6px!important;}
  html body .edd-product-brand-patch .edd-brand-patch-img,
  html body .edd-product-brand-patch img{max-width:44px!important;max-height:18px!important;}
}
