/* COMPLETE UPDATED LAYOUT.CSS FILE */

/* ============= HEADER SECTION - MODERNIZED ============= */
.apex{
  background: var(--apex-bg-color);
  color: var(--apex-color);
  font-weight: 400;
  padding: 10px 0;
  border-bottom: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.apex div, .apex div span{
  font-size: 0.75rem;
}

.apex a
,.apex span.as-link{
  color: var(--apex-color);
}

.apex a:hover
,.apex span.as-link:hover{
  color:var(--primary-color);
}

.apex ul.nav-widgets li span.as-link{
  padding: 0 10px;
  padding-right: 10px;
  color: var(--apex-color);
}

.apex ul.nav-widgets li:not(:last-of-type){
  border-right:1px solid var(--apex-border-color);
}

.apex ul.nav-widgets span.as-link:hover{
  color:var(--primary-color);
  text-decoration: none;
}

.apex .widget-text{
  padding-left:0.375rem;
}

.apex .tagline{
  margin-bottom:0;
  text-align:center;
}

.header-logo:hover{
  cursor: pointer;
}

/* Logo/Search/Cart Section */
#logo-search-cart{
  background: var(--bg-cust-logo);
  padding-top:2em;
  padding-bottom:2rem;
}

@media only screen and (max-width: 40em){
  #logo-search-cart{
    padding-top:1em;
    padding-bottom:1rem;
  }
}

/* Search Box Styling */
.nav-search-wrapper{
  border:2px solid var(--primary-color);
  margin-bottom:0;
  margin-left:auto;
  margin-right:auto;
  max-width:500px;
}
.nav-search-wrapper .k-clear-value{
  display:none;
}
.k-input-loading-icon{
  width:0px !important;
  display: none !important;  
}

#frmNavSearch span.input-group-label{
  background: var(--x-light-gray);
  border: none;
}
#frmNavSearch .site-search-input{
  border: none;
  box-shadow: none;
  min-width:275px;
  color: #000000;
}
@media only screen and (max-width: 63.9375em){
  #frmNavSearch .site-search-input{
    min-width: 225px;
  }
}

input#nav-search::placeholder
,input#nav-search:-ms-input-placeholder{
  color:var(--gray-text);
}

input#nav-search{
  border:none;
  box-shadow: none;
  color: var(--black);
}

@media only screen and (min-width: 40.0625em){
  input#nav-search{
    min-width:300px;
  }
}

#frmNavSearch select#SiteSearchTp{
  border:none;
  border-right:1px solid #ddd;
  box-shadow: none;
  min-width:115px;
  max-width:130px;
  color: var(--black);
  font-size:0.875rem;
}

.nav-search-wrapper button{
  background: var(--bg-cust-logo);
  color:var(--primary-color);
}

.nav-search-wrapper button:hover
,.nav-search-wrapper button:focus{
  background: var(--primary-color);
  color:var(--primary-color-text);
}

/* Cart Icon */
#cart-icon-wrapper span{
  margin-left: auto;
  margin-right: auto;
}

span.cart-icon{
  border-radius:1000px;
  background: var(--primary-color);
  color:var(--primary-color-text);
  height: 2.4375rem;
  width: 2.4375rem;
  line-height: 39px;
  text-align:center;
  font-size:1.2rem;
  margin: 0;
  padding:0;
}

@media only screen and (min-width: 64.0625rem) {
  #cart-icon-wrapper{
    margin-right:0.5rem;
  }
}

#nav-cart-preview-wrapper{
  padding-right:1rem;
  padding-left:0.5rem;
  cursor: pointer;
}

@media only screen and (max-width: 64em) {
  #nav-cart-preview-wrapper{
    padding-right:0;
  }
}

#nav-cart-dropdown{
  font-size: 0.75rem;
  width:320px;
  font-weight: 450;
}

p.cart-item-txt{
  font-size: 0.8125rem;
  color: var(--gray-text);
}

.cart-prev-title{
  font-size:0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  margin-top:0;
}

.cart-prev-detail{
  margin-bottom:0;
  line-height:1.1;
}
.nav-cart-total > div{
  font-size:0.875rem;
}

#nav-cart-total{
  font-weight: 600;
  color: var(--primary-color);
  font-size:1rem;
}

.button.nav-cart-button{
  font-weight: 700;
  font-size:0.875rem;
  text-transform: uppercase;
  margin-bottom:0;
}

.button.nav-cart-button:hover
,.button.nav-cart-button:focus{
  border: 1px solid var(--primary-color);
}

/* Main Navigation Section */
nav#main-nav{
  background: var(--nav-bg-color);
  color:var(--nav-color);
}

section.nav{
  background:var(--nav-bg-color);
  min-height:2.875rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Main Menu Items */
.main-menu li span.as-link
,.main-menu li a{
  color:var(--nav-color);
  font-weight: 600;
  font-size: 1rem;
}

.main-menu > li > span.as-link
,.main-menu > li > a{
  text-transform: uppercase;
}

.main-menu.dropdown.menu > li > a
,.main-menu.dropdown.menu > li > span.as-link{
    padding-top: .9375rem;
    padding-bottom: .9375rem;
    color: var(--nav-color);
}

/* Reset Default Anchor Styles */
.main-menu a {
  text-decoration: none;
}

.main-menu a:visited {
  color: var(--nav-color);
  background: transparent;
  text-decoration: none;
}

/* Ensure visited state matches default for all navigation links */
.main-menu li a:visited,
.main-menu ul.menu.nested li a:visited {
  color: #e9ecef;
  background: inherit;
  text-decoration: none;
}

/* More specific visited state rules for dropdown menu items */
.main-menu.dropdown.menu > li > a:visited,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent > a:visited,
.main-menu.dropdown.menu > li.is-active > a:visited {
  color: var(--nav-color);
  background: transparent;
  text-decoration: none;
}

/* Modern Hover/Active States */
.main-menu li span.as-link:hover
,.main-menu li a:hover{
  background: rgb(194,24,7);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.main-menu li span.as-link:focus
,.main-menu li a:focus{
  background: rgb(194,24,7);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Higher specificity hover states to override Foundation framework */
.main-menu.dropdown.menu > li > a:hover,
.main-menu.dropdown.menu > li > span.as-link:hover,
.main-menu.dropdown.menu > li.is-active > a:hover,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent > a:hover,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent.is-active > a:hover{
  background: rgb(194,24,7);
  color: #ffffff;
  text-decoration: none;
}

/* Keep parent menu item styled when dropdown is open or being hovered */
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent.is-hover > a,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent.is-click > a,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent:hover > a,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent.is-active.is-hover > a,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent.is-active.is-click > a,
.main-menu.dropdown.menu > li.is-dropdown-submenu-parent.is-active:hover > a{
  background: rgb(194,24,7);
  color: #ffffff;
  text-decoration: none;
}

.main-menu li.is-active > span.as-link
,.main-menu li.nav-active > span.as-link
,.main-menu li.is-active > a
,.main-menu li.nav-active > a{
  background: rgb(194,24,7);
  color: #ffffff;
  text-decoration: none;
}

/* Dropdown Arrow Styling */
.main-menu li.is-dropdown-submenu-parent > span{
  z-index:900;
}

.is-dropdown-submenu-parent span.as-link::after {
    position: absolute;
    top: 50%;
    right: 5px;
    left: auto;
    margin-top: -6px;
}

.dropdown.menu > li.is-dropdown-submenu-parent > span.as-link::after {
    display: block;
    width: 0;
    height: 0;
    border: inset 6px;
    content: '';
    border-bottom-width: 0;
    border-top-style: solid;
    border-color: var(--nav-color) transparent transparent;
    right: 5px;
    left: auto;
    margin-top: -3px;
}

.dropdown.menu > li.is-dropdown-submenu-parent > span.as-link {
  position: relative;
  padding-right: 1.5rem;
}

.dropdown.menu > li.is-dropdown-submenu-parent > span.as-link:hover::after
,.dropdown.menu > li.is-dropdown-submenu-parent.is-active > span.as-link::after{
  border-color: #ffffff transparent transparent;
}

/* Dropdown Arrow Styling for Anchor Tags */
.dropdown.menu > li.is-dropdown-submenu-parent > a {
  position: relative;
  padding-right: 1.5rem;
}

.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
    position: absolute;
    top: 50%;
    right: 5px;
    left: auto;
    margin-top: -6px;
    display: block;
    width: 0;
    height: 0;
    border: inset 6px;
    content: '';
    border-bottom-width: 0;
    border-top-style: solid;
    border-color: var(--nav-color) transparent transparent;
    margin-top: -3px;
}

.dropdown.menu > li.is-dropdown-submenu-parent > a:hover::after
,.dropdown.menu > li.is-dropdown-submenu-parent.is-active > a::after{
  border-color: #ffffff transparent transparent;
}

/* Modern Dark Dropdown Menus - 4px Gap */
.main-menu ul.menu.nested.is-dropdown-submenu{
  background: #2c2c2c;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  border: 1px solid #404040;
  border-radius: 8px;
  margin-top: 4px; /* 4px gap as requested */
  margin-left: -1px;
  padding: 8px 0;
  width: 250px;
  z-index: 1000;
  overflow: hidden;
}

/* Dropdown Menu Items - Fixed Blinking */
.main-menu ul.menu.nested li a,
.main-menu ul.menu.nested li span.as-link {
  color: #e9ecef;
  background: transparent;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 0;
  border-radius: 0;
  transform: translateX(0); /* Set initial transform state */
}

.main-menu ul.menu.nested li:hover a,
.main-menu ul.menu.nested li:hover span.as-link,
.main-menu ul.menu.nested li:focus a,
.main-menu ul.menu.nested li:focus span.as-link{
  background: rgba(194,24,7,0.9);
  color: #ffffff;
  transform: translateX(4px);
}

/* Dropdown separators */
ul.menu.vertical.nested.nav-sub-menu.submenu.is-dropdown-submenu li:not(:last-of-type) {
  border-bottom: 1px solid #404040;
}

#nav-about-brochure:hover i.txt-primary{
  color: var(--primary-color-hover);
}

/* ============= CATEGORY NAVIGATION ============= */
nav button.nav-categories{
  background:var(--primary-color);
  color:var(--primary-color-text);
  text-transform: uppercase;
  text-align:left;
  font-weight: 700;
  font-size: 0.875rem;
  height:2.875rem;
  width:100%;
  padding-left:1rem;
  padding-right:1rem;
  margin:0;
}

nav button.nav-categories:focus
,nav button.nav-categories:visited
,nav button.nav-categories:hover{
  background:var(--primary-color);
  color:var(--primary-color-text);
}

nav .nav-category-menu li a
,nav .nav-category-menu li span.as-link{
  padding-left:0;
  font-size:0.875rem;
  color:var(--black);
}

nav .menu-img{
  font-size:1.1rem;
  display: inline-block;
  width: 24px;
  margin-right:0.5rem;
}

nav .nav-category-menu li a:hover
,nav .nav-category-menu li span.as-link:hover
,nav .nav-category-menu li a:focus
,nav .nav-category-menu li span.as-link:focus{
  text-decoration:none;
  padding-left:1rem;
  transition: 0.15s padding ease;
}

nav .nav-category-menu li a:hover .menu-desc
,nav .nav-category-menu li span.as-link:hover .menu-desc
,nav .nav-category-menu li a:focus .menu-desc
,nav .nav-category-menu li span.as-link:focus .menu-desc{
  color:var(--primary-color);
}

#category-dropdown > p:first-of-type
,#nav-tab-categories > p:first-of-type{
  background: var(--light-gray);
  font-size: 0.75rem;
  font-weight:500;
  text-align: center;
}

#category-dropdown > p:first-of-type{
  margin: -16px -16px 0.5rem -16px;
  padding: 0.5rem 1.25rem;
}

#nav-tab-categories > p:first-of-type{
  padding: 0.5rem 1.25rem;
  margin-bottom: 0;
}

/* ============= OFF CANVAS MENU ============= */
#nav-oc-menu{
  background: #ffffff;
  width: 320px;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
  border-right: 1px solid #e0e0e0;
}

.position-left{
  transform: translateX(-320px);
}

.js-off-canvas-overlay{
  background: rgba(0, 0, 0, 0.5);
}

button.nav-menu{
  height:2.875rem;
  background: var(--primary-color);
  color: var(--primary-color-text);
}

.nav-oc-company{
  background: #f8f9fa;
  color: #2c2c2c;
  padding: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0;
}

.nav-search-mobile-wrapper{
  border: 2px solid #e0e0e0;
  box-shadow: none;
  border-radius: 4px;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

input#nav-search-mobile{
  border: none;
  box-shadow: none;
  color: #2c2c2c;
  background: #ffffff;
  padding: 12px 14px;
  font-size: 0.95rem;
}

input#nav-search-mobile::placeholder {
  color: #6c757d;
  font-style: normal;
}

.nav-search-mobile-wrapper button{
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 14px;
}

.nav-search-mobile-wrapper button:hover
,.nav-search-mobile-wrapper button:focus{
  background: rgba(194, 24, 7, 0.9);
  color: white;
}

#nav-oc-tabs{
  border: none;
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
}

#nav-oc-tabs .tabs-title > a:focus, #nav-oc-tabs .tabs-title > a[aria-selected='true'] {
  color: #2c2c2c;
  background: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
}

#nav-oc-tabs .tabs-title > a {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 0;
}

#nav-oc-tabs .tabs-title > a:hover
,#nav-oc-tabs .tabs-title > a:focus{
  text-decoration: none;
}

#nav-oc-tabs-wrapper .tabs-title {
  border-right: 1px solid #e0e0e0;
}

#nav-oc-tabs-wrapper .tabs-content {
  border: none !important;
}

#nav-oc-tabs-wrapper .tabs-content .tabs-panel {
  padding: 0;
}

/* Mobile Menu Content */
.nav-tab-content {
  background: #ffffff;
  padding: 0;
  list-style: none;
}

/* Main Menu Items */
ul.nav-tab-content li {
  border-bottom: 1px solid #e9ecef;
  list-style: none;
}

ul.nav-tab-content li:last-child {
  border-bottom: none;
}

/* Top Level Links - Clean, professional styling */
ul.nav-tab-content > li > a,
ul.nav-tab-content > li > span.as-link {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  list-style: none;
  background: #ffffff;
  border: none;
}

ul.nav-tab-content > li > a:active,
ul.nav-tab-content > li > span.as-link:active {
  background: #f8f9fa;
  color: var(--primary-color);
}

/* Chevron icons for expandable items */
ul.nav-tab-content > li.is-accordion-submenu-parent > a::after,
ul.nav-tab-content > li.is-accordion-submenu-parent > span.as-link::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
  transform: rotate(-45deg);
  margin-left: auto;
}

ul.nav-tab-content > li.is-accordion-submenu-parent.is-active > a::after,
ul.nav-tab-content > li.is-accordion-submenu-parent.is-active > span.as-link::after {
  transform: rotate(45deg);
  border-color: var(--primary-color);
}

/* Submenu Styling - Subtle background change for hierarchy */
ul.nav-tab-content ul.nested {
  background: #f8f9fa;
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.nav-tab-content ul.nested li {
  border-bottom: 1px solid #e9ecef;
  border-left: none;
  list-style: none;
}

ul.nav-tab-content ul.nested li:last-child {
  border-bottom: none;
}

/* Submenu Links - Clear hierarchy with indentation */
ul.nav-tab-content ul.nested li a,
ul.nav-tab-content ul.nested li span.as-link {
  padding: 14px 24px 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  position: relative;
  text-decoration: none;
  list-style: none;
  background: #f8f9fa;
  border: none;
}

/* Special styling for icons in menu items */
ul.nav-tab-content .menu-img,
ul.nav-tab-content i {
  margin-right: 12px;
  color: #6c757d;
  width: 20px;
  text-align: center;
}

/* Badge styling for "New" indicators */
ul.nav-tab-content .badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

/* Remove list styles globally for mobile menu */
#nav-oc-menu ul,
#nav-oc-menu li {
  list-style: none;
  list-style-type: none;
}

#nav-oc-menu ul {
  margin-left: 0;
  padding-left: 0;
}

#nav-tab-categories .menu-img{
  display: inline-block;
  width: 30px;
}

/* ============= FOOTER ============= */
footer{
  margin-top:3rem;
}

footer svg ~ span.pad-lft{
  padding-left:0.5rem;
}

.footer-top{
  background-image: url("/img/homepage/footer-bg.jpg");
  background-color: #252525;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color:#fefefe;
  padding-top:3rem;
  padding-bottom:3rem;
}

@media only screen and (max-width: 64em) {
  footer .contact-bucket{
    margin-bottom:1.5rem;
  }
}

footer .contact-header{
  font-weight: 600;
  font-size:0.8125rem;
  text-transform: uppercase;
  margin-bottom:0.25rem;
}

section.footer-bottom{
  background:#252525;
  color:#fefefe;
  padding:0.5rem 0;
}

.footer-bottom p{
  margin-bottom:0;
}

.footer-bottom a
,.footer-bottom a:hover{
  color: var(--white);
}

footer .contact-wrapper{
  border:1px solid rgba(255,255,255,0.3);
  padding-top:1rem;
  padding-bottom:1rem;
}

.footer-brand-msg{
  font-size:0.875rem;
  font-weight:500;
}
@media only screen and (min-width: 64em) {
  .footer-brand-msg{
    font-size:1rem;
    
  }
}

/* ============= CART PREVIEW ============= */
#cart-item-list{
  max-height:250px;
  overflow-y: auto;
}

table.cart-item-det{
  font-size:0.75rem;
  margin-bottom:0;
}

.cart-item-det tr.cart-mfg-title{
  font-weight: 600;
  background-color: #e6e6e6;
}

.cart-item-det tr.item-det{
  background-color: var(--white);
  vertical-align: top;
  border-bottom: 1px solid rgb(240,240,240);
}

.cart-item-det td.item-det-qty
,.cart-item-det td.item-det-price{
  white-space: nowrap;
  width:1%;
}

.cart-item-det td.item-det-qty{
  padding-right:6px;
}

.cart-item-det td.item-det-price{
  padding-left:6px;
}

.cart-item-det td.item-det-desc{
  padding-left:6px;
  padding-right:6px;
}

.cart-item-det td.item-det-desc span.part-name::before{
  content:": ";
}

.cart-item-det tr:hover td.item-det-desc{
  text-decoration: underline;
}

/* ============= ERROR PAGES ============= */
.bg-err-403{
  background-image: url(/img/403_tight.png);
}

.bg-err-404{
  background-image: url(/img/404_tight.png);
}

#zf-error-wrapper{
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#zf-error-wrapper > div{
  padding:3rem;
}

#zf-error-wrapper p.error{
  font-weight: 600;
  font-size: 2.5rem;
  text-align: center;
}

#zf-error-wrapper p.error-sub{
  font-size:1rem;
  font-weight: 400;
  text-align: center;
}

p.error-buttons{
  margin-bottom:0;
  text-align: center;
}

@media only screen and (max-width: 40rem) {
  #zf-error-wrapper > div{
    padding:3rem 1rem;
  }
}

/* ============= MISC ============= */
.login-form-wrapper{
  background: #f1f1f1;
  margin-bottom:2rem;
}

section.sys-msg{
  padding:0.375rem 0;
  border-bottom:1px solid var(--gray);
  background: var(--alert);
}

.header-affiliation a{
  color:var(--black);
}

.header-affiliation a:hover
,.header-affiliation a:focus{
  color:var(--link-color-hover);
}
#mdlLogin{
  border-radius: 12px;
}


#acSiteSearch-list .k-list-item-text {
  display: flex;
  line-height: 1;
  width: 500px;
}


.k-autocomplete .k-animation-container .k-list {
    min-width: 300px; /* Set minimum width for readability */
    max-width: 500px; /* Prevent it from getting too wide */
}

.k-autocomplete .k-list-item,
.k-autocomplete .k-item {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    padding: 10px 12px;
    min-height: auto;
}

/* Style your custom template content */
#acSiteSearch-list .site-search-opt {
/*    display: flex;
    align-items: flex-start;*/
    gap: 8px;
    /*flex-wrap: nowrap;*/
    padding:6px 2px;
    font-size:0.875rem;
}

#acSiteSearch-list .site-search-opt span {
  /*flex: 1;*/
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
/* ============= MOBILE SEARCH OVERLAY ============= */

/* Mobile search overlay container */
.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-search-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.mobile-search-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Search container */
.mobile-search-container {
  background: var(--white);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Search header */
.mobile-search-header {
  background: var(--nav-bg-color);
  color: var(--nav-color);
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.mobile-search-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--nav-color);
}

.mobile-search-close {
  background: transparent;
  color: var(--nav-color);
  font-size: 1.5rem;
  padding: 0.5rem;
  margin: 0;
}

.mobile-search-close:hover,
.mobile-search-close:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-color);
}

/* Search body */
.mobile-search-body {
  padding: 1.5rem 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

/* Mobile search form styling */
.mobile-search-body .nav-search-mobile-wrapper {
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-search-body .site-search-input {
  border: none;
  box-shadow: none;
  background: var(--white);
  color: var(--black);
  font-size: 1.1rem;
  padding: 1rem;
  min-height: 3rem;
}

.mobile-search-body .site-search-input::placeholder {
  color: var(--gray-text);
  font-size: 1rem;
}

.mobile-search-body .input-group-button button {
  background: var(--primary-color);
  color: var(--primary-color-text);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  min-height: 3rem;
}

.mobile-search-body .input-group-button button:hover,
.mobile-search-body .input-group-button button:focus {
  background: var(--primary-color-hover);
  color: var(--primary-color-text);
}

/* Mobile autocomplete dropdown styling */
.mobile-search-overlay .k-animation-container {
  z-index: 10000 !important;
}

.mobile-search-overlay .k-list-container {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: var(--white);
  max-height: 60vh;
  overflow-y: auto;
}

.mobile-search-overlay .k-list-item {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
}

.mobile-search-overlay .k-list-item:last-child {
  border-bottom: none;
}

.mobile-search-overlay .k-list-item:hover,
.mobile-search-overlay .k-list-item.k-state-focused {
  background: var(--x-light-gray);
  color: var(--black);
}

.mobile-search-overlay .k-list-item.k-state-selected {
  background: var(--primary-color);
  color: var(--primary-color-text);
}

/* Mobile search result styling */
.mobile-search-overlay .site-search-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  font-size: 0.95rem;
}

.mobile-search-overlay .site-search-opt img {
  height: 40px;
  max-width: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-search-overlay .site-search-opt span {
  flex: 1;
  word-break: break-word;
  line-height: 1.4;
}

/* Mobile navigation button states */
.mobile-nav-search.search-active,
.mobile-nav-menu.search-active {
  display: none;
}

.mobile-nav-search.search-active {
  display: list-item;
}

/* Show for mobile only */
@media screen and (min-width: 40.0625em) {
  .mobile-search-overlay {
    display: none !important;
  }
}

/* Ensure proper stacking */
.mobile-search-overlay {
  z-index: 9999;
}

/* Prevent body scroll when overlay is open */
body.mobile-search-open {
  overflow: hidden;
}

/* Touch-friendly button sizing */
@media screen and (max-width: 39.99875em) {
  .mobile-search-close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .mobile-search-body .input-group-button button {
    min-width: 44px;
    min-height: 44px;
  }
}