@charset "UTF-8";
.nlcart.side {
  position: fixed;
  top: 0;
  right: -100%;
  width: 31.25rem; /* ширина корзины */
  max-width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: -0.125rem 0 0.625rem rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  min-height: 100%;
}
.nlcart.side.is-open {
  right: 0;
}
.nlcart__head {
  padding: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(237, 245, 245);
}
.nlcart__title {
  font-weight: 500;
  text-transform: uppercase;
}
.nlcart__close {
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.nlcart__close:hover {
  color: #72acaa;
}
.nlcart__body {
  padding: 0.625rem 0.9375rem;
}
.nlcart__products {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  max-height: 28.125rem;
  overflow-y: auto;
}
.nlcart__footer {
  padding: 0.625rem 0.9375rem;
  position: sticky;
  bottom: 0;
  top: 100%;
  background-color: rgb(237, 245, 245);
}
.nlcart__total {
  padding: 0.9375rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.nlcart__total--item {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.9375rem;
}
.nlcart__total--item span {
  font-weight: 700;
  color: #45bfb9;
}
.nlcart__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.nlcart__buttons--continue, .nlcart__buttons--checkout {
  padding: 0.75rem 0.9375rem;
  text-align: center;
  border-radius: 0.1875rem;
  width: 100%;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}
.nlcart__buttons--checkout {
  color: #fff;
  background-color: #72acaa;
}
.nlcart__buttons--checkout:hover {
  background-color: #45bfb9;
}
.nlcart__buttons--continue {
  color: #212121;
  background-color: #eee;
}
.nlcart__buttons--continue:hover {
  background-color: #fff;
}

.nlitem {
  padding: 0.9375rem 0.625rem;
  background-color: rgb(237, 245, 245);
  border-radius: 0.1875rem;
  display: flex;
  gap: 0.9375rem;
  position: relative;
  width: 100%;
}
.nlitem__image {
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 0.1875rem;
  overflow: hidden;
}
.nlitem__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nlitem__body {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  flex: 1;
}
.nlitem__sku {
  color: #666;
  font-size: 0.75rem;
}
.nlitem__title {
  font-weight: 500;
  color: #212121;
}
.nlitem__option, .nlitem__recurring {
  color: #666;
  font-size: 0.75rem;
}
.nlitem__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4375rem;
  width: 100%;
}
.nlitem__count {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 0.0625rem;
  overflow: hidden;
}
.nlitem__count button {
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.3125rem 0.5rem;
  outline: 0;
  transition: all 0.3s;
}
.nlitem__count button:hover {
  color: #72acaa;
}
.nlitem__count input {
  outline: 0;
  text-align: center;
  border-left: 0.0625rem solid #f3f3f3;
  border-right: 0.0625rem solid #f3f3f3;
  padding: 0.3125rem;
}
.nlitem__price, .nlitem__total {
  font-size: 0.9375rem;
}
.nlitem__remove {
  position: absolute;
  top: 0.9375rem;
  right: 0.625rem;
  font-size: 0.875rem;
  color: #666;
  transition: all 0.3s;
}
.nlitem__remove:hover {
  color: #72acaa;
}

.nlcart-open {
  overflow: hidden; /* блокируем скролл под корзиной */
}

.nlcart-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.39);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 98;
  cursor: pointer;
}

@media (max-width: 20em){
  .nlcart__title {
    font-size: 1rem;
  }
}

@media (min-width: 20em) and (max-width: 87.5em){
  .nlcart__title {
    font-size: clamp( 1rem , 0.9629629629625rem  +  0.1851851852vw , 1.125rem );
  }
}

@media (min-width: 87.5em){
  .nlcart__title {
    font-size: 1.125rem;
  }
}