.sidebar {
  width: 15vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
  text-align: center;
  font-size: 1.1em;
  background-color: #fff;
  z-index: 9999;
}
.sidebar__button {
  text-transform: uppercase;
  padding: 1.5vh 0;
  display: block;
  background-color: #fff;
}
.sidebar__button.sidebar__link:hover,
.sidebar__button.sidebar__with-sub:hover,
.sidebar__button--selected {
  color: #d29723;
}
.sidebar .sidebar__button:not(:last-child) {
  border-bottom: 1px solid #ddd;
}
.sidebar__brand img {
  width: 13vw;
  height: auto;
}
.sidebar__brand form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar__brand input[type='submit'] {
  border: none;
  background-color: transparent;
  font-size: 1em;
  font-family: inherit;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1vh 0.5vw;
}
.sidebar__brand input[type='submit']:active,
.sidebar__brand input[type='submit']:focus {
  outline: none;
}
.sidebar__brand input[type='submit']:hover {
  text-decoration: underline;
}
#changeLangEn {
  color: #d29723;
}
.sidebar__with-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}
.sidebar__with-sub img {
  width: 0.5vw;
  margin-left: 0.5vw;
}
.sidebar__with-sub__arrow--gold {
  display: none;
}
.sidebar__with-sub:hover .sidebar__with-sub__arrow--dark {
  display: none;
}
.sidebar__with-sub:hover .sidebar__with-sub__arrow--gold {
  display: inline-block;
}
.sidebar__sub-menu {
  position: absolute;
  z-index: 9999;
  left: 100%;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
  display: none;
  cursor: pointer;
}
.sidebar__sub-menu--open {
  display: block;
}
.sidebar__sub-menu > .sidebar__button {
  border-left: 1px solid #ddd;
}
.sidebar__sub-menu > .sidebar__button:hover {
  background-color: rgba(210, 151, 35, 0.302);
}
.sidebar__cart {
  position: relative;
  padding: 3vh 0;
  padding-top: 4vh;
}
.sidebar__cart--mobile {
  display: none;
}
.sidebar__cart img {
  width: 2vw;
  height: auto;
}
.sidebar__cart__digit {
  position: absolute;
  top: 2vh;
  left: 50%;
  font-size: 0.9em;
  color: #f6f6f6;
  font-weight: 500;
  border-radius: 100%;
  background-color: #d29723;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25vw;
  height: 1.25vw;
}
.sidebar__connect {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.sidebar__connect__user {
  width: 1vw;
  height: auto;
  margin-right: 0.5vw;
}
.sidebar__connect__arrow {
  width: 0.5vw;
  height: auto;
  margin-left: 0.5vw;
}
.sidebar__register {
  padding: 2vh 0;
}
.sidebar__register span {
  display: inline-block;
  padding: 1vh 1.5vw;
  background-color: #d29723;
  color: #fff;
  border-radius: 2rem;
}

.sidebar__toggle {
  width: 4vw;
  height: 4vw;
  background-color: #d29723;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.sidebar__toggle img {
  width: 70%;
  height: auto;
}
.sidebar--open {
  width: 100vw !important;
  height: 100vh !important;
}
.sidebar__toggle--none {
  display: none !important;
}
.sidebar__connected {
  align-items: center;
  justify-content: center;
  width: 100%;
}
.sidebar__connected input[type='submit'] {
  font-size: inherit;
  font-family: inherit;
  border: none;
  text-transform: uppercase;
  display: inline-block;
  padding: 1vh 1.5vw;
  background-color: #d29723;
  color: #fff;
  border-radius: 2rem;
  cursor: pointer;
}
.sidebar__connected input[type='submit']:focus,
.sidebar__connected input[type='submit']:active {
  outline: none;
}
.sidebar__searchbar {
  width: calc(100% - 2vw);
  height: auto;
  margin: 0 auto;
  margin-top: 2vh;
  position: relative;
}
.sidebar__searchbar__input {
  width: 100%;
  height: max-content;
  border: 1px solid #a4a4a4;
  border-radius: 0.25rem;
  font-size: 1em;
  font-family: inherit;
  color: #111;
  padding: 1vh 0;
  padding-left: 0.5vw;
  padding-right: 25%;
  background-color: #f6f6f6;
}
.sidebar__searchbar__input:focus,
.sidebar__searchbar__input:active {
  outline: none;
  border: 1px solid #d29723;
}
.sidebar__searchbar__input::placeholder {
  color: #a4a4a4;
}
.sidebar__searchbar__submit {
  width: 25%;
  height: 100%;
  border: none;
  background: transparent;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sidebar__searchbar__submit > img {
  width: 50%;
  height: auto;
}
.sidebar__searchbar__submit:focus,
.sidebar__searchbar__submit:active {
  outline: none;
}
.sidebar__branding {
  display: grid;
  width: 100%;
  height: auto;
  margin-top: auto;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: .5vh 1vw;
}
.sidebar__branding > img {
  width: 100%;
  height: auto;
}
.sidebar__branding > img.sidebar__branding--reduce {
  width: 35%;
  margin-left: auto;
}

@media only screen and (max-width: 1024px) {
  .sidebar {
    width: 0;
    height: 0;
    overflow: hidden;
    box-shadow: none;
    transition: width 500ms ease-out, height 500ms ease-out;
    font-size: 1.4em;
  }
  .sidebar__toggle {
    display: flex;
  }
  .sidebar__button {
    padding: 2vh 0;
    width: max-content;
    margin: 0 auto;
  }
  .sidebar__button.sidebar__link:hover,
  .sidebar__button.sidebar__with-sub:hover,
  .sidebar__button--selected {
    color: #111;
  }
  .sidebar__brand img {
    width: 15vw;
    height: auto;
  }
  .sidebar__brand input[type='submit']:hover {
    text-decoration: none;
  }
  .sidebar__with-sub {
    width: max-content;
    flex-direction: column;
  }
  .sidebar__with-sub img {
    width: 1vw;
    margin-left: 1vw;
  }
  .sidebar__with-sub .sidebar__with-sub__arrow--dark,
  .sidebar__with-sub .sidebar__with-sub__arrow--gold,
  .sidebar__with-sub:hover .sidebar__with-sub__arrow--dark,
  .sidebar__with-sub:hover .sidebar__with-sub__arrow--gold {
    display: none;
  }
  .sidebar__cart {
    padding-top: 4vh;
  }
  .sidebar__cart {
    display: none;
  }
  .sidebar__cart--mobile {
    display: block;
  }
  .sidebar__cart img {
    width: 3vw;
  }
  .sidebar__cart__digit {
    width: 1.5vw;
    height: 1.5vw;
  }
  .sidebar__connect {
    width: max-content;
  }
  .sidebar__sub-menu {
    position: initial;
    width: 100%;
    box-shadow: none;
    display: none;
  }
  .sidebar__sub-menu--open {
    display: block;
  }
  .sidebar__sub-menu > .sidebar__button {
    border-left: none;
  }
  .sidebar__sub-menu > .sidebar__button:hover {
    background-color: rgba(210, 151, 35, 0.302);
  }
  .sidebar__searchbar {
    width: 20%;
    margin: 0 auto;
    margin-top: 1vh;
  }
  .sidebar__searchbar__input {
    color: #111;
    padding-left: 2vw;
    padding-right: 25%;
  }
  .sidebar__branding {
    width: 25%;
    margin: 0 auto;
  }
}
@media only screen and (max-width: 768px) {
  .sidebar {
    width: 0;
    height: 0;
    overflow: hidden;
    box-shadow: none;
    transition: width 500ms ease-out, height 500ms ease-out;
    font-size: 1.2em;
    padding-top: 3vh;
  }
  .sidebar__toggle {
    width: 7vw;
    height: 7vw;
  }
  .sidebar__button {
    padding: 1.5vh 0;
  }
  .sidebar__brand img {
    width: 30vw;
    height: auto;
  }
  .sidebar__brand input[type='submit']:hover {
    text-decoration: none;
  }
  .sidebar__with-sub {
    width: max-content;
  }
  .sidebar__with-sub img {
    width: 1.5vw;
    margin-left: 1.5vw;
  }
  .sidebar__cart {
    padding-top: 4vh;
  }
  .sidebar__cart img {
    width: 5vw;
  }
  .sidebar__cart__digit {
    width: 3vw;
    height: 3vw;
  }
  .sidebar__connect {
    width: max-content;
  }
  .sidebar__connect__user {
    width: 2vw;
    margin-right: 1.5vw;
  }
  .sidebar__connect__arrow {
    width: 1.5vw;
    margin-left: 1.5vw;
  }
  .sidebar__searchbar {
    width: 30%;
  }
  .sidebar__branding {
    width: 40%;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 420px) {
  .sidebar__toggle {
    width: 8vw;
    height: 8vw;
  }
}
