.menu {
  height: 100%;
  left: 0;
  max-width: 650px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--modal-index);
}

.menu__wrapper {
  background-color: #fff;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.menu__head {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: justify;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  flex-grow: 0;
  -ms-flex-pack: justify;

  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.menu__title {
  color: var(--gray--950);
  font-size: var(--desktop--text-4xl);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .menu .menu__title {
    font-size: var(--desktop--text-3xl);
  }
}

@media (min-width: 768px) {
  .menu__title {
    font-size: 36px;
  }
}

.cart__title {
  color: #7a8cb7;
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  text-align: left;
  text-transform: capitalize;
}

.menu__close-btn {
  align-items: center;
  -webkit-box-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  font-size: 16px;
  font-weight: 400;

  gap: 4px;
  height: 100%;
  line-height: 1;
  text-transform: uppercase;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.menu__close-btn svg {
  height: 18px;
  width: 18px;
}
.menu__close-btn:hover {
  text-decoration: underline;
}

.menu__body {
  border-top: 1px solid #e4ecf7;
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  gap: 16px;
  /* justify-content: space-between; */
  padding-top: 16px;
}
@media (min-width: 768px) {
  .menu__body {
    padding-top: 32px;
  }
}

.menu__inner {
  display: -ms-grid;
  display: grid;
  gap: 16px;

  grid-template-columns: repeat(2, minmax(0, auto));
  padding-bottom: 24px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Right column on menu */
.menu__column {
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;

  gap: 24px;
}

.menu__column--right {
  gap: 12px;
}
@media (min-width: 768px) {
  .menu__column--right {
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .menu__column--right {
    gap: 12px;
  }
}

.menu__column--right .menu__link {
  font-size: var(--desktop--text-lg);
  line-height: 1.1;
}
@media (min-width: 768px) {
  .menu__column--right .menu__link {
    font-size: var(--desktop--text-xl);
    line-height: 1.1;
  }
}

.menu__item {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: justify;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: justify;

  gap: 8px;
  justify-content: space-between;
}

.js-menuToggler {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .js-menuToggler {
    display: none;
  }
}

.js-menuToggler .icon-plus {
  display: none;
}

.js-menuToggler.active .icon-minus {
  display: none;
}
.js-menuToggler.active .icon-plus {
  display: block;
}

.menu__links {
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;

  gap: 10px;
}
@media (min-width: 768px) {
  .menu__links {
    gap: 16px;
  }
}

.menu__links-wrapper {
  align-items: flex-start;
  display: flex;
  flex-direction: column;

  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}
.menu__links-inner {
  display: none;
}
@media (min-width: 768px) {
  .menu__links-inner {
    display: grid;
    gap: 12px;

    grid-template-columns: repeat(2, 1fr);
    padding-left: 16px;
  }
}

.menu__link-sm {
  color: var(--gray--500);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  transition: 0.2s;
}
.menu__link-sm:hover {
  color: var(--black);
  text-decoration: underline;
}

.menu__link {
  color: var(--gray--950);
  font-size: var(--desktop--text-xl);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
  width: max-content;
}
.menu__column--right .menu__link {
  color: var(--gray--700);
}
@media (min-width: 768px) {
  .menu__link {
    font-size: var(--desktop--text-2xl);
    line-height: 1.1;
  }
}

.menu__link:hover {
  color: var(--black);
  text-decoration: underline;
}

.menu__column--right .menu__link--big,
.menu__links .menu__link--big {
  color: var(--gray--950);
  font-size: var(--desktop--text-2xl);
  font-weight: 600;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .menu__column--right .menu__link--big,
  .menu__links .menu__link--big {
    font-size: var(--desktop--text-3xl);
    line-height: 1.1;
  }
}

.menu__link--custom {
  color: var(--accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .menu__link--custom {
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
  }
}
.menu__link--custom:hover {
  color: var(--accent);
}

.menu__languages {
  align-items: center;
  border-bottom: 1px solid #e4ecf7;
  border-top: 1px solid #e4ecf7;
  display: flex;

  gap: 24px;
  justify-content: center;
  padding-bottom: 16px;
  padding-top: 16px;
}
@media (min-width: 768px) {
  .menu__languages {
    padding-bottom: 24px;
    padding-top: 24px;
  }
}

.menu__language {
  align-items: center;
  border: 1px solid var(--black);
  border-radius: 5px;
  color: var(--black);
  display: flex;
  justify-content: center;
  padding: 8px 16px;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.3s;
}
.menu__language:hover {
  background-color: var(--black);
  color: #fff;
}

.menu__language.active {
  background-color: var(--black);
  color: #fff;
}

.menu__footer {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  padding: 16px;
  padding-bottom: 80px;
}
@media (min-width: 768px) {
  .menu__footer {
    padding: 32px 40px 24px;
  }
}

.menu__footer-title {
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .menu__footer-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
  }
}

.menu__footer-text {
  display: none;
}
@media (min-width: 768px) {
  .menu__footer-text {
    color: #505780;
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 40px;
    text-align: center;
  }
}

.menu__footer-wrapper {
  display: grid;
  gap: 16px;

  grid-template-columns: repeat(2, 1fr);
}
.menu__footer-inner {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
}
@media (min-width: 768px) {
  .menu__footer-inner {
    flex-direction: column;
  }
}

.menu__socials {
  align-items: center;
  display: flex;

  gap: 16px;
  justify-content: center;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .menu__socials {
    gap: 32px;
    margin-bottom: 16px;
    margin-top: 0;
  }
}
.menu__socials a {
  align-items: center;
  display: flex;
  height: 24px;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
  width: 24px;
}
.menu__socials a:hover {
  opacity: 0.6;
}
.menu__socials a img {
  display: block;
  height: auto;
  width: 100%;
}

.menu__footer-phones {
  align-items: center;
  display: flex;
  flex-direction: column;

  gap: 4px;
  justify-content: center;
}

.menu__footer-phones a {
  color: var(--black);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  transition: 0.3s;
}
.menu__footer-phones a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .menu__footer-phones a {
    font-size: 18px;
    line-height: 24px;
  }
}

.menu__footer-phones a span {
  color: #6f6f84;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}
@media (min-width: 768px) {
  .menu__footer-phones a span {
    display: none;
  }
}

.menu__footer-phones > span {
  display: none;
}
@media (min-width: 768px) {
  .menu__footer-phones > span {
    color: #6f6f84;
    display: inline;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
  }
}

.contacts {
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  color: var(--black);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}
.contacts a {
  color: var(--black);
  text-decoration: none;
}
.contacts a:hover {
  text-decoration: underline;
}

.menu__contacts {
  display: none;
}
@media (min-width: 768px) {
  .menu__contacts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

.socials {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -webkit-box-pack: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;

  gap: 16px;
  justify-content: center;
}

.socials__title {
  color: var(--gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.socials__list {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;

  gap: 24px;
  justify-content: center;
}
@media (min-width: 768px) {
  .socials__list {
    display: -ms-grid;
    display: grid;
    gap: 10px 24px;

    -ms-grid-columns: 1fr 24px 1fr 24px 1fr;
    grid-template-columns: repeat(3, 1fr);
  }
}

.socials__link {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-decoration: none;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.socials__link:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.overlay {
  background-color: rgba(0, 0, 0, 0.8);
  bottom: 0;
  height: 100vh;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100vw;
  /* z-index: 60; */
  z-index: var(--mobile-menu-overlay-z-index);
}

.header__inner-mobile {
  align-items: center;
  -webkit-box-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: justify;

  gap: 8px;
  justify-content: space-between;
  webkit-box-pack: justify;
  width: 100%;
}

.cart {
  height: calc(100dvh - var(--bottom-panel-height));
  max-width: 850px;
  position: fixed;
  right: 0;
  bottom: var(--bottom-panel-height);
  width: 100%;
  z-index: var(--mobile-menu-z-index);
  max-width: calc(100vw - 16px);
}
@media (max-width: 400px) {.cart {max-width: 100%;}}
@media (min-width: 992px) {
  .cart {
    max-width: 850px;
  }
}
@media (min-width: 1100px) {
  .cart {
    height: 100%;
    bottom: 0;
  }
}

.cart__wrapper {
  border-bottom-left-radius: 16px;
  border-top-left-radius: 16px;
  background-color: #f4f6fa;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart__head {
  align-items: center;
  display: flex;

  gap: 16px;
  justify-content: space-between;
  padding-left: 24px;
  border-bottom: 1px solid #e7ebf2;
}

.cart__close-btn {
  align-items: center;
  display: flex;
  justify-content: center;

  gap: 4px;
  height: 100%;
  transition: 0.3s;
  width: 56px;
  height: 59px;
}
.cart__close-btn img {
  height: 20px;
  width: 20px;
}

.cart__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.favorites .cart__body {
  height: calc(100% - 77px);
}
@media (min-width: 768px) {
  .favorites .cart__body {
    height: calc(100% - 134px);
  }
}

.cart__list {
  height: 100%;
  left: 0;
  margin-right: 8px;
  padding-left: 16px;
  padding-right: 8px;
  position: absolute;

  scrollbar-color: var(--gray) transparent;
  scrollbar-width: thin;
  top: 0;
  width: 100%;
}
.cart__list::-webkit-scrollbar {
  width: 6px;
}
.cart__list::-webkit-scrollbar-track {
  border-radius: 0px;
}
.cart__list::-webkit-scrollbar-thumb {
  background-color: var(--gray);
  border-radius: 6px;
  width: 1px;
}
@media (min-width: 768px) {
  .cart__list {
    margin-right: 30px;
    padding-left: 56px;
    padding-right: 24px;
  }
}

.product-item {
  border-bottom: 1px solid #e4ecf7;
  display: grid;
  gap: 8px;

  grid-template-columns: 132px minmax(0, 1fr);
  padding-bottom: 8px;
  padding-top: 8px;
  position: relative;
}
@media (min-width: 768px) {
  .product-item {
    gap: 24px;

    grid-template-columns: 230px minmax(0, 1fr);
    padding-bottom: 16px;
    padding-top: 16px;
  }
}

.product-item__inner {
  display: flex;
  flex-direction: column;

  gap: 8px;
  height: auto;
  justify-content: center;
}
@media (min-width: 768px) {
  .product-item__inner {
    align-items: flex-start;
    flex-direction: row;

    gap: 16px;
    justify-content: space-between;
  }
}

.product-item:first-child {
  border-top: 1px solid #e4ecf7;
}

.product-item__img {
  aspect-ratio: 1/1;
  min-width: 132px;
  position: relative;
}
.product-item__img img {
  display: block;
  height: auto;
  width: 100%;
}
@media (min-width: 768px) {
  .product-item__img {
    aspect-ratio: 227/159;
    max-width: 230px;
    position: unset;
    width: 100%;
  }
}

.product-item__title {
  color: var(--black);
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  text-decoration: none;
}
.product-item__title:hover {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .product-item__title {
    font-size: 25px;
    line-height: 30px;
    max-width: 360px;
  }
}

.product-item__price {
  color: var(--black);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 768px) {
  .product-item__price {
    font-size: 28px;
  }
}

.product-item__remove {
  align-items: center;
  background-color: #fff;
  border: 1px solid #e4ecf7;
  border-radius: 5px;
  color: #505780;
  display: flex;
  font-size: 10px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  padding: 8px 12px;
  position: relative;
  text-transform: uppercase;
  transition: 0.3s;
}
@media (min-width: 768px) {
  .product-item__remove {
    margin-bottom: 8px;
  }
  .product-item__remove:hover {
    background-color: #f04438;
    border-color: #f04438;
    color: #fff;
  }
}

.cart__footer {
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}
@media (min-width: 768px) {
  .cart__footer {
    padding: 18px;
  }
}

.promocode {
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;

  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .promocode {
    align-items: center;
    -webkit-box-align: center;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: justify;
    -ms-flex-align: center;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 50px;
  }
}

.promocode__text {
  color: var(--black);
  font-size: 16px;
  font-weight: 300;
  line-height: 19px;
}
.promocode__text br {
  display: none;
}
@media (min-width: 768px) {
  .promocode__text {
    font-size: 20px;
    line-height: 30px;
  }
  .promocode__text br {
    display: block;
  }
}

.promocode__actions {
  align-items: center;
  -webkit-box-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;

  gap: 16px;
  position: relative;
}
.promocode__actions.success .promocode__input {
  border-color: #46a62c;
}
.promocode__actions.success .promocode__result-text {
  color: #46a62c;
}
.promocode__actions.error .promocode__input {
  border-color: red;
}
.promocode__actions.error .promocode__result-text {
  color: red;
}

.promocode__input {
  background: #fff;
  border: 1px solid #999798;
  border-radius: 5px;
  color: #999798;
  font-size: 20px;
  font-weight: 400;
  height: 56px;
  line-height: 1;
  padding: 18px;
  text-align: center;
  width: 100%;
}
.promocode__input::-webkit-input-placeholder {
  color: #999798;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.promocode__input::-moz-placeholder {
  color: #999798;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.promocode__input:-ms-input-placeholder {
  color: #999798;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.promocode__input::-ms-input-placeholder {
  color: #999798;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.promocode__input::placeholder {
  color: #999798;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 768px) {
  .promocode__input {
    width: 220px;
  }
}

.promocode__result-text {
  bottom: -18px;
  color: var(--black);
  font-size: 14px;
  font-weight: 300;
  left: 0;
  line-height: 1;
  position: absolute;
}
.promocode__result-text:empty {
  display: none;
}

.promocode__submit {
  border: 1px solid var(--black);
  border-radius: 3px;
  color: var(--black);
  font-size: 24px;
  font-weight: 400;
  height: 56px;
  line-height: 1;
  padding-left: 40px;
  padding-right: 48px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.promocode__submit:hover {
  background-color: var(--black);
  color: #fff;
}

.total-row {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: justify;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: justify;

  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.total-row span {
  color: #46a62c;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .total-row span {
    font-size: 36px;
  }
}

.cart__link {
  align-items: center;
  border: 1px solid var(--black);
  border-radius: 5px;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  color: var(--black);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  font-size: 32px;
  font-weight: 400;
  height: 64px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  width: 100%;
}
.cart__link:hover {
  background-color: var(--black);
  color: #fff;
}

.cart__payments-img {
  margin-left: auto;
  margin-right: 0;
  margin-top: 8px;
}

.cart .payments-systems {
  margin-top: 16px;
}

@media (min-width: 1100px) {
  .cart .payments-systems {
    justify-content: flex-end;
  }
}

/* Empty cart block */
.cart-empty {
  align-items: center;
  display: flex;
  flex-direction: column;

  gap: 32px;
  height: 100%;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.cart-empty img {
  max-width: 120px;
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 1100px) {
  .cart-empty img {
    max-width: 240px;
  }
}

.cart-empty__text {
  color: var(--black);
  font-size: 16px;
  line-height: 20px;
}
@media (min-width: 375px) {
  .cart-empty__text {
    font-size: 18px;
    line-height: 22px;
  }
}
@media (min-width: 430px) {
  .cart-empty__text {
    font-size: 20px;
    line-height: 24px;
  }
}

.cart__easy-deal-success {
  margin-bottom: 24px;
}
/* // Empty cart block */
