/* header ---start */
.header {
  background: #fff;
}

.header__container {
  max-width: 1320px;
  margin: auto;
}

.header__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  width: 202px;
  height: 93px;
  background-image: url("/assets/img/header-logo.jpg");
}

.search {
  position: relative;
}

.search__input {
  width: 255px;
  height: 48px;
  padding: 12px 20px 12px;
  border-radius: 4px;
  border: solid 1px #888;
}

.search__icon {
  font-size: 18px;
  color: #888;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.signin {
  display: inline-block;
  padding: 12px 8px 12px 24px;
}

.signup {
  display: inline-block;
  padding: 12px 24px 12px 8px;
}

.header-cart {
  position: relative;
  bottom: 0;
  width: 37px;
  height: 37px;
  background-image: url("/assets/img/cart.svg");
  cursor: pointer;
}

.header-cart__count {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  vertical-align: middle;
  background-color: #ffad4f;
  border-radius: 100%;
  color: #111;
  position: absolute;
  top: -16px;
  right: -8px;
}

.toggle-btn {
  display: none;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .header {
    background: var(--black-100);
    color: white;
  }

  .header__container {
    margin-left: 12px;
  }

  .header__logo {
    width: 91px;
    height: 32px;
    background-image: url("/assets/img/header-logo-w.png");
  }

  .search {
    display: none;
  }

  .signin {
    color: #fff;
  }

  .signup {
    color: #fff;
  }

  .toggle-btn {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin-left: 20px;
    vertical-align: middle;
    text-align: center;
    background-color: #ffad4f;
    font-size: 28px;
    cursor: pointer;
  }

  .header-cart__count {
    width: 23px;
    height: 23px;
    line-height: 23px;
    top: -10px;
    right: -10px;
  }

  .header-cart {
    width: 25px;
    height: 25px;
    background-image: url("/assets/img/cart-w.svg");
    bottom: 12px;
    cursor: pointer;
  }
}

/*  header-nav */

.header-nav {
  background: var(--black-100);
  color: white;
  position: relative;
}

@media (max-width: 1200px) {
  .header-nav {
    display: none;
  }
}

.header-nav__container {
  display: flex;
}

.header-nav__item::after {
  content: "";
  border-left: solid 1px rgba(255, 255, 255, 0.4);
}

.header-nav__item:last-child::after {
  content: "";
  border-left: none;
}

.header-nav__link {
  display: inline-block;
  padding: 24px;
  text-decoration: none;
  color: white;
}

.header-nav__link:hover {
  background-color: #ffad4f;
  color: #111;
  text-decoration: none;
}

.header-nav__toggle {
  cursor: pointer;
  display: inline-block;
  padding: 24px;
  text-decoration: none;
  color: white;
}

.header-nav__toggle:hover {
  background-color: #ffad4f;
  color: #111;
  text-decoration: none;
}

.header-nav__toggle--active {
  background-color: #ffad4f;
  color: #111;
  text-decoration: none;
}

/* menu */
.menu__brand {
  display: none;
}

.menu__tool {
  display: none;
}

.menu--active {
  background: #eee;
  padding: 40px 0;
  display: block;
  position: absolute;
  width: 100%;
}

@media (max-width: 1200px) {
  .menu__tool,
  .menu__brand,
  .menu--active {
    display: none;
  }
}

.menu__tool--block + .menu__tool--block {
  margin-top: 48px;
}

.menu__tool--title {
  display: inline-block;
  margin-bottom: 30px;
  font-family: NotoSansCJKtc;
  font-size: 20px;
  font-weight: bold;
  color: #111;
  text-decoration: none;
}

.menu__tool--item {
  display: inline-block;
  margin-bottom: 10px;
  color: #111;
  text-decoration: none;
}

.menu__brand--item {
  display: inline-block;
  margin-bottom: 10px;
  color: #111;
  text-decoration: none;
}

.menu__brand--item:hover {
  text-decoration: underline;
}
/* header ---end */

/* sidebar -start */

.body--fixed {
  height: 100vh;
  overflow: hidden;
}

.sidebar,
.sidebar__mask {
  display: none;
}

.sidebar__header {
  padding: 40px 20px 8px 20px;
  font-size: 18px;
}

.sidebar__photo {
  width: 56px;
  height: 56px;
  border-radius: 100%;
  margin-right: 8px;
  object-fit: cover;
  border: solid 1px #ddd;
}

.m-search {
  width: 100%;
  position: relative;
  margin: 24px 0 8px 0;
}

.m-search__input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 4px;
  border: solid 1px #888;
}

.m-search__icon {
  cursor: pointer;
  position: absolute;
  font-size: 18px;
  top: 12px;
  right: 20px;
  color: #888;
}

.m-dropdown-box {
  cursor: pointer;
  width: 100%;
  padding: 12px 20px;
  border-radius: 4px;
  border: solid 1px #888;
  position: relative;
  margin: 8px 0;
}

.m-dropdown-box__icon {
  width: 18px;
  width: 12px;
  object-fit: contain;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar__nav-body {
  display: block;
  padding-bottom: 56px;
  font-size: 18px;
}

.sidebar__nav-item {
  display: block;
  padding: 24px 20px;
}

.sidebar__nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.sidebar__nav-toggle--active {
  color: #e47d06;
}

.sidebar__brand {
  padding: 24px;
  display: none;
}

.sidebar__brand--active {
  display: block;
}

.sidebar__tool {
  padding: 24px;
  display: none;
}

.sidebar__tool--active {
  display: block;
}

.sidebar__sub-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.sidebar__sub-group + .sidebar__sub-group {
  margin-top: 40px;
}

.sidebar__sub-item + .sidebar__sub-item {
  margin-top: 16px;
}

.sidebar__angle {
  width: 12px;
  height: 18px;
  object-fit: contain;
  font-size: 18px;
  background-image: url("/assets/img/angle-down-solid.svg");
}

.sidebar__angle--up {
  background-image: url("/assets/img/angle-up-solid.svg");
}

.sidebar__nav-item + .sidebar__nav-item {
  border-top: solid 1px #ddd;
}

@media (max-width: 1200px) {
  .sidebar--active {
    display: block;
    width: 260px;
    height: 100vh;
    top: 0;
    right: 0;
    float: right;
    overflow: scroll;
    background-color: white;
    -webkit-transform: translateZ(0);
    visibility: visible;
    -webkit-backface-visibility: hidden;
    z-index: 99;
  }

  .sidebar__mask--active {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 90;
  }
}

.sidebar__nav-title {
  padding: 3px 20px;
  font-family: NotoSansCJKtc;
  font-size: 14px;
  color: #fff;
  background: #000;
  display: none;
}

.sidebar__nav-title--logined {
  display: block;
}

.sidebar__member {
  margin-top: 24px;
  display: none;
}

.sidebar__member--logined {
  display: block;
}
