.cart-page {
  background: #fff;
}

.cart-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 70px max(32px, calc((100vw - 1480px) / 2)) 38px;
  border-bottom: 1px solid var(--line);
  background: #fffaf8;
}

.cart-hero h1 {
  margin: 8px 0 0;
  color: #2d2628;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.05;
}

.cart-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #6f6467;
  line-height: 1.9;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding: 44px max(32px, calc((100vw - 1480px) / 2)) 76px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 7px;
  background: #fffaf8;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.cart-item__head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.cart-item__head span {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 700;
}

.cart-item__head h2 {
  margin: 8px 0 0;
  color: #2d2628;
  font-size: 20px;
}

.cart-item__head p {
  margin: 8px 0 0;
  color: #75696c;
  font-size: 13px;
}

.cart-item__head strong {
  white-space: nowrap;
  color: #1f1c1d;
  font-size: 18px;
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cart-item__controls form {
  margin: 0;
}

.cart-item__controls > button,
.cart-item__controls form > button,
.cart-quantity button,
.cart-quantity span {
  min-height: 38px;
  padding: 0 13px;
  color: #6f555d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.cart-quantity {
  display: inline-grid;
  grid-template-columns: repeat(3, 38px);
}

.cart-quantity form {
  display: contents;
}

.cart-quantity button,
.cart-quantity span {
  display: grid;
  place-items: center;
  padding: 0;
}

.cart-quantity span {
  border-inline: 0;
  border-radius: 0;
}

.cart-summary {
  position: sticky;
  top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(139, 30, 63, .08);
}

.cart-summary h2 {
  margin: 8px 0 22px;
  color: #2d2628;
  font-size: 28px;
}

.cart-coupon label {
  display: block;
  margin-bottom: 10px;
  color: #6f555d;
  font-size: 13px;
  font-weight: 700;
}

.cart-coupon div {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
}

.cart-coupon input,
.cart-coupon button {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.cart-coupon button {
  color: #fff;
  background: var(--burgundy);
  border-color: var(--burgundy);
  font-weight: 700;
}

.cart-summary dl {
  display: grid;
  gap: 1px;
  margin: 24px 0;
  background: var(--line);
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  background: #fff;
}

.cart-summary dt {
  color: #75696c;
}

.cart-summary dd {
  margin: 0;
  color: #1f1c1d;
  font-weight: 700;
}

.cart-summary .btn {
  width: 100%;
  justify-content: center;
}

.cart-summary .btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.cart-summary p {
  margin: 14px 0 0;
  color: #75696c;
  font-size: 12px;
  line-height: 1.8;
}

.cart-recommendations {
  padding: 0 max(32px, calc((100vw - 1480px) / 2)) 88px;
}

.cart-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf8;
}

.cart-empty h2 {
  margin: 0;
  color: #2d2628;
  font-size: 28px;
}

.cart-empty p {
  max-width: 520px;
  margin: 0;
  color: #75696c;
  line-height: 1.8;
}

.cart-recommendations__head {
  margin-bottom: 28px;
}

.cart-recommendations__head h2 {
  margin: 8px 0 0;
  color: #2d2628;
  font-size: clamp(28px, 3vw, 46px);
}

.cart-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
}

.cart-recommendations__grid .product-card {
  flex-basis: auto;
  border-radius: 8px;
}

.cart-recommendations__grid .product-card img {
  width: calc(100% - 18px);
  height: 168px;
  min-height: 168px;
}

.cart-recommendations__grid .product-card > div {
  min-height: 220px;
  padding: 16px 14px 14px;
}

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

  .cart-summary {
    position: static;
  }

  .cart-recommendations__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cart-hero,
  .cart-layout,
  .cart-recommendations {
    padding-inline: 18px;
  }

  .cart-hero,
  .cart-item,
  .cart-item__head,
  .cart-recommendations__grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
