/* Server-rendered JOMIX navigation. All component rules stay under .jx2-nav. */
.jx2-nav {
  --jx2-ink: #303a24;
  --jx2-line: #e5e7e2;
  --jx2-hover: #f1f3ef;
  --jx2-gap: 20px;
  color: var(--jx2-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  min-width: 0;
  width: 100%;
}
.jx2-nav *, .jx2-nav *::before, .jx2-nav *::after { box-sizing: border-box; }
.jx2-nav ul { list-style: none; padding: 0; margin: 0; }
.jx2-nav li { padding: 0; margin: 0; min-width: 0; }
.jx2-nav a { color: inherit; text-decoration: none; }
.jx2-nav a:hover { text-decoration: underline; }
.jx2-nav a:focus-visible, .jx2-nav summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.jx2-nav summary { cursor: pointer; list-style: none; }
.jx2-nav summary::-webkit-details-marker { display: none; }
.jx2-nav .jx2-menu-toggle, .jx2-nav .jx2-trigger, .jx2-nav .jx2-home > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  font: inherit;
}
.jx2-nav .jx2-menu-toggle { justify-content: space-between; width: max-content; gap: 18px; }
.jx2-nav .jx2-menu-icon { display: none; }
.jx2-nav .jx2-arrow {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.jx2-nav .jx2-shell[open] > .jx2-menu-toggle .jx2-arrow,
.jx2-nav .jx2-dropdown[open] > .jx2-trigger .jx2-arrow {
  margin-top: 4px;
  transform: rotate(225deg);
}
.jx2-nav .jx2-shell:not([open]) > .jx2-nav-list,
.jx2-nav .jx2-dropdown:not([open]) > .jx2-panel { display: none; }
.jx2-nav .jx2-panel {
  color: var(--jx2-ink);
  background: #fff;
  border: 1px solid var(--jx2-line);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
  font-size: 15px;
  line-height: 1.4;
}
.jx2-nav .jx2-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  overflow-wrap: anywhere;
}
.jx2-nav .jx2-links a:hover { background: var(--jx2-hover); }
.jx2-nav .jx2-links a[aria-current="page"] { font-weight: 600; text-decoration: underline; }
.jomix-header-layout:has(.jx2-nav) .jx-header-nav,
.jomix-header-layout:has(.jx2-nav) .jx-header-drawer { display: none !important; }
.jomix-header-layout:has(.jx2-nav) .jx2-nav-widget,
.jomix-header-layout:has(.jx2-nav) .jx2-nav-widget > .elementor-widget-container { position: static; }

@media (min-width: 1025px) {
  .jx2-nav.jx2-ready .jx2-menu-toggle { display: none; }
  .jx2-nav .jx2-shell[open] > .jx2-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--jx2-gap);
    width: 100%;
  }
  .jx2-nav .jx2-item { flex: 0 0 auto; }
  .jx2-nav .jx2-dropdown { position: relative; }
  .jx2-nav .jx2-trigger, .jx2-nav .jx2-home > a { white-space: nowrap; text-transform: uppercase; }
  .jx2-nav .jx2-panel {
    position: absolute;
    z-index: 1001;
    top: 100%; /* No gap: pointer can cross from summary into the panel. */
    inset-inline-start: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: min(70vh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    transform: translateX(var(--jx2-panel-shift, 0px));
  }
  .jx2-nav .jx2-item:nth-last-child(-n + 2) .jx2-panel {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
  .jomix-header-layout:has(.jx2-nav) { position: relative; padding-inline: 0 !important; }
  .jomix-header-layout:has(.jx2-nav) > .e-con-inner {
    width: 100%; max-width: 1440px; box-sizing: border-box;
    padding: 12px 28px !important; gap: 0 !important;
    justify-content: flex-start !important; align-items: center; flex-wrap: nowrap !important;
  }
  .jomix-header-layout:has(.jx2-nav) .jx2-nav-widget {
    flex: 1 1 0 !important; width: auto !important; min-width: 0;
    margin-inline: 0 24px !important; order: 2;
  }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo {
    flex: 0 0 96px !important; width: 96px !important; margin-inline-end: 32px !important; order: 1;
  }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo img { width: 100%; height: auto; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-search,
  .jomix-header-layout:has(.jx2-nav) .jx-header-wishlist { flex: 0 0 40px !important; width: 40px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-search { order: 3; margin-inline-start: 0 !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-wishlist { order: 4; margin-inline-start: 8px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-cart { order: 5; flex: 0 0 44px !important; width: 44px !important; margin-inline-start: 8px !important; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .jx2-nav { --jx2-gap: 12px; font-size: 14px; }
  .jx2-nav .jx2-trigger { gap: 6px; }
  .jomix-header-layout:has(.jx2-nav) > .e-con-inner { padding-inline: 16px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo { flex-basis: 80px !important; width: 80px !important; margin-inline-end: 24px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx2-nav-widget { margin-inline-end: 16px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-search,
  .jomix-header-layout:has(.jx2-nav) .jx-header-wishlist { flex-basis: 36px !important; width: 36px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-wishlist,
  .jomix-header-layout:has(.jx2-nav) .jx-header-cart { margin-inline-start: 6px !important; }
}
@media (max-width: 1024px) {
  .jx2-nav { position: static; font-size: 16px; }
  .jx2-nav .jx2-shell { position: static; }
  .jx2-nav .jx2-nav-list {
    position: absolute; z-index: 1001; top: 100%; inset-inline: 12px;
    width: auto; max-width: calc(100% - 24px); max-height: 65vh;
    overflow: auto; overscroll-behavior: contain;
    padding: 8px 12px; background: #fff; color: var(--jx2-ink);
    border: 1px solid var(--jx2-line); border-radius: 4px;
    box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
  }
  .jx2-nav .jx2-trigger, .jx2-nav .jx2-home > a { justify-content: space-between; min-height: 44px; padding: 10px 4px; overflow-wrap: anywhere; }
  .jx2-nav .jx2-item + .jx2-item { border-top: 1px solid var(--jx2-line); }
  .jx2-nav .jx2-panel { position: static; width: 100%; max-width: 100%; box-shadow: none; border: 0; padding: 0 0 8px; font-size: 15px; }
  .jx2-nav .jx2-links a { min-height: 44px; padding: 10px 12px; }
  .jomix-header-layout:has(.jx2-nav) { position: relative; padding: 0 !important; }
  /* Keep original utility widgets and disclosure behavior in one compact row. */
  .jomix-header-layout:has(.jx2-nav),
  .jomix-header-layout:has(.jx2-nav) > .e-con-inner {
    flex-wrap: nowrap !important; column-gap: 4px !important; row-gap: 0 !important;
    align-items: center !important;
  }
  .jomix-header-layout:has(.jx2-nav) > .e-con-inner { box-sizing: border-box; padding: 12px !important; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo {
    order: 1; flex: 1 1 72px !important; width: auto !important; min-width: 0;
    margin: 0 !important; text-align: left;
  }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo > .elementor-widget-container {
    display: flex; justify-content: flex-start; align-items: center;
  }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo a { justify-content: flex-start; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-logo img {
    width: 72px !important; max-width: 100%; height: auto; object-fit: contain;
  }
  .jomix-header-layout:has(.jx2-nav) .jx-header-search,
  .jomix-header-layout:has(.jx2-nav) .jx-header-wishlist,
  .jomix-header-layout:has(.jx2-nav) .jx-header-cart,
  .jomix-header-layout:has(.jx2-nav) .jx2-nav-widget {
    flex: 0 0 44px !important; width: 44px !important; min-width: 44px;
    max-width: 44px; margin: 0 !important;
  }
  .jomix-header-layout:has(.jx2-nav) .jx-header-search { order: 2; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-wishlist { order: 3; }
  .jomix-header-layout:has(.jx2-nav) .jx-header-cart { order: 4; }
  .jomix-header-layout:has(.jx2-nav) .jx2-nav-widget { order: 5; }
  .jx2-nav .jx2-menu-toggle {
    width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0;
    justify-content: center;
  }
  .jx2-nav .jx2-menu-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .jx2-nav .jx2-menu-toggle > .jx2-arrow { display: none; }
  .jx2-nav .jx2-menu-icon { display: block; flex: 0 0 24px; }
}
/* Existing utility buttons keep their functions and icon-sized boxes. */
.jomix-header-layout:has(.jx2-nav) .jx-header-search a.elementor-button,
.jomix-header-layout:has(.jx2-nav) .jx-header-wishlist a.etheme-elementor-off-canvas__toggle_button,
.jomix-header-layout:has(.jx2-nav) .jx-header-cart a.etheme-elementor-off-canvas__toggle_button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100% !important; height: 44px; padding: 0 !important; box-sizing: border-box;
}
/* XStore's shrink-to-content wrapper must also fill the widget's button box. */
.jomix-header-layout:has(.jx2-nav) .jx-header-search > .elementor-widget-container > .elementor-button-wrapper,
.jomix-header-layout:has(.jx2-nav) .jx-header-wishlist .etheme-elementor-off-canvas__toggle.elementor-button-wrapper {
  width: 100% !important; min-width: 0; box-sizing: border-box;
}
.jomix-header-layout:has(.jx2-nav) .jx-header-cart .etheme-elementor-off-canvas__toggle.elementor-button-wrapper,
.jomix-header-layout:has(.jx2-nav) .jx-header-cart a.elementor-button.etheme-elementor-off-canvas__toggle_button {
  width: 44px !important; min-width: 44px !important; max-width: 44px !important;
  height: 44px !important; min-height: 44px !important; padding: 0 !important;
  box-sizing: border-box;
}
/* Only the explicitly replaced footer promotion list uses these rules. */
.jomix-footer-layout .jx2-promotions { list-style: none; margin: 0; padding: 0; }
.jomix-footer-layout .jx2-promotions > li { list-style: none; margin: 0; padding: 0; }
.jomix-footer-layout .jx2-promotions a {
  display: block; color: inherit; font: inherit; line-height: 1.5;
  padding: 4px 0; text-decoration: none; overflow-wrap: anywhere;
}
.jomix-footer-layout .jx2-promotions a:hover { text-decoration: underline; }
.jomix-footer-layout .jx2-promotions a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Match the adjacent footer columns only in the row with the live promotion marker. */
.jomix-footer-layout .e-con.e-flex:has(> .elementor-widget-html > .elementor-widget-container > .jomix-dynamic-promotions) {
  align-items: flex-start !important;
}
.jomix-footer-layout .jomix-dynamic-promotions .jx2-promotions a { font-size: 15px; }
.jomix-footer-layout .jomix-dynamic-promotions > p { margin-top: 0; }
