/* ── Cart page ────────────────────────────────────────────────────── */

.cart-page {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  max-width: 900px;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 2rem;
}

/* Empty state */
.cart-empty {
  padding: 3rem 0;
  color: #888;
  font-size: 0.95rem;
}

.cart-empty p {
  margin-bottom: 1rem;
}

/* Layout: items + summary side by side on desktop */
.cart-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.cart-items {
  flex: 1;
}

/* Individual item row */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #ebebeb;
}

.cart-item-image {
  flex-shrink: 0;
  width: 72px;
  height: 90px;
}

.cart-item-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
}

.cart-item-image a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.cart-item-title-link {
  color: inherit;
  text-decoration: none;
}

.cart-item-title-link:hover {
  color: #555;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: #999;
  margin: 0 0 0.25rem;
}

.cart-item-unit-price {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

/* Quantity controls */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s;
}

.qty-btn:hover {
  border-color: #111;
}

.qty-value {
  font-size: 0.9rem;
  min-width: 1.5rem;
  text-align: center;
  color: #111;
}

/* Line total */
.cart-item-line-total {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  flex-shrink: 0;
  min-width: 5rem;
  text-align: right;
}

/* Remove */
.cart-item-remove {
  flex-shrink: 0;
}

.remove-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.remove-btn:hover {
  color: #111;
}

/* Summary panel */
.cart-summary {
  flex-shrink: 0;
  width: 240px;
  padding: 1.5rem;
  border: 1px solid #ebebeb;
  position: sticky;
  top: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #444;
}

.cart-subtotal {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

.cart-summary-note {
  font-size: 0.75rem;
  color: #bbb;
  margin-bottom: 1rem;
}

.btn-checkout {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}

.cart-continue {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 767px) {
  .cart-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .cart-summary {
    width: 100%;
    position: static;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-line-total {
    min-width: auto;
  }
}

/* ── Phase 5 — cart trust microcopy near checkout ── */
.cart-trust-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #555;
}
.cart-trust-list li {
  padding-left: 1.1rem;
  position: relative;
  margin: 0.25rem 0;
  line-height: 1.45;
}
.cart-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #111;
  font-weight: 700;
}
