
/* SUMATE product category sidebar */
.ly_product_list_2 .products_category_box {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  max-height: 72vh;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid #dce9e9;
  border-top: 3px solid #007a82;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 40, 44, 0.06);
}

.ly_product_list_2 .products_category_wrapper .products_category_box .top_title {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 56px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid #dce9e9;
  background: #f3f8f8;
  color: #17282c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.ly_product_list_2 .products_category_wrapper .products_category_box .category_box {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 10px 12px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #b8d5d7 transparent;
  scrollbar-width: thin;
}

.ly_product_list_2 .products_category_box .category_box::-webkit-scrollbar {
  width: 6px;
}

.ly_product_list_2 .products_category_box .category_box::-webkit-scrollbar-track {
  background: transparent;
}

.ly_product_list_2 .products_category_box .category_box::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b8d5d7;
}

.ly_product_list_2 .products_category_box .category_box .one_item {
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #edf2f2;
}

.ly_product_list_2 .products_category_box .category_box .one_item:last-child {
  border-bottom: 0;
}

.ly_product_list_2 .products_category_box .category_box .item_title {
  margin: 0;
}

.ly_product_list_2 .products_category_box .category_box .one_title {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 0 14px 0 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.ly_product_list_2 .products_category_box .category_box .one_title:hover,
.ly_product_list_2 .products_category_box .category_box .one_title:has(> a.cate_item.cur) {
  background: #eaf5f5;
}

body .ly_product_list_2 .products_category_box .category_box .one_title > a.cate_item {
  display: block;
  order: 1;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-radius: 4px;
  background: transparent;
  color: #17282c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body .ly_product_list_2 .products_category_box .category_box .one_title > a.cate_item:hover,
body .ly_product_list_2 .products_category_box .category_box .one_title > a.cate_item.cur {
  background: transparent;
  color: #007a82;
}

.ly_product_list_2 .products_category_wrapper .products_category_box .category_box .one_title > i {
  position: relative !important;
  order: 2 !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0 0 0 auto !important;
  border: 1px solid #b8d5d7;
  border-radius: 4px;
  background: #ffffff;
  color: transparent;
  font-size: 0;
  transform: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ly_product_list_2 .products_category_wrapper .products_category_box .category_box .one_title > i:hover {
  border-color: #007a82;
  background: #eaf5f5;
}

.ly_product_list_2 .products_category_wrapper .products_category_box .category_box .one_title > i::before,
.ly_product_list_2 .products_category_wrapper .products_category_box .category_box .one_title > i::after {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #007a82;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ly_product_list_2 .products_category_wrapper .products_category_box .category_box .one_title > i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Expanded state: change plus to minus */
.ly_product_list_2 .products_category_wrapper .products_category_box .category_box .one_title > i.cur::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.ly_product_list_2 .products_category_box .category_box .next_box {
  width: 100%;
  margin: 2px 0 10px;
  padding: 0 0 0 10px;
}

.ly_product_list_2 .products_category_box .category_box .sub_hide .next_box {
  display: none;
}

.ly_product_list_2 .products_category_box .category_box .sec_item {
  margin: 1px 0;
}

body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px 12px 8px 18px;
  border-radius: 4px;
  background: transparent;
  color: #526167;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8c4c6;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item:hover,
body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item.cur {
  padding-left: 22px;
  background: #f3f8f8;
  color: #007a82;
}

body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item:hover::before,
body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item.cur::before {
  background: #007a82;
  transform: translateY(-50%) scale(1.2);
}

/* Ueeshop places brand names inside h2 elements */
.ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item h2 {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
}

.ly_product_list_2 .products_category_box .category_box a.cate_item:focus-visible {
  outline: 2px solid #007a82;
  outline-offset: 2px;
}

/* Give the brand directory enough room on desktop */
@media (min-width: 1001px) {
  .ly_product_list_2 .products_category_wrapper {
    position: sticky;
    top: max(110px, 14vh);
    transform: none;
    align-self: flex-start;
    flex: 0 0 21%;
    width: 21%;
    margin-right: 2.5%;
    z-index: 5;
  }

  .ly_product_list_2 .list_wrapper {
    flex: 1 1 0;
    width: 76.5%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .ly_product_list_2 .products_category_wrapper {
    position: static;
    top: auto;
    transform: none;
  }

  .ly_product_list_2 .products_category_box {
    display: block;
    max-height: none;
    margin-bottom: 22px;
    box-shadow: none;
  }

  .ly_product_list_2 .products_category_wrapper .products_category_box .top_title {
    padding: 0 16px;
    font-size: 17px;
  }

  .ly_product_list_2 .products_category_wrapper .products_category_box .category_box {
    max-height: 380px;
    padding: 8px 10px 12px;
  }

  body .ly_product_list_2 .products_category_box .category_box .one_title > a.cate_item {
    font-size: 14px;
    white-space: normal;
  }

  body .ly_product_list_2 .products_category_box .category_box .sec_title > a.cate_item {
    font-size: 14px;
  }
}
