.header-cart {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 3;
  display: none;
}
@media (min-width: 992px) {
  .header-cart {
    position: absolute;
    top: calc(100% + 1.5625rem);
    width: 465px;
    left: unset;
  }
}
.header-cart.active {
  display: block;
}
@media (min-width: 992px) {
  .header-cart__container {
    max-width: 100%;
    width: auto;
    margin: 0;
    padding: 0;
  }
}
.header-cart__wrapper {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 3px 46px rgba(0, 0, 0, 0.07);
  padding: 1.25rem;
}
.header-cart__title {
  margin-bottom: 1.25rem;
}
.header-cart__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.header-cart__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.125rem;
}
@media (min-width: 1200px) {
  .header-cart__bottom {
    gap: 0.625rem;
    margin-top: 1.625rem;
  }
}
.header-cart__btn.button .button__link {
  width: 100%;
}

.header-cart-item {
  background-color: #f7f7f7;
  padding: 1rem 0.75rem;
  border-radius: 8px;
}
@media (min-width: 1200px) {
  .header-cart-item {
    padding: 1rem;
    border-radius: 10px;
  }
}
.header-cart-item__top {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.75rem;
}
@media (min-width: 375px) {
  .header-cart-item__top {
    grid-template-columns: 5rem 1fr;
  }
}
@media (min-width: 1200px) {
  .header-cart-item__top {
    grid-template-columns: 6.125rem 1fr;
    gap: 1rem;
  }
}
.header-cart-item__right {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.25rem;
}
@media (min-width: 1200px) {
  .header-cart-item__right {
    grid-template-columns: 1fr 1.5rem;
    align-items: center;
    gap: 0.625rem;
  }
}
.header-cart-item__title {
  margin-bottom: 0.25rem;
}
@media (min-width: 1200px) {
  .header-cart-item__title {
    margin-bottom: 0.5rem;
  }
}
.header-cart-item__price {
  color: #2874bb;
}
.header-cart-item__remove {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.47;
}
@media (min-width: 992px) {
  .header-cart-item__remove {
    width: 1.5rem;
    height: 1.5rem;
    justify-content: center;
  }
}
@media (hover: hover) {
  .header-cart-item__remove {
    transition: opacity 300ms ease-in-out 0ms;
    cursor: pointer;
  }
  .header-cart-item__remove:hover {
    opacity: 1;
  }
}
@media (min-width: 992px) {
  .header-cart-item__remove-text {
    display: none;
  }
}
.header-cart-item__bottom {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
@media (min-width: 1200px) {
  .header-cart-item__bottom {
    padding-top: 1.625rem;
    gap: 0.875rem;
  }
}

.header-cart-summary {
  margin-top: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 0.8125rem;
}
@media (min-width: 1200px) {
  .header-cart-summary {
    margin-top: 1.0625rem;
  }
}
.header-cart-summary__item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.header-cart-summary__left {
  color: rgba(0, 0, 0, 0.48);
}
.header-cart-summary__right {
  font-weight: 500;
}
