/**
 * Inner-page bridge: keep Synergi head/foot chrome while preserving old .container / .layout content.
 */

/* synergi-home.css sets a narrow .container — restore full-bleed wrapper used by inner pages */
body:not(.synergi-home) > .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Header / footer sit full width above old layout content */
body:not(.synergi-home) > .container > .header,
body:not(.synergi-home) > .container > .footer {
  width: 100%;
}

/* Search button: keep Synergi util look; ignore legacy .web_head .btn--search icon rules */
.header .util-search {
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.header .util-search svg {
  display: block;
  pointer-events: none;
}
.header .util-search.btn--search,
.header .util-search.btn--search:before,
.header .util-search.btn--search:after {
  background-image: none !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  overflow: visible !important;
}
.header .util-search.btn--search:before,
.header .util-search.btn--search:after {
  content: none !important;
  display: none !important;
}

/* Soft site font for chrome consistency without nuking all inner typography */
body:not(.synergi-home) .header,
body:not(.synergi-home) .footer {
  font-family: "Montserrat", system-ui, sans-serif;
}

/* Footer container on all pages */
.footer > .container,
.footer > .footer__inner {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Product filter dropdown above sticky header (z-index:100) */
.filter_panel,
.page_main .filter_panel,
.web_main .filter_panel {
  position: relative;
  z-index: 110;
  overflow: visible;
}
.filter_panel .sys_select_box {
  position: relative;
  z-index: 5;
}
.filter_panel .sys_select_box.active {
  z-index: 120;
}
.filter_panel .sys_select_box .select_menu {
  z-index: 121;
}

/* Nested category indent in Browse-by dropdown (L1 / L2 / L3+) */
.filter_panel .select_menu_inner .side-cate > li > a {
  padding-left: 1.25em !important;
}
.filter_panel .select_menu_inner .side-cate > li > ul > li > a,
.filter_panel .select_menu_inner .side-cate > li > .sub-menu > li > a {
  padding-left: 2.5em !important;
}
.filter_panel .select_menu_inner .side-cate > li > ul > li > ul > li > a,
.filter_panel .select_menu_inner .side-cate > li > .sub-menu > li > .sub-menu > li > a {
  padding-left: 3.75em !important;
}
.filter_panel .select_menu_inner .side-cate li li li li a {
  padding-left: 5em !important;
}
.filter_panel .select_menu_inner .side-cate .sub-menu {
  margin: 0;
  padding-left: 0;
}

/*
 * Search overlay — self-contained (home skips style.css / xy-port-bridge).
 * JS toggles .search--open on .web-search + body.sy-search-open.
 */
.web-search {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(720px, 88vw);
  min-height: 200px;
  padding: 48px 28px 36px;
  margin: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(26, 43, 74, 0.28);
  z-index: 100100;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
.web-search.search--open {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100100 !important;
}
.web-search .btn--search-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: block !important;
  background: #f0f3f8;
  opacity: 1 !important;
  transition: background-color 0.2s, transform 0.2s, color 0.2s;
  color: #1a2b4a;
  font-size: 0;
  line-height: 0;
  z-index: 2;
}
.web-search.search--open .search-ipt {
  transform: none !important;
  opacity: 1 !important;
}
.web-search .btn--search-close::before,
.web-search .btn--search-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.web-search .btn--search-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.web-search .btn--search-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.web-search .btn--search-close:hover {
  background-color: #c4a35a;
  color: #fff;
  transform: rotate(90deg);
}
.web-search .head-search {
  width: 100%;
}
.web-search .head-search form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.web-search .search-ipt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 4px 14px;
  border: 0;
  border-bottom: 2px solid #1a2b4a;
  border-radius: 0;
  background: transparent;
  color: #1a2b4a;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.web-search .search-ipt::placeholder {
  color: #9aa6b8;
  font-weight: 500;
}
.web-search .search-btn {
  display: none !important;
}
.web-search .search-attr {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #6b7c8f;
  text-align: right;
  font-family: "Montserrat", system-ui, sans-serif;
}
body.sy-search-open {
  overflow: hidden;
}
body.sy-search-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(26, 43, 74, 0.55);
  z-index: 100090;
  pointer-events: auto;
}

/*
 * Inner-page path_bar banner (same idea as rbl-bike):
 * background-image injected by Public/path_bar_attrs.html
 */
.path_bar {
  position: relative;
  min-height: 180px !important;
  box-sizing: border-box;
  padding: 90px 0 0 !important;
  margin-bottom: 24px !important;
  text-align: left !important;
  line-height: 32px;
  overflow: hidden;
  background-color: #1a2b4a;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover !important;
  background-size: cover !important;
  border-bottom: 0 !important;
  font-weight: normal !important;
}
.path_bar .layout {
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
  padding-bottom: 40px !important;
  min-height: 0;
  box-sizing: border-box;
  border-bottom: 0 !important;
}
.path_bar .layout:before {
  display: none !important;
  content: none !important;
}
.path_bar .layout > ul {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 0;
  margin: 0;
  padding: 0 !important;
  list-style: none;
  text-align: left !important;
}
.path_bar li {
  display: inline-flex !important;
  align-items: center;
  float: none !important;
  margin: 0;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88) !important;
  white-space: nowrap;
}
.path_bar li + li:before {
  content: "/" !important;
  font-family: inherit !important;
  display: inline-block;
  margin: 0 10px !important;
  padding: 0;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 14px;
  font-weight: 400;
}
.path_bar li:first-child a:before {
  display: none !important;
  content: none !important;
}
.path_bar a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
}
.path_bar a:hover {
  color: #c4a35a !important;
}
.path_bar li:last-child,
.path_bar li:last-child a {
  color: #fff !important;
  font-weight: 700 !important;
}
.path_bar[style*="background-image"]:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 43, 74, 0.72) 0%, rgba(26, 43, 74, 0.45) 55%, rgba(20, 34, 56, 0.35) 100%);
  pointer-events: none;
  z-index: 0;
}
@media only screen and (max-width: 768px) {
  .path_bar {
    min-height: 120px !important;
    padding-top: 50px !important;
  }
  .path_bar .layout {
    padding-bottom: 24px !important;
  }
  .path_bar li {
    font-size: 13px !important;
  }
}
