/**
 * Jain Digital Hub — storefront header overrides (loads after color5.css + global.css).
 * Scoped to #stickyheader.jdh-site-header to avoid unintended theme bleed.
 */

#stickyheader.jdh-site-header {
  --jdh-header-icon: #111827;
  --jdh-header-icon-hover: #000000;
  --jdh-header-nav: #111827;
  --jdh-nav-link-hover: #ea580c;
  --jdh-nav-active: #c2410c;
  /* Mega panel top rule + column titles — match Categories CTA orange (was theme blue #1e40af) */
  --jdh-mega-accent: #ea580c;
  --jdh-mega-border: #e2e8f0;
  --jdh-category-bar: #333745;
  --jdh-accent: #ea580c;
  overflow: visible;
  transition:
    box-shadow 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.top-header {
  background-color: var(--jdh-category-bar);
}

/* Reserves the header’s former in-flow height when #stickyheader is position:fixed (set via JS) */
.jdh-header-sticky-spacer {
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
  transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

#stickyheader.jdh-site-header .layout-header1,
#stickyheader.jdh-site-header .brand-logo img {
  transition: padding 0.25s ease, box-shadow 0.25s ease, max-height 0.25s ease, height 0.25s ease;
}

/* ——— Top bar (keeps theme #252525 from color5; tightens spacing) ——— */
.jdh-site-header .top-header {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jdh-site-header .top-header-right {
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* ——— Main row (logo / nav / icons) ——— */
.jdh-site-header .jdh-primary-nav-wrap {
  position: relative;
  z-index: 105;
  background: #ffffff;
  border-bottom: 1px solid var(--jdh-mega-border);
}

.jdh-site-header .layout-header1 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  background: #ffffff;
}

.jdh-site-header .jdh-main-menu-row {
  min-height: 72px;
  height: auto !important;
  align-items: center;
}

/* Flex children align to one vertical center line */
.jdh-site-header .layout-header1 .main-menu-block .menu-left,
.jdh-site-header .layout-header1 .main-menu-block .menu-block,
.jdh-site-header .layout-header1 .main-menu-block .menu-right {
  display: flex;
  align-items: center;
}

.jdh-site-header .layout-header1 .main-menu-block .menu-left {
  flex-shrink: 0;
}

.jdh-site-header .layout-header1 .main-menu-block .menu-block {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.jdh-site-header .layout-header1 .main-menu-block .menu-right {
  flex-shrink: 0;
}

/*
 * layout-header1 — single flex row: logo | centered nav | icons (beats color5 floats + hidden .mobile-*)
 */
#stickyheader.jdh-site-header .layout-header1 .main-menu-block.jdh-main-menu-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  width: 100%;
  float: none !important;
  clear: none !important;
}

#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-left,
#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-block,
#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right {
  float: none !important;
}

#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-block {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto;
  min-width: 0;
}

#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-block #main-nav {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  justify-content: center;
}

#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  gap: 0;
}

#stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right .icon-nav {
  display: flex !important;
  align-items: center !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  height: auto !important;
}

/* Mobile hamburger after <ul> — hide on tablet+ so it cannot read as an empty “icon” */
@media (min-width: 768px) {
  #stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right .icon-nav > .toggle-nav {
    display: none !important;
  }
}

/* Theme hides these on large screens; we show them in the main row */
@media (min-width: 1200px) {
  #stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right .icon-nav ul li.mobile-search,
  #stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right .icon-nav ul li.mobile-setting {
    display: flex !important;
  }
}

/* Categories = orange CTA, aligned to same bar height as icon chips (desktop) */
@media (min-width: 1200px) {
  #stickyheader.jdh-site-header .layout-header1 .jdh-mega-nav-item > a.jdh-mega-trigger.dark-menu-item {
    min-height: 44px;
    padding: 0 18px !important;
    padding-right: 22px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #f97316 0%, var(--jdh-accent) 45%, #c2410c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 1px 2px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.06em;
  }

  #stickyheader.jdh-site-header .layout-header1 .jdh-mega-nav-item > a.jdh-mega-trigger.dark-menu-item:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 40%, #9a3412 100%) !important;
  }

  #stickyheader.jdh-site-header .layout-header1 .jdh-mega-nav-item > a.jdh-mega-trigger.dark-menu-item:focus-visible {
    outline: 2px solid #c2410c;
    outline-offset: 2px;
  }

  #stickyheader.jdh-site-header .layout-header1 .jdh-mega-trigger.is-open {
    color: #ffffff !important;
    background: linear-gradient(180deg, #ea580c 0%, #9a3412 100%) !important;
  }

  #stickyheader.jdh-site-header .layout-header1 .jdh-mega-trigger__caret {
    border-top-color: #ffffff !important;
    opacity: 0.95;
  }
}

.jdh-site-header .brand-logo {
  display: flex;
  align-items: center;
  margin: 0;
}

.jdh-site-header .brand-logo > a {
  display: flex;
  align-items: center;
  line-height: 0;
}

.jdh-site-header .brand-logo img.jdh-brand-logo-img {
  max-height: 72px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.sticky .layout-header1 .main-menu-block .brand-logo img {
  max-height: 72px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Main nav links — flat color + orange hover (no theme gray drift) */
.jdh-site-header #main-menu.sm-horizontal > li > a.dark-menu-item {
  color: var(--jdh-header-nav);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 8px;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.jdh-site-header #main-menu.sm-horizontal > li > a.dark-menu-item:hover {
  color: var(--jdh-nav-link-hover);
  background-color: rgba(234, 88, 12, 0.08);
}

.jdh-site-header #main-menu.sm-horizontal > li > a.dark-menu-item:focus-visible {
  outline: 2px solid var(--jdh-accent);
  outline-offset: 2px;
}

/* Categories trigger — no Pixelstrap mega submenu; custom caret */
.jdh-site-header .jdh-mega-nav-item {
  position: relative;
}

.jdh-site-header .jdh-mega-nav-item > a .sub-arrow {
  display: none !important;
}

.jdh-site-header .jdh-mega-trigger {
  gap: 6px;
}

.jdh-site-header .jdh-mega-trigger__caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.jdh-site-header .jdh-mega-trigger.is-open {
  color: var(--jdh-nav-active) !important;
  background-color: rgba(234, 88, 12, 0.12);
}

.jdh-site-header .jdh-mega-trigger.is-open .jdh-mega-trigger__caret {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  /* Desktop horizontal nav: undo tall Pixelstrap padding; keep chevron clear of label text */
  .jdh-site-header #main-menu.sm-horizontal {
    position: static !important;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    max-height: none;
    margin: 0 auto;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible;
  }

  .jdh-site-header #main-menu.sm-horizontal > li {
    float: none !important;
    display: flex;
    align-items: center;
  }

  .jdh-site-header #main-menu.sm-horizontal > li > a.dark-menu-item {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px !important;
    padding-right: 22px !important;
  }

  .jdh-site-header #main-menu.sm-horizontal > li.jdh-mega-nav-item > a.dark-menu-item {
    padding-right: 28px !important;
  }

  .jdh-site-header .pixelstrap.sm-horizontal > li > a .sub-arrow {
    position: absolute;
    top: 50% !important;
    right: 6px !important;
    left: auto !important;
    width: 22px;
    height: 22px;
    margin-top: 0 !important;
    transform: translateY(-50%);
    font: normal 14px/22px "FontAwesome", sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .jdh-site-header .pixelstrap.sm-horizontal > li > a .sub-arrow::before {
    position: static !important;
  }

  /* Sticky bar: same alignment, tighter vertical rhythm */
  #stickyheader.jdh-site-header.sticky #main-menu.sm-horizontal > li > a.dark-menu-item {
    min-height: 34px;
    padding: 0 12px !important;
    padding-right: 26px !important;
    font-size: 12px;
  }

  #stickyheader.jdh-site-header.sticky #main-menu.sm-horizontal > li.jdh-mega-nav-item > a.dark-menu-item {
    padding-right: 28px !important;
  }

  /* Sticky: Categories CTA stays orange; overrides generic sticky link shrink above */
  #stickyheader.jdh-site-header.sticky .layout-header1 .jdh-mega-nav-item > a.jdh-mega-trigger.dark-menu-item {
    min-height: 34px !important;
    padding: 0 14px !important;
    padding-right: 20px !important;
    font-size: 12px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #f97316 0%, var(--jdh-accent) 45%, #c2410c 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 1px 2px rgba(0, 0, 0, 0.1);
  }

  #stickyheader.jdh-site-header.sticky .layout-header1 .jdh-mega-nav-item > a.jdh-mega-trigger.dark-menu-item:hover {
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 40%, #9a3412 100%) !important;
    color: #ffffff !important;
  }

  #stickyheader.jdh-site-header.sticky .layout-header1 .jdh-mega-trigger__caret {
    border-top-color: #ffffff !important;
  }
}

/* ——— Icon toolbar (search, account, wishlist, cart — shared “black default” + chip UI) ——— */
.jdh-site-header .icon-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jdh-site-header .icon-nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jdh-site-header .icon-nav ul li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  color: var(--jdh-header-icon);
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.jdh-site-header .layout-header1 .icon-nav ul li svg {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

/* Default: cart matches other icons (theme used a heavy dark block) */
.jdh-site-header .layout-header1 .icon-nav ul li.cart-block {
  background: transparent !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

.jdh-site-header .layout-header1 .icon-nav ul li.cart-block .cart-product {
  display: none !important;
}

/* One consistent badge position for wishlist + cart (overrides theme + sticky) */
.jdh-site-header .icon-nav ul li .item-count-contain {
  top: 2px;
  right: 2px;
  left: auto !important;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 999px;
  background: #333745;
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transform: none;
}
.testimonial.testimonial-inverse,.rounded-category.rounded-category-inverse {
  background-color: #333745;
}

.subscribe1.newsletter-inverse {
  text-align: center;
  color: #fff;
}

#stickyheader.jdh-site-header.sticky .layout-header1 .main-menu-block .menu-right .icon-nav ul li .item-count-contain,
#stickyheader.jdh-site-header.sticky .layout-header1 .main-menu-block .menu-right .icon-nav ul li.cart-block.item-count .item-count-contain {
  top: 2px !important;
  right: 2px !important;
  left: auto !important;
  width: auto;
  min-width: 18px;
  height: 18px;
}

.jdh-site-header .mobile-setting {
  right: auto !important;
}

.jdh-site-header .mobile-setting a {
  color: var(--jdh-header-icon);
}

.jdh-site-header .mobile-setting svg.jdh-logout-icon {
  width: 22px;
  height: 22px;
}

.jdh-site-header .mobile-setting svg.jdh-logout-icon path[stroke] {
  stroke: currentColor;
}

.jdh-site-header .mobile-setting svg.jdh-logout-icon path:not([stroke]) {
  fill: none;
}

.jdh-site-header .icon-nav ul li > a:hover {
  color: var(--jdh-header-icon-hover);
  background: rgba(17, 24, 39, 0.08);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(15, 23, 42, 0.06);
}

.jdh-site-header .icon-nav ul li > a:active {
  transform: scale(0.96);
  background: rgba(17, 24, 39, 0.12);
}

.jdh-site-header .icon-nav ul li > a:focus-visible {
  outline: 2px solid var(--jdh-header-icon);
  outline-offset: 2px;
}

/* Mobile / drawer: hamburger matches icon chip UI */
.jdh-site-header .layout-header1 .toggle-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  color: var(--jdh-header-icon);
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.jdh-site-header .layout-header1 .toggle-nav:hover {
  color: var(--jdh-header-icon-hover);
  background: rgba(17, 24, 39, 0.08);
  border-color: rgba(17, 24, 39, 0.14);
}

.jdh-site-header .layout-header1 .toggle-nav:active {
  transform: scale(0.96);
  background: rgba(17, 24, 39, 0.12);
}

.jdh-site-header .layout-header1 .toggle-nav .fa {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

/* ——— Categories mega popover (full-width panel; not in SmartMenus flow) ——— */
.jdh-site-header .jdh-mega-popover[hidden] {
  display: none !important;
}

.jdh-site-header .jdh-mega-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 200;
  display: block;
  pointer-events: none;
}

.jdh-site-header .jdh-mega-popover.is-open {
  pointer-events: auto;
}

.jdh-site-header .jdh-mega-popover__backdrop {
  display: none;
}

.jdh-site-header .jdh-mega-popover__panel {
  position: relative;
  background: #ffffff;
  border-top: 3px solid var(--jdh-mega-accent);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  animation: jdh-mega-in 0.22s ease;
}

@keyframes jdh-mega-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jdh-site-header .jdh-mega-popover__panel {
    animation: none;
  }
}

.jdh-site-header .jdh-mega-popover__toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--jdh-mega-border);
  flex-shrink: 0;
}

.jdh-site-header .jdh-mega-popover__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jdh-header-nav);
}

.jdh-site-header .jdh-mega-popover__close {
  appearance: none;
  color: var(--jdh-header-icon);
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid rgba(17, 24, 39, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.jdh-site-header .jdh-mega-popover__close:hover {
  background: rgba(17, 24, 39, 0.08);
  border-color: rgba(17, 24, 39, 0.16);
  color: var(--jdh-header-icon-hover);
}

.jdh-site-header .jdh-mega-popover__close:active {
  transform: scale(0.96);
}

.jdh-site-header .jdh-mega-popover__close:focus-visible {
  outline: 2px solid var(--jdh-header-icon);
  outline-offset: 2px;
}

.jdh-site-header .jdh-mega-popover__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.jdh-site-header .jdh-mega-popover__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px clamp(18px, 3.5vw, 40px) 36px;
}

/* Equal-width columns; borders instead of gap avoids uneven “gutter” between columns */
.jdh-site-header .jdh-mega-popover__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0;
  align-items: start;
}

.jdh-site-header .jdh-mega-col {
  border-right: 1px solid var(--jdh-mega-border);
  min-width: 0;
}

.jdh-site-header .jdh-mega-col:last-child {
  border-right: 0;
}

.jdh-site-header .jdh-mega-col__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 8px 20px 24px;
}

/* Reserve two lines so sub-lists start on one horizontal line (short titles don’t pull links up) */
.jdh-site-header .jdh-mega-heading {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 2.85rem;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jdh-mega-accent);
  text-decoration: none;
  line-height: 1.35;
  text-wrap: balance;
  transition: color 0.15s ease;
}

.jdh-site-header .jdh-mega-heading:hover {
  color: var(--jdh-nav-active);
}

.jdh-site-header .jdh-mega-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.jdh-site-header .jdh-mega-sub li {
  margin: 0 0 2px;
}

.jdh-site-header .jdh-mega-sub a {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #334155;
  text-decoration: none;
  line-height: 1.5;
  padding: 6px 8px 6px 10px;
  margin-left: -10px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.jdh-site-header .jdh-mega-sub a:hover {
  color: var(--jdh-nav-link-hover);
  background-color: rgba(234, 88, 12, 0.07);
  border-left-color: var(--jdh-accent);
}

@media (max-width: 1199px) {
  .jdh-site-header .jdh-mega-popover {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10050;
    max-height: none;
  }

  .jdh-site-header .jdh-mega-popover__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    pointer-events: auto;
  }

  .jdh-site-header .jdh-mega-popover__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border-top: none;
    border-top: 3px solid var(--jdh-mega-accent);
    z-index: 1;
  }

  .jdh-site-header .jdh-mega-popover__toolbar {
    display: flex;
  }

  .jdh-site-header .jdh-mega-popover__grid {
    grid-template-columns: 1fr;
  }

  .jdh-site-header .jdh-mega-col {
    border-right: 0;
    border-bottom: 1px solid var(--jdh-mega-border);
  }

  .jdh-site-header .jdh-mega-col:last-child {
    border-bottom: 0;
  }

  .jdh-site-header .jdh-mega-heading {
    min-height: 0;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .jdh-site-header .jdh-mega-popover__container {
    padding-top: 20px;
    padding-bottom: 28px;
  }
}

body.jdh-mega-nav-open {
  overflow: hidden;
}

@media (min-width: 1200px) {
  body.jdh-mega-nav-open {
    overflow: auto;
  }
}

/* ——— Sticky search panel (mobile overlay / desktop sticky bar) ——— */
.jdh-site-header .searchbar-input .input-group {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.jdh-site-header .searchbar-input .form-control {
  color: #374151 !important;
}

.jdh-site-header .searchbar-input .input-group-text.close-searchbar {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  color: var(--jdh-header-icon) !important;
  background: rgba(17, 24, 39, 0.04) !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-left: 1px solid rgba(17, 24, 39, 0.06) !important;
  border-radius: 0 10px 10px 0;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.jdh-site-header .searchbar-input .input-group-text.close-searchbar:hover {
  background: rgba(17, 24, 39, 0.08) !important;
  color: var(--jdh-header-icon-hover) !important;
  border-color: rgba(17, 24, 39, 0.14) !important;
}

.jdh-site-header .searchbar-input .input-group-text.close-searchbar svg path {
  fill: currentColor;
}

/* ——— Category bar (default view) ——— */
.jdh-site-header .category-header {
  background-color: var(--jdh-category-bar);
  overflow: visible;
  position: relative;
  z-index: 20;
}

.jdh-site-header .category-header .custom-container,
.jdh-site-header .category-header .row {
  overflow: visible;
}

/* Even left/right inset inside the bar (theme flex space-between made the gap beside “Call us” huge) */
.jdh-site-header .category-header > .custom-container {
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* Avoid Bootstrap .row negative margins shifting content off-center inside this bar */
.jdh-site-header .category-header .row {
  margin-left: 0;
  margin-right: 0;
}

.jdh-site-header .category-header .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.jdh-site-header .category-header .navbar-menu {
  align-items: center;
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow: visible;
}

@media (min-width: 1200px) {
  /*
   * Balanced bar: equal flexible side columns so the search sits visually centered; shop + phone hug the search.
   */
  .jdh-site-header .category-header .navbar-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, min(720px, 52vw)) minmax(0, 1fr);
    column-gap: clamp(14px, 2.2vw, 28px);
    row-gap: 12px;
    align-items: center;
    width: 100%;
  }

  .jdh-site-header .category-header .navbar-menu .category-left {
    display: contents;
  }

  .jdh-site-header .category-header .navbar-menu .category-left .nav-block {
    justify-self: end;
    margin-right: 0;
  }

  .jdh-site-header .category-header .navbar-menu .category-left .input-block {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
  }

  .jdh-site-header .category-header .navbar-menu .category-right {
    justify-self: start;
    margin-left: 0;
  }
}

/*
 * Shop-by-category: theme uses position:absolute + overflow:hidden on .nav-left.
 * Grid column 1 is wide (1fr) — if .nav-block stretches, the dropdown looks like a full-width “sidebar”.
 * Pin the whole stack to ~270px (same as the theme’s original .nav-left width) so the white list
 * cannot grow wider than the trigger row.
 */
.jdh-site-header .category-header .navbar-menu .category-left .nav-block {
  position: relative;
  min-height: 52px;
  width: 270px;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100%;
  max-width: 270px !important;
  min-width: 0;
  z-index: 50;
  overflow: visible !important;
  box-sizing: border-box;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .jdh-shop-cat-nav {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  min-height: 52px;
  height: 52px;
  padding: 0 14px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f97316 0%, var(--jdh-accent) 45%, #c2410c 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 51;
  width: 100%;
  max-width: 100%;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .navbar:hover {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 40%, #9a3412 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 8px rgba(234, 88, 12, 0.45);
}

/* White arrow chip (theme) — icon reads on orange */
.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .jdh-shop-cat-nav.navbar .navbar-toggler {
  color: #c2410c;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .navbar h5 {
  margin: 0;
  line-height: 1.25;
}

/*
 * Popover-style category list (out of document flow).
 *
 * IMPORTANT (Bootstrap Collapse): while the open/close animation runs, Bootstrap temporarily REMOVES
 * the `.collapse` class and only leaves `.collapsing` on the element (bootstrap.js ~1799–1817). A rule
 * written as `.collapse.jdh-shop-cat-panel` therefore does NOT match during that window — the panel
 * falls back to in-flow layout, the bar’s height jumps for a frame, then snaps back when `.collapse`
 * returns with `.show`. Always key off `.jdh-shop-cat-panel` alone so `position:absolute` applies in
 * every phase: closed (still has `.collapse`), `.collapsing` (no `.collapse`), and `.collapse.show`.
 */
.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .jdh-shop-cat-panel {
  position: absolute !important;
  left: 0;
  top: 100%;
  right: auto;
  z-index: 70;
  width: 100% !important;
  max-width: 270px !important;
  min-width: 0;
  box-sizing: border-box;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .nav-cat {
  margin-top: 10px !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 270px !important;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
  background-color: #ffffff !important;
  overflow-wrap: break-word;
}

.jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .nav-cat li a {
  display: block;
  max-width: 100%;
}

@media (max-width: 1199px) {
  .jdh-site-header .category-header .navbar-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .jdh-site-header .category-header .navbar-menu .category-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .jdh-site-header .category-header .navbar-menu .category-left .input-block {
    width: 100% !important;
    min-width: 0;
  }

  /* Stacked bar: let the shop-by-category block use the row width, not a fixed 270px strip. */
  .jdh-site-header .category-header .navbar-menu .category-left .nav-block {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left,
  .jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .jdh-shop-cat-panel,
  .jdh-site-header .category-header .navbar-menu .category-left .nav-block .nav-left .nav-cat {
    max-width: 100% !important;
  }

  .jdh-site-header .category-header .navbar-menu .category-right {
    width: 100%;
    justify-content: center;
  }
}

.jdh-site-header .category-header .navbar-menu .category-right {
  display: flex;
  align-items: center;
  align-self: center;
}

.jdh-site-header .category-header .navbar-menu .category-right .contact-block {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

/* Positioning context for the live-search panel (must be tighter than .navbar-menu or the panel aligns to the full bar). */
.jdh-site-header .jdh-search-shell {
  position: relative !important;
  z-index: 30;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
}

/* Clip only the input row — not the whole form — so the live-search dropdown can extend below */
.jdh-site-header .category-header .input-block .input-box .big-deal-form {
  border: none;
  box-shadow: none;
  background: transparent;
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group {
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group .form-control {
  color: #374151 !important;
  border-left: none !important;
  border-right: none !important;
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group .form-control::placeholder {
  color: #9ca3af;
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group span.search {
  padding-left: 16px;
  padding-right: 8px;
}

/* Search submit — right side of the field: clear hierarchy, focus ring, rounded end cap */
.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group .btn.jdh-category-search-btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0 clamp(20px, 2.5vw, 28px);
  margin: 0;
  background: linear-gradient(180deg, #f97316 0%, var(--jdh-accent) 45%, #c2410c 100%);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  border-radius: 0 10px 10px 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group .btn.jdh-category-search-btn:hover {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 40%, #9a3412 100%);
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 8px rgba(234, 88, 12, 0.45);
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group .btn.jdh-category-search-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.jdh-site-header .category-header .input-block .input-box .big-deal-form .input-group .btn.jdh-category-search-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  z-index: 2;
}

/* Far right: “Call us” as a tap-friendly pill (replaces loose text + icon) */
.jdh-site-header .category-header .navbar-menu .category-right .contact-block.jdh-category-call {
  padding: 0;
}

.jdh-site-header .jdh-category-call__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0 16px 0 10px;
  box-sizing: border-box;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.96) !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.jdh-site-header .jdh-category-call__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.jdh-site-header .jdh-category-call__btn:active {
  transform: scale(0.98);
}

.jdh-site-header .jdh-category-call__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.jdh-site-header .jdh-category-call__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
}

.jdh-site-header .jdh-category-call__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}

.jdh-site-header .jdh-category-call__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.jdh-site-header .jdh-category-call__num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .jdh-site-header .jdh-category-call__num {
    font-size: 13px;
    white-space: normal;
  }
}

/* ——— Sticky header: shorter bar, smooth entry, theme slideInDown replaced ——— */
#stickyheader.jdh-site-header.sticky {
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1) !important;
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  animation: jdh-sticky-header-enter 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes jdh-sticky-header-enter {
  from {
    opacity: 0.88;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #stickyheader.jdh-site-header {
    transition: none;
  }

  #stickyheader.jdh-site-header.sticky {
    animation: none;
  }

  .jdh-header-sticky-spacer {
    transition: none;
  }
}

#stickyheader.jdh-site-header.sticky .layout-header1 {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}



/* ——— Live product search dropdown (AJAX from product-search.php) ——— */
.jdh-site-header .searchbar-input {
  position: relative;
}

.jdh-site-header .jdh-live-search-panel {
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
  top: calc(100% + 6px);
  z-index: 1060;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 12px 32px -4px rgba(15, 23, 42, 0.12);
  max-height: min(360px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/*
 * Force a vertical stack. Theme rules (e.g. .pixelstrap li { float: left } at 1200px+)
 * can apply to stray list patterns — reset hard for this panel only.
 */
.jdh-site-header #search_result.jdh-live-search-panel .jdh-live-search-list,
.jdh-site-header #search_results.jdh-live-search-panel .jdh-live-search-list {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jdh-site-header #search_result .jdh-live-search-item,
.jdh-site-header #search_results .jdh-live-search-item {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  border-bottom: 1px solid #f3f4f6;
}

.jdh-site-header #search_result .jdh-live-search-item::before,
.jdh-site-header #search_results .jdh-live-search-item::before {
  content: none !important;
}

.jdh-site-header #search_result .jdh-live-search-item:last-child,
.jdh-site-header #search_results .jdh-live-search-item:last-child {
  border-bottom: none;
}

.jdh-site-header .jdh-live-search-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color 0.15s ease;
}

.jdh-site-header .jdh-live-search-link:hover,
.jdh-site-header .jdh-live-search-link:focus {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  outline: none;
}

.jdh-site-header .jdh-live-search-link:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(234, 88, 12, 0.35);
}

.jdh-site-header .jdh-live-search-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

.jdh-site-header .jdh-live-search-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.jdh-site-header .jdh-live-search-title {
  flex: 1 1 auto;
  min-width: 0;
  word-wrap: break-word;
}

.jdh-site-header .jdh-live-search-empty {
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.big-deal-form.d-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Mobile header: keep icon chips (account / wishlist / cart / logout) in the
   slide menu only — avoids crowding the top bar and overlapping the logo.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  #stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-right .icon-nav ul.jdh-header-toolbar-icons > li {
    display: none !important;
  }

  /* Centre logo when toolbar icons are hidden */
  #stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    justify-content: center;
  }

  #stickyheader.jdh-site-header .layout-header1 .main-menu-block .menu-left .brand-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop / tablet: hide duplicate text links (they live in the top icon row) */
@media (min-width: 768px) {
  #stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-divider,
  #stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-account,
  #stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-logout,
  #stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-wishlist,
  #stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-cart {
    display: none !important;
  }
}

#stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-divider {
  list-style: none;
  padding: 0.35rem 0 0.15rem;
  pointer-events: none;
}

.jdh-mobile-nav-divider__line {
  display: block;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  margin: 0.25rem 0;
}

#stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-wishlist .jdh-mobile-nav-badge,
#stickyheader.jdh-site-header #main-menu > li.jdh-mobile-nav-cart .jdh-mobile-nav-badge {
  font-size: 0.75rem;
  vertical-align: middle;
}