.cart-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px 200px;
}

.cart-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
}

.cart-divider {
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* ── ITEM ── */
.cart-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cart-item-img-wrap {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  text-decoration: none;
  cursor: pointer;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.cart-qty-btn {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 300;
  color: var(--black);
  cursor: pointer;
  padding: 0;
  width: 28px;
  text-align: center;
  transition: color 0.2s;
}
.cart-qty-btn:hover { color: var(--red); }

.cart-qty-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  min-width: 24px;
  text-align: center;
}

.cart-item-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  text-decoration: none;
  display: block;
}
.cart-item-name:hover { color: var(--red); }

.cart-item-ml {
  font-size: 13px;
  color: var(--gray);
}

.cart-item-unit {
  font-size: 13px;
  color: var(--gray);
}

.cart-item-delivery {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-delivery-date {
  color: var(--red);
  font-weight: 600;
}

.cart-item-van {
  width: 20px;
  height: auto;
  object-fit: contain;
}

.cart-item-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-item-total {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}

.cart-item-delete {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.cart-item-delete:hover { opacity: 1; }

.cart-item-delete-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ── EMPTY ── */
.cart-empty {
  padding: 60px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cart-empty-text {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--gray);
}

.cart-empty-link {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ── DISCOUNT ── */
.cart-discount {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-discount-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.cart-discount-row {
  display: flex;
  gap: 10px;
}

.cart-discount-input {
  flex: 1;
  border: 1.5px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--black);
  outline: none;
  border-radius: 100px;
  transition: border-color 0.2s;
}
.cart-discount-input:focus { border-color: var(--black); }
.cart-discount-input::placeholder { color: #ccc; }

.cart-discount-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border-radius: 100px;
  transition: background 0.2s;
  white-space: nowrap;
}
.cart-discount-btn:hover { background: var(--red-dark); }

.cart-discount-msg {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
}

/* ── TOTALS ── */
.cart-totals {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--gray);
}

.cart-total-row--free {
  color: var(--gray);
  font-size: 13px;
}

.cart-remaining-amt {
  color: var(--red);
  font-weight: 700;
}

.cart-free-bar-bg {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-top: -4px;
}

.cart-free-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cart-total-row--total {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.cart-total-row--discount {
  color: #27ae60;
  font-weight: 600;
}

/* ── STICKY ── */
.cart-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-sticky-btn {
  background: var(--black);
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  width: 100%;
}
.cart-sticky-btn:hover { background: #222; }

.cart-sticky-sub {
  display: flex;
  justify-content: space-between;
  padding: 10px 24px 14px;
  font-size: 13px;
  color: var(--gray);
}

.cart-sticky-sub strong {
  color: var(--black);
  font-weight: 700;
}
