.page-cart {
  --cart-green: #197532;
  --cart-green-dark: #125c28;
  --cart-ink: #172019;
  --cart-muted: #70776f;
  --cart-border: #e3e5df;
  --cart-surface: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(226, 239, 219, .42), transparent 29rem),
    #faf9f6;
  color: var(--cart-ink);
  min-height: 68vh;
  padding: 24px 0 76px;
}

.page-cart__breadcrumbs {
  margin-bottom: 24px;
}

.page-cart__columns,
.page-cart__content {
  min-width: 0;
}

.page-cart__header {
  margin: 0 0 26px;
}

.page-cart__header h1 {
  color: var(--cart-ink);
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.04;
  margin: 0;
}

.page-cart__header h1 span {
  white-space: nowrap;
}

.cart-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.cart-products,
.cart-totals,
.cart-promo,
.cart-tools > .accordion-item,
.cart-next {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--cart-border);
  border-radius: 18px;
}

.cart-products {
  overflow: hidden;
  padding: 0 18px;
}

.cart-products__head,
.cart-product {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, 2fr) minmax(105px, .85fr) minmax(96px, .7fr) 136px minmax(100px, .75fr) 36px;
}

.cart-products__head {
  align-items: center;
  color: #818780;
  font-size: 13px;
  padding: 17px 8px 13px;
}

.cart-products__head span:nth-child(3),
.cart-products__head span:nth-child(5) {
  text-align: right;
}

.cart-product {
  align-items: center;
  border-top: 1px solid #eceee9;
  min-height: 132px;
  padding: 16px 8px;
}

.cart-product:first-child {
  border-top: 0;
}

.cart-product__main {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.cart-product__image {
  align-items: center;
  background: #fafaf8;
  border: 1px solid #eef0eb;
  border-radius: 12px;
  display: flex;
  flex: 0 0 94px;
  height: 98px;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  width: 94px;
}

.cart-product__image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cart-product__image--icon {
  color: var(--cart-green);
}

.cart-product__details {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-product__name {
  color: var(--cart-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.28;
  text-decoration: none;
}

.cart-product__name:hover {
  color: var(--cart-green);
}

.cart-product__option,
.cart-product__model {
  color: var(--cart-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-product__option:first-of-type {
  margin-top: 5px;
}

.cart-product__stock {
  align-items: center;
  color: var(--cart-green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  gap: 5px;
  margin-top: 7px;
}

.cart-product__stock.is-unavailable {
  color: #b63b3b;
}

.cart-product__price,
.cart-product__total {
  color: var(--cart-ink);
  font-size: 14px;
  font-weight: 720;
  text-align: right;
  white-space: nowrap;
}

.cart-product__total {
  font-weight: 780;
}

.cart-quantity {
  align-items: center;
  border: 1px solid #d9ddd6;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 40px 52px 40px;
  height: 44px;
  overflow: hidden;
  position: relative;
}

.cart-quantity.is-loading {
  opacity: .58;
  pointer-events: none;
}

.cart-quantity__control,
.cart-quantity input {
  align-items: center;
  background: #fff;
  border: 0;
  color: var(--cart-ink);
  display: flex;
  height: 100%;
  justify-content: center;
  margin: 0;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.cart-quantity input {
  border-left: 1px solid #e5e7e2;
  border-radius: 0;
  border-right: 1px solid #e5e7e2;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.cart-quantity__control:hover:not(:disabled) {
  background: #e7f4e3;
  color: var(--cart-green);
}

.cart-quantity__control:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.cart-quantity__update {
  border: 0;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.cart-quantity--static {
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.cart-product__remove button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #303730;
  display: flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.cart-product__remove button:hover {
  background: #fbeaea;
  color: #b52d2d;
}

.cart-totals {
  background: #f3f8f0;
  padding: 22px;
  position: sticky;
  top: 92px;
}

.cart-totals__row {
  align-items: baseline;
  display: flex;
  font-size: 14px;
  gap: 16px;
  justify-content: space-between;
  padding: 5px 0;
}

.cart-totals__row strong {
  color: var(--cart-ink);
  text-align: right;
  white-space: nowrap;
}

.cart-totals__row--grand {
  border-top: 1px solid #dfe7dc;
  font-size: 20px;
  font-weight: 780;
  margin-top: 10px;
  padding-top: 17px;
}

.cart-totals__row--grand strong {
  font-size: 27px;
  letter-spacing: -.03em;
}

.cart-totals__assurance {
  align-items: center;
  color: var(--cart-green);
  display: flex;
  font-size: 12px;
  gap: 7px;
  margin-top: 17px;
}

.cart-tools {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.cart-tools > :only-child,
.cart-tools > .cart-promo {
  grid-column: 1 / -1;
}

.cart-promo {
  align-items: center;
  background: linear-gradient(90deg, #f5faef, #fbfdf9);
  display: grid;
  gap: 18px;
  grid-template-columns: 38px minmax(180px, .8fr) minmax(320px, 1.6fr);
  padding: 18px 24px;
}

.cart-promo__icon {
  color: var(--cart-green);
  height: 30px;
  width: 30px;
}

.cart-promo h2 {
  color: var(--cart-ink);
  font-size: 16px;
  font-weight: 760;
  margin: 0;
}

.cart-promo p {
  color: var(--cart-muted);
  font-size: 12px;
  margin: 4px 0 0;
}

.cart-promo__form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-promo__form input {
  background: #fff;
  border: 1px solid #dce0d9;
  border-radius: 11px;
  box-shadow: none;
  min-height: 46px;
  outline: 0;
  padding: 0 15px;
  width: 100%;
}

.cart-promo__form input:focus {
  border-color: var(--cart-green);
  box-shadow: 0 0 0 3px rgba(25, 117, 50, .1);
}

.cart-promo__form .btn {
  min-height: 46px;
}

.cart-tools > .accordion-item {
  overflow: hidden;
}

.cart-tools .accordion-button {
  background: #fff;
  box-shadow: none;
  color: var(--cart-ink);
  font-size: 15px;
  font-weight: 720;
  min-height: 58px;
  padding: 14px 48px 14px 20px;
}

.cart-tools .accordion-button:not(.collapsed) {
  background: #f5faef;
  color: var(--cart-green-dark);
}

.cart-tools .accordion-button::after {
  background-image: url("../../image/cart/chevron-down.svg");
  background-position: center;
  background-size: 20px;
}

.cart-tools .accordion-body {
  border-top: 1px solid var(--cart-border);
  padding: 20px;
}

.cart-tools .form-control,
.cart-tools .form-select {
  border-color: #dce0d9;
  border-radius: 10px;
  min-height: 44px;
}

.cart-tools .btn-primary {
  background: var(--cart-green);
  border-color: var(--cart-green);
}

.cart-next {
  background: transparent;
  border: 0;
  margin-top: 18px;
  padding: 0;
}

.cart-next__actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

.cart-next__checkout {
  min-width: 260px;
}

.cart-icon {
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 22px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 22px;
}

.cart-icon--home { -webkit-mask-image: url("../../image/cart/home.svg"); mask-image: url("../../image/cart/home.svg"); height: 18px; width: 18px; }
.cart-icon--trash { -webkit-mask-image: url("../../image/cart/trash.svg"); mask-image: url("../../image/cart/trash.svg"); }
.cart-icon--refresh { -webkit-mask-image: url("../../image/cart/refresh.svg"); mask-image: url("../../image/cart/refresh.svg"); }
.cart-icon--plus { -webkit-mask-image: url("../../image/cart/plus.svg"); mask-image: url("../../image/cart/plus.svg"); height: 18px; width: 18px; }
.cart-icon--minus { -webkit-mask-image: url("../../image/cart/minus.svg"); mask-image: url("../../image/cart/minus.svg"); height: 18px; width: 18px; }
.cart-icon--coupon { -webkit-mask-image: url("../../image/cart/coupon.svg"); mask-image: url("../../image/cart/coupon.svg"); }
.cart-icon--gift { -webkit-mask-image: url("../../image/cart/gift.svg"); mask-image: url("../../image/cart/gift.svg"); height: 34px; width: 34px; }
.cart-icon--arrow-left { -webkit-mask-image: url("../../image/cart/arrow-left.svg"); mask-image: url("../../image/cart/arrow-left.svg"); }
.cart-icon--arrow-right { -webkit-mask-image: url("../../image/cart/arrow-right.svg"); mask-image: url("../../image/cart/arrow-right.svg"); }
.cart-icon--check { -webkit-mask-image: url("../../image/cart/check.svg"); mask-image: url("../../image/cart/check.svg"); height: 16px; width: 16px; }
.cart-icon--shield { -webkit-mask-image: url("../../image/cart/shield-check.svg"); mask-image: url("../../image/cart/shield-check.svg"); height: 18px; width: 18px; }

.page-cart-empty .cart-empty__icon {
  display: none;
}

@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-totals {
    position: static;
  }
}

@media (max-width: 880px) {
  .cart-products__head,
  .cart-product {
    gap: 12px;
    grid-template-columns: minmax(220px, 2fr) minmax(90px, .7fr) 132px minmax(95px, .65fr) 36px;
  }

  .cart-products__head span:nth-child(2),
  .cart-product__model {
    display: none;
  }
}

@media (max-width: 700px) {
  .page-cart {
    padding: 16px 0 48px;
  }

  .page-cart__breadcrumbs {
    margin-bottom: 18px;
  }

  .page-cart__header {
    margin-bottom: 18px;
  }

  .page-cart__header h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .page-cart__header h1 span {
    display: block;
    white-space: normal;
  }

  .cart-products {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    padding: 0;
  }

  .cart-products__head {
    display: none;
  }

  .cart-products__list {
    display: grid;
    gap: 12px;
  }

  .cart-product {
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 15px;
    display: grid;
    gap: 10px 14px;
    grid-template-areas:
      "main main remove"
      "price total total"
      "quantity quantity quantity";
    grid-template-columns: minmax(0, 1fr) auto 36px;
    min-height: 0;
    padding: 14px;
  }

  .cart-product:first-child {
    border-top: 1px solid var(--cart-border);
  }

  .cart-product__main { grid-area: main; }
  .cart-product__model { display: none; }
  .cart-product__price { grid-area: price; }
  .cart-quantity { grid-area: quantity; }
  .cart-product__total { grid-area: total; }
  .cart-product__remove { grid-area: remove; }

  .cart-product__image {
    flex-basis: 86px;
    height: 92px;
    width: 86px;
  }

  .cart-product__name {
    font-size: 15px;
  }

  .cart-product__price,
  .cart-product__total {
    align-items: center;
    display: flex;
    font-size: 16px;
    gap: 5px;
    justify-content: flex-start;
    text-align: left;
  }

  .cart-product__price::before {
    color: var(--cart-muted);
    content: attr(data-label) ":";
    font-size: 12px;
    font-weight: 500;
  }

  .cart-product__total {
    justify-content: flex-end;
  }

  .cart-quantity {
    justify-self: start;
  }

  .cart-totals {
    border-radius: 15px;
    padding: 18px;
  }

  .cart-totals__row--grand strong {
    font-size: 24px;
  }

  .cart-tools {
    display: flex;
    flex-direction: column;
  }

  .cart-promo {
    border-radius: 15px;
    gap: 12px;
    grid-template-columns: 28px 1fr;
    padding: 16px;
  }

  .cart-promo__icon {
    height: 26px;
    width: 26px;
  }

  .cart-promo__form {
    grid-column: 1 / -1;
  }

  .cart-next {
    margin-top: 24px;
  }

  .cart-next__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cart-next__checkout {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page-cart__header h1 {
    font-size: 31px;
  }

  .cart-product {
    gap: 10px;
    padding: 12px;
  }

  .cart-product__main {
    gap: 11px;
  }

  .cart-product__image {
    flex-basis: 74px;
    height: 82px;
    width: 74px;
  }

  .cart-product__option {
    font-size: 12px;
  }

  .cart-promo__form {
    grid-template-columns: 1fr;
  }
}
