.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: flex-end;
  z-index: 999;
}

.cart-sidebar {
  width: 380px;
  height: 100%;
  background: #111;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
  padding-bottom: 10px;
}

.cart-header h2 {
  font-size: 20px;
}

.cart-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.empty {
  margin-top: 40px;
  text-align: center;
  color: #777;
}

.cart-items {
  flex: 1;
  margin-top: 20px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #1f1f1f;
}

.cart-item h4 {
  margin: 0;
  font-size: 14px;
}

.cart-item p {
  font-size: 12px;
  color: #aaa;
}

.item-total {
  color: #f59e0b;
  font-weight: bold;
}

.cart-footer {
  border-top: 1px solid #222;
  padding-top: 15px;
}

.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.total strong {
  color: #f59e0b;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  font-weight: bold;
  transition: 0.3s;
}

.checkout-btn:hover {
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
  .cart-sidebar {
    width: 100%;
  }
}