/* ---------------- Cart page ---------------- */
.cartPage{ background: #f7f4ef; padding-bottom: 40px; }
.cartTop{ padding: 18px 0 10px; }
.cartBack{ margin: 0 0 14px; display: inline-block; }
.cartTitle{
  margin: 0;
  color: #111;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}
.cartSub{
  margin: 8px 0 0;
  color: rgba(17,17,17,0.60);
  font-weight: 700;
}

.cartLayout{ padding: 18px 0 60px; }

.cartEmpty{
  margin: 48px auto 0;
  text-align: center;
  max-width: 520px;
}
.cartEmpty__icon{
  width: 84px;
  height: 84px;
  border-radius: 999px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.35);
}
.cartEmpty__icon svg{ width: 34px; height: 34px; }
.cartEmpty__title{
  margin: 10px 0 8px;
  color: #111;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.cartEmpty__desc{
  margin: 0 0 18px;
  color: rgba(17,17,17,0.60);
  line-height: 1.6;
}
.cartEmpty__cta{ justify-content: center; }

.cartGrid{
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.cartItems__list{ display: grid; gap: 14px; }

.cartItem{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cartItem__left{ min-width: 0; }
.cartItem__title{
  color: #111;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.cartItem__meta{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.cartItem__price{
  font-weight: 900;
  color: #111;
}
.cartItem__pill{
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.55);
}
.cartItem__controls{
  display: flex;
  gap: 10px;
  align-items: center;
}
.qtyBtn{
  width: 42px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.06);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}
.qtyNum{
  min-width: 28px;
  text-align: center;
  font-weight: 900;
  color: rgba(17,17,17,0.75);
}
.trashBtn{
  width: 40px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.06);
  cursor: pointer;
}

.cartItem__lineTotal{
  color: #111;
  font-weight: 900;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Summary */
.cartSummary{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}
.cartSummary__title{
  margin: 0 0 14px;
  color: #111;
  font-weight: 900;
}
.cartSummary__row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: rgba(17,17,17,0.70);
  font-weight: 800;
}
.cartSummary__row--total{
  color: #111;
  font-size: 1.05rem;
}
.cartSummary__divider{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 10px 0;
}
.cartCheckoutBtn{
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--accentText);
  font-weight: 900;
  font-size: 1rem;
}
.cartNote{
  margin: 10px 2px 0;
  color: rgba(17,17,17,0.55);
  font-weight: 700;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 860px){
  .cartGrid{ grid-template-columns: 1fr; }
}

.cartItem__left{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}

.cartItem__thumb{
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

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

.cartItem__imgPlaceholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(17,17,17,0.45);
  font-weight: 800;
}

@media (max-width: 640px){
  .cartItem__left{ grid-template-columns: 80px 1fr; }
  .cartItem__thumb{ width: 80px; height: 80px; border-radius: 14px; }
}