/* ==========================================================
   ZELYN SHOP MULTI-LEVEL MENU ONLY
   Shop -> Category -> Subcategory -> Products
   Does not alter global fonts / header / site layout.
   ========================================================== */

.z-shop-root {
  position: relative;
}

.z-shop-main-menu,
.z-shop-child-menu {
  border: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  padding: 8px 0;
  min-width: 240px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.z-shop-main-menu {
  margin-top: 0;
}

.z-shop-main-menu .dropdown-item,
.z-shop-child-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 18px;
  color: #333;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
}

.z-shop-main-menu .dropdown-item:hover,
.z-shop-main-menu .dropdown-item:focus,
.z-shop-child-menu .dropdown-item:hover,
.z-shop-child-menu .dropdown-item:focus {
  color: #b58150;
  background: #f8f6f2;
}

.z-shop-all-products,
.z-shop-view-all {
  font-weight: 600 !important;
}

.z-shop-submenu {
  position: relative;
}

.z-shop-submenu > .z-shop-child-menu {
  display: none;
  position: absolute;
  top: -8px;
  left: 100%;
  margin-left: 1px;
  z-index: 1055;
}

.z-shop-submenu:hover > .z-shop-child-menu,
.z-shop-submenu:focus-within > .z-shop-child-menu {
  display: block;
}

.z-shop-arrow {
  font-size: 9px;
  color: #999;
}

.z-shop-submenu:hover > .z-shop-category-link .z-shop-arrow {
  color: #b58150;
}

.z-shop-products-title {
  padding: 7px 18px 4px;
  color: #aaa;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.z-shop-product-link {
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: .4px !important;
}

.z-shop-main-menu .dropdown-divider,
.z-shop-child-menu .dropdown-divider {
  margin: 6px 0;
  border-top-color: #ededed;
}

/* Prevent deep menus from falling outside the viewport */
@media (min-width: 992px) {
  .z-shop-main-menu {
    left: 50% !important;
    transform: translateX(-50%);
  }

  .z-shop-child-menu {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Mobile:
   Bootstrap collapse stays intact.
   Submenus display below their parent instead of off-screen. */
@media (max-width: 991.98px) {
  .z-shop-main-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .z-shop-submenu > .z-shop-child-menu {
    display: block;
    position: static;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding-left: 12px;
    box-shadow: none;
    border: 0;
    border-top: 1px solid #f1f1f1;
  }

  .z-shop-arrow {
    display: none;
  }

  .z-shop-main-menu .dropdown-item,
  .z-shop-child-menu .dropdown-item {
    white-space: normal;
  }
}
