body.pesotsky-cart-native {
  background: #f4f1e9;
}

body.pesotsky-cart-native #page,
body.pesotsky-cart-native #content,
body.pesotsky-cart-native #primary,
body.pesotsky-cart-native .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ps-cart {
  --psc-bg: #f4f1e9;
  --psc-ink: #11110f;
  --psc-muted: rgba(17, 17, 15, .64);
  --psc-soft: rgba(17, 17, 15, .38);
  --psc-line: rgba(17, 17, 15, .14);
  --psc-line-strong: rgba(17, 17, 15, .28);
  --psc-shell: 1500px;

  width: 100%;
  min-width: 0;
  overflow-x: clip;
  background: var(--psc-bg);
  color: var(--psc-ink);
  font-family: "Inter", Arial, sans-serif;
}

.ps-cart,
.ps-cart *,
.ps-cart *::before,
.ps-cart *::after {
  box-sizing: border-box;
}

.ps-cart :where(h1, h2, p) {
  margin: 0;
}

.ps-cart :where(a) {
  color: inherit;
  text-decoration: none;
}

.ps-cart button {
  font: inherit;
}

.ps-cart__shell {
  width: min(var(--psc-shell), calc(100% - 96px));
  margin-inline: auto;
}

.ps-cart__kicker {
  margin-bottom: 20px;
  color: var(--psc-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ps-cart__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 38px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ps-cart__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(.52);
  transform-origin: left;
  transition: transform .22s ease;
}

.ps-cart__link:hover::after,
.ps-cart__link:focus-visible::after {
  transform: scaleX(1);
}

.ps-cart__link--muted {
  color: var(--psc-muted);
}

/* HERO */

.ps-cart-hero {
  padding: clamp(150px, 8.6vw, 188px) 0 clamp(62px, 4.2vw, 78px);
}

.ps-cart-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.ps-cart-hero__title {
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(76px, 6.2vw, 112px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.05em;
}

.ps-cart-hero__continue {
  margin-bottom: 8px;
}

/* LIST */

.ps-cart-content {
  padding-bottom: clamp(110px, 7.8vw, 156px);
}

.ps-cart-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 42px;
  padding: 17px 0 18px;
  border-top: 1px solid var(--psc-line);
  border-bottom: 1px solid var(--psc-line);
  color: var(--psc-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ps-cart-table-head span:nth-child(3) {
  text-align: right;
}

.ps-cart-list {
  min-width: 0;
}

.ps-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 42px;
  align-items: center;
  min-width: 0;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--psc-line);
  transition: opacity .18s ease;
}

.ps-cart-item.is-loading,
.ps-cart-item.is-removing {
  opacity: .42;
  pointer-events: none;
}

.ps-cart-item__product {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.ps-cart-item__thumb {
  display: block;
  width: 98px;
  aspect-ratio: 1 / 1.22;
  overflow: hidden;
  background: #ded8cd;
  border: 1px solid rgba(17, 17, 15, .06);
}

.ps-cart-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-cart-item__identity {
  min-width: 0;
}

.ps-cart-item__name {
  display: inline-block;
  max-width: 24ch;
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.022em;
}

.ps-cart-item__meta,
.ps-cart-item__unit {
  max-width: 42ch;
  margin-top: 8px !important;
  color: var(--psc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ps-cart-item__unit {
  margin-top: 4px !important;
  color: var(--psc-soft);
}

.ps-cart-item__quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.ps-cart-qty {
  display: grid;
  grid-template-columns: 40px 48px 40px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--psc-line-strong);
}

.ps-cart-qty__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--psc-ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.ps-cart-qty__value {
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.ps-cart-item__remove {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 0 3px;
  border: 0;
  background: transparent;
  color: var(--psc-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}

.ps-cart-item__remove::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(.42);
  transform-origin: left;
  transition: transform .2s ease;
}

.ps-cart-item__remove:hover::after,
.ps-cart-item__remove:focus-visible::after {
  transform: scaleX(1);
}

.ps-cart button.ps-cart-item__remove {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ps-cart-item__total {
  justify-self: end;
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.15;
  white-space: nowrap;
}

/* SUMMARY */

.ps-cart-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(70px, 9vw, 164px);
  align-items: start;
  padding-top: clamp(52px, 4.6vw, 78px);
}

.ps-cart-footer__note {
  max-width: 48ch;
  color: var(--psc-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ps-cart-total {
  min-width: 0;
}

.ps-cart-total__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--psc-line);
  color: var(--psc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ps-cart-total__row strong {
  color: var(--psc-ink);
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 400;
  white-space: nowrap;
}

.ps-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  padding: 14px 24px;
  border: 1px solid var(--psc-ink);
  background: var(--psc-ink);
  color: #f4f1e9 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease;
}

.ps-cart-checkout:hover,
.ps-cart-checkout:focus-visible {
  background: transparent;
  color: var(--psc-ink) !important;
}

.ps-cart-checkout.is-disabled,
.ps-cart-checkout[aria-disabled="true"] {
  opacity: .32;
  pointer-events: none;
}

.ps-cart-total__micro {
  margin-top: 12px !important;
  color: rgba(17, 17, 15, .46);
  font-size: 12px;
  line-height: 1.5;
}

.ps-cart-status {
  min-height: 1.5em;
  margin-top: 18px !important;
  color: var(--psc-soft);
  font-size: 12px;
  line-height: 1.5;
}

/* EMPTY */

.ps-cart-empty {
  max-width: 720px;
  padding: clamp(70px, 6vw, 110px) 0;
}

.ps-cart-empty__title {
  max-width: 10ch;
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 3.8vw, 66px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.038em;
}

.ps-cart-empty__text {
  max-width: 50ch;
  margin-top: 22px !important;
  color: var(--psc-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ps-cart-empty__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 26px;
}

.ps-cart :is(a, button):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 1100px) {
  .ps-cart__shell {
    width: min(var(--psc-shell), calc(100% - 64px));
  }

  .ps-cart-hero {
    padding-top: 138px;
  }

  .ps-cart-hero__title {
    font-size: clamp(64px, 7.5vw, 82px);
  }

  .ps-cart-table-head,
  .ps-cart-item {
    grid-template-columns: minmax(0, 1fr) 150px 150px;
    gap: 28px;
  }

  .ps-cart-item__product {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
  }

  .ps-cart-item__thumb {
    width: 82px;
  }

  .ps-cart-footer {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 58px;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .ps-cart__shell {
    width: min(calc(100% - 40px), var(--psc-shell));
  }

  .ps-cart-hero {
    padding: 112px 0 48px;
  }

  .ps-cart-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ps-cart-hero__title {
    font-size: clamp(54px, 16vw, 72px);
  }

  .ps-cart-hero__continue {
    justify-self: start;
    margin: 0;
  }

  .ps-cart-table-head {
    display: none;
  }

  .ps-cart-list {
    border-top: 1px solid var(--psc-line);
  }

  .ps-cart-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product total"
      "quantity quantity";
    gap: 22px 18px;
    align-items: start;
    padding: 24px 0 26px;
  }

  .ps-cart-item__product {
    grid-area: product;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .ps-cart-item__thumb {
    width: 72px;
  }

  .ps-cart-item__name {
    font-size: 21px;
  }

  .ps-cart-item__meta,
  .ps-cart-item__unit {
    font-size: 12.5px;
  }

  .ps-cart-item__quantity {
    grid-area: quantity;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-left: 88px;
  }

  .ps-cart-item__total {
    grid-area: total;
    font-size: 20px;
  }

  .ps-cart-footer {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 54px;
  }

  .ps-cart-footer__note {
    font-size: 14px;
  }

  .ps-cart-checkout {
    min-height: 56px;
  }
}

@media (max-width: 430px) {
  .ps-cart__shell {
    width: min(calc(100% - 32px), var(--psc-shell));
  }

  .ps-cart-hero {
    padding-top: 104px;
  }

  .ps-cart-hero__title {
    font-size: clamp(50px, 15vw, 64px);
  }

  .ps-cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 12px;
  }

  .ps-cart-item__product {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
  }

  .ps-cart-item__thumb {
    width: 62px;
  }

  .ps-cart-item__quantity {
    padding-left: 76px;
  }

  .ps-cart-qty {
    grid-template-columns: 38px 42px 38px;
  }

  .ps-cart-qty__button {
    width: 38px;
  }
}

@media (max-width: 320px) {
  .ps-cart__shell {
    width: calc(100% - 28px);
  }

  .ps-cart-hero__title {
    font-size: 48px;
  }

  .ps-cart-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "product"
      "total"
      "quantity";
  }

  .ps-cart-item__total {
    justify-self: start;
    padding-left: 70px;
  }

  .ps-cart-item__quantity {
    padding-left: 70px;
  }

  .ps-cart-empty__title {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-cart *,
  .ps-cart *::before,
  .ps-cart *::after {
    transition: none !important;
  }
}


/* CONTEXTUAL COMPLETION */

.ps-cart-complete {
  display: grid;
  grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr);
  gap: clamp(64px, 8vw, 140px);
  align-items: start;
  margin-top: clamp(62px, 5.4vw, 92px);
  padding: clamp(44px, 3.8vw, 62px) 0 0;
  border-top: 1px solid var(--psc-line);
}

.ps-cart-complete__title {
  max-width: 11ch;
  margin: 0;
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 2.4vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ps-cart-complete__list {
  border-top: 1px solid var(--psc-line);
}

.ps-cart-complete__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--psc-line);
}

.ps-cart-complete__thumb {
  display: block;
  width: 82px;
  aspect-ratio: 1 / 1.22;
  overflow: hidden;
  background: #ded8cd;
  border: 1px solid rgba(17, 17, 15, .06);
}

.ps-cart-complete__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-cart-complete__copy {
  min-width: 0;
}

.ps-cart-complete__copy h3 {
  margin: 0;
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.ps-cart-complete__copy h3 a {
  color: inherit;
  text-decoration: none;
}

.ps-cart-complete__copy p {
  max-width: 48ch;
  margin-top: 7px !important;
  color: var(--psc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ps-cart-complete__offer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
}

.ps-cart-complete__select select {
  min-width: 94px;
  height: 40px;
  padding: 0 30px 0 0;
  border: 0;
  border-bottom: 1px solid var(--psc-line-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--psc-ink);
  font-size: 13px;
}

.ps-cart-complete__price {
  min-width: 82px;
  color: var(--psc-muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.ps-cart-complete__add,
.ps-cart-complete__choose {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  color: var(--psc-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.ps-cart-complete__add::after,
.ps-cart-complete__choose::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(.52);
  transform-origin: left;
  transition: transform .2s ease;
}

.ps-cart-complete__add:hover::after,
.ps-cart-complete__add:focus-visible::after,
.ps-cart-complete__choose:hover::after,
.ps-cart-complete__choose:focus-visible::after {
  transform: scaleX(1);
}

.ps-cart-complete__add.is-loading {
  opacity: .42;
  pointer-events: none;
}

.ps-cart button.ps-cart-complete__add {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ps-cart-complete__row.is-added {
  opacity: 0;
  transition: opacity .22s ease;
}

.ps-cart-table-head,
.ps-cart-item__remove {
  color: rgba(17, 17, 15, .48);
}

@media (max-width: 1100px) {
  .ps-cart-complete {
    grid-template-columns: minmax(210px, .52fr) minmax(0, 1.48fr);
    gap: 50px;
  }

  .ps-cart-complete__row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
  }

  .ps-cart-complete__thumb {
    width: 72px;
  }

  .ps-cart-complete__offer {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .ps-cart-complete {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 54px;
  }

  .ps-cart-complete__title {
    max-width: 12ch;
    font-size: clamp(30px, 8.3vw, 37px);
  }

  .ps-cart-complete__row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb copy"
      "offer offer";
    gap: 16px 14px;
    align-items: start;
  }

  .ps-cart-complete__thumb {
    grid-area: thumb;
    width: 64px;
  }

  .ps-cart-complete__copy {
    grid-area: copy;
    align-self: center;
  }

  .ps-cart-complete__offer {
    grid-area: offer;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 78px;
  }

  .ps-cart-complete__price {
    text-align: left;
  }

  /* Brush has no format/price controls: keep its single CTA in the same
     right-hand action zone as “Добавить +” for Osnova. */
  .ps-cart-complete__row[data-ps-recommendation="brush"] .ps-cart-complete__offer {
    justify-content: flex-end;
  }

  .ps-cart-complete__row[data-ps-recommendation="brush"] .ps-cart-complete__choose {
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  .ps-cart-complete__offer {
    padding-left: 0;
  }
}
