@charset "UTF-8";
.category-wrapper,
.product-wrapper {
  --item-hover-color: #fff;
  --item-hover-bg: var(--primary-default);
  --topic-hover-color: var(--color-gray-800);
  --topic-hover-bg: var(--color-gray-050);
}

a {
  text-decoration: none;
}
ul.ACCORDION {
  opacity: 1;
  margin-left: 0;
}
ul.ACCORDION ul {
  margin-left: 1em;
}
ul.ACCORDION li {
  list-style: none;
}
ul.ACCORDION li:last-child {
  border: none;
}
ul.ACCORDION a {
  display: block;
}

ul.ACCORDION a {
  -webkit-transition: all 300ms ease-out;
  -moz-transition: all 300ms ease-out;
  -ms-transition: all 300ms ease-out;
  -o-transition: all 300ms ease-out;
  transition: all 300ms ease-out;
}
ul.ACCORDION.transit {
  border: 1px solid #ccc;
  border-top: none;
  background: #fff;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
}
ul.ACCORDION.transit ul {
  margin-left: 0;
  padding: 0;
}
ul.ACCORDION.transit ul > li {
  font-size: 17px;
  border-bottom: none;
}
ul.ACCORDION.transit li.ACCORDION-node {
  position: relative;
}
.ACCORDION a {
  position: relative;
  display: block;
  font-size: 15px;
  color: #000;
  text-decoration: none;
  padding: 10px 15px;
  padding-left: 35px;
  transition: all 300ms ease-out;
}
.ACCORDION .ACCORDION-node > a {
  padding-right: 30px;
}
.ACCORDION .ACCORDION-node > a::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid;
  border-color: transparent #6c6c6c #6c6c6c transparent;
  background-color: transparent;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%) rotate(-45deg);
  font-size: 18px;
  color: #bfbfbf;
  transition: all 300ms ease-out;
}
.ACCORDION .ACCORDION-node.ACCORDION-open > a::after {
  transform: translate(3px, -74%) rotate(45deg);
}

ul.ACCORDION.transit ul > li:first-child {
  margin-top: 1px;
}

.item2 a:hover,
.item2 a:active {
  background: #f5f5f5;
}

ul.ACCORDION li:last-child:hover {
  border-radius: 0 0 5px 5px;
}
ul.ACCORDION.transit li:last-child > a:hover {
  border-radius: 0 0 5px 5px;
}

ul.ACCORDION.transit li.ACCORDION-node:last-child > ul > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
ul.ACCORDION.transit a {
  padding: 0px 20px 0px 2.6em;
  color: #636363;
  font-size: 15px;
  line-height: 44px;
  height: 44px;
  font-family: "微軟正黑體", Arial;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.5s;
}
.item1 {
  position: relative;
}
.item1:after {
  content: "";
  width: 3px;
  height: 14px;
  display: block;
  background-color: var(--color-gray-800);
  position: absolute;
  left: 10px;
  top: 15px;
}
.item1.ACCORDION-open:after {
  background-color: #fff;
}
ul.ACCORDION.transit li li > a {
  padding-left: 2.5em;
  position: relative;
}
ul.ACCORDION.transit li li li > a {
  padding-left: 3.5em;
}
ul.ACCORDION.transit li li li li > a {
  padding-left: 3.2em;
}
ul.ACCORDION.transit li li li li li > a {
  padding-left: 4em;
}
ul.ACCORDION.transit li li li > a::before {
  content: "";
  width: 3px;
  height: 10px;
  display: block;
  background-color: #000;
  position: absolute;
  left: 40px;
  top: 17px;
}
ul.ACCORDION li.item1 {
  position: relative;
  border-top: solid 1px #dedede;
}
ul.ACCORDION li.item1:nth-child(1) {
  border-top: none;
}
ul.ACCORDION li.item1:last-child {
  border-bottom: solid 1px #dedede;
}

/* ~樓層 第一層 選取顏色更改 ------ start */

/* 第一層選單 多樓層 toppic(active) 樣式 */
ul.ACCORDION.transit li.ACCORDIONopen > a:first-child {
  background-color: var(--color-gray-700);
  color: var(--item-hover-color);
}
ul.ACCORDION.transit li.ACCORDIONopen > a:first-child::after,
ul.ACCORDION.transit li.ACCORDION-open > a:first-child::after {
  border-color: transparent var(--item-hover-color) var(--item-hover-color)
    transparent;
}

ul.ACCORDION.transit li.ACCORDIONopen.item1:after {
  background-color: var(--item-hover-color);
}

ul.ACCORDION.transit li.ACCORDION-open > a {
  background-color: var(--item-hover-bg);
  color: var(--item-hover-color);
}

/* 第一層選單 無樓層 toppic(active) 樣式 */
ul.ACCORDION.transit li.topic a {
  background-color: var(--item-hover-bg);
  color: var(--item-hover-color);
}
ul.ACCORDION.transit > li.topic::after {
  background-color: var(--item-hover-color);
}

/* 觸碰到第一層選單 hover樣式 */
ul.ACCORDION.transit > li > a:hover {
  background-color: var(--item-hover-bg);
  color: var(--item-hover-color);
}
ul.ACCORDION.transit > li:hover::after {
  background-color: var(--item-hover-color);
}
ul.ACCORDION.transit > li:hover a::after {
  border-color: transparent var(--item-hover-color) var(--item-hover-color)
    transparent;
}

/* ~樓層 第一層 選取顏色更改 ------ end */

/* ~樓層 選取的項目item 顏色更改 ----start */
ul.ACCORDION.transit li.ACCORDIONopen .topic a {
  background-color: var(--topic-hover-bg);
  color: var(--topic-hover-color);
  border-left: 2px solid var(--primary-default);
}
ul.ACCORDION.transit li li li.topic > a::before {
  background-color: #8c7e6c;
}

.ACCORDION_MENU_1 a {
  transition: none !important;
}
.ACCORDION_MENU_1 a:hover {
  background-color: var(--topic-hover-bg);
  color: var(--topic-hover-color);
  border-left: 2px solid var(--primary-default);
}

/* .ACCORDION .ACCORDION-node.ACCORDIONopen li.ACCORDIONopen > a::after {
  border-color: transparent #8c7e6c #8c7e6c transparent;
}
.ACCORDION .ACCORDION-node.ACCORDIONopen > a::after {
  border-color: transparent #fff #fff transparent;
}
.ACCORDION .ACCORDION-node.ACCORDIONopen li.ACCORDIONopen > a {
  color: #8c7e6c;
  background: #f5f5f5;
} */

/* ~樓層 選取的項目item 顏色更改 ----end */
