/* ==========================================================================
   GNC MODA - HEADER 3: ULTRA-PREMIUM PRO E-COMMERCE DESIGN
   Harmonized to GNC Moda Brand Palette: Iconic Coral Orange (#ff5e00) & Charcoal (#111827)
   ========================================================================== */

#header.typeheader-3,
.typeheader-3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background: #ffffff !important;
  border-bottom: none !important;
  position: relative !important;
  z-index: 100 !important;
}

/* ================= 1. CALM & COMFORTABLE TOP BAR ================= */
.typeheader-3 .h3-cobalt-topbar {
  background: #f8fafc !important;
  border-bottom: 1px solid #eef2f6 !important;
  color: #475569 !important;
  font-size: 12px !important;
  padding: 8px 0 !important;
  line-height: 1.2 !important;
}

.typeheader-3 .h3-top-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.typeheader-3 .h3-top-left-msg {
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  max-width: 620px !important;
  flex: 1 1 auto !important;
}

.typeheader-3 .h3-ticker-container {
  overflow: hidden !important;
  white-space: nowrap !important;
  position: relative !important;
  width: 100% !important;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%) !important;
}

.typeheader-3 .h3-ticker-track {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  animation: h3SmoothMarquee 26s linear infinite !important;
  gap: 16px !important;
}

.typeheader-3 .h3-ticker-track:hover {
  animation-play-state: paused !important;
}

@keyframes h3SmoothMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.typeheader-3 .h3-ticker-text {
  color: #475569 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

.typeheader-3 .h3-ticker-bullet {
  color: #cbd5e1 !important;
  font-size: 14px !important;
}

.typeheader-3 .h3-ticker-promo {
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.typeheader-3 .h3-ticker-promo strong {
  color: #ea580c !important;
  font-weight: 700 !important;
}

/* User Custom Topbar Gradient Text Support */
.typeheader-3 .h3-ticker-track .promo-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.typeheader-3 .h3-ticker-track .wrapper1 {
  display: inline-block !important;
  margin: 0 !important;
}
.typeheader-3 .h3-ticker-track .wrapper1 h12,
.typeheader-3 .h3-ticker-track .wrapper1 H12 {
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  background: linear-gradient(to right, #095fab 15%, #ff6c11 50%, #bd4e0d 60%) !important;
  background-size: 200% auto !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textclip 1.5s linear infinite !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}
.typeheader-3 .h3-ticker-track .wrapper1 strong {
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  background: linear-gradient(to right, #095fab 15%, #d1777c 50%, #a1344c 60%) !important;
  background-size: 200% auto !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textclip 1.5s linear infinite !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}
.typeheader-3 .h3-ticker-track .promo-text-mid {
  font-size: 12px !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
@keyframes textclip {
  to { background-position: 200% center; }
}

.typeheader-3 .h3-top-right-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.typeheader-3 .h3-top-right-links li {
  display: inline-flex !important;
  align-items: center !important;
}

.typeheader-3 .h3-top-right-links a {
  color: #475569 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.typeheader-3 .h3-top-right-links a svg {
  stroke: #ff5e00 !important;
}

.typeheader-3 .h3-top-right-links a:hover {
  color: #ff5e00 !important;
}

.typeheader-3 .h3-whatsapp-link {
  color: #475569 !important;
}

.typeheader-3 .h3-whatsapp-link:hover {
  color: #25D366 !important;
}

.typeheader-3 .h3-whatsapp-link svg {
  stroke: #25D366 !important;
}

/* ================= 2. MAIN HEADER CENTER DECK ================= */
.typeheader-3 .h3-center-deck {
  background: #ffffff !important;
  padding: 14px 0 !important;
}

.typeheader-3 .h3-center-deck-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

/* Logo */
.typeheader-3 .h3-logo-box {
  flex-shrink: 0 !important;
}

.typeheader-3 .h3-logo-box a {
  display: inline-block !important;
  text-decoration: none !important;
}

.typeheader-3 .h3-logo-box img {
  max-height: 48px !important;
  width: auto !important;
  aspect-ratio: 200 / 48 !important;
  display: block !important;
}

/* Capsule Search Bar */
.typeheader-3 .h3-search-capsule-col {
  flex: 1 !important;
  max-width: 620px !important;
  margin: 0 10px !important;
}

.typeheader-3 .h3-capsule-form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 46px !important;
  background: #ffffff !important;
  border: 1.5px solid #111827 !important;
  border-radius: 9999px !important;
  padding: 3px 4px 3px 18px !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.typeheader-3 .h3-capsule-form:focus-within {
  border-color: #ff5e00 !important;
  box-shadow: 0 0 0 3.5px rgba(255, 94, 0, 0.16) !important;
}

.typeheader-3 .h3-capsule-cat {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.typeheader-3 .h3-capsule-select {
  border: none !important;
  background: transparent !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  padding-right: 18px !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.typeheader-3 .h3-cat-chevron {
  position: absolute !important;
  right: 2px !important;
  pointer-events: none !important;
  font-size: 11px !important;
  color: #64748b !important;
}

.typeheader-3 .h3-capsule-divider {
  width: 1px !important;
  height: 22px !important;
  background: #e2e8f0 !important;
  margin: 0 12px !important;
  flex-shrink: 0 !important;
}

.typeheader-3 .h3-capsule-input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 100% !important;
}

.typeheader-3 .h3-capsule-input::placeholder {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.typeheader-3 .h3-capsule-submit {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #111827 !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  margin-left: 6px !important;
}

.typeheader-3 .h3-capsule-submit:hover {
  background: #ff5e00 !important;
  transform: scale(1.05) !important;
}

.typeheader-3 .h3-capsule-submit svg {
  stroke: #ffffff !important;
}

/* Actions Cluster */
.typeheader-3 .h3-actions-cluster-col {
  flex-shrink: 0 !important;
}

.typeheader-3 .h3-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

/* Duo Account */
.typeheader-3 .h3-account-duo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  transition: background 0.15s ease !important;
}

.typeheader-3 .h3-account-duo:hover {
  background: #f8fafc !important;
}

.typeheader-3 .h3-account-duo:hover .h3-duo-main {
  color: #ff5e00 !important;
}

.typeheader-3 .h3-duo-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #111827 !important;
}

.typeheader-3 .h3-duo-texts {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

.typeheader-3 .h3-duo-sub {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.typeheader-3 .h3-duo-main {
  font-size: 13.5px !important;
  color: #111827 !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

.typeheader-3 .h3-account-dropdown {
  position: relative !important;
}

.typeheader-3 .h3-dropdown-pop {
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  margin-top: 10px !important;
  min-width: 285px !important;
  max-width: calc(100vw - 24px) !important;
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.16), 0 0 1px 1px rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  animation: h3DropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes h3DropdownFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.typeheader-3 .h3-pop-card-head {
  background: #f8fafc !important;
  padding: 16px 18px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: column !important;
}

.typeheader-3 .h3-pop-card-title {
  margin: 0 0 4px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.typeheader-3 .h3-pop-card-sub {
  margin: 0 0 12px !important;
  font-size: 11.5px !important;
  color: #64748b !important;
  line-height: 1.35 !important;
}

.typeheader-3 .h3-pop-btn-group {
  display: flex !important;
  gap: 8px !important;
}

.typeheader-3 .h3-pop-btn-login {
  flex: 1 1 50% !important;
  background: #ff5e00 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  box-shadow: 0 2px 8px rgba(255, 94, 0, 0.25) !important;
}

.typeheader-3 .h3-pop-btn-login:hover {
  background: #e05300 !important;
  color: #ffffff !important;
}

.typeheader-3 .h3-pop-btn-login svg,
.typeheader-3 .h3-pop-btn-register svg {
  flex-shrink: 0 !important;
}

.typeheader-3 .h3-pop-btn-register {
  flex: 1 1 50% !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.typeheader-3 .h3-pop-btn-register:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.typeheader-3 .h3-pop-avatar {
  font-size: 28px !important;
  color: #ff5e00 !important;
  margin-bottom: 4px !important;
}

.typeheader-3 .h3-pop-user-meta {
  display: flex !important;
  flex-direction: column !important;
}

.typeheader-3 .h3-pop-welcome-tag {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.typeheader-3 .h3-pop-user-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.typeheader-3 .h3-pop-menu-list {
  list-style: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}

.typeheader-3 .h3-pop-menu-list>li>a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.typeheader-3 .h3-pop-menu-list>li>a:hover {
  background: #fff7ed !important;
  color: #ff5e00 !important;
  padding-left: 21px !important;
}

.typeheader-3 .h3-pop-menu-list>li>a svg {
  flex-shrink: 0 !important;
  transition: transform 0.15s ease !important;
}

.typeheader-3 .h3-pop-menu-list>li>a:hover svg {
  transform: scale(1.1) !important;
}

.typeheader-3 .h3-pop-divider-li {
  height: 1px !important;
  background: #f1f5f9 !important;
  margin: 5px 0 !important;
}

.typeheader-3 .h3-pop-logout-link {
  color: #ef4444 !important;
}

.typeheader-3 .h3-pop-logout-link:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* Hero Cart Widget - GNC Orange Circle + Dark Badge */
.typeheader-3 .h3-hero-cart-wrapper {
  margin-left: 4px !important;
}

.typeheader-3 .h3-hero-cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.typeheader-3 .h3-hero-cart-circle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #ff5e00 !important;
  background: linear-gradient(135deg, #ea580c 0%, #ff5e00 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 94, 0, 0.32) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.typeheader-3 .h3-hero-cart-btn:hover .h3-hero-cart-circle {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(255, 94, 0, 0.48) !important;
}

.typeheader-3 .h3-hero-cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #111827 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 19px !important;
  height: 19px !important;
  line-height: 19px !important;
  padding: 0 4px !important;
  border-radius: 9999px !important;
  text-align: center !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.typeheader-3 .h3-hero-cart-info {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

.typeheader-3 .h3-cart-label {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.typeheader-3 .h3-cart-price {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  letter-spacing: 0.1px !important;
  transition: color 0.15s ease !important;
}

.typeheader-3 .h3-hero-cart-btn:hover .h3-cart-price {
  color: #ff5e00 !important;
}

/* ================= 3. NAVIGATION BAR (8COFFEEROASTERS / VOLTIX STYLE) ================= */
@media (min-width: 992px) {
#header.typeheader-3 {
  position: relative !important;
  z-index: 99999 !important;
}

#header.typeheader-3 .h3-dark-bottom-bar {
  background: #141B2D !important;
  width: 100% !important;
  min-height: 52px !important;
  position: relative !important;
  padding: 0 !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(20, 27, 45, 0.12) !important;
  z-index: 99999 !important;
}

#header.typeheader-3 .h3-bar-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  position: relative !important;
  width: 100% !important;
  max-width: 1200px !important;
  min-height: 52px !important;
  margin: 0 auto !important;
}

#header.typeheader-3 .h3-bottom-menu-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
}

/* Base resets */
#header.typeheader-3 .megamenu-style-dev,
#header.typeheader-3 .megamenu-style-dev .navbar-default,
#header.typeheader-3 .megamenu-style-dev .container-megamenu,
#header.typeheader-3 .megamenu-style-dev .megamenu-wrapper,
#header.typeheader-3 .megamenu-style-dev .megamenu-pattern,
#header.typeheader-3 .megamenu-style-dev .megamenu-pattern > .container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 52px !important;
  height: 52px !important;
  width: 100% !important;
  position: static !important;
}

/* Nav Menu List */
#header.typeheader-3 ul.megamenu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  min-height: 52px !important;
  height: 52px !important;
  background: transparent !important;
  position: static !important;
}

/* Menu Items (> li) */
#header.typeheader-3 ul.megamenu > li {
  float: none !important;
  display: inline-flex !important;
  align-items: stretch !important;
  min-height: 52px !important;
  height: 52px !important;
  background: transparent !important;
  position: relative !important;
}

#header.typeheader-3 ul.megamenu > li:not(.full-width) {
  position: relative !important;
}

#header.typeheader-3 ul.megamenu > li.full-width {
  position: static !important;
}

/* Top-level Menu Links (Voltix Typography & Spacing) */
#header.typeheader-3 ul.megamenu > li > a,
#header.typeheader-3 ul.megamenu > li > a *,
#header.typeheader-3 ul.megamenu > li > a strong,
#header.typeheader-3 ul.megamenu > li > a span {
  color: #ffffff !important;
  font-family: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

/* Reset any theme :first-letter pseudo styling */
#header.typeheader-3 ul.megamenu > li > a strong:first-letter,
#header.typeheader-3 ul.megamenu > li > a span:first-letter,
#header.typeheader-3 ul.megamenu > li > a:first-letter {
  color: inherit !important;
  font-size: inherit !important;
}

/* Neutralize the custom .wrapper1 textclip gradient */
#header.typeheader-3 ul.megamenu > li.wrapper1,
#header.typeheader-3 ul.megamenu > li.wrapper1 h12,
#header.typeheader-3 ul.megamenu > li.wrapper1 H12,
#header.typeheader-3 ul.megamenu > li.wrapper1 strong,
#header.typeheader-3 ul.megamenu > li.wrapper1 a,
#header.typeheader-3 ul.megamenu > li.wrapper1 a * {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  animation: none !important;
}

#header.typeheader-3 ul.megamenu > li.wrapper1:hover strong,
#header.typeheader-3 ul.megamenu > li.wrapper1:hover h12,
#header.typeheader-3 ul.megamenu > li.wrapper1:hover a,
#header.typeheader-3 ul.megamenu > li.wrapper1 a:hover,
#header.typeheader-3 ul.megamenu > li.wrapper1 a:hover * {
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

#header.typeheader-3 ul.megamenu > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 15px !important;
  height: 52px !important;
  line-height: 52px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-bottom: 2px solid transparent !important;
  position: relative !important;
}

#header.typeheader-3 ul.megamenu > li > a * {
  border: none !important;
  border-bottom: none !important;
}

/* Voltix Top-Level Links Hover: Text stays pure WHITE (#ffffff) with ONE crisp thin 2px orange (#FF5A1F) bottom border */
#header.typeheader-3 ul.megamenu > li:hover > a,
#header.typeheader-3 ul.megamenu > li.is-active > a,
#header.typeheader-3 ul.megamenu > li:focus-within > a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-bottom: 2px solid #FF5A1F !important;
  background: transparent !important;
}

#header.typeheader-3 ul.megamenu > li:hover > a *,
#header.typeheader-3 ul.megamenu > li.is-active > a *,
#header.typeheader-3 ul.megamenu > li:focus-within > a * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
}

/* Caret Arrow: Sleek chevron staying white on default and hover */
#header.typeheader-3 ul.megamenu > li b.caret {
  display: inline-block !important;
  margin-left: 6px !important;
  border-top: 4px solid #ffffff !important;
  border-right: 4px solid transparent !important;
  border-left: 4px solid transparent !important;
  border-bottom: 0 !important;
  width: 0 !important;
  height: 0 !important;
  vertical-align: middle !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#header.typeheader-3 ul.megamenu > li:hover b.caret,
#header.typeheader-3 ul.megamenu > li.is-active b.caret,
#header.typeheader-3 ul.megamenu > li:focus-within b.caret {
  border-top-color: #ffffff !important;
  transform: rotate(180deg) !important;
}

/* ================= 2. MEGAMENU DROPDOWN (PREMIUM MINIMALIST LUXURY) ================= */
/* Overflow safety on all desktop menu parent wrappers */
#header.typeheader-3,
#header.typeheader-3 .h3-dark-bottom-bar,
#header.typeheader-3 .h3-bar-container,
#header.typeheader-3 .h3-bottom-menu-wrapper,
#header.typeheader-3 .megamenu-style-dev,
#header.typeheader-3 .megamenu-style-dev .navbar-default,
#header.typeheader-3 .megamenu-style-dev .container-megamenu,
#header.typeheader-3 .megamenu-style-dev .megamenu-wrapper,
#header.typeheader-3 .megamenu-style-dev .megamenu-pattern {
  overflow: visible !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu {
  display: none;
  position: absolute !important;
  top: 52px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  z-index: 999999 !important;
}

/* Seamless hover bridge between top bar and dropdown to prevent any cursor gap */
#header.typeheader-3 ul.megamenu > li > .sub-menu:before {
  content: "" !important;
  position: absolute !important;
  top: -16px !important;
  left: 0 !important;
  right: 0 !important;
  height: 20px !important;
  display: block !important;
  background: transparent !important;
  z-index: 1000000 !important;
}

/* Open Submenu on hover or is-active */
#header.typeheader-3 ul.megamenu > li.with-sub-menu:hover > .sub-menu,
#header.typeheader-3 ul.megamenu > li.with-sub-menu.is-active > .sub-menu,
#header.typeheader-3 ul.megamenu > li:hover > .sub-menu {
  display: block !important;
}

/* Clean Dropdown Card: Luxury Rounded Card with Smooth Shadow */
#header.typeheader-3 ul.megamenu > li > .sub-menu .content,
#header.typeheader-3 ul.megamenu > li:hover > .sub-menu .content,
#header.typeheader-3 ul.megamenu > li.is-active > .sub-menu .content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: #ffffff !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  border-radius: 0 0 12px 12px !important;
  border: 1px solid #E2E8F0 !important;
  border-top: 2px solid #FF5A1F !important;
  padding: 22px 26px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .content * {
  box-sizing: border-box !important;
}

/* Submenu Grid Layout */
#header.typeheader-3 ul.megamenu > li > .sub-menu .row {
  margin-left: -10px !important;
  margin-right: -10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu [class*="col-sm-"] {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .col-sm-8 {
  width: 62% !important;
  flex: 0 0 62% !important;
  max-width: 62% !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .col-sm-4 {
  width: 38% !important;
  flex: 0 0 38% !important;
  max-width: 38% !important;
}

/* Submenu Category Header */
#header.typeheader-3 ul.megamenu > li > .sub-menu .categories:before {
  content: "KATEGORİLER";
  display: block;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .categories .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .categories .col-sm-6 {
  width: 50% !important;
  flex: 0 0 50% !important;
  max-width: 50% !important;
  padding: 0 6px !important;
}

/* Category Item Lists */
#header.typeheader-3 ul.megamenu > li > .sub-menu .categories,
#header.typeheader-3 ul.megamenu > li > .sub-menu .hover-menu,
#header.typeheader-3 ul.megamenu > li > .sub-menu .static-menu {
  width: 100% !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu ul li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Elegant Boutique Category Links (Zara / 8coffeeroasters style) */
#header.typeheader-3 ul.megamenu > li > .sub-menu a.main-menu,
#header.typeheader-3 ul.megamenu > li > .sub-menu .hover-menu a,
#header.typeheader-3 ul.megamenu > li > .sub-menu .static-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

/* Hover: Elegant highlight with soft coral tint and smooth slide */
#header.typeheader-3 ul.megamenu > li > .sub-menu a.main-menu:hover,
#header.typeheader-3 ul.megamenu > li > .sub-menu a.main-menu:hover *,
#header.typeheader-3 ul.megamenu > li > .sub-menu .hover-menu a:hover,
#header.typeheader-3 ul.megamenu > li > .sub-menu .hover-menu a:hover *,
#header.typeheader-3 ul.megamenu > li > .sub-menu .static-menu a:hover,
#header.typeheader-3 ul.megamenu > li > .sub-menu .static-menu a:hover * {
  color: #FF5A1F !important;
  -webkit-text-fill-color: #FF5A1F !important;
  background: #FFF7ED !important;
  border: none !important;
  font-weight: 600 !important;
  padding-left: 16px !important;
  box-shadow: none !important;
}

/* Remove bullets */
#header.typeheader-3 ul.megamenu li .sub-menu .content .hover-menu a:before,
#header.typeheader-3 ul.megamenu li .sub-menu .content .static-menu a:before,
#header.typeheader-3 ul.megamenu li .sub-menu .content .static-menu .menu ul ul li:before,
#header.typeheader-3 ul.megamenu li .sub-menu .content .hover-menu .menu ul ul:before,
#header.typeheader-3 ul.megamenu li .sub-menu .content .hover-menu .menu ul ul:after {
  display: none !important;
  content: none !important;
}

/* Submenu Promotional Banner Card */
#header.typeheader-3 ul.megamenu > li > .sub-menu .img-banner {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .img-banner a {
  display: block !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  position: relative !important;
  box-shadow: 0 4px 16px rgba(20, 27, 45, 0.08) !important;
  border: 1px solid #f1f5f9 !important;
  width: 100% !important;
  max-height: 220px !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .img-banner img {
  width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
  box-shadow: none !important;
  transition: transform 0.4s ease !important;
}

#header.typeheader-3 ul.megamenu > li > .sub-menu .img-banner a:hover img {
  transform: scale(1.03) !important;
}
} /* Closing @media (min-width: 992px) */

/* Desktop Hidden Elements & Single Caret Normalization */
@media (min-width: 992px) {
  .typeheader-3 .h3-mobile-toggle-box,
  #h3-drawer-top,
  .h3-drawer-top-bar,
  .h3-drawer-auth,
  .h3-drawer-useful,
  #h3-menu-backdrop,
  .h3-menu-backdrop,
  .h3-sub-arrow,
  #header.typeheader-3 .h3-sub-arrow,
  #header.typeheader-3 ul.megamenu > li > a .h3-sub-arrow,
  .h3-all-sub-row,
  #header.typeheader-3 .h3-all-sub-row {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }

  /* Desktop single clean caret */
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.with-sub-menu > a b.caret {
    display: inline-block !important;
    margin-left: 6px !important;
    border-top: 4px solid currentColor !important;
    border-right: 4px solid transparent !important;
    border-left: 4px solid transparent !important;
    vertical-align: middle !important;
    background: transparent !important;
  }
}


/* ================= MOBILE & TABLET (<= 991px) ================= */
@media (max-width: 991px) {
  /* Prevent background scrolling when drawer is open */
  body.h3-drawer-open {
    overflow: hidden !important;
  }

  /* Backdrop Overlay */
  .h3-menu-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }
  .h3-menu-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 1. Header Center Deck - Flex Row Layout */
  .typeheader-3 .h3-center-deck {
    padding: 10px 0 12px 0 !important;
  }
  .typeheader-3 .h3-center-deck-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  /* 2. Left: Hamburger Toggle */
  .typeheader-3 .h3-mobile-toggle-box {
    order: 1 !important;
    flex: 0 0 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .typeheader-3 .h3-mobile-hamburger {
    background: transparent !important;
    border: none !important;
    padding: 6px 2px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4.5px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
  }
  .typeheader-3 .h3-mobile-hamburger .icon-bar {
    display: block !important;
    width: 22px !important;
    height: 2.2px !important;
    background-color: #111827 !important;
    border-radius: 2px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
  }
  .typeheader-3 .h3-mobile-hamburger:hover .icon-bar {
    background-color: #ff5e00 !important;
  }

  /* 3. Center: Brand Logo */
  .typeheader-3 .h3-logo-box {
    order: 2 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 8px !important;
  }
  .typeheader-3 .h3-logo-box a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .typeheader-3 .h3-logo-box img {
    max-height: 32px !important;
    max-width: 155px !important;
    width: auto !important;
    display: inline-block !important;
    object-fit: contain !important;
  }

  /* 4. Right: Actions Cluster (Account + Cart) */
  .typeheader-3 .h3-actions-cluster-col {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .typeheader-3 .h3-actions-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .typeheader-3 .h3-duo-texts,
  .typeheader-3 .h3-hero-cart-info {
    display: none !important;
  }
  .typeheader-3 .h3-account-duo {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111827 !important;
  }
  .typeheader-3 .h3-account-duo .h3-duo-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .typeheader-3 .h3-hero-cart-btn {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ff5e00 !important;
    box-shadow: 0 3px 10px rgba(255, 94, 0, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  .typeheader-3 .h3-hero-cart-circle {
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .typeheader-3 .h3-hero-cart-circle svg {
    stroke: #ffffff !important;
    width: 19px !important;
    height: 19px !important;
  }
  .typeheader-3 .h3-hero-cart-badge {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: #111827 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    line-height: 1 !important;
  }

  /* 5. Search Capsule Full Width Underneath */
  .typeheader-3 .h3-search-capsule-col {
    order: 4 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 10px !important;
    padding: 0 !important;
  }
  .typeheader-3 .h3-capsule-form {
    width: 100% !important;
    height: 42px !important;
    border-radius: 24px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 2px 3px 2px 14px !important;
  }
  .typeheader-3 .h3-capsule-form:focus-within {
    background: #ffffff !important;
    border-color: #ff5e00 !important;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.12) !important;
  }
  .typeheader-3 .h3-capsule-input {
    font-size: 13px !important;
    padding-left: 4px !important;
  }
  .typeheader-3 .h3-capsule-submit {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin-right: 2px !important;
    background: #111827 !important;
    color: #ffffff !important;
  }

  /* 6. Completely Remove Empty Dark Bottom Bar from page flow on mobile */
  #header.typeheader-3 .h3-dark-bottom-bar,
  .typeheader-3 .h3-dark-bottom-bar {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0 !important;
  }
  #header.typeheader-3 .h3-dark-bottom-bar .container,
  #header.typeheader-3 .h3-dark-bottom-bar .h3-bar-container,
  #header.typeheader-3 .h3-dark-bottom-bar .h3-bottom-menu-wrapper,
  #header.typeheader-3 .h3-dark-bottom-bar .megamenu-style-dev,
  #header.typeheader-3 .h3-dark-bottom-bar .navbar-default,
  #header.typeheader-3 .h3-dark-bottom-bar .container-megamenu {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0 !important;
  }
  #header.typeheader-3 .h3-dark-bottom-bar .navbar-header {
    display: none !important;
  }

  /* ================= 7. SIGNATURE MOBILE DRAWER ================= */
  #header.typeheader-3 .megamenu-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 310px !important;
    max-width: 85vw !important;
    height: 100% !important;
    max-height: 100% !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.28) !important;
    border: none !important;
    border-right: 1px solid #eef2f6 !important;
    visibility: hidden !important;
    -webkit-transform: translate3d(-100%, 0, 0) !important;
    transform: translate3d(-100%, 0, 0) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #header.typeheader-3 .megamenu-wrapper.so-megamenu-active {
    visibility: visible !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* Hide default old close button */
  #header.typeheader-3 .megamenu-wrapper > #remove-megamenu {
    display: none !important;
  }

  /* Drawer Top Bar: "Menu" on Left + Close X on Right */
  .h3-drawer-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
  }
  .h3-drawer-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
  }
  .h3-drawer-close {
    background: transparent !important;
    border: none !important;
    color: #0f172a !important;
    padding: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    outline: none !important;
  }
  .h3-drawer-close:hover {
    background: #f1f5f9 !important;
    color: #ff5e00 !important;
  }

  /* Drawer Auth Buttons: Giriş Yap + Kayıt Ol side-by-side */
  .h3-drawer-auth {
    display: flex !important;
    gap: 10px !important;
    padding: 14px 18px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
  }
  .h3-drawer-btn-login {
    flex: 1 1 50% !important;
    background: #ff5e00 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease !important;
  }
  .h3-drawer-btn-login:hover {
    background: #e05300 !important;
    color: #ffffff !important;
  }
  .h3-drawer-btn-register {
    flex: 1 1 50% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
  }
  .h3-drawer-btn-register:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }
  .h3-drawer-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    flex: 1 !important;
  }
  .h3-drawer-user i {
    font-size: 24px !important;
    color: #ff5e00 !important;
  }
  .h3-drawer-btn-secondary {
    padding: 8px 14px !important;
    border-radius: 6px !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  /* Megamenu Category List */
  #header.typeheader-3 .megamenu-wrapper .megamenu-pattern {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  #header.typeheader-3 .megamenu-wrapper .megamenu-pattern > .container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    float: none !important;
    background: #ffffff !important;
    text-align: left !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li p.close-menu {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li b.caret {
    display: none !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 18px !important;
    min-height: 40px !important;
    height: auto !important;
    background: #ffffff !important;
    border: none !important;
    text-align: left !important;
    transition: background 0.15s ease !important;
    cursor: pointer !important;
    margin: 0 !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a:before,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a:after {
    display: none !important;
    content: none !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.click::before,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.hover::before,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li::before,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li::after,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li .close-menu,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.active .close-menu {
    display: none !important;
    content: none !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a *,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a strong,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a span,
  #header.typeheader-3 .megamenu-wrapper .wrapper1,
  #header.typeheader-3 .megamenu-wrapper .wrapper1 * {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.35 !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > a strong {
    flex: 1 1 auto !important;
    display: block !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li:hover > a,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.h3-sub-opened > a {
    background: #f8fafc !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.h3-sub-opened > a *,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.h3-sub-opened > a strong {
    color: #ff5e00 !important;
    -webkit-text-fill-color: #ff5e00 !important;
  }

  /* Chevron Toggle Arrow on Right */
  .h3-sub-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease !important;
    pointer-events: none !important;
    margin-left: auto !important;
  }
  .h3-sub-arrow svg {
    stroke: currentColor !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.h3-sub-opened > a .h3-sub-arrow {
    transform: rotate(180deg) !important;
    color: #ff5e00 !important;
  }

  /* Submenus in Drawer */
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li.h3-sub-opened > .sub-menu {
    display: block !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .content {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .row,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .col-sm-8,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .col-sm-4,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .col-sm-6,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .categories {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu .img-banner {
    display: none !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu ul li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu a.main-menu {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 9px 18px 9px 28px !important;
    display: block !important;
    text-decoration: none !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.15s ease !important;
  }
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu a.main-menu:hover,
  #header.typeheader-3 .megamenu-wrapper ul.megamenu > li > .sub-menu a.main-menu:active {
    color: #ff5e00 !important;
    -webkit-text-fill-color: #ff5e00 !important;
    padding-left: 32px !important;
    background: #ffffff !important;
  }
  .h3-all-sub-row {
    background: rgba(255, 94, 0, 0.05) !important;
    border-bottom: 1px solid #fed7aa !important;
  }
  .h3-all-sub-link {
    display: block !important;
    padding: 8px 18px 8px 28px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #ff5e00 !important;
    -webkit-text-fill-color: #ff5e00 !important;
    text-decoration: none !important;
    text-align: left !important;
  }

  /* ================= 8. DRAWER FOOTER: USEFUL LINKS ================= */
  .h3-drawer-useful {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 20px 22px !important;
    flex-shrink: 0 !important;
  }
  .h3-drawer-useful-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #94a3b8 !important;
    margin-bottom: 10px !important;
  }
  .h3-drawer-useful-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .h3-drawer-useful-list > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    padding: 5px 0 !important;
    transition: color 0.15s ease !important;
  }
  .h3-drawer-useful-list > li > a:hover {
    color: #ff5e00 !important;
  }
  .h3-drawer-useful-list > li > a svg {
    flex-shrink: 0 !important;
  }
}

/* Extra Mobile Rules (<= 767px) */
@media (max-width: 767px) {
  /* Clean Top Bar: Full Width Smooth Marquee Only */
  #header.typeheader-3 .h3-top-right,
  .typeheader-3 .h3-top-right {
    display: none !important;
  }
  #header.typeheader-3 .h3-top-left-msg,
  .typeheader-3 .h3-top-left-msg {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
  #header.typeheader-3 .h3-ticker-container,
  .typeheader-3 .h3-ticker-container {
    width: 100% !important;
  }

  /* Search capsule: Full Width Input on Mobile */
  #header.typeheader-3 .h3-capsule-cat,
  .typeheader-3 .h3-capsule-cat,
  #header.typeheader-3 .h3-capsule-divider,
  .typeheader-3 .h3-capsule-divider {
    display: none !important;
  }
  #header.typeheader-3 .h3-capsule-input,
  .typeheader-3 .h3-capsule-input {
    padding-left: 14px !important;
  }

  /* Account Popover Alignment on small screens */
  #header.typeheader-3 .h3-dropdown-pop,
  .typeheader-3 .h3-dropdown-pop {
    right: -10px !important;
    min-width: 280px !important;
  }
}