/* assets/css/cart-ui.css */
.floating-cart-btn {
  position: fixed; left: 20px; bottom: 20px; z-index: 9999;
  background: #c69c6d; color: #fff; border: 0; border-radius: 28px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  cursor: pointer; transition: transform .15s ease, opacity .2s ease;
}
.floating-cart-btn:hover { transform: translateY(-2px); }
.floating-cart-btn .badge { background: #fff; color: #8b5a2b; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.floating-cart-btn .total { opacity: .9; font-weight: 600; }

.mini-cart {
  position: fixed; left: 20px; bottom: 80px; z-index: 9999;
  width: 320px; max-height: 60vh; overflow: hidden; display: none;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.2);
  color: #000;
  transform-origin: bottom left; animation: miniCartIn .2s ease forwards;
}
.mini-cart.open { display: block; }
@keyframes miniCartIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.mini-cart header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #eee; }
.mini-cart header h4 { margin: 0; font-size: 16px; }
.mini-cart header button { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #666; }

.mini-cart .items { max-height: 40vh; overflow: auto; }
.mini-cart .row {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #f5f5f5;
}
.mini-cart .row img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.mini-cart .row .name { font-weight: 600; line-height: 1.2; }
.mini-cart .row .meta { color: #666; font-size: 12px; }
.mini-cart .row .remove { border: 0; background: transparent; color: #999; cursor: pointer; }

.mini-cart .footer { padding: 12px 14px; border-top: 1px solid #eee; }
.mini-cart .footer .subtotal { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }
.mini-cart .footer .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-cart .footer .actions a {
  display: inline-block; text-align: center; padding: 10px 0; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.mini-cart .footer .actions a.view { background: #f3f3f3; color: #333; }
.mini-cart .footer .actions a.checkout { background: #c69c6d; color: #fff; }

.cart-toast {
  position: fixed; left: 20px; bottom: 160px; z-index: 10000;
  background: #1f2937; color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transform: translateY(10px); opacity: 0; animation: toastIn .2s ease forwards, toastOut .2s ease 2.3s forwards;
}
@keyframes toastIn { to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }
.cart-toast .title { font-weight: 700; margin-right: 6px; }
