/* ========== CART PANEL ========== */
.cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: #0b1522;
  color: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.35s ease-out;
  z-index: 9999;
}

.cart-panel.open {
  right: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 9998;
}
.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  padding-bottom: 10px;
}

/* Items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
  animation: fadeIn .25s ease-out;
}

.cart-item img {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}

/* Name + Price */
.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Quantity + / - buttons */
.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  background: #1e293b;
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.qty {
  font-size: 14px;
  width: 22px;
  text-align: center;
}

/* Remove button */
.remove-item {
  position: absolute;
  top: 6px;
  left: 6px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #e74c3c;
  transition: 0.15s;
}
.remove-item:hover {
  transform: scale(1.25);
}

/* Footer */
.cart-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
}

.btn.full-width {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border: none;
  cursor: pointer;
  color: #000;
  font-weight: bold;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 99999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mini Cart */
.mini-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0f1a28;
  padding: 14px;
  width: 260px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
  display: none;
  animation: slideMini .35s ease-out;
  z-index: 99999;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(6px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes slideMini {
  from {opacity: 0; transform: translateX(20px);}
  to {opacity: 1; transform: translateX(0);}
}
