/* =========================================================
   RICCI 1895 — Pagina Carrello
   Usa i token colore e i font definiti in home.css
========================================================= */

.cart-body { padding-bottom: 90px; }

/* ---------- Riga prodotto (mantiene .card per il JS) ---------- */
.cart-page .cart-item {
  border: 1px solid var(--ric-line);
  border-radius: 6px;
  box-shadow: none;
  background: #fff;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.cart-item-media {
  background: #F6EEEA;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; min-height: 150px;
}
.cart-item-media img { width: 100%; max-height: 130px; object-fit: contain; display: block; }

.cart-item-info { padding: 1.4rem 1.6rem; }
.cart-item-name { font-size: 1.4rem; margin: 0 0 .5rem; }
.cart-item-meta { color: var(--ric-muted); font-size: .9rem; margin: 0 0 .4rem; }
.cart-item-price { color: var(--ric-dark); font-weight: 600; margin: 0; }

.cart-item-actions { padding: 1.4rem 1.2rem; }
.cart-item-actions .lbl { color: var(--ric-muted); }
.cart-qty-line { margin-bottom: .5rem; color: var(--ric-dark); }
.cart-total-line { margin-bottom: .9rem; color: var(--ric-dark); font-weight: 600; }

.cart-remove {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; letter-spacing: .02em;
  color: var(--ric-muted); text-decoration: underline; text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--ric-orange); }

/* ---------- Riepilogo ordine ---------- */
.cart-summary {
  border: 1px solid var(--ric-line);
  border-radius: 6px;
  background: var(--ric-cream);
  padding: 32px clamp(22px, 3vw, 34px);
  position: sticky; top: 96px;
}
.cart-summary h2 { font-size: 1.5rem; margin-bottom: 1.6rem; }
.cart-sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; color: var(--ric-muted); }
.cart-sum-row .val { color: var(--ric-dark); }
.cart-sum-divider { height: 1px; background: var(--ric-line); margin: 1.2rem 0; }
.cart-sum-row.total { color: var(--ric-dark); font-size: 1.15rem; font-weight: 600; margin-bottom: 0; }
.cart-sum-row.total .val { font-family: var(--font-head); font-size: 1.3rem; }

.cart-checkout { display: block; width: 100%; text-align: center; margin-top: 1.8rem; }

/* ---------- Carrello vuoto ---------- */
.cart-empty { padding: 60px 0 40px; text-align: center; }
.cart-empty h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.cart-empty p { color: var(--ric-muted); margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .cart-item-info, .cart-item-actions { padding: 1.1rem 1.4rem; text-align: center; }
  .cart-item-media { min-height: 200px; }
  .cart-summary { position: static; margin-top: 1.5rem; }
}
