* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
}

.cart-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.cart-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.cart-page__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.steps {
  display: flex;
  gap: 28px;
  font-size: 14px;
  margin: 8px 0 24px;
  color: #707072;
}
.step {
  position: relative;
}
.step.is-active {
  color: #111;
  font-weight: 600;
}
.step.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #111;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-title {
  font-size: 28px;
  margin: 0 0 20px;
}
.cart-items {
  display: flex;
  flex-direction: column;
}
.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}
.cart-item__image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: #f5f5f5;
}
.cart-item__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}
.cart-item__meta {
  margin: 0 0 6px;
  color: #707072;
  font-size: 14px;
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
}
.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
.remove-btn {
  margin-left: 10px;
  border: 0;
  background: none;
  color: #707072;
  text-decoration: underline;
  cursor: pointer;
}
.cart-item__price {
  white-space: nowrap;
  font-size: 18px;
}

.order-summary {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 84px;
}
.order-summary__title {
  margin: 0 0 14px;
  font-size: 20px;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 15px;
}
.summary-total {
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
  margin-top: 8px;
  font-size: 17px;
}
.summary-pix {
  font-size: 16px;
  color: #007b00;
}
.summary-pix strong {
  color: #007b00;
}
.checkout-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}
.checkout-btn:disabled {
  background: #999;
  cursor: not-allowed;
}
.summary-note {
  margin: 14px 0 0;
  color: #707072;
  font-size: 13px;
  line-height: 1.45;
}

.cart-empty {
  border: 1px dashed #d5d5d5;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.cart-empty.hidden { display: none; }
.cart-empty__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}
.cart-empty__text {
  margin: 0 0 18px;
  color: #707072;
}
.cart-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.cart-continue {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: #757575;
  text-decoration: underline;
}
.cart-continue:hover { color: #111; }

@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-page__inner { padding: 16px; }
  .steps { gap: 16px; font-size: 13px; }
  .cart-item {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }
  .cart-item__image { width: 110px; height: 110px; }
  .cart-item__price {
    grid-column: 2;
    justify-self: start;
  }
  .cart-item__actions { flex-wrap: wrap; }
}
