/* =============================================================================
   WrickX Global Header CSS — wrickx-header.css
   Loaded on ALL pages to replace the Elementor/ElementsKit header
   ============================================================================= */

/* ── CSS Variables (shared with home-page.css) ──────────────────── */
:root {
  --black:    #000000;
  --white:    #ffffff;
  --red:      #e8192c;
  --yellow:   #f0c040;
  --gray-bg:  #f5f5f5;
  --header-h: 90px;
  --bar-h:    36px;
  --ticker-h: 34px;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Hide Astra / Elementor Kit default header everywhere ────────── */
#masthead,
.site-header,
.ast-site-header-wrap,
.ast-main-header-wrap,
.ast-above-header-section,
.ast-below-header-section,
.ekit-header,
.ekit-sticky-header,
.elementor-kit-header,
[class*="elementor-location-header"] {
  display: none !important;
}

/* ── ANNOUNCEMENT BAR ────────────────────────────────────────── */
.whp-announce-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 300px 0 200px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #111;
}

.whp-announce-bar a {
  color: inherit;
}

/* ── TICKER ─────────────────────────────────────────────────── */
.whp-ticker {
  background: #fff;
  height: 32px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.whp-ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: whp-ticker-scroll 38s linear infinite;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.whp-ticker-track span {
  padding: 0 50px;
}

@keyframes whp-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HEADER ─────────────────────────────────────────────────── */
.whp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  height: 150px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 0;
}

/* Logo */
.whp-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
}

.whp-logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* Desktop nav */
.whp-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.whp-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.whp-nav > ul > li {
  position: relative;
}

.whp-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b5b5b5;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 18px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
  letter-spacing: 0;
  font-family: inherit;
}

.whp-nav > ul > li > a:hover {
  color: #fff;
}

/* Dropdown chevron */
.whp-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #b5b5b5;
  margin-top: 1px;
  flex-shrink: 0;
  transition: transform .2s;
}

li:hover > a > .whp-arrow {
  transform: rotate(180deg);
}

/* Level-1 dropdown */
.whp-nav ul ul {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 2000;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.whp-nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whp-nav ul ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: #222;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.whp-nav ul ul li:last-child a {
  border-bottom: none;
}

.whp-nav ul ul li a:hover {
  background: #f8f8f8;
  color: #e8192c;
}

/* Level-2 nested */
.whp-nav ul ul ul {
  top: 0;
  left: 100%;
}

.whp-nav ul ul li a .whp-arrow {
  border-top: 0;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #aaa;
  border-right: 0;
  width: 0;
  height: 0;
  margin-top: 0;
}

/* Header icons: right side */
.whp-header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.whp-header-icons > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger (mobile only, hidden on desktop) */
.whp-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.whp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

.whp-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.whp-hamburger.open span:nth-child(2) { opacity: 0; }
.whp-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile off-canvas nav ───────────────────────────────────── */
.whp-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.whp-mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .3s;
}

.whp-mobile-nav-drawer {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: min(300px, 82vw);
  background: #111;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 0 0 40px;
}

.whp-mobile-nav.open                           { display: block; pointer-events: all; }
.whp-mobile-nav.open .whp-mobile-nav-overlay   { opacity: 1; }
.whp-mobile-nav.open .whp-mobile-nav-drawer    { transform: translateX(0); }

.whp-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
}

.whp-mobile-nav-header img { display: none; }

.whp-mobile-nav-close {
  background: #d8232a;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.whp-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.whp-mobile-menu li { border-bottom: none; }

.whp-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.whp-mobile-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.whp-mobile-arrow {
  font-size: 12px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #555;
  border-radius: 50%;
  color: #aaa;
}

.whp-mobile-menu li.mob-open > a .whp-mobile-arrow {
  transform: rotate(90deg);
  color: #fff;
  border-color: #fff;
}

.whp-mobile-menu ul {
  display: none;
  background: #1a1a1a;
  margin: 0;
  padding: 0;
  list-style: none;
}

.whp-mobile-menu ul a       { padding-left: 34px; font-size: 13px; color: #999; }
.whp-mobile-menu ul ul a    { padding-left: 48px; font-size: 12px; }

.whp-mobile-menu li.mob-open > ul { display: block; }

/* ── FiboSearch / Minicart / Wishlist overrides ──────────────── */
.whp-search-wrap .fs-search-icon        { color: #fff !important; }
.whp-search-wrap .fs-search-icon svg   { stroke: #fff !important; }

.whp-minicart-wrap,
.whp-wishlist-wrap  { color: #fff; }

.whp-wishlist-wrap  { margin-top: 8px; }

.whp-minicart-wrap svg,
.whp-minicart-wrap i,
.whp-wishlist-wrap svg,
.whp-wishlist-wrap i  { color: #fff !important; stroke: #fff !important; }

.whp-minicart-wrap path,
.whp-wishlist-wrap path { stroke: #fff !important; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .whp-nav        { display: none; }
  .whp-hamburger  { display: flex; }

  .whp-header {
    height: 85px;
    padding: 0 20px;
    position: sticky;
    gap: 16px;
    justify-content: flex-start;
  }

  .whp-hamburger {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    gap: 6px;
  }

  .whp-hamburger span {
    width: 24px;
    height: 2.5px;
  }

  .whp-logo {
    position: static;
    transform: none;
    margin: 0;
    flex-shrink: 0;
  }

  .whp-logo img { height: 44px; }

  .whp-header-icons {
    margin-left: auto;
    gap: 16px;
    flex-shrink: 0;
  }

  .whp-announce-bar {
    padding: 0 16px;
    font-size: 11.5px;
  }

  .whp-ticker-track { font-size: 11.5px; }
}

@media (max-width: 600px) {
  .whp-announce-bar {
    font-size: 10.5px;
    padding: 0 12px;
  }
}
