.navbar-expand-lg .offcanvas,
.navbar-collapse {
  flex-grow: unset;
}

.bi-list {
  font-size: 24px;
  color: white;
  display: block;
}

.scrolled .bi-list,
.sticky-top .bi-list {
  display: none;
}

.show_toggler .navbar-nav {
  flex-direction: row;
}

.cart-custom-contents:hover {
  color: #0d6efd !important;
}

.navbar-nav,
.navbar-expand-lg .offcanvas .offcanvas-body {
  gap: 20px;
}

.navbar-nav .menu-item a::before,
.scrolled.fixed-top .navbar-nav > .menu-item > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width 0.2s ease-in;
  z-index: 2;
}

.fixed-top .navbar-nav > .menu-item > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.2s ease-in;
  z-index: 2;
}

.navbar-nav .menu-item:hover::before {
  width: 100%;
  height: 80%;
}

.navbar-nav .menu-item a:hover::before {
  width: 100% !important;
}

.navbar-nav .menu-item a[aria-current="page"]::before,
.scrolled.fixed-top .navbar-nav .menu-item a[aria-current="page"]::before {
  width: 100%;
}

.navbar-nav .menu-item a {
  text-decoration: none;
  padding-bottom: 10px;
  position: relative;
  color: black;
}

nav.center-circle-menu .container-fluid {
  padding: 0 40px;
}

.sub-menu {
  min-width: 220px;
  position: absolute;
  background-color: white;
  padding: 8px 0;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-top: 5px;
}

.sub-menu .menu-item {
  list-style: none;
}

.sub-menu .menu-item a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: none;
}

.sub-menu .menu-item a:hover {
  background: #f8f9fa;
}

.navbar.navbar-centered {
  border-radius: 50px;
}

.fixed-top.navbar-centered {
  top: 20px;
}

.navbar-centered .container-fluid {
  padding: 0 30px;
}

.menu-item-has-children > a::after {
  font-family: "bootstrap-icons";
  content: "\F282";
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}

.offcanvas .menu-item-has-children > a::after {
  font-family: "bootstrap-icons";
  content: "\F285";
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}

.bg-body-tertiary {
  background-color: white;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ccc;
  height: 60px;
}

.scrolled.bg-body-tertiary {
  background-color: white;
}

.fixed-top {
  background-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

.navbar-toggler {
  font-size: 16px;
  padding: 0;
  border: none;
}

.navbar-toggler-icon:focus-visible {
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler:focus-visible {
  outline: none !important;
}

.align-items-center {
  gap: 20px;
}

.cart-custom-contents {
  color: inherit;
  line-height: 0;
  font-size: 20px;
}

a[aria-current="page"].cart-custom-contents {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  width: 45px;
  height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
}

.cart-contents-count {
  font-size: 0.65rem;
  padding: 0.25em 0.45em;
  font-weight: normal;
  line-height: 1;
}

.action-btn i {
  vertical-align: middle;
}

a[aria-current="page"].cart-custom-contents span {
  display: none !important;
}

.fixed-top .bi-cart,
.fixed-top .navbar-brand,
.fixed-top #menu-menu > li > a {
  color: white;
}

.scrolled.fixed-top .bi-cart,
.scrolled.fixed-top #menu-menu > li > a,
.scrolled.fixed-top .navbar-brand {
  color: black;
}

.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: 0;
}

.sub-menu .menu-item-has-children > a::after {
  content: "\F285";
  float: right;
  margin-top: 3px;
}

.offcanvas {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 300px;
  overflow: visible;
}

.offcanvas.is-expanded-lvl2 {
  width: 600px;
}

.offcanvas.is-expanded-lvl3 {
  width: 900px;
}

.offcanvas-body {
  display: flex;
  overflow-x: hidden;
}

.offcanvas-body .navbar-nav {
  min-width: 300px;
}

.offcanvas-body .sub-menu {
  position: absolute;
  top: 0;
  height: 100%;
  width: 300px;
  background: #fff;
  border: none;
  display: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.offcanvas-body > .navbar-nav > .menu-item-has-children > .sub-menu {
  left: 260px;
}

.offcanvas-body .sub-menu .sub-menu {
  left: 260px;
}

.navbar > .container,
.navbar > .container-fluid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.menu-back-step {
  display: none;
}

@media (max-width: 991px) {
  .menu-back-step {
    display: block;
  }

  .offcanvas {
    width: 100% !important;
    overflow-x: hidden;
    border: none !important;
  }

  .offcanvas-body {
    position: relative;
    display: block;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    overflow: visible;
  }

  .offcanvas-body .sub-menu {
    position: absolute;
    top: 0;
    left: 100% !important;
    width: 100%;
    min-height: 100%;
    background: #fff;
    z-index: 100;
    display: block;
    visibility: visible;
  }

  .offcanvas.is-expanded-lvl2 .offcanvas-body {
    transform: translateX(-100%);
  }
  .offcanvas.is-expanded-lvl2 .sub-menu {
    visibility: visible;
  }

  .offcanvas.is-expanded-lvl3 .offcanvas-body {
    transform: translateX(-200%);
  }

  .menu-back-step {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  .menu-back-step::before {
    display: inline-block;
    font-family: bootstrap-icons;
    content: "\F284";
    margin-right: 10px;
    vertical-align: middle;
  }

  .offcanvas .menu-item-has-children > a::after {
    float: right;
  }

  .offcanvas .menu-item {
    width: 100%;
  }

  .offcanvas .navbar-nav .menu-item a {
    display: block;
    width: 100%;
  }

  .offcanvas-body .navbar-nav {
    gap: 10px;
  }
}
