.cartPage {
  --brand-blue: #0a1b4e;
  --text-muted: #6b7280;
  min-height: 100vh;
  background: #eef1f6;
  color: var(--brand-blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cartPageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid rgba(10, 27, 78, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.cartPageHeader .headerActions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cartPageMain {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.35rem auto 2.5rem;
}

.cartEmpty {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(10, 27, 78, 0.08);
  box-shadow: 0 10px 30px rgba(10, 27, 78, 0.06);
}

.cartEmpty h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.cartEmpty p {
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  color: var(--text-muted);
  line-height: 1.5;
}

.cartEmpty .accentBtn {
  display: inline-flex;
  text-decoration: none;
}

.cartLayout {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.cartList,
.cartSummary {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(10, 27, 78, 0.08);
  box-shadow: 0 10px 30px rgba(10, 27, 78, 0.06);
}

.cartList {
  padding: 1.15rem 1.2rem 0.5rem;
}

.cartListHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cartListHead h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
}

.cartListHead p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.cartItems {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cartItem {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(10, 27, 78, 0.08);
}

.cartItemMedia {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6fa;
}

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

.cartItemBody h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.cartItemBody h2 a {
  color: inherit;
  text-decoration: none;
}

.cartItemBody h2 a:hover {
  text-decoration: underline;
}

.cartItemColor {
  margin: 0.15rem 0 0.35rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.82rem;
}

.cartItemColor strong {
  color: var(--brand-blue, #0a1b4e);
  font-weight: 700;
}

.cartItemPrice {
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.cartItemControls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cartQty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(10, 27, 78, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.cartQty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.cartQty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.cartRemove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 650;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
}

.cartItemTotal {
  align-self: center;
  font-size: 1rem;
}

.cartSummary {
  padding: 1.2rem 1.2rem 1.3rem;
  position: sticky;
  top: 5rem;
}

.cartSummary h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.cartSummaryRow,
.cartSummaryTotal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.cartSummaryRow span:last-child {
  color: var(--text-muted);
  text-align: right;
}

.cartSummaryTotal {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10, 27, 78, 0.1);
  font-size: 1.05rem;
}

.cartCheckoutBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.95rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  color: #fff !important;
  font-weight: 750;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #ff512f, #f09819);
  box-shadow: 0 8px 20px rgba(255, 81, 47, 0.25);
  box-sizing: border-box;
}

.cartCheckoutBtn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.cartClearBtn {
  width: 100%;
  margin-top: 0.55rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(10, 27, 78, 0.14);
  background: #fff;
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
}

.cartContinue {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
}

.cartContinue:hover {
  color: var(--brand-blue);
}

@media (max-width: 860px) {
  .cartLayout {
    grid-template-columns: 1fr;
  }

  .cartSummary {
    position: static;
  }

  .cartItem {
    grid-template-columns: 84px 1fr;
  }

  .cartItemTotal {
    grid-column: 2;
    justify-self: start;
  }
}
