.ao-top-bar {
  background: #000;
  color: #fff;
  padding: 10px 0;
  font-size: 11px;
  font-family: var(--sb-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 10002;
}
@media (max-width: 1024px) {
  .ao-top-bar {
    position: sticky;
    top: -40px;
  }
  .ao-top-bar-left,
  .ao-top-bar-right {
    display: none !important;
  }
  .ao-top-bar-center {
    flex: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .ao-announcement-bar {
    text-align: center;
    width: 100%;
  }
}
.ao-top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.ao-top-bar-left,
.ao-top-bar-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.ao-top-bar-center {
  flex: 2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 500;
}
.ao-announcement strong {
  font-weight: 800;
}
.ao-top-bar .header-html {
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ao-top-bar .header-html strong {
  color: #fff !important;
  font-weight: 800;
}
.ao-top-bar .header-social-inner-wrap {
  display: flex;
  gap: 15px;
}
.ao-top-bar .social-button {
  color: #fff;
  font-size: 16px;
  transition: opacity 0.3s;
}
.ao-top-bar .social-button:hover {
  opacity: 0.7;
}
.ao-main-header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  overflow: visible !important;
  z-index: 10001;
  transition: transform 0.35s ease;
}
.ao-main-header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: visible !important;
}
.ao-header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.ao-header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ao-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.ao-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}
.ao-logo-box {
  background: #000;
  color: #fff;
  width: 65px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.ao-logo-icon {
  width: 25px;
  height: 25px;
}
.ao-logo-text {
  font-family: var(--sb-font-heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.1em;
}
.ao-main-header .site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ao-main-header .custom-logo-link img {
  max-height: 40px;
  width: auto;
}
.ao-main-header .site-title a {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
}
.main-navigation ul,
.ao-nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation li,
.ao-nav-list li {
  position: relative;
}
.main-navigation a,
.ao-nav-list a {
  text-decoration: none;
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-transform: capitalize;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  position: relative;
  border-radius: 25px;
  white-space: nowrap;
  overflow: hidden; /* clips the rising pill */
}

/* Top-level li is the clip boundary for the pill — but chevron lives on li itself to avoid clipping */
.main-navigation ul > li,
.ao-nav-list > li {
  border-radius: 25px;
  overflow: hidden;
}

/* Top-level li with children: extra right padding so pill text does not overlap chevron */
.main-navigation ul > li.menu-item-has-children,
.ao-nav-list > li.menu-item-has-children {
  /* chevron is ::after on the li (outside overflow:hidden clip) */
  overflow: visible;
  /* still clip the pill by wrapping with a clip-path approach:
     we let overflow:hidden stay on the a directly */
}

.main-navigation .menu-item-has-children > a,
.ao-nav-list .menu-item-has-children > a {
  padding-right: 26px !important;
}

/* ── Text swap ── */
.main-navigation a .label,
.ao-nav-list a .label {
  overflow: hidden;
  height: 1.4em;
  line-height: 1.4;
  position: relative;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.main-navigation a .t1,
.ao-nav-list a .t1 {
  display: block;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  color: #000;
}

/* ── The Pill ── */
.main-navigation a .pill,
.ao-nav-list a .pill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 25px;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.main-navigation a .t2,
.ao-nav-list a .t2 {
  display: block;
  color: #fff;
}

/* Hover effect */
.main-navigation li:hover > a .t1,
.ao-nav-list li:hover > a .t1 {
  transform: translateY(-100%);
}

.main-navigation li:hover > a .pill,
.ao-nav-list li:hover > a .pill {
  transform: translateY(0%);
}

/* ── Submenu items — sliding underline animation ── */
.main-navigation .sub-menu li a,
.ao-nav-list .sub-menu li a {
  color: #111;
  /* no pill — underline only */
  overflow: visible !important;
  position: relative;
  border-radius: 0;
  /* remove pill styles */
  background: transparent !important;
}

/* Hide pill inside sub-menus */
.main-navigation .sub-menu li a .pill,
.ao-nav-list .sub-menu li a .pill {
  display: none !important;
}

/* Keep t1 text visible & static (no slide) */
.main-navigation .sub-menu li a .label,
.ao-nav-list .sub-menu li a .label {
  overflow: visible;
  height: auto;
  position: relative;
  display: inline-block;
}

/* Sliding underline — on .label so it matches text width only */
.main-navigation .sub-menu li a .label::before,
.ao-nav-list .sub-menu li a .label::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #000;
  border-radius: 2px;
  transition: width 0.32s cubic-bezier(0.76, 0, 0.24, 1);
}

.main-navigation .sub-menu li:hover > a .label::before,
.ao-nav-list .sub-menu li:hover > a .label::before {
  width: 100%;
}

.main-navigation .sub-menu li a .t1,
.ao-nav-list .sub-menu li a .t1 {
  color: #111;
  transform: none !important;
  transition: none !important;
}

/* ── Override base theme fill-stretch: prevent equal-width grid ── */
.header-navigation-layout-fill-stretch-true .header-navigation .menu,
.header-navigation-layout-stretch-true .header-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.header-navigation-layout-fill-stretch-true .header-navigation .menu > li,
.header-navigation-layout-stretch-true .header-navigation .menu > li {
  flex: 0 0 auto;
  width: auto;
}

.header-navigation-layout-fill-stretch-true
  .header-navigation
  ul
  li.menu-item
  > a,
.header-navigation-layout-stretch-true .header-navigation ul li.menu-item > a {
  width: auto;
}

/* ─── Chevron on the LI (not the a) so it is never clipped by overflow:hidden ─── */
.main-navigation ul > li.menu-item-has-children,
.ao-nav-list > li.menu-item-has-children {
  position: relative;
}

/* Hover bridge — invisible extension so the mouse doesn't drop hover in the 6px gap */
.main-navigation ul > li.menu-item-has-children::before,
.ao-nav-list > li.menu-item-has-children::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 16px;
  z-index: 1;
}

.main-navigation ul > li.menu-item-has-children::after,
.ao-nav-list > li.menu-item-has-children::after {
  content: "";
  pointer-events: none;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 10px;
  top: 50%;
  translate: 0 -50%;
  transition:
    rotate 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  opacity: 0.55;
  z-index: 10;
}

/* Rotate on hover */
.main-navigation ul > li.menu-item-has-children:hover::after,
.ao-nav-list > li.menu-item-has-children:hover::after {
  rotate: 180deg;
  opacity: 1;
}

/* White chevron when pill is active */
.main-navigation ul > li.menu-item-has-children.current-menu-item::after,
.main-navigation ul > li.menu-item-has-children.current_page_item::after,
.main-navigation ul > li.menu-item-has-children.current-menu-parent::after,
.main-navigation ul > li.menu-item-has-children.current-menu-ancestor::after,
.ao-nav-list > li.menu-item-has-children.current-menu-item::after,
.ao-nav-list > li.menu-item-has-children.current_page_item::after,
.ao-nav-list > li.menu-item-has-children.current-menu-parent::after,
.ao-nav-list > li.menu-item-has-children.current-menu-ancestor::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  opacity: 0.9;
}
.main-navigation .sub-menu,
.ao-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 6px) !important;
  left: 0;
  background: #fff;
  min-width: 185px;
  box-shadow: none;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 15px !important;
  border: none;
  outline: 1px solid rgba(0, 0, 0, 0.07);
}
.main-navigation li:hover > .sub-menu,
.ao-nav-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}
.main-navigation .sub-menu li a,
.ao-nav-list .sub-menu li a {
  display: flex !important;
  align-items: center;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-transform: none;
  white-space: nowrap;
  border: none;
  letter-spacing: 0;
  font-family: "Inter", sans-serif;
  border-radius: 0 !important;
  position: relative;
}
.main-navigation .sub-menu li a:hover,
.ao-nav-list .sub-menu li a:hover {
  background: transparent !important;
  color: #000 !important;
  padding-left: 18px !important;
}
.ao-header-right .search-toggle-open,
.ao-header-right .account-toggle-link,
.ao-header-right .header-cart-button {
  background: none;
  border: none;
  padding: 8px;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}
.ao-header-right .search-toggle-open:hover,
.ao-header-right .account-toggle-link:hover,
.ao-header-right .header-cart-button:hover {
  transform: scale(1.1);
}
/* ── Device visibility ── */
@media (min-width: 1025px) {
  .header-account-wrap.vs-lg-false {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .header-account-wrap.vs-md-false {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .header-account-wrap.vs-sm-false {
    display: none !important;
  }
}
.ao-header-right .site-header-item {
  margin-right: 8px;
}
.ao-header-right .site-header-item:last-child {
  margin-right: 0;
}
.ao-header-right svg {
  width: 24px;
  height: 24px;
}
.ao-cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #000;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
}
.ao-hamburger-toggle {
  background: none !important;
  border: none !important;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 45px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none !important;
  box-shadow: none !important;
}
.ao-hamburger-line {
  display: block;
  height: 2px;
  background: #000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ao-hamburger-line:nth-child(1) {
  width: 100%;
}
.ao-hamburger-line:nth-child(2) {
  width: 60%;
}
.ao-menu-open .ao-hamburger-toggle .ao-hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.ao-menu-open .ao-hamburger-toggle .ao-hamburger-line:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
  width: 100% !important;
}
.ao-hamburger-toggle:hover {
  background: none !important;
}
.ao-hamburger-toggle:hover .ao-hamburger-line:nth-child(2) {
  width: 100%;
}
.ao-hamburger-toggle {
  display: none !important;
}
@media (max-width: 1024px) {
  .ao-main-nav {
    display: none;
  }
  .ao-hamburger-toggle {
    display: flex !important;
  }
  .main-navigation,
  .ao-nav-list {
    display: none !important;
  }
  .ao-header-center {
    display: flex;
    justify-content: center;
  }
  .ao-top-bar-container {
    padding: 0 20px;
  }
  .ao-main-header-container {
    padding: 0 !important;
  }
}
