/* ── Side Cart Drawer ── */
.cart-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.side-cart {
  position: fixed; top: 0; right: 0;
  width: 420px; max-width: 90vw; height: 100vh;
  background: var(--fg);
  color: var(--bg);
  z-index: 1000000;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.3);
}
.side-cart.open { transform: translateX(0); }

/* Header */
.side-cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.side-cart-header h3 {
  font-family: "Onest", sans-serif; font-size: 1.1rem; font-weight: 700;
  text-transform: none; color: var(--bg);
}
.side-cart-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5em;
  color: var(--bg); font-size: 1.2rem;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.side-cart-close:hover { background: rgba(108,92,231,0.2); border-color: var(--primary); }

/* Items */
.side-cart-items {
  flex: 1; overflow-y: auto; padding: 1em;
  display: flex; flex-direction: column; gap: 0.75em;
}
.side-cart-items::-webkit-scrollbar { width: 4px; }
.side-cart-items::-webkit-scrollbar-track { background: transparent; }
.side-cart-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sc-item {
  display: flex; gap: 1em; padding: 1em;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75em;
  transition: border-color 0.3s;
}
.sc-item:hover { border-color: rgba(108,92,231,0.3); }
.sc-item-img {
  width: 70px; height: 70px; border-radius: 0.5em; overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.sc-item-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.sc-item-title {
  font-family: "Onest", sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--bg); text-transform: none; line-height: 1.3;
}
.sc-item-variation {
  font-family: "Onest", sans-serif; font-size: 0.7rem;
  color: rgba(255,255,255,0.4); text-transform: none;
}
.sc-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5em; }
.sc-item-price {
  font-family: "Onest", sans-serif; font-size: 0.95rem; font-weight: 800;
  color: var(--primary-light); text-transform: none;
}
.sc-item-qty {
  display: flex; align-items: center; gap: 0;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.4em; overflow: hidden;
}
.sc-item-qty button {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05); border: none;
  color: var(--bg); font-size: 0.9rem; cursor: pointer; transition: background 0.2s;
}
.sc-item-qty button:hover { background: rgba(108,92,231,0.3); }
.sc-item-qty span {
  width: 28px; text-align: center;
  font-family: "Onest", sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--bg);
}
.sc-item-remove {
  background: none; border: none; color: rgba(255,255,255,0.2);
  font-size: 1rem; cursor: pointer; transition: color 0.3s; padding: 0.25em;
}
.sc-item-remove:hover { color: #e74c3c; }

/* Empty */
.sc-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1em;
  opacity: 0.4; text-align: center; padding: 2em;
}
.sc-empty svg { opacity: 0.3; }
.sc-empty p { font-family: "Onest", sans-serif; font-size: 0.9rem; text-transform: none; }

/* Footer */
.side-cart-footer {
  padding: 1.5em;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 1em;
}
.sc-total {
  display: flex; justify-content: space-between; align-items: center;
}
.sc-total-label { font-family: "Onest", sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.6); text-transform: none; }
.sc-total-value { font-family: "Onest", sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--primary-light); text-transform: none; }
.sc-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  width: 100%; padding: 1em;
  background: var(--primary); color: #fff;
  border: none; border-radius: 0.6em;
  font-family: "Onest", sans-serif; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s; text-transform: none; text-decoration: none;
}
.sc-checkout-btn:hover { background: #5a4bd1; box-shadow: 0 0 20px rgba(108,92,231,0.4); }
.sc-continue {
  display: block; text-align: center;
  font-family: "Onest", sans-serif; font-size: 0.8rem;
  color: rgba(255,255,255,0.4); text-transform: none;
  cursor: pointer; transition: color 0.3s;
  background: none; border: none; width: 100%;
}
.sc-continue:hover { color: var(--primary-light); }

/* Toast notification */
.cart-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--primary); color: #fff;
  padding: 0.8em 1.5em; border-radius: 0.6em;
  font-family: "Onest", sans-serif; font-size: 0.85rem; font-weight: 600;
  text-transform: none;
  box-shadow: 0 8px 30px rgba(108,92,231,0.4);
  opacity: 0; pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9999999;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
