.cart-page {
  min-height: 680px;
  padding: clamp(132px, 13vw, 162px) 0 clamp(78px, 9vw, 110px);
  background: #f7f7f7;
  color: #171717;
}

.cart-header {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.cart-header h1 {
  margin: 0;
  color: #171717;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.cart-header p {
  margin: 1rem auto 0;
  color: #666666;
  font-size: 1.02rem;
  font-weight: 800;
}

.cart-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 26px;
  align-items: start;
}

.cart-list,
.cart-summary,
.cart-empty {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.cart-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.cart-item + .cart-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item img {
  width: 116px;
  aspect-ratio: 1;
  display: block;
  border-radius: 8px;
  background: #f1f1f1;
  object-fit: cover;
  object-position: center;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-category {
  margin: 0 0 0.3rem;
  color: #777777;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item-title {
  margin: 0;
  color: #171717;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
}

.cart-item-price {
  margin: 0.55rem 0 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.cart-item-controls {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.cart-qty {
  display: inline-grid;
  grid-template-columns: 34px 44px 34px;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
}

.cart-qty button,
.cart-qty input {
  width: 100%;
  border: 0;
  color: #111111;
  background: #ffffff;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.cart-qty button {
  background: #f0f0f0;
}

.cart-remove {
  border: 0;
  color: #6d6d6d;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
}

.cart-remove:hover,
.cart-remove:focus {
  color: #050505;
}

.cart-summary {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 1rem;
  padding: 24px;
}

.cart-summary h2 {
  margin: 0;
  color: #171717;
  font-size: 1.25rem;
  font-weight: 900;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #444444;
  font-weight: 800;
}

.cart-summary-total {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #050505;
  font-size: 1.25rem;
  font-weight: 900;
}

.cart-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.cart-checkout,
.cart-continue,
.cart-clear {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  padding: 0.78rem 1rem;
}

.cart-checkout {
  color: #ffffff;
  background: #050505;
}

.cart-checkout:hover,
.cart-checkout:focus {
  color: #ffffff;
  background: #1f1f1f;
}

.cart-continue {
  color: #050505;
  background: #f0f0f0;
}

.cart-clear {
  color: #777777;
  background: transparent;
}

.cart-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 56px 24px;
  text-align: center;
}

.cart-empty i {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #050505;
  font-size: 1.4rem;
}

.cart-empty h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.cart-empty p {
  max-width: 430px;
  margin: 0;
  color: #666666;
  font-weight: 700;
}

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

  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .cart-item img {
    width: 90px;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
  }
}
