.header {
  position: fixed;
  top: 0;
  left: 0;
  height: 140px;
  width: 100vw;
  padding: 0 54px 0 60px;
  border-bottom: 40px solid #313538;
  z-index: 99;
  background-color: white;
  display: flex;
  align-items: center;
  font-family: PingFangTC;
}

.header__logo {
  width: 258px;
  height: 48px;
  background-image: url(../../images/logo.png);
  background-size: contain;
}

.header__categories {
  margin-top: 16px;
  margin-left: 0px;
}

.header__category {
  font-size: 20px;
  letter-spacing: 30px;
  padding-left: 39px;
  padding-right: 11px;
  position: relative;
  text-decoration: none;
  color: #3f3a3a;
}

.header__category--active {
  color: #8b572a;
}

.header__category:hover {
  color: #8b572a;
}

.header__category + .header__category::before {
  content: '|';
  position: absolute;
  left: 0;
  color: #3f3a3a;
}

/* Animation property */
.live-room-animation:hover {
  cursor: pointer;
  animation: hithere 1.1s ease infinite;
}

/* animation: wiggle 2s linear infinite; */

@keyframes hithere {
  30% {
    transform: scale(1.1);
  }
  40%,
  60% {
    transform: rotate(-10deg) scale(1.1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
  70% {
    transform: rotate(0deg) scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Keyframes  */
@keyframes wiggle {
  0%,
  7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%,
  100% {
    transform: rotateZ(0);
  }
}

.live-room-animation {
  font-size: 22px;
  letter-spacing: 5px;
  font-weight: bold;
  width: 140px;
  height: auto;
  position: relative;
  color: rgb(255, 0, 0);
  background-image: url(../../../images/yellow-background.png);
  border: none;
  font-family: Helvetica, Arial, Sans-serif;
  transform-origin: 50% 5em;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 140px auto;
  background-position: center;
  margin-bottom: 20px;
}

.header__search-input {
  height: 40px;
  width: 145px;
  border: none;
  outline: none;
  margin-left: auto;
  border-radius: 20px;
  padding: 6px 45px 6px 20px;
  border: solid 1px #979797;
  background-image: url(../../images/search.png);
  background-size: 44px;
  background-position: 95px center;
  background-repeat: no-repeat;
  font-size: 20px;
  line-height: 24px;
  color: #8b572a;
}

.header__search-icon {
  position: absolute;
  top: 2px;
  right: 8px;
}

.header__links {
  margin-left: 42px;
  display: flex;
}

.header__link + .header__link {
  margin-left: 42px;
}

.header__link-icon-cart,
.header__link-icon-profile {
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.header__link-icon-cart {
  background-image: url(../../images/cart.png);
  background-size: contain;
  position: relative;
}

.header__link-icon-cart-number {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background-color: #8b572a;
  color: white;
  border-radius: 50%;
  text-align: center;
}

.header__link-icon-profile {
  background-image: url(../../images/profile.png);
  background-size: contain;
}

.header__link-text {
  display: none;
}

@media screen and (max-width: 1279px) {
  .live-room-animation {
    font-size: 16px;
    letter-spacing: 0px;
    font-weight: normal;
    width: 70px;
    height: 70px;
    position: fixed;
    bottom: 60px;
    right: 30px;
    color: black;
    background-image: url(../../../images/tshirt.png);
    border: none;
    font-family: Helvetica, Arial, Sans-serif;
    transform-origin: 50% 5em;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 70px 70px;
    background-position: center;
  }

  .header {
    height: 52px;
    padding: 0;
    padding-right: 0;
    border: none;

    justify-content: center;
  }

  .live-room {
    display: none;
  }

  .header__logo {
    width: 129px;
    height: 24px;
  }

  .header__categories {
    margin-top: 0;
    margin-left: 0;

    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    background-color: #313538;
  }

  .header__category {
    font-size: 16px;
    letter-spacing: normal;
    padding: 0;
    text-align: center;
    color: #828282;
    line-height: 50px;
    flex-grow: 1;
  }

  .header__category--active {
    color: white;
  }

  .header__category:hover {
    color: white;
  }

  .header__category + .header__category::before {
    color: #828282;
  }

  .header__search-input {
    width: 0;
    border: none;
    position: fixed;
    right: 16px;
    background-size: 32px;
    background-position: right center;
  }

  .header__search-input:focus {
    width: calc(100% - 20px);
    border: solid 1px #979797;
  }

  .header__links {
    width: 100%;
    margin-left: 0;
    height: 60px;
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #313538;
  }

  .header__link {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .header__link + .header__link {
    margin-left: 0;
  }

  .header__link + .header__link::before {
    content: '';
    position: absolute;
    left: 0;
    width: 1px;
    height: 24px;
    margin: 10px 51px 10px 0;
    background-color: #828282;
  }

  .header__link-icon-cart {
    background-image: url(../../images/cart-mobile.png);
  }

  .header__link-icon-profile {
    background-image: url(../../images/profile-mobile.png);
  }

  .header__link-text {
    display: block;
    color: white;
  }
}
