/* Изолированный компонент корзины. Все селекторы начинаются с sv-cart. */
.sv-cart,
.sv-cart * { box-sizing: border-box; }

.sv-cart {
  --sv-cart-text: #111;
  --sv-cart-muted: #a8a8a8;
  --sv-cart-line: #dedede;
  --sv-cart-soft: #f8f8f8;
  width: 100%;
  color: var(--sv-cart-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.sv-cart button,
.sv-cart input { font: inherit; }
.sv-cart button { color: inherit; }

.sv-cart__shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 48px 90px;
}

.sv-cart__back {
  display: none;
  width: max-content;
  margin-bottom: 27px;
  color: #777;
  text-decoration: none;
}

.sv-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: 38px;
  align-items: start;
}

.sv-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sv-cart__auth-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 26px;
  cursor: pointer;
}
.sv-cart__auth-banner-image {
  display: block;
  width: 104px;
  height: auto;
  flex: 0 0 104px;
}
.sv-cart__auth-banner-content {
  flex: 1;
  min-width: 0;
}
.sv-cart__auth-banner-title {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: #111;
}
.sv-cart__auth-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #777;
}
.sv-cart__auth-banner-text + .sv-cart__auth-banner-text {
  margin-top: 8px;
}
.sv-cart__auth-btn {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.sv-cart__auth-btn:hover {
  opacity: 0.7;
}

.sv-cart__title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.sv-cart__title span { color: #b7b7b7; }

.sv-cart__header-actions { display: flex; gap: 18px; }
.sv-cart__icon-btn,
.sv-cart__heart,
.sv-cart__remove {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.sv-cart__icon-btn { font-size: 0; }

.sv-cart__select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 26px;
  cursor: pointer;
}

.sv-cart__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sv-cart__fake-checkbox {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #d6d6d6;
  background: #fff;
}
.sv-cart__checkbox:checked + .sv-cart__fake-checkbox { border-color: transparent; }
.sv-cart__checkbox:checked + .sv-cart__fake-checkbox::after {
  content: "✓";
  font-size: 12px;
  color: #111;
}

.sv-cart__list { border-top: 1px solid var(--sv-cart-line); }

.sv-cart__empty {
  padding: 48px 0 72px;
  color: #777;
  font-size: 15px;
  line-height: 1.4;
}
.sv-cart__empty-text { margin: 0; }

.sv-cart--empty .sv-cart__select-all,
.sv-cart--empty .sv-cart__auth-banner,
.sv-cart--empty .sv-cart__header-actions,
.sv-cart--empty .sv-cart__list,
.sv-cart--empty .sv-cart__summary {
  display: none;
}
.sv-cart--empty .sv-cart__header {
  margin-bottom: 0;
}
.sv-cart--empty .sv-cart__layout {
  grid-template-columns: 1fr;
}
.sv-cart__empty[hidden] { display: none !important; }

.sv-cart__item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 170px minmax(210px, 1fr) 62px;
  grid-template-rows: minmax(248px, auto);
  column-gap: 10px;
  min-height: 270px;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--sv-cart-line);
}

.sv-cart__item-check { align-self: start; margin-top: 2px; cursor: pointer; }
.sv-cart__item-check .sv-cart__fake-checkbox { border: 0; }

.sv-cart__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.sv-cart__image {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sv-cart__info { padding: 0 0 40px 10px; }
.sv-cart__name {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
}
.sv-cart__name a {
  color: inherit;
  text-decoration: none;
}
.sv-cart__size {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  vertical-align: middle;
  min-width: 58px;
  height: 29px;
  padding: 0 28px 0 11px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background-color: #fff;
  background-image: url("assets/icon/ion_arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px auto;
  color: #111;
  font: inherit;
  cursor: pointer;
  outline: none;
}
.sv-cart__size:focus { border-color: #999; }
.sv-cart__size--text {
  display: inline-flex;
  align-items: center;
  padding-right: 11px;
  background-image: none;
  cursor: default;
}
.sv-cart__size span { margin-left: 5px; color: #777; }
.sv-cart__heart.active,
.sv-cart__heart--active {
  background-image: url("assets/icon/heart-ready.svg");
}

.sv-cart__price-row {
  position: absolute;
  left: 210px;
  bottom: 30px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.sv-cart__price { font-size: 15px; font-weight: 400; }
.sv-cart__old-price { color: #b7b7b7; font-size: 12px; }

.sv-cart__item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  align-self: start;
  padding-top: 0;
}

.sv-cart__qty {
  position: absolute;
  right: 0;
  bottom: 27px;
  display: grid;
  grid-template-columns: 36px 36px 36px;
  height: 42px;
  background: var(--sv-cart-soft);
}
.sv-cart__qty button,
.sv-cart__qty output {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.sv-cart__qty button { color: #aaa; cursor: pointer; }

.sv-cart__summary { padding: 2px 0 0; }
.sv-cart__summary-title { margin: 0 0 22px; font-size: 22px; font-weight: 400; }
.sv-cart__summary-list { margin: 0; }
.sv-cart__summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.sv-cart__summary-list dt,
.sv-cart__summary-list dd { margin: 0; }

/* Промокод — та же строка и типографика, что у «3 товара» и «Скидка» */
.sv-cart__promo {
  margin-bottom: 16px;
}
.sv-cart__promo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.sv-cart__promo--applied .sv-cart__promo-row {
  flex-wrap: nowrap;
}
.sv-cart__promo-head,
.sv-cart__promo-side {
  display: flex;
  align-items: center;
  margin: 0;
}
.sv-cart__promo-side {
  justify-content: flex-end;
  min-width: 42px;
  flex-shrink: 0;
}
.sv-cart__promo-trigger,
.sv-cart__promo-plus,
.sv-cart__promo-remove {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.sv-cart__promo-trigger {
  display: inline-flex;
  align-items: center;
  color: #b7b7b7;
  font: inherit;
  line-height: inherit;
  text-align: left;
}
.sv-cart__promo-trigger[hidden],
.sv-cart__promo-plus[hidden] {
  display: none !important;
}
.sv-cart__promo--applied .sv-cart__promo-trigger,
.sv-cart__promo--applied .sv-cart__promo-plus {
  display: none !important;
}
.sv-cart__promo-trigger:hover { color: #777; }
.sv-cart__promo-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -11px -11px -11px 0;
  color: #b7b7b7;
  font-size: 20px;
  line-height: 1;
}
.sv-cart__promo-plus:hover { color: #777; }
.sv-cart__promo-applied {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.sv-cart__promo-applied[hidden],
.sv-cart__promo-form[hidden],
.sv-cart__promo-value[hidden],
.sv-cart__promo-error[hidden] { display: none !important; }
.sv-cart__promo--applied .sv-cart__promo-applied {
  display: inline-flex;
}
.sv-cart__promo--applied .sv-cart__promo-value {
  display: block;
}
.sv-cart__promo-code {
  color: #087cff;
  font: inherit;
  white-space: nowrap;
}
.sv-cart__promo-remove {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  margin: -11px -11px -11px -6px;
  font-size: 0;
  flex-shrink: 0;
  background: transparent url("assets/icon/close-product.svg") center / 42px 42px no-repeat;
}
.sv-cart__promo-value {
  color: #111;
  font: inherit;
  white-space: nowrap;
}
.sv-cart__promo-form {
  width: 100%;
  margin-top: 12px;
}
.sv-cart__promo-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sv-cart__promo-control { display: flex; gap: 8px; }
.sv-cart__promo-input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  outline: none;
  border-radius: 5px;
}
.sv-cart__promo-input:focus { border-color: #111; }
.sv-cart__promo-submit {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
  border-radius: 5px;
}
.sv-cart__promo-error {
  margin: 8px 0 0;
  color: #d70000;
  font-size: 12px;
}
.sv-cart__promo--error .sv-cart__promo-input { border-color: #d70000; }

.sv-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 34px 0 21px;
  font-size: 22px;
}
.sv-cart__total strong { font-weight: 400; }
.sv-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: 1px solid #111;
  border-radius: 5px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sv-cart__checkout:hover { background: #111; color: #fff; }
.sv-cart.is-busy {
  opacity: 0.7;
  pointer-events: none;
}
.sv-cart__auth-banner-text a {
  color: inherit;
}

@media (max-width: 960px) {
  .sv-cart__layout { display: block; }
}

@media (max-width: 820px) {
  .sv-cart__shell { padding: 96px 16px 126px; }
  .sv-cart__back { display: inline-flex; gap: 10px; align-items: center; }
  .sv-cart__header { margin-bottom: 18px; }
  .sv-cart__title { font-size: 24px; }
  .sv-cart__auth-banner {
    gap: 12px;
    margin-bottom: 24px;
  }
  .sv-cart__auth-banner-image {
    width: 83px;
    flex-basis: 83px;
  }
  .sv-cart__auth-banner-title { font-size: 17px; }
  .sv-cart__auth-banner-text { font-size: 14px; }
  .sv-cart__select-all { margin-bottom: 31px; }

  .sv-cart__item {
    grid-template-columns: 24px 102px minmax(0, 1fr) 48px;
    grid-template-rows: 210px;
    column-gap: 8px;
    min-height: 242px;
    padding: 29px 0 17px;
  }
  .sv-cart__image-wrap { align-items: flex-start; padding-top: 5px; }
  .sv-cart__image { width: 100%; height: 170px; }
  .sv-cart__info { padding: 3px 0 0; }
  .sv-cart__name { margin-bottom: 12px; font-size: 12px; }
  .sv-cart__size { height: 25px; min-width: 51px; font-size: 12px; }
  .sv-cart__item-actions { gap: 0; }
  .sv-cart__price-row {
    left: 134px;
    bottom: 54px;
    gap: 9px;
  }
  .sv-cart__price { font-size: 14px; }
  .sv-cart__old-price { font-size: 11px; }
  .sv-cart__qty {
    right: auto;
    left: 134px;
    bottom: 18px;
    grid-template-columns: 28px 28px 28px;
    height: 34px;
  }

  .sv-cart__summary {
    position: static;
    padding-top: 33px;
  }
  .sv-cart__summary-title { display: none; }
  .sv-cart__summary-list > div { margin-bottom: 16px; font-size: 16px; }
  .sv-cart__total { margin: 31px 0 20px; font-size: 21px; }
  .sv-cart__checkout { height: 49px; }
}

@media (max-width: 820px) and (max-height: 900px) {
  .sv-cart__shell { padding-bottom: 180px; }
  .sv-cart__summary {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 135px 1fr;
    grid-template-areas:
      "promo promo"
      "total checkout";
    gap: 12px;
    align-items: center;
    padding: 10px 16px 16px;
    border-top: 1px solid #d8d8d8;
    background: #fff;
  }
  .sv-cart__summary-list { display: none; }
  .sv-cart__promo {
    grid-area: promo;
    margin-bottom: 0;
  }
  .sv-cart__promo-row {
    font-size: 16px;
  }
  .sv-cart__total {
    grid-area: total;
    display: block;
    margin: 0;
    font-size: 14px;
  }
  .sv-cart__checkout {
    grid-area: checkout;
    height: 49px;
    font-size: 14px;
  }
  .sv-cart__total::before { content: attr(data-count-label); display: block; margin-bottom: 7px; }
  .sv-cart__total span { display: none; }
  .sv-cart__total strong { display: block; font-size: 17px; }
  .sv-cart:has([data-sv-promo-form]:not([hidden])) .sv-cart__shell {
    padding-bottom: 260px;
  }
}

@media (max-width: 360px) {
  .sv-cart__item { grid-template-columns: 20px 90px minmax(0, 1fr) 43px; }
  .sv-cart__price-row, .sv-cart__qty { left: 118px; }
}

/* Иконки выбора товара */
.sv-cart__fake-checkbox {
  border: 0;
  background: transparent url("assets/icon/icon_no-chekbox.svg") center / 18px 18px no-repeat;
}
.sv-cart__checkbox:checked + .sv-cart__fake-checkbox {
  border: 0;
  background-image: url("assets/icon/icon_chekbox.svg");
}
.sv-cart__checkbox:checked + .sv-cart__fake-checkbox::after { content: none; }

/* Закрепленная сводка на десктопе */
@media (min-width: 961px) {
  .sv-cart__summary {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* Иконки: SVG 42×42 с графикой ~15px по центру, кликабельная зона 42×42 */
.sv-cart__icon-btn,
.sv-cart__heart,
.sv-cart__remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 42px 42px;
}
.sv-cart__icon-btn--trash { background-image: url("assets/icon/trash.svg"); }
.sv-cart__icon-btn--share { background-image: url("assets/icon/share.svg"); }
.sv-cart__heart { background-image: url("assets/icon/heart.svg"); }
.sv-cart__heart.active,
.sv-cart__heart--active { background-image: url("assets/icon/heart-ready.svg"); }
.sv-cart__remove { background-image: url("assets/icon/close-product.svg"); }

select.sv-cart__size {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 58px;
  padding: 0 28px 0 11px;
  background-color: #fff;
  background-image: url("assets/icon/ion_arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px auto;
  outline: none;
}

@media (max-width: 820px) {
  .sv-cart__size { min-width: 58px; padding-right: 27px; }
}

/* Уточнения по макету: Arial, кликабельные зоны и размеры иконок */
.sv-cart,
.sv-cart button,
.sv-cart input,
.sv-cart select,
.sv-cart textarea {
  font-family: Arial, Helvetica, sans-serif;
}

.sv-cart__header-actions {
  gap: 0;
  margin: -12px -11px -12px 0;
}

.sv-cart__item-actions {
  gap: 0;
  margin-top: -11px;
  margin-right: -11px;
  padding-top: 0;
}

@media (max-width: 820px) {
  .sv-cart__header-actions {
    margin-right: -11px;
  }
  .sv-cart__item-actions {
    margin-right: -11px;
  }
}

/* Keep the existing product grid after removing non-functional selection controls. */
.sv-cart__image-wrap { grid-column: 2; }
.sv-cart__info { grid-column: 3; }
.sv-cart__item-actions { grid-column: 4; }

.sv-cart__selection { grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sv-cart__selection input, .sv-cart__select-all input { width: 18px; height: 18px; cursor: pointer; }
.sv-cart__select-all { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
