/**
 * Wellspring CBD — Modern On-Brand Header (v3.5.148)
 * Layout: Modern D2C with Quiz CTA
 * Behavior: Reveal on Scroll Up with Glassmorphism
 */

#header {
  position: relative;
  z-index: 990;
  background: #ffffff;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}

#header.wsh_sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 24px rgba(25, 44, 39, 0.08) !important;
}

#header.wsh_hidden {
  transform: translateY(-100%) !important;
}

/* Header Container */
.wsh_header_inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Left: Logo */
.wsh_logo_wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wsh_logo_link {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.wsh_logo_img {
  height: 46px;
  width: auto;
  max-width: 220px;
  display: block;
  transition: transform 0.15s ease;
}

.wsh_logo_link:hover .wsh_logo_img {
  transform: scale(1.02);
}

/* Center: Navigation Menu */
.wsh_nav_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.wsh_menu {
  list-style: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.wsh_menu_item {
  position: relative;
  margin: 0 !important;
  padding: 8px 0 !important;
  list-style: none !important;
  display: flex;
  align-items: center;
}

.wsh_menu_link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: #192c27 !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.2s ease !important;
  line-height: 1.35 !important;
}

.wsh_menu_link:hover,
.wsh_menu_item:hover > .wsh_menu_link,
.wsh_menu_item.is-open > .wsh_menu_link {
  color: #62b414 !important;
  background: #f4f8f5;
}

.wsh_menu_chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: #889a90;
  display: inline-block;
  margin-left: 2px;
}

.wsh_menu_item:hover .wsh_menu_chevron,
.wsh_menu_item.is-open .wsh_menu_chevron {
  transform: rotate(180deg);
  color: #62b414;
}

/* Dropdown Flyouts */
.wsh_dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid #e2ebe5;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(25, 44, 39, 0.14);
  list-style: none !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  transition-delay: 0.08s;
  pointer-events: none;
  z-index: 1000;
}

/* Invisible hover bridge connecting trigger to menu */
.wsh_dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
  display: block;
}

.wsh_menu_item:hover > .wsh_dropdown,
.wsh_menu_item.is-open > .wsh_dropdown,
.wsh_dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.wsh_dropdown li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wsh_dropdown_link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #24413a !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.15s ease !important;
}

.wsh_dropdown_link:hover {
  background: #f0f6f2 !important;
  color: #62b414 !important;
  transform: translateX(3px);
}

.wsh_dropdown_badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #62b414;
  background: #eaf5ec;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Right Actions Cluster */
.wsh_actions_wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Action Icon Buttons (Search, Account, Cart) */
.wsh_icon_btn,
a.wsh_icon_btn,
button.wsh_icon_btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: #f4f8f5 !important;
  border: 1px solid #e2ebe5 !important;
  color: #192c27 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.wsh_icon_btn:hover,
a.wsh_icon_btn:hover,
button.wsh_icon_btn:hover {
  background: #e8f3ec !important;
  border-color: #62b414 !important;
  color: #62b414 !important;
  transform: translateY(-1px) !important;
}

.wsh_icon_btn svg,
a.wsh_icon_btn svg,
button.wsh_icon_btn svg {
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

/* Cart Button & Dynamic Badge */
.wsh_cart_btn {
  position: relative;
}

.wsh_cart_badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #62b414;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(98, 180, 20, 0.4);
  line-height: 1;
}

/* Quiz CTA Button */
.wsh_quiz_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #62b414 0%, #4ea30f 100%);
  color: #ffffff !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(98, 180, 20, 0.35);
  transition: all 0.2s ease !important;
  white-space: nowrap;
}

.wsh_quiz_btn:hover {
  background: linear-gradient(135deg, #529810 0%, #428b0c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(98, 180, 20, 0.45);
}

/* Mobile Controls — strictly hidden on desktop */
.wsh_mobile_trigger,
button.wsh_mobile_trigger,
.wsh_icon_btn.wsh_mobile_trigger,
button.wsh_icon_btn.wsh_mobile_trigger {
  display: none !important;
}

.wsh_desktop_only,
a.wsh_desktop_only,
button.wsh_desktop_only,
.wsh_icon_btn.wsh_desktop_only,
a.wsh_icon_btn.wsh_desktop_only {
  display: inline-flex !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .wsh_desktop_only,
  a.wsh_desktop_only,
  button.wsh_desktop_only,
  .wsh_icon_btn.wsh_desktop_only,
  a.wsh_icon_btn.wsh_desktop_only {
    display: none !important;
  }
  .wsh_mobile_trigger,
  button.wsh_mobile_trigger,
  .wsh_icon_btn.wsh_mobile_trigger,
  button.wsh_icon_btn.wsh_mobile_trigger {
    display: inline-flex !important;
  }
  .wsh_quiz_btn {
    display: none !important;
  }
  .wsh_header_inner {
    padding: 0 16px;
    min-height: 66px;
  }
  .wsh_logo_img {
    height: 38px;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .wsh_header_inner {
    padding: 0 10px;
    min-height: 58px;
  }
  .wsh_logo_img {
    height: 32px;
    max-width: 135px;
  }
  .wsh_actions_wrap {
    gap: 6px;
  }
  .wsh_icon_btn {
    width: 35px !important;
    height: 35px !important;
  }
  .wsh_icon_btn svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* ==========================================================================
   Search Modal & SearchIQ Instant Visual Autocomplete
   ========================================================================== */
#search-modal {
  --panel-backdrop: rgba(16, 28, 24, 0.78) !important;
  background-color: rgba(16, 28, 24, 0.78) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: none !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

#search-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#search-modal .ct-panel-actions {
  position: fixed !important;
  top: 22px !important;
  right: 24px !important;
  z-index: 1000005 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

#search-modal .ct-panel-content {
  flex: 0 0 auto !important;
  height: auto !important;
  max-width: 580px !important;
  width: 90% !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
  padding: 16px 18px !important;
  margin: 68px auto auto !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

#search-modal .wsc_header_search_box {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

#search-modal .wsc_header_search_box .siq-expandwdgt-cont,
#search-modal .wsc_header_search_box .siq-searchwidget,
#search-modal .wsc_header_search_box form {
  width: 100% !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

#search-modal .wsc_header_search_box input.siq-search-input,
#search-modal .wsc_header_search_box input[type="text"],
#search-modal .wsc_header_search_box input[type="search"] {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  line-height: 52px !important;
  border-radius: 12px !important;
  border: 2px solid #e2ebe5 !important;
  padding: 0 18px 0 46px !important;
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: #192c27 !important;
  background-color: #f7faf8 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  display: block !important;
}

#search-modal .wsc_header_search_box input:focus {
  border-color: #62b414 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(98, 180, 20, 0.15) !important;
}

#search-modal .wsc_header_search_box span.siq-expandwdgt-icon,
#search-modal .wsc_header_search_box .siq-expandwdgt-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

#search-modal .ct-toggle-close {
  color: #ffffff !important;
  background: #192c27 !important;
  background-color: #192c27 !important;
  border: 1.5px solid #192c27 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#search-modal .ct-toggle-close:hover {
  background: #62b414 !important;
  background-color: #62b414 !important;
  border-color: #62b414 !important;
  transform: rotate(90deg) scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(98, 180, 20, 0.4) !important;
}

#search-modal .ct-toggle-close svg,
#search-modal .ct-toggle-close svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: none !important;
}

/* ==========================================================================
   Site-Wide Federal Hemp Ban Top Announcement Bar
   ========================================================================== */
@property --wsh-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.wsh_ban_topbar {
  /* Rotating Red-Dominant border (iter 14) - 2026-10-09 (glai). Face stays the live red gradient (padding-box); ring is the conic drawn only in the 4px transparent border strip (border-box). */
  color: #ffffff !important;
  position: relative !important;
  z-index: 991 !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 7px 12px 6px !important;
  border: 4px solid transparent !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, #b5322a 0%, #9e2820 100%) padding-box,
    conic-gradient(from var(--wsh-angle), #7f1d1d 0deg, #7f1d1d 240deg, #a11a14 262deg, #2f8f4e 300deg, #14532d 330deg, #7f1d1d 360deg) border-box !important;
  animation: wsh-spin 6s linear infinite;
  box-shadow: 0 12px 28px -14px rgba(181, 50, 42, 0.5);
}

@keyframes wsh-spin {
  to { --wsh-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .wsh_ban_topbar {
    animation: none;
  }
}

.wsh_ban_topbar_link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px 12px !important;
  padding: 8px 16px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Segoe UI', Arial, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  transition: background-color 0.16s ease !important;
  margin: 0 auto !important;
  max-width: 1240px !important;
}

.wsh_ban_topbar_link:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #ffffff !important;
}

.wsh_ban_topbar_icon {
  font-size: 13px !important;
  line-height: 1 !important;
}

.wsh_ban_topbar_head {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #ffffff !important;
}

.wsh_ban_topbar_text {
  color: #ffe8e5 !important;
  font-weight: 500 !important;
}

.wsh_ban_topbar_cta {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  color: #b5322a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
  margin-left: 4px !important;
}

.wsh_ban_topbar_link:hover .wsh_ban_topbar_cta {
  transform: translateY(-1px) !important;
  background-color: #fdf5f4 !important;
}

@media (max-width: 768px) {
  .wsh_ban_topbar_link {
    font-size: 11.5px !important;
    padding: 7px 12px !important;
    gap: 4px 8px !important;
  }
  .wsh_ban_topbar_text {
    font-size: 11px !important;
  }
  .wsh_ban_topbar_cta {
    font-size: 10px !important;
    padding: 2.5px 8px !important;
    margin-left: 0 !important;
  }
}
